/* ============ */
/* Booonjour UI */
/* ============ */

/* Farb-Token */
:root {
  --brand:      #7d67ff;   /* Hauptlila */
  --brand-soft: #ece9ff;   /* Sehr sanftes Lila / Panels */
  --bg-page:    #fffdfa;   /* warmer Hintergrund */
  --ink:        #1d1d1f;   /* Text dunkel */
  --ink-soft:   rgba(29,29,31,.6);
  --card-bg:    #ffffff;
  --card-border:#e5e7eb;
  --card-shadow:0 10px 24px rgba(0,0,0,.06);
  --radius-xl:  18px;
  --radius-lg:  14px;

  --surface-gradient-start:#ffffff;
  --surface-gradient-end:#ece9ff;

  --footer-bg:#0f0f0f;
  --footer-border:rgba(255,255,255,.1);
  --footer-text:#ffffff;

  --danger:#1d1d1f;
  --danger-bg:#1d1d1f;
  --danger-text:#ffffff;
}

/* Typography */
body {
  background-color: var(--bg-page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.5;
  margin:0;
}

h1,h2,h3,h4,h5,h6 {
  color: var(--ink);
  font-weight:600;
  letter-spacing:-0.02em;
  margin:0 0 .5em;
}

.text-ink      { color: var(--ink); }
.text-ink-soft { color: var(--ink-soft); }

.bg-page   { background-color: var(--bg-page); }
.bg-brand  { background-color: var(--brand); color:#fff; }
.bg-soft   { background-color: var(--brand-soft); }

.badge-points {
  background-color: var(--brand);
  color:#fff;
  border-radius:999px;
  box-shadow:0 14px 30px rgba(125,103,255,.4);
  padding:3px 8px;
  font-size:11px;
  font-weight:600;
  line-height:1;
  display:inline-block;
}

.badge-minus {
  background-color: var(--danger-bg);
  color:var(--danger-text);
  border-radius:999px;
  box-shadow:0 14px 30px rgba(0,0,0,.4);
  padding:3px 8px;
  font-size:11px;
  font-weight:600;
  line-height:1;
  display:inline-block;
}

/* Layout helpers */
.wrapper-page {
  max-width:1280px;
  margin-left:auto;
  margin-right:auto;
  padding-left:1rem;
  padding-right:1rem;
  padding-top:2rem;
  padding-bottom:2rem;
}

.flex-row    { display:flex; flex-direction:row; }
.flex-col    { display:flex; flex-direction:column; }
.gap-4       { gap:1rem; }
.gap-6       { gap:1.5rem; }
.gap-8       { gap:2rem; }
.grow-1      { flex:1 1 auto; }
.shrink-0    { flex-shrink:0; }

@media(min-width:768px){
  .md-row { flex-direction:row; }
}

/* Card / Panel Styles */
.card {
  background-color: var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--card-shadow);
  padding:1.5rem;
}

.card-surface-gradient {
  background: radial-gradient(circle at 0% 0%, var(--surface-gradient-start) 0%, var(--surface-gradient-end) 100%);
  border:1px solid var(--card-border);
  border-radius:var(--radius-xl);
  box-shadow:0 18px 36px rgba(125,103,255,.12);
  padding:1.5rem;
}

.section-title {
  font-size:clamp(20px,2vw,22px);
  font-weight:600;
  line-height:1.2;
  color:var(--ink);
  margin:0 0 .5rem;
  letter-spacing:-0.02em;
}

.section-desc {
  font-size:15px;
  line-height:1.5;
  color:var(--ink-soft);
  margin:0 0 1rem;
  max-width:60ch;
}

/* Sidebar */
.sidebar-shell {
  width:240px;
  flex-shrink:0;
  background-color:var(--brand-soft);
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--card-shadow);
  padding:1rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
  height:max-content;
}

.sidebar-card-user {
  background-color:#fff;
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--card-shadow);
  padding:1rem;
  font-size:14px;
  line-height:1.4;
  color:var(--ink);
}

