/* ===========================================================
   PhiPaveOne – Landingpage
   Reines HTML/CSS (Hostinger-tauglich, keine Build-Tools)
   =========================================================== */

/* ---- Tokens ---------------------------------------------- */
:root{
  /* Farben – warm, ruhig, vertrauenswürdig */
  --bg:        #FAF8F3;
  --bg-alt:    #ECEFE7;   /* sanfter Salbei-Ton für Section-Wechsel */
  --surface:   #FFFFFF;
  --ink:       #20251F;
  --muted:     #5E645B;
  --line:      #E4E2D8;
  --line-soft: #EEEDE6;

  --sage:      #5E7257;   /* Primär-Akzent */
  --sage-deep: #43543C;
  --sage-soft: #DCE6D4;
  --sage-tint: #EFF3EA;
  --clay:      #B5755A;   /* sehr sparsam, Patientenfarbe */
  --blue:      #5B7689;   /* sekundär, sparsam */
  --lav:       #8C84A8;

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(32,37,31,.05), 0 2px 8px rgba(32,37,31,.04);
  --shadow-md: 0 4px 14px rgba(32,37,31,.07), 0 16px 40px rgba(32,37,31,.06);
  --shadow-lg: 0 10px 30px rgba(32,37,31,.10), 0 40px 80px rgba(32,37,31,.10);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

/* ---- Reset ----------------------------------------------- */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family:var(--font-sans);
  background:var(--bg);
  color:var(--ink);
  line-height:1.55;
  font-size:18px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
ul{ list-style:none; }

/* ---- Layout-Helfer --------------------------------------- */
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--pad); }
section{ padding-block:clamp(64px, 9vw, 130px); }
.section-alt{ background:var(--bg-alt); }
.center{ text-align:center; }

/* ---- Typografie ------------------------------------------ */
h1,h2,h3{ font-family:var(--font-display); font-weight:500; letter-spacing:-.01em; line-height:1.08; text-wrap:balance; }
.display{ font-size:clamp(2.6rem, 6vw, 4.6rem); line-height:1.02; letter-spacing:-.025em; }
h2.section-title{ font-size:clamp(2rem, 4vw, 3rem); }
h3{ font-size:1.45rem; line-height:1.2; }
.eyebrow{
  font-family:var(--font-sans);
  font-size:.8rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:var(--sage); margin-bottom:1rem;
}
.lead{ font-size:clamp(1.05rem, 1.6vw, 1.3rem); color:var(--muted); max-width:62ch; }
.muted{ color:var(--muted); }
.serif-em{ font-family:var(--font-display); font-style:italic; font-weight:500; }

.section-head{ max-width:42rem; margin-bottom:clamp(40px,5vw,68px); }
.section-head.center{ margin-inline:auto; }