.sidebar-nav-item {
  display:flex;
  align-items:flex-start;
  gap:.5rem;
  background-color:var(--brand-soft);
  color:var(--ink);
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--card-shadow);
  padding:.75rem 1rem;
  font-size:15px;
  font-weight:500;
  line-height:1.3;
  text-decoration:none;
}
.sidebar-nav-item.primary {
  background-color:var(--brand);
  color:#fff;
  border:1px solid var(--brand);
  box-shadow:0 14px 30px rgba(125,103,255,.4);
}

/* Buttons */
.btn {
  display:inline-block;
  border-radius:var(--radius-lg);
  font-size:15px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  padding:.8rem 1rem;
  text-align:center;
  cursor:pointer;
  border:1px solid transparent;
}

.btn-brand {
  background-color:var(--brand);
  color:#fff;
  border-color:var(--brand);
  box-shadow:0 14px 30px rgba(125,103,255,.4);
}

.btn-dark {
  background-color:var(--ink);
  color:#fff;
  border-color:var(--ink);
  box-shadow:0 14px 30px rgba(0,0,0,.4);
}

.btn-soft {
  background-color:#fff;
  color:var(--ink);
  border-color:var(--card-border);
  box-shadow:var(--card-shadow);
}

/* Tiny UI elements */
.progress-shell {
  width:100%;
  max-width:320px;
}
.progress-bar-wrapper {
  width:100%;
  background-color:#e5e7eb;
  border:1px solid #d1d5db;
  border-radius:999px;
  overflow:hidden;
  height:1rem;
  position:relative;
}
.progress-bar-fill {
  background-color:var(--brand);
  color:#fff;
  font-size:11px;
  font-weight:600;
  line-height:1;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  box-shadow:0 14px 30px rgba(125,103,255,.4);
  min-width:2rem;
  border-radius:999px 0 0 999px;
}

.tx-list {
  list-style:none;
  padding:0;
  margin:0;
}
.tx-item {
  background-color:#fff;
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--card-shadow);
  padding:1rem;
  font-size:15px;
  line-height:1.45;
  color:var(--ink);
}

.tx-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:.5rem;
  font-weight:500;
  color:var(--ink);
  line-height:1.3;
  font-size:15px;
}

.tx-date {
  font-size:12px;
  line-height:1.4;
  color:var(--ink-soft);
  margin-top:.25rem;
}

/* Header top-right pill */
.header-pill {
  display:flex;
  align-items:center;
  gap:.5rem;
  background-color:var(--brand-soft);
  border:1px solid var(--card-border);
  border-radius:999px;
  box-shadow:0 10px 24px rgba(125,103,255,.2);
  padding:.5rem .75rem;
  font-size:11px;
  line-height:1.2;
  font-weight:500;
  color:var(--ink);
}

/* Footer */
.footer-root{
  background-color:var(--footer-bg);
  color:var(--footer-text);
  border-top:1px solid var(--footer-border);
  margin-top:0rem;
  font-size:14px;
  line-height:1.45;
}
.footer-inner{
  max-width:1280px;
  margin:auto;
  padding:3rem 1.5rem;
  display:grid;
  gap:2rem;
}
@media(min-width:768px){
  .footer-inner{grid-template-columns:repeat(3,1fr);}
}
.footer-col-heading{
  font-weight:500;
  margin-bottom:1rem;
}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.2);
  text-align:center;
  font-size:12px;
  padding:1rem;
  color:#fff;
}
.footer-store-btn{
  border:1px solid #fff;
  color:#fff;
  border-radius:.5rem;
  width:10rem;
  padding:0.75rem 1rem;
  box-shadow:0 20px 30px rgba(110,99,217,.4);
  font-size:13px;
  line-height:1.3;
}

/* ===== Booonjour Glass Header ===== */

.header-shell {
  position: sticky;
  top: 0;
  z-index: 1000;

  /* Glass / Gradient Hintergrund */
  background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.7) 0%, rgba(236,233,255,0.4) 60%, rgba(255,253,250,0.2) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);

  border-bottom: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 30px 60px rgba(125,103,255,.22), 0 8px 20px rgba(0,0,0,.08);
}

.header-inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: .75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  position: relative;
}

.header-left {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

.header-logo-img {
  height: 32px;
  width: auto;
  border-radius: 8px;
  /*background: radial-gradient(circle at 20% 20%, #fff 0%, #7d67ff 60%);
  box-shadow: 0 18px 36px rgba(125,103,255,.5);*/
}

.header-brand-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: .4rem;
}

.header-brand-badge {
  background-color: var(--brand);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 6px;
  box-shadow: 0 14px 30px rgba(125,103,255,.4);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.header-nav-link {
  color: var(--ink);
  text-decoration: none;
  padding: .4rem .6rem;
  line-height: 1.2;
  border-radius: 10px;
  transition: all .15s ease;
  background: transparent;
}

.header-nav-link:hover {
  background: rgba(125,103,255,.08);
  color: var(--brand);
  box-shadow: 0 16px 32px rgba(125,103,255,.18);
}

/* Right cluster: Sprache, User, Buttons */
.header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

/* Sprache Pills */
.lang-pill {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.4);
  color: var(--ink);
  padding: .4rem .55rem;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 16px 32px rgba(0,0,0,.08);
  transition: all .12s ease;
  text-decoration: none;
}
.lang-pill:hover {
  background: rgba(125,103,255,.12);
  border-color: rgba(125,103,255,.4);
  box-shadow: 0 20px 36px rgba(125,103,255,.28);
  color: var(--brand);
}

/* User pill (Hi Name + Punkte) */
.user-pill {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  padding: .5rem .75rem;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--ink);

  box-shadow:
    0 24px 48px rgba(125,103,255,.28),
    0 10px 24px rgba(0,0,0,.08);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.user-pill .user-points {
  background-color: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(125,103,255,.4);
}

/* CTA Buttons in Header */
.header-btn {
  display: inline-block;
  border-radius: 12px;
  padding: .55rem .8rem;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 32px rgba(0,0,0,.08);
  border: 1px solid transparent;
  transition: all .12s ease;
}

.header-btn-brand {
  background-color: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 22px 40px rgba(125,103,255,.4), 0 8px 20px rgba(0,0,0,.1);
}
.header-btn-brand:hover {
  filter: brightness(1.05);
  box-shadow: 0 28px 50px rgba(125,103,255,.5), 0 10px 24px rgba(0,0,0,.14);
}

.header-btn-soft {
  background: rgba(255,255,255,.55);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    0 24px 48px rgba(0,0,0,.08),
    0 10px 24px rgba(125,103,255,.18);
}
.header-btn-soft:hover {
  background: rgba(255,255,255,.7);
  box-shadow:
    0 30px 60px rgba(125,103,255,.28),
    0 12px 28px rgba(0,0,0,.12);
  color: var(--brand);
}

/* ========================= */
/* AUTH / SETTINGS STYLE     */
/* Clean iOS style  */
/* ========================= */

/* Screen wrapper für Auth-Seiten */
.auth-screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: var(--bg-page); /* warmes Off-white */
}