/* ---- Buttons --------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:.55em;
  font-weight:600; font-size:1rem;
  padding:.95em 1.6em; border-radius:999px;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--sage); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--sage-deep); box-shadow:var(--shadow-md); }
.btn-ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--line); }
.btn-ghost:hover{ border-color:var(--ink); background:rgba(32,37,31,.03); }
.btn-light{ background:#fff; color:var(--ink); box-shadow:var(--shadow-sm); }
.btn-light:hover{ box-shadow:var(--shadow-md); transform:translateY(-1px); }
.btn-lg{ padding:1.05em 1.9em; font-size:1.05rem; }

/* ---- Header ---------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,248,243,.82);
  backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, background .25s ease;
}
.site-header.scrolled{ border-bottom-color:var(--line); }
.nav{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand{ display:flex; align-items:center; gap:.6rem; font-family:var(--font-display); font-size:1.3rem; font-weight:600; letter-spacing:-.02em; }
.brand .mark{
  width:30px; height:30px; border-radius:9px;
  background:linear-gradient(145deg, var(--sage), var(--sage-deep));
  display:grid; place-items:center; color:#fff; font-family:var(--font-sans); font-weight:800; font-size:.95rem;
  box-shadow:var(--shadow-sm);
}
.nav-links{ display:flex; align-items:center; gap:2rem; }
.nav-links a{ font-size:.98rem; font-weight:500; color:var(--muted); transition:color .15s; }
.nav-links a:hover{ color:var(--ink); }
.nav-cta{ display:flex; align-items:center; gap:.9rem; }
.nav-toggle{ display:none; width:42px; height:42px; border-radius:10px; border:1px solid var(--line); flex-direction:column; gap:5px; align-items:center; justify-content:center; }
.nav-toggle span{ width:18px; height:2px; background:var(--ink); border-radius:2px; transition:.2s; }

/* ---- Hero ------------------------------------------------ */
.hero{ position:relative; padding-top:clamp(48px,7vw,86px); padding-bottom:clamp(56px,8vw,96px); overflow:hidden; }
.hero-glow{
  position:absolute; inset:-20% -10% auto -10%; height:520px; z-index:0;
  background:radial-gradient(60% 70% at 30% 0%, rgba(94,114,87,.16), transparent 70%),
             radial-gradient(50% 60% at 85% 10%, rgba(91,118,137,.12), transparent 70%);
  pointer-events:none;
}
.hero-inner{ position:relative; z-index:1; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(32px,5vw,64px); align-items:center; }
.pill{
  display:inline-flex; align-items:center; gap:.5em;
  background:var(--sage-tint); color:var(--sage-deep);
  border:1px solid var(--sage-soft);
  padding:.45em 1em; border-radius:999px; font-size:.85rem; font-weight:600; letter-spacing:.01em;
  margin-bottom:1.6rem;
}
.pill .dot{ width:8px; height:8px; border-radius:50%; background:var(--sage); box-shadow:0 0 0 4px rgba(94,114,87,.18); }
.hero h1{ margin-bottom:1.4rem; }
.hero .lead{ margin-bottom:2.2rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.9rem; margin-bottom:1.8rem; }
.hero-trust{ display:flex; flex-wrap:wrap; gap:1.2rem 1.6rem; font-size:.92rem; color:var(--muted); }
.hero-trust span{ display:flex; align-items:center; gap:.5em; }
.hero-trust svg{ width:17px; height:17px; color:var(--sage); flex:none; }