/* Headline-Bereich */
.auth-headline {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.auth-title {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.auth-desc {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* Card-Block (z. B. Formularbox) */
.auth-card {
  background-color: #fff;
  border: 1px solid #d9dbe3;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.05);
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Formularfelder wie Insta */
.field-block {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.field-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.field-input {
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  border: 1px solid #9ca3af; /* neutrales grau wie native Inputs */
  border-radius: 10px;
  background-color: #fff;
  padding: .9rem .75rem;
  outline: none;
}
.field-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(125,103,255,.18);
}

/* Fehlermeldung */
.field-error {
  font-size: 13px;
  line-height: 1.4;
  color: #c1121f;
  font-weight: 500;
}

/* Primary Button (wie Insta "Next") */
.btn-auth-primary {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background-color: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: .9rem 1rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(125,103,255,.3);
  cursor: pointer;
}
.btn-auth-primary:active {
  filter: brightness(1.05);
}

/* Secondary / Outline Button */
.btn-auth-secondary {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #1d1d1f;
  background-color: #fff;
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: .9rem 1rem;
  text-align: center;
}

/* kleine Links unter Formular */
.auth-link-row {
  font-size: 14px;
  line-height: 1.4;
  color: var(--brand);
  font-weight: 500;
  text-align: right;
}
.auth-link-row a {
  color: var(--brand);
  text-decoration: none;
}
.auth-link-row a:hover {
  text-decoration: underline;
}

.auth-foot-hint {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
}
.auth-foot-hint span {
  color: var(--ink-soft);
}
.auth-foot-hint a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.auth-foot-hint a:hover {
  text-decoration: underline;
}

/* ====================== */
/* PROFILE / SETTINGS UI  */
/* iOS-style settings list */
/* ====================== */

.settings-screen {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-header-card {
  background-color: #fff;
  border: 1px solid #d9dbe3;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.05);
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.settings-name {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.settings-sub {
  font-size: 15px;
  line-height: 1.4;
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.settings-group {
  background-color: #fff;
  border: 1px solid #d9dbe3;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.05);
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eceef4;
}
.settings-row:last-child {
  border-bottom: 0;
}

.settings-icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--brand);
}
.settings-main {
  flex: 1;
  min-width: 0;
}
.settings-title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: #0f172a; /* sehr dunkles blau/grau wie PayPal */
  letter-spacing: -0.03em;
}
.settings-desc {
  font-size: 14px;
  line-height: 1.4;
  color: #475569; /* weich dunkles Grau */
  margin-top: .25rem;
}

.logout-row {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  padding: 1rem 1.25rem;
}

/* ===== Footer iOS style ===== */

.ios-footer {
  background-color: #0f0f10;
  color: #f5f5f7;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 3rem;
  padding-bottom: 2rem;
  font-family: inherit;
}

.footer-inner-ios {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media(min-width: 900px){
  .footer-inner-ios {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Brand / Claim */
.footer-heading-brand {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.footer-claim {
  font-size: 14px;
  line-height: 1.45;
  color: #d1d1d6;
  max-width: 38ch;
  letter-spacing: -0.02em;
}

/* Social Icons Row */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;

  box-shadow: 0 20px 40px rgba(0,0,0,.8),
              0 10px 24px rgba(125,103,255,.4);
  transition: all .15s ease;
}
.social-icon:hover {
  background: rgba(125,103,255,.18);
  color: var(--brand);
  border-color: rgba(125,103,255,.4);
  box-shadow: 0 24px 48px rgba(125,103,255,.4),
              0 12px 28px rgba(0,0,0,.8);
}

/* Links Spalte */
.footer-heading-secondary {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.footer-links-list a {
  font-size: 14px;
  line-height: 1.4;
  color: #f5f5f7;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.footer-links-list a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Store badges Spalte */
.footer-store-col {
  position: relative;
}
.store-badges-card {
  background: radial-gradient(circle at 20% 20%, rgba(125,103,255,.28) 0%, rgba(0,0,0,0) 70%);
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow:
    0 30px 60px rgba(125,103,255,.4),
    0 18px 36px rgba(0,0,0,.8);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 220px;
}

.store-badge {
  display: block;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 10px;
  padding: .5rem .75rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.8),
              0 10px 24px rgba(125,103,255,.3);
  transition: all .15s ease;
}
.store-badge:hover {
  background: rgba(125,103,255,.15);
  border-color: rgba(125,103,255,.6);
  box-shadow: 0 28px 56px rgba(125,103,255,.45),
              0 14px 32px rgba(0,0,0,.9);
}

.store-img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Footer bottom row */
.footer-bottom-ios {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 1rem 0;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.4;
  color: #d1d1d6;
  text-align: center;
  letter-spacing: -0.02em;
}
.footer-bottom-ios .heart {
  color: var(--brand);
}