/* ---- macOS App-Mockup ------------------------------------ */
.window{
  background:var(--surface); border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow-lg); border:1px solid var(--line-soft);
}
.window.tilt{ transform:perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin:left center; }
.win-bar{ display:flex; align-items:center; gap:.5rem; padding:11px 14px; background:#F3F1EB; border-bottom:1px solid var(--line-soft); }
.win-bar .dots{ display:flex; gap:7px; }
.win-bar .dots i{ width:11px; height:11px; border-radius:50%; display:block; }
.win-bar .dots i:nth-child(1){ background:#E0695A; }
.win-bar .dots i:nth-child(2){ background:#E7B14C; }
.win-bar .dots i:nth-child(3){ background:#6FB75E; }
.win-bar .win-title{ font-size:.8rem; color:var(--muted); font-weight:600; margin-inline:auto; padding-right:34px; }

/* Kalender im Mockup */
.cal{ display:grid; grid-template-columns:46px repeat(5,1fr); font-size:.7rem; }
.cal-head{ display:contents; }
.cal-head > div{ padding:10px 6px; text-align:center; font-weight:700; color:var(--muted); border-bottom:1px solid var(--line-soft); }
.cal-head .cal-corner{ border-bottom:1px solid var(--line-soft); }
.cal-body{ grid-column:1 / -1; display:grid; grid-template-columns:46px repeat(5,1fr); position:relative; }
.cal-times{ display:grid; }
.cal-times span{ height:46px; padding:4px 6px; color:var(--muted); font-weight:600; border-bottom:1px solid var(--line-soft); border-right:1px solid var(--line-soft); }
.cal-col{ display:grid; border-right:1px solid var(--line-soft); }
.cal-col .slot{ height:46px; border-bottom:1px solid var(--line-soft); }
.appt{
  margin:3px; border-radius:8px; padding:7px 8px; font-weight:600;
  line-height:1.25; overflow:hidden; border-left:3px solid;
}
.appt small{ display:block; font-weight:500; opacity:.7; font-size:.62rem; }
.appt.s{ background:var(--sage-tint); border-color:var(--sage); color:var(--sage-deep); }
.appt.b{ background:#E8EFF2; border-color:var(--blue); color:#3C5462; }
.appt.c{ background:#F4E7E0; border-color:var(--clay); color:#7E4F3B; }
.appt.l{ background:#ECE9F2; border-color:var(--lav); color:#5A527A; }

/* ---- Trust-Strip ----------------------------------------- */
.trust-strip{ border-block:1px solid var(--line); background:var(--surface); }
.trust-strip .wrap{ display:flex; flex-wrap:wrap; gap:1rem 2.4rem; align-items:center; justify-content:center; padding-block:24px; }
.trust-item{ display:flex; align-items:center; gap:.6rem; font-size:.95rem; font-weight:600; color:var(--ink); }
.trust-item svg{ width:20px; height:20px; color:var(--sage); flex:none; }
.trust-sep{ width:1px; height:22px; background:var(--line); }

/* ---- Feature-Reihen mit Mockup --------------------------- */
.features-list{ display:flex; flex-direction:column; gap:24px; }
.card .ic{
  width:48px; height:48px; border-radius:13px; display:grid; place-items:center;
  background:var(--sage-tint); color:var(--sage-deep); margin-bottom:18px;
}
.card .ic svg{ width:24px; height:24px; }

.feature-spot{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-sm); overflow:hidden;
  display:grid; grid-template-columns:1fr 1.05fr; gap:0;
  transition:transform .2s ease, box-shadow .2s ease;
}
.feature-spot:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); }
.feature-spot .fs-text{ padding:clamp(30px,3.5vw,48px); align-self:center; }
.feature-spot .fs-text h3{ font-size:1.55rem; margin-bottom:.6rem; }
.feature-spot .fs-text p{ color:var(--muted); font-size:1.05rem; max-width:42ch; }
.feature-spot .fs-visual{
  background:var(--sage-tint);
  padding:clamp(26px,3vw,44px); display:grid; align-items:center;
  border-left:1px solid var(--line-soft);
}
.feature-spot.rev .fs-text{ order:2; }
.feature-spot.rev .fs-visual{ order:1; border-left:none; border-right:1px solid var(--line-soft); }

/* ---- Mockup-Primitive ------------------------------------ */
.ui-pad{ padding:16px 16px 18px; font-size:.74rem; }
.ui-pad.center{ text-align:center; padding:24px 16px; }

/* Patientenakte */
.rec-head{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.avatar{ width:42px; height:42px; border-radius:12px; background:var(--sage); color:#fff; display:grid; place-items:center; font-weight:700; font-size:.9rem; flex:none; }
.rec-name{ font-weight:700; font-size:.92rem; }
.rec-sub{ color:var(--muted); font-size:.72rem; }
.chips{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.chip{ background:var(--sage-tint); color:var(--sage-deep); border:1px solid var(--sage-soft); border-radius:999px; padding:4px 10px; font-weight:600; font-size:.7rem; }
.note-lines{ display:flex; flex-direction:column; gap:7px; margin-bottom:14px; }
.note-lines span{ height:7px; border-radius:4px; background:var(--line); }
.note-lines span:nth-child(2){ width:88%; }
.note-lines span:nth-child(3){ width:64%; }
.files{ display:flex; gap:8px; flex-wrap:wrap; }
.file{ display:inline-flex; align-items:center; gap:5px; background:#fff; border:1px solid var(--line); border-radius:8px; padding:5px 9px; font-weight:600; color:var(--muted); font-size:.68rem; }
.file::before{ content:""; width:9px; height:11px; border-radius:2px; background:var(--clay); flex:none; }

/* Honorarnote */
.inv-row{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--line-soft); }
.inv-row span:first-child{ color:var(--muted); }
.inv-row span:last-child{ font-weight:600; font-variant-numeric:tabular-nums; }
.inv-total{ display:flex; justify-content:space-between; padding:11px 0 14px; font-weight:800; font-size:.95rem; }
.inv-total span:last-child{ color:var(--sage-deep); font-variant-numeric:tabular-nums; }
.tag-row{ display:flex; gap:7px; flex-wrap:wrap; align-items:center; }
.tag{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:5px 10px; font-weight:600; color:var(--muted); font-size:.7rem; }
.tag.green{ background:var(--sage); color:#fff; border-color:var(--sage); }
.status-paid{ margin-left:auto; display:inline-flex; align-items:center; gap:5px; color:var(--sage-deep); font-weight:700; font-size:.72rem; }
.status-paid::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--sage); }

/* Kassa */
.amount-big{ font-family:var(--font-display); font-size:2.4rem; line-height:1; margin-bottom:4px; }
.amount-cap{ color:var(--muted); font-size:.72rem; margin-bottom:18px; }
.pay-btns{ display:flex; gap:10px; justify-content:center; margin-bottom:16px; }
.pay-btns .pb{ flex:1; max-width:120px; padding:11px 0; border-radius:10px; font-weight:700; font-size:.78rem; border:1px solid var(--line); background:#fff; }
.pay-btns .pb.primary{ background:var(--sage); color:#fff; border-color:var(--sage); }
.pos-tag{ display:inline-flex; align-items:center; gap:6px; font-size:.72rem; font-weight:600; color:var(--sage-deep); }
.pos-tag::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--sage); box-shadow:0 0 0 3px rgba(94,114,87,.18); }

/* Beleg mit QR */
.receipt{ display:flex; align-items:center; gap:18px; }
.qr{
  width:84px; height:84px; flex:none; border-radius:8px; background:#fff; padding:7px;
  --c:#23281f;
  background-image:
    linear-gradient(var(--c),var(--c)), linear-gradient(var(--c),var(--c)), linear-gradient(var(--c),var(--c)),
    conic-gradient(var(--c) 25%, #fff 0 50%, var(--c) 0 75%, #fff 0);
  background-repeat:no-repeat,no-repeat,no-repeat,repeat;
  background-position:7px 7px, calc(100% - 7px) 7px, 7px calc(100% - 7px), 7px 7px;
  background-size:22px 22px, 22px 22px, 22px 22px, 7px 7px;
  border:1px solid var(--line);
}
.rcpt-info{ flex:1; }
.rcpt-no{ color:var(--muted); font-size:.72rem; margin-bottom:3px; }
.rcpt-store{ font-weight:700; font-size:.85rem; margin-bottom:10px; }
.rcpt-total{ font-family:var(--font-display); font-size:1.7rem; line-height:1; color:var(--sage-deep); }
.rcpt-sig{ margin-top:8px; font-size:.66rem; color:var(--muted); }

/* Buchhaltung Diagramm */
.chart{ display:flex; align-items:flex-end; gap:10px; height:118px; padding:0 4px 0; border-bottom:1px solid var(--line); }
.bar{ flex:1; border-radius:6px 6px 0 0; background:var(--sage-soft); position:relative; }
.bar.hi{ background:var(--sage); }
.chart-legend{ display:flex; gap:16px; margin-top:12px; font-size:.7rem; color:var(--muted); }
.chart-legend .lg{ display:flex; align-items:center; gap:6px; }
.chart-legend .lg::before{ content:""; width:10px; height:10px; border-radius:3px; background:var(--sage); }
.chart-legend .lg.muted::before{ background:var(--sage-soft); }
.chart-cap{ display:flex; justify-content:space-between; margin-bottom:14px; }
.chart-cap .big{ font-family:var(--font-display); font-size:1.5rem; line-height:1; color:var(--sage-deep); }
.chart-cap .lbl{ font-size:.7rem; color:var(--muted); }

/* ---- Lokal vs Cloud -------------------------------------- */
.versus{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.vs-col{ border-radius:var(--radius); padding:32px; border:1px solid var(--line); }
.vs-col.win{ background:var(--sage-deep); color:#fff; border-color:var(--sage-deep); }
.vs-col h3{ font-size:1.4rem; margin-bottom:1.2rem; display:flex; align-items:center; gap:.6rem; }
.vs-col.win h3{ color:#fff; }
.vs-list li{ display:flex; gap:.75rem; padding:.6rem 0; border-top:1px solid var(--line-soft); align-items:flex-start; }
.vs-col.win .vs-list li{ border-top-color:rgba(255,255,255,.14); }
.vs-list li:first-child{ border-top:none; }
.vs-list svg{ width:20px; height:20px; flex:none; margin-top:2px; }
.vs-col.win .vs-list svg{ color:var(--sage-soft); }
.vs-list .no svg{ color:#C99; }
.vs-col p.sub{ font-size:.9rem; opacity:.85; margin-bottom:.4rem; }

/* ---- Split / Bild-Sektionen ------------------------------ */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,64px); align-items:center; }
.split.rev .split-media{ order:-1; }
.metrics{ display:flex; gap:2.4rem; margin-top:2rem; flex-wrap:wrap; }
.metric .num{ font-family:var(--font-display); font-size:2.6rem; line-height:1; color:var(--sage); }
.metric .lbl{ font-size:.9rem; color:var(--muted); margin-top:.3rem; }

/* ---- Bild-Platzhalter (Midjourney) ----------------------- */
.ph{
  position:relative; border-radius:var(--radius); overflow:hidden;
  background-color:#E9E7DE;
  background-image:repeating-linear-gradient(135deg, rgba(94,114,87,.10) 0 14px, transparent 14px 28px);
  border:1px solid var(--line);
  display:grid; place-items:center; min-height:280px; padding:24px;
}
.ph .ph-tag{
  font-family:ui-monospace, "SF Mono", Menlo, monospace; font-size:.74rem; line-height:1.5;
  background:rgba(255,255,255,.92); color:var(--sage-deep); border:1px solid var(--sage-soft);
  border-radius:10px; padding:12px 14px; max-width:34ch; box-shadow:var(--shadow-sm);
}
.ph .ph-tag b{ display:block; color:var(--ink); font-family:var(--font-sans); font-weight:700; margin-bottom:5px; font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; }
.ph.round{ border-radius:50%; aspect-ratio:1; min-height:0; }
.ph.tall{ min-height:420px; }

/* ---- Über uns -------------------------------------------- */
.team{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:48px; }
.team-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:28px; display:flex; gap:22px; box-shadow:var(--shadow-sm); }
.team-card .ph.round{ width:104px; height:104px; flex:none; }
.team-card h3{ font-size:1.25rem; }
.team-card .role{ color:var(--sage); font-weight:600; font-size:.92rem; margin-bottom:.7rem; }
.team-card p{ color:var(--muted); font-size:.95rem; }

/* ---- Demo CTA -------------------------------------------- */
.demo-band{ background:var(--sage-deep); color:#fff; border-radius:var(--radius-lg); padding:clamp(34px,5vw,60px); display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center; }
.demo-band h2{ color:#fff; font-size:clamp(1.8rem,3vw,2.6rem); margin-bottom:1rem; }
.demo-band p{ color:rgba(255,255,255,.82); margin-bottom:1.8rem; }
.demo-band .ph{ background-color:rgba(255,255,255,.08); background-image:repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 14px, transparent 14px 28px); border-color:rgba(255,255,255,.2); min-height:240px; }
.demo-band .ph .ph-tag{ background:rgba(255,255,255,.95); }

/* ---- Preise ---------------------------------------------- */
.price-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; align-items:start; }
.price{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:32px; box-shadow:var(--shadow-sm); position:relative; }
.price.feat{ border-color:var(--sage); box-shadow:var(--shadow-md); }
.price .badge{ position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--sage); color:#fff; font-size:.74rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:.4em 1em; border-radius:999px; }
.price h3{ font-family:var(--font-sans); font-weight:700; font-size:1.15rem; letter-spacing:.01em; }
.price .amount{ font-family:var(--font-display); font-size:2.8rem; line-height:1; margin:.4rem 0 .1rem; }
.price .amount small{ font-family:var(--font-sans); font-size:.95rem; color:var(--muted); font-weight:500; }
.price .note{ font-size:.88rem; color:var(--muted); margin-bottom:1.4rem; }
.price ul{ display:flex; flex-direction:column; gap:.7rem; margin-bottom:1.8rem; }
.price li{ display:flex; gap:.6rem; font-size:.95rem; align-items:flex-start; }
.price li svg{ width:18px; height:18px; color:var(--sage); flex:none; margin-top:3px; }
.price .btn{ width:100%; justify-content:center; }

/* ---- FAQ ------------------------------------------------- */
.faq{ max-width:760px; margin-inline:auto; }
.faq details{ border-bottom:1px solid var(--line); }
.faq summary{ list-style:none; cursor:pointer; padding:22px 4px; display:flex; justify-content:space-between; align-items:center; gap:1rem; font-weight:600; font-size:1.12rem; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary .plus{ width:26px; height:26px; flex:none; position:relative; transition:transform .25s; }
.faq summary .plus::before,.faq summary .plus::after{ content:""; position:absolute; inset:50% 0 auto 0; height:2px; background:var(--sage); transform:translateY(-50%); }
.faq summary .plus::after{ transform:translateY(-50%) rotate(90deg); transition:transform .25s; }
.faq details[open] summary .plus::after{ transform:translateY(-50%) rotate(0deg); }
.faq .ans{ padding:0 4px 24px; color:var(--muted); max-width:64ch; }

/* ---- Waitlist -------------------------------------------- */
.waitlist-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:clamp(32px,5vw,56px); box-shadow:var(--shadow-md); max-width:720px; margin-inline:auto;
}
.gift{ display:inline-flex; align-items:center; gap:.5em; background:var(--sage-tint); color:var(--sage-deep); font-weight:700; padding:.5em 1em; border-radius:999px; font-size:.92rem; margin-bottom:1.2rem; }
.wl-form{ display:flex; gap:.7rem; margin:1.6rem 0 1rem; flex-wrap:wrap; }
.wl-form input[type=email]{
  flex:1; min-width:220px; padding:1em 1.2em; border:1.5px solid var(--line); border-radius:999px;
  font-family:inherit; font-size:1rem; background:var(--bg); color:var(--ink);
}
.wl-form input[type=email]:focus{ outline:none; border-color:var(--sage); background:#fff; }
.consent{ display:flex; gap:.6rem; align-items:flex-start; font-size:.82rem; color:var(--muted); }
.consent input{ margin-top:.25rem; accent-color:var(--sage); }
.consent a{ color:var(--sage-deep); text-decoration:underline; }
.wl-ok{ display:none; background:var(--sage-tint); border:1px solid var(--sage-soft); color:var(--sage-deep); padding:1em 1.2em; border-radius:14px; font-weight:600; margin-top:1rem; }
.wl-ok.show{ display:block; }
.sysreq{ text-align:center; font-size:.85rem; color:var(--muted); margin-top:1.6rem; }

/* ---- Footer ---------------------------------------------- */
.site-footer{ background:var(--ink); color:#C9CCC4; padding-block:64px 40px; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.site-footer h4{ font-family:var(--font-sans); color:#fff; font-size:.85rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:1.1rem; font-weight:700; }
.site-footer .brand{ color:#fff; margin-bottom:1rem; }
.site-footer p{ font-size:.95rem; max-width:36ch; }
.site-footer a{ color:#C9CCC4; font-size:.95rem; line-height:2.1; transition:color .15s; }
.site-footer a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; font-size:.85rem; color:#8A8E84; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 940px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-media{ margin-top:18px; }
  .window.tilt{ transform:none; }
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .feature-spot{ grid-column:span 2; grid-template-columns:1fr; }
  .feature-spot .fs-visual{ order:-1; }
  .versus,.split,.demo-band,.team,.price-grid,.footer-grid{ grid-template-columns:1fr; }
  .split.rev .split-media{ order:0; }
  .demo-band .ph{ order:-1; }
}
@media (max-width: 720px){
  body{ font-size:17px; }
  .nav-links, .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:flex; }
  .nav.open + .mobile-menu{ display:block; }
  .feature-grid{ grid-template-columns:1fr; }
  .feature-spot{ grid-column:span 1; }
  .hero-trust{ gap:.7rem 1.4rem; }
}

/* ---- Mobile-Menü ----------------------------------------- */
.mobile-menu{ display:none; background:var(--surface); border-bottom:1px solid var(--line); padding:14px var(--pad) 22px; }
.mobile-menu a{ display:block; padding:12px 0; font-weight:600; border-bottom:1px solid var(--line-soft); }
.mobile-menu .btn{ width:100%; justify-content:center; margin-top:14px; }

/* ---- Reveal-Animation (sanft) ---------------------------- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ===========================================================
   Projektspezifische Ergänzungen (PHP-Integration)
   =========================================================== */

/* ---- Hero-Bild (statt Kalender-Mockup) ------------------- */
.hero-img{
  width:100%; border-radius:18px; box-shadow:var(--shadow-lg);
  border:1px solid var(--line-soft);
}

/* ---- Live-Demo: grünes Band umschließt die Demo ---------- */
.demo-band.stack{ display:block; }
.demo-band-head{ max-width:760px; margin-bottom:clamp(22px,3vw,34px); }
.demo-window{ box-shadow:var(--shadow-lg); }
.demo-frame{ width:100%; height:760px; border:0; display:block; background:#fff; }
.demo-band-foot{
  display:flex; align-items:center; gap:1.2rem 1.6rem; flex-wrap:wrap;
  margin-top:clamp(22px,3vw,32px);
}
.demo-band-foot .btn{ flex:none; }
.demo-band .demo-note{
  flex:1; min-width:260px; margin:0;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.22);
  border-radius:12px; padding:.9rem 1.1rem; font-size:.86rem; line-height:1.6; color:rgba(255,255,255,.85);
}
.demo-band .demo-note strong{ color:#fff; }
@media (max-width: 940px){
  .demo-frame{ height:600px; }
}
@media (max-width: 720px){
  .demo-frame{ height:520px; }
}

/* ---- Server-Statusmeldungen (Waitlist) ------------------- */
.wl-status{
  max-width:560px; margin:0 auto 1.4rem; padding:1em 1.2em; border-radius:14px;
  font-size:.95rem; font-weight:600; line-height:1.55; text-align:left;
}
.wl-status.success{ background:var(--sage-tint); border:1px solid var(--sage-soft); color:var(--sage-deep); }
.wl-status.error{ background:#F7E7E0; border:1px solid #E8C9BC; color:#8A4A33; }

/* ---- Waitlist: zusätzliches Namensfeld + Reihenanordnung -- */
.wl-form .wl-fields{ display:flex; gap:.7rem; flex:1; min-width:240px; flex-wrap:wrap; }
.wl-form input[type=text]{
  flex:1; min-width:160px; padding:1em 1.2em; border:1.5px solid var(--line); border-radius:999px;
  font-family:inherit; font-size:1rem; background:var(--bg); color:var(--ink);
}
.wl-form input[type=text]:focus{ outline:none; border-color:var(--sage); background:#fff; }

/* ---- Team-Fotos (echte Bilder im Rund-Rahmen) ------------ */
.team-card .photo{
  width:104px; height:104px; flex:none; border-radius:50%; overflow:hidden;
  background:linear-gradient(145deg, var(--sage-soft), var(--sage-tint));
  border:3px solid var(--sage); display:grid; place-items:center;
  font-family:var(--font-display); font-size:1.8rem; color:var(--sage-deep); font-weight:600;
}
.team-card .photo img{ width:100%; height:100%; object-fit:cover; object-position:center 18%; }

/* ===========================================================
   Unterseiten-Kit  (login, register, demo, legal, checkout, …)
   Vereinheitlicht alle Seiten auf das Landing-Design.
   =========================================================== */

/* ---- Alias-Variablen: alte style.css-Namen -> neue Palette - */
:root{
  --primary-color: var(--sage);
  --primary-dark:  var(--sage-deep);
  --primary-light: var(--sage-soft);
  --secondary-color: var(--clay);
  --secondary-dark:  #9A5F46;
  --accent-color: var(--sage);
  --accent-dark:  var(--sage-deep);
  --text-dark:  var(--ink);
  --text-color: var(--ink);
  --text-light: var(--muted);
  --danger-color: #C4704F;
  --bg-light:    var(--bg);
  --bg-lighter:  var(--surface);
  --bg-surface:  var(--sage-tint);
  --border-color: var(--line);
  --error-color: #C4704F;
  --success-color: var(--sage);
  --warning-color: #C68A3A;
  --gray-100: var(--bg-alt);
  --gray-600: var(--muted);
  --gradient-primary: linear-gradient(135deg, var(--sage), var(--sage-deep));
  --gradient-secondary: linear-gradient(135deg, #C99178, var(--clay));
  --gradient-hero: radial-gradient(60% 70% at 30% 0%, rgba(94,114,87,.16), transparent 70%),
                   radial-gradient(50% 60% at 85% 10%, rgba(91,118,137,.12), transparent 70%);
  --shadow-xl: 0 35px 70px -15px rgba(32,37,31,.18);
}

/* ---- Container-Alias für Bestandsseiten ------------------ */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--pad); }

/* ---- Seiten-Grundabstand (klärt den Sticky-Header) ------- */
.page{ padding-block:clamp(48px,7vw,92px); }
.page-narrow{ max-width:800px; margin-inline:auto; }

/* ---- Fließtext / Rechtstexte ----------------------------- */
.prose{ color:var(--muted); }
.prose h1{ color:var(--ink); font-size:clamp(2rem,4vw,3rem); margin-bottom:1.2rem; }
.prose h2{ color:var(--ink); font-size:1.5rem; margin:2.2rem 0 .8rem; }
.prose h3{ color:var(--ink); font-size:1.2rem; margin:1.6rem 0 .6rem; }
.prose p{ margin-bottom:1rem; }
.prose ul,.prose ol{ list-style:revert; padding-left:1.3rem; margin-bottom:1rem; }
.prose li{ margin-bottom:.4rem; }
.prose a{ color:var(--sage-deep); text-decoration:underline; }
.prose strong{ color:var(--ink); }

/* Auch ohne .prose: Inhaltsseiten mit Standard-Headings lesbar machen */
.page h1{ font-family:var(--font-display); }
.page h2,.page h3{ font-family:var(--font-display); }

/* ---- Formulare ------------------------------------------- */
.form-container{
  max-width:460px; margin:clamp(48px,8vw,96px) auto; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:clamp(28px,4vw,46px); box-shadow:var(--shadow-md);
}
.form-container h1,.form-container h2{ font-family:var(--font-display); font-weight:500; }
.form-group{ margin-bottom:1.1rem; }
.form-group label{ display:block; font-weight:600; font-size:.92rem; margin-bottom:.45rem; color:var(--ink); }
.form-control,
input[type=text].form-control, input[type=email].form-control, input[type=password].form-control,
select.form-control, textarea.form-control{
  width:100%; padding:.9em 1.1em; border:1.5px solid var(--line); border-radius:12px;
  font-family:inherit; font-size:1rem; background:var(--bg); color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-control:focus{ outline:none; border-color:var(--sage); background:#fff; box-shadow:0 0 0 4px rgba(94,114,87,.14); }

/* ---- Button-Ergänzungen ---------------------------------- */
.btn-block{ width:100%; justify-content:center; }
.btn-secondary{ background:var(--clay); color:#fff; }
.btn-secondary:hover{ background:#9A5F46; }
.btn-outline{ background:transparent; color:var(--sage-deep); border:1.5px solid var(--sage); }
.btn-outline:hover{ background:var(--sage-tint); }
.btn-danger{ background:#C4704F; color:#fff; }
.btn-danger:hover{ background:#A85B3E; }

/* ---- Alerts / Statusmeldungen ---------------------------- */
.alert{ padding:1em 1.2em; border-radius:14px; font-weight:600; margin-bottom:1.2rem; font-size:.95rem; line-height:1.55; }
.alert-error{   background:#F7E7E0; border:1px solid #E8C9BC; color:#8A4A33; }
.alert-success{ background:var(--sage-tint); border:1px solid var(--sage-soft); color:var(--sage-deep); }
.alert-info{    background:#E8EFF2; border:1px solid #CFE0E7; color:#3C5462; }
.alert-warning{ background:#F6EEDD; border:1px solid #E6D5B0; color:#7A5A1E; }

/* ---- Tabellen (z. B. Rechnungen) ------------------------- */
table.table, .invoice-table{ width:100%; border-collapse:collapse; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
table.table th, table.table td, .invoice-table th, .invoice-table td{ padding:.85rem 1rem; text-align:left; border-bottom:1px solid var(--line-soft); }
table.table th, .invoice-table th{ background:var(--sage-tint); color:var(--sage-deep); font-weight:700; font-size:.88rem; }

/* ---- Karten ---------------------------------------------- */
.dashboard-card, .checkout-plan-select{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:clamp(20px,3vw,32px); box-shadow:var(--shadow-sm);
}

/* ---- Dashboard-Layout (dashboard.php, invoices.php) ------ */
.dashboard{ padding-block:clamp(32px,5vw,56px); }
.dashboard-header{ margin-bottom:clamp(24px,4vw,44px); }
.dashboard-header h1{ font-family:var(--font-display); font-weight:500; font-size:clamp(1.9rem,3.4vw,2.6rem); margin-bottom:.35rem; color:var(--ink); }
.dashboard-header p{ color:var(--muted); font-size:1.02rem; }
.dashboard-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:clamp(1rem,2.5vw,2rem); margin-bottom:clamp(1.5rem,3vw,3rem);
}
.dashboard-card h3{ font-family:var(--font-display); font-weight:500; font-size:1.3rem; margin-bottom:1rem; color:var(--ink); }

/* ---- Status-Badges --------------------------------------- */
.status-badge{ display:inline-block; padding:.28rem .8rem; border-radius:999px; font-size:.84rem; font-weight:700; }
.status-active{    background:var(--sage-tint); color:var(--sage-deep); border:1px solid var(--sage-soft); }
.status-canceled{  background:#F7E7E0; color:#8A4A33; border:1px solid #E8C9BC; }
.status-past_due{  background:#F6EEDD; color:#7A5A1E; border:1px solid #E6D5B0; }

/* ---- Utilities (aus style.css übernommen) ---------------- */
.text-center{ text-align:center; }
.hidden{ display:none; }
.mt-3{ margin-top:1rem; } .mb-3{ margin-bottom:1rem; } .mb-4{ margin-bottom:1.5rem; }
.badge-pill{
  display:inline-flex; align-items:center; gap:.5em; background:var(--sage-tint); color:var(--sage-deep);
  border:1px solid var(--sage-soft); padding:.45em 1em; border-radius:999px; font-size:.85rem; font-weight:600;
}
