/* Schriften lokal eingebunden — keine Verbindung zu Google.
   Newsreader und Karla stehen unter der SIL Open Font License,
   Lizenztext siehe fonts/LIZENZ-OFL.txt */
@font-face{
  font-family:'Newsreader';
  src:url('../fonts/Newsreader-normal.woff2') format('woff2-variations');
  font-weight:300 500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Newsreader';
  src:url('../fonts/Newsreader-italic.woff2') format('woff2-variations');
  font-weight:300 500; font-style:italic; font-display:swap;
}
@font-face{
  font-family:'Karla';
  src:url('../fonts/Karla.woff2') format('woff2-variations');
  font-weight:300 600; font-style:normal; font-display:swap;
}

/* ============================================================
   Schrankatelier — eigenständige Seite
   Farben, Typografie und Bewegung an einer Stelle.
   ============================================================ */

:root{
  --ink:#2A2A22;          /* Überschriften */
  --body:#5C5449;         /* Fließtext */
  --muted:#736A5E;        /* Kleingedrucktes */
  --accent:#9C6B1C;       /* Ocker, Akzent */
  --accent-soft:#8A6520;  /* Ocker für Kleintext */
  --dark:#2E2820;         /* Buttons, Logo */
  --line:rgba(120,104,84,0.16);
  --line-strong:rgba(120,104,84,0.24);
  --card:linear-gradient(155deg, rgba(255,253,248,0.82), rgba(245,243,222,0.42));
  --green-block:linear-gradient(120deg, #EDEDE0 0%, #E7EEDD 52%, #E1EAD6 100%);
  --green-line:rgba(120,134,100,0.22);
  --green-ink:#3F4A32;
  --green-body:#5A5B4A;
  --ease:cubic-bezier(.2,.7,.2,1);
  --pad:48px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Karla',sans-serif;
  color:var(--ink);
  /* Der durchgehende Hintergrundverlauf: Salbei oben links → Ocker rechts */
  background:
    radial-gradient(1150px 660px at 6% 0%, rgba(190,214,174,0.72), rgba(190,214,174,0) 62%),
    radial-gradient(950px 600px at 34% 26%, rgba(222,224,166,0.5), rgba(222,224,166,0) 62%),
    radial-gradient(900px 540px at 98% 20%, rgba(240,212,116,0.5), rgba(240,212,116,0) 60%),
    radial-gradient(1000px 680px at 90% 76%, rgba(246,226,148,0.5), rgba(246,226,148,0) 62%),
    linear-gradient(180deg, #FAFAF1 0%, #FBF8E6 40%, #FAF6E0 70%, #FDFBEF 100%);
  background-attachment:fixed;
  min-height:100vh;
}
a{ color:inherit; text-decoration:none; }

/* ---------- Fokus — einheitlich für die ganze Seite ---------- */
/* Ein Fokus-Stil für alle interaktiven Elemente, sichtbar nur bei
   Tastaturbedienung (:focus-visible), damit Maus-Klicks keinen Ring zeigen. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .pill:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}
img,svg{ display:block; max-width:100%; }

/* ---------- Typografie ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12.5px; font-weight:500; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--accent-soft); margin-bottom:22px;
}
.eyebrow .rule{ width:0; height:1px; background:#B08D57; transition:width .9s var(--ease) .3s; }
.eyebrow.is-in .rule{ width:22px; }
h1,h2,h3,h4{ font-family:'Newsreader',serif; font-weight:400; letter-spacing:-0.02em; margin:0; color:var(--ink); }
h1{ font-size:70px; line-height:1.02; letter-spacing:-0.022em; }
.page h1{ font-size:58px; line-height:1.05; }
h2.section{ font-size:50px; line-height:1.05; }
p{ margin:0; }
.lead{ font-size:18px; font-weight:300; line-height:1.72; color:var(--body); text-wrap:pretty; }
.sub{ font-size:16.5px; font-weight:300; line-height:1.7; color:var(--body); }
.label{
  font-size:12.5px; font-weight:500; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--accent-soft); margin-bottom:14px;
}

/* ---------- Navigation ---------- */
.nav{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:22px var(--pad);
  background:rgba(250,250,241,0);
  transition:background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.is-stuck{
  background:rgba(250,250,241,0.88);
  box-shadow:0 1px 0 rgba(120,104,84,0.18);
  backdrop-filter:blur(10px);
  padding-top:14px; padding-bottom:14px;
}
.brand{ font-family:'Newsreader',serif; font-size:50px; line-height:1; color:var(--dark); flex:none; }
.brand em{ color:var(--accent); }
.nav-links{ display:flex; gap:30px; font-weight:500; font-size:14px; color:#6B6055; }
.nav-links a{ position:relative; padding-bottom:3px; }
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:1px;
  background:var(--accent); transform:scaleX(0); transform-origin:left;
  transition:transform .4s var(--ease);
}
.nav-links a:hover::after{ transform:scaleX(1); }
.nav-links a.active{ color:var(--ink); }
.nav-links a.active::after{ transform:scaleX(1); }
.nav-toggle{ display:none; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:500; font-size:14.5px; padding:17px 32px; border-radius:100px;
  border:1px solid transparent; cursor:pointer;
  transition:background .3s ease, color .3s ease, transform .35s var(--ease);
}
.btn-primary{ background:var(--dark); color:#FBF8F1; }
.btn-primary:hover{ background:var(--accent); color:#FBF8F1; }
.btn-primary.is-sent, .btn-primary.is-sent:hover{ background:#3F4A32; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.btn-ghost{ color:var(--dark); border-color:rgba(120,104,84,0.3); }
.btn-ghost:hover{ background:rgba(255,253,248,0.7); }
.btn-quiet{
  font-size:13.5px; padding:12px 24px;
  background:rgba(255,253,248,0.72); border-color:var(--line-strong); color:var(--dark);
}
.btn-quiet:hover{ background:var(--dark); color:#FBF8F1; }
.btn .arrow{ display:inline-block; transition:transform .35s var(--ease); }
.btn:hover .arrow{ transform:translateX(4px); }

/* ---------- Bausteine ---------- */
.card{
  background:var(--card);
  border:1px solid rgba(120,104,84,0.14);
  border-radius:22px;
  padding:34px 32px;
}
.card-link{
  position:relative; display:flex; flex-direction:column; gap:11px; min-height:200px;
  transition:transform .4s var(--ease), border-color .35s ease, box-shadow .4s ease;
}
.card-link:hover{
  transform:translateY(-6px);
  border-color:rgba(156,107,28,0.4);
  box-shadow:0 18px 40px -28px rgba(90,76,50,0.55);
}
.card-link .corner{
  position:absolute; right:30px; bottom:30px; font-size:19px; color:var(--accent);
  opacity:0; transform:translate(-8px,8px);
  transition:opacity .35s ease, transform .45s var(--ease);
}
.card-link:hover .corner{ opacity:1; transform:none; }
.card-num{ font-size:12.5px; font-weight:500; letter-spacing:0.06em; color:var(--accent-soft); }
.card-title{ font-family:'Newsreader',serif; font-size:29px; line-height:1.1; }
.card-text{ font-size:15.5px; font-weight:300; line-height:1.68; color:var(--body); margin-top:auto; max-width:420px; }

.frame{
  border-radius:24px; padding:36px; position:relative;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, rgba(255,253,248,0.88), rgba(240,238,217,0.5));
  border:1px solid rgba(120,104,84,0.14);
}
.frame .caption{ position:absolute; bottom:18px; right:20px; font-size:11.5px; font-weight:500; color:var(--muted); }

.photo{
  display:flex; align-items:center; justify-content:center; border-radius:16px;
  background:
    repeating-linear-gradient(135deg, rgba(120,104,84,0.14) 0 1px, transparent 1px 13px),
    rgba(255,253,248,0.7);
  border:1px solid var(--line);
  overflow:hidden; position:relative;
}
/* ---------- Fotos vergrößern (Lightbox) ---------- */
.ref-foto{ padding:0 !important; overflow:hidden; aspect-ratio:4/5; border:0; cursor:zoom-in;
  display:block; width:100%; background:none; position:relative; }
.ref-foto img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s var(--ease); }
.ref-foto:hover img{ transform:scale(1.03); }
.ref-foto .lupe{
  position:absolute; right:10px; bottom:10px; width:30px; height:30px; line-height:28px;
  text-align:center; font-size:15px; color:var(--dark);
  background:rgba(255,253,248,0.9); border:1px solid var(--line); border-radius:8px;
  transition:opacity .3s ease;
}
.ref-foto:hover .lupe{ opacity:0; }

.lightbox{
  position:fixed; inset:0; z-index:200; display:none;
  align-items:center; justify-content:center; padding:28px;
  background:rgba(28,24,19,0.88);
}
.lightbox.offen{ display:flex; }
.lightbox img{ max-width:100%; max-height:100%; border-radius:10px; display:block;
  box-shadow:0 20px 60px rgba(0,0,0,0.45); }
.lightbox-schliessen, .lightbox-pfeil{
  position:absolute; border:1px solid rgba(255,253,248,0.35); background:rgba(255,253,248,0.12);
  color:#FFFDF8; border-radius:50%; width:46px; height:46px; font-size:20px; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.lightbox-schliessen:hover, .lightbox-pfeil:hover{ background:rgba(255,253,248,0.26); }
.lightbox-schliessen{ top:20px; right:20px; }
.lightbox-pfeil.vor{ right:20px; top:50%; transform:translateY(-50%); }
.lightbox-pfeil.zurueck{ left:20px; top:50%; transform:translateY(-50%); }
.lightbox-zaehler{ position:absolute; bottom:22px; left:50%; transform:translateX(-50%);
  color:rgba(255,253,248,0.75); font-size:12.5px; letter-spacing:0.06em; }
@media (max-width:700px){
  .lightbox{ padding:14px; }
  .lightbox-pfeil{ width:40px; height:40px; }
  .lightbox-pfeil.vor{ right:10px; } .lightbox-pfeil.zurueck{ left:10px; }
}
.photo img, .frame img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo span{
  font-size:11.5px; font-weight:500; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--muted); background:#FBF8ED; padding:6px 10px;
  border:1px solid rgba(120,104,84,0.18); border-radius:6px;
}

.green-block{
  background:var(--green-block);
  border:1px solid var(--green-line);
  border-radius:24px;
}

.stats{
  display:grid; grid-template-columns:repeat(3,1fr);
  padding:0 var(--pad);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.stats div{ padding:30px 30px 30px 0; }
.stats .val{ font-family:'Newsreader',serif; font-size:36px; line-height:1; color:var(--accent); }
.stats .cap{ font-size:14.5px; font-weight:300; color:var(--body); margin-top:8px; }

/* ---------- Raster ---------- */
.wrap{ padding:0 var(--pad); }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.hero{ padding:74px var(--pad) 88px; display:grid; grid-template-columns:1.12fr 0.88fr; gap:60px; align-items:center; }
.page-head{ padding:70px var(--pad) 60px; max-width:880px; }

/* ---------- Leistungen ---------- */
.row{
  display:grid; grid-template-columns:0.85fr 1.15fr; gap:44px; align-items:center;
  border-radius:24px; padding:30px;
  background:var(--card); border:1px solid rgba(120,104,84,0.14);
}
.row .photo{ aspect-ratio:4/3; }
.row h2{ font-size:34px; line-height:1.1; margin-bottom:14px; }

/* ---------- Preise ---------- */
.ref{
  border-radius:22px; overflow:hidden; display:flex; flex-direction:column;
  background:linear-gradient(155deg, rgba(255,253,248,0.85), rgba(245,243,222,0.45));
  border:1px solid rgba(120,104,84,0.14);
  transition:transform .4s var(--ease), border-color .35s ease, box-shadow .4s ease;
}
.ref:hover{ transform:translateY(-6px); border-color:rgba(156,107,28,0.4); box-shadow:0 18px 40px -28px rgba(90,76,50,0.55); }
.ref-draw{
  aspect-ratio:4/3; position:relative; display:flex; align-items:center; justify-content:center;
  background:
    repeating-linear-gradient(135deg, rgba(120,104,84,0.13) 0 1px, transparent 1px 13px),
    rgba(255,253,248,0.6);
  border-bottom:1px solid rgba(120,104,84,0.14);
}
.ref-draw .tag{
  position:absolute; bottom:10px; right:12px; font-size:10.5px; font-weight:500;
  letter-spacing:0.05em; text-transform:uppercase; color:#8A8073;
}
.ref-body{ padding:26px 26px 28px; display:flex; flex-direction:column; flex:1; }
.ref-body .kicker{ font-size:12px; font-weight:500; letter-spacing:0.1em; text-transform:uppercase; color:var(--accent-soft); margin-bottom:8px; }
.ref-body h3{ font-size:24px; line-height:1.15; margin-bottom:14px; }
.ref-specs{ display:flex; flex-direction:column; gap:5px; padding-bottom:16px; margin-bottom:16px; border-bottom:1px solid var(--line); }
.ref-specs span{ font-size:13.5px; font-weight:300; color:var(--body); }
.ref-price{ font-family:'Newsreader',serif; font-size:23px; color:var(--accent); margin-top:auto; }
.ref-note{ font-size:12.5px; font-weight:300; color:var(--muted); margin-top:4px; }

/* ---------- Formular ---------- */
.form-card{ border-radius:24px; padding:38px; background:rgba(255,253,248,0.78); border:1px solid var(--line); }
.form-progress{ position:sticky; top:78px; z-index:10; background:rgba(255,253,248,0.94); padding:12px 0 14px; margin-bottom:22px; }
.form-progress .track{ height:5px; background:rgba(120,104,84,0.18); border-radius:3px; overflow:hidden; }
.form-progress .bar{ height:100%; width:0; background:var(--accent); border-radius:3px; transition:width .35s ease; }
.form-progress .cap{ display:block; margin-top:7px; font-size:11.5px; font-weight:500; letter-spacing:0.06em; text-transform:uppercase; color:var(--accent-soft); }
.form-section{
  font-size:11.5px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--accent-soft); margin:0 0 14px; padding-top:22px; border-top:1px solid var(--line);
}
.form-section.first{ padding-top:0; border-top:none; }
.field{ display:block; margin-bottom:18px; }
.field > span{
  display:block; font-size:11.5px; font-weight:500; letter-spacing:0.06em;
  text-transform:uppercase; color:var(--muted); margin-bottom:8px;
}
.field input, .field select, .field textarea{
  width:100%; padding:13px 15px; border:1px solid var(--line-strong); border-radius:10px;
  font-family:'Karla',sans-serif; font-size:14.5px; background:rgba(253,251,244,0.9); color:var(--dark);
}
.field textarea{ min-height:120px; resize:vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible{ border-color:var(--accent); }
.field input[type=file]{ border-style:dashed; background:rgba(253,251,244,0.7); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.hint{ font-size:13.5px; font-weight:300; color:var(--muted); margin:0 0 16px; }
.pills{ display:flex; flex-wrap:wrap; gap:9px; margin-bottom:28px; }
.pill{
  -webkit-appearance:none; appearance:none; font-family:inherit;
  font-size:13px; font-weight:500; padding:10px 16px; border:1px solid var(--line-strong);
  border-radius:100px; background:rgba(253,251,244,0.8); color:var(--body);
  cursor:pointer; user-select:none;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.pill.on{ background:var(--dark); color:#FBF8F1; border-color:var(--dark); }
.note-box{
  border-radius:16px; padding:20px 24px; margin-bottom:30px;
  background:var(--green-block); border:1px solid var(--green-line);
  font-size:14.5px; font-weight:300; line-height:1.65; color:#4C5442;
}
.note-box strong{ font-weight:600; color:var(--ink); }
.aside{ position:sticky; top:110px; display:flex; flex-direction:column; gap:16px; }

/* ---------- CTA & Fuß ---------- */
.cta{ padding:0 var(--pad) 90px; text-align:center; }
.cta h2{ font-size:54px; line-height:1.05; margin-bottom:14px; }
.cta p{ font-size:17px; font-weight:300; color:var(--body); margin-bottom:34px; }
.foot{
  padding:30px var(--pad) 40px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;
  font-size:13px; font-weight:300; color:var(--muted);
}
.foot .brand{ font-size:26px; }
.foot nav{ display:flex; gap:24px; font-size:13px; font-weight:400; }
.foot nav a:hover{ color:var(--accent); }

/* ---------- Bewegung ---------- */
/* Ohne JavaScript ist alles sofort sichtbar. Die Animation greift nur,
   wenn das Skript läuft — sonst bliebe die Seite leer. */
.js [data-rise]{ opacity:0; transform:translateY(24px); transition:opacity .85s var(--ease), transform .85s var(--ease); }
.js [data-rise].is-in{ opacity:1; transform:none; }
[data-words] .w{ display:inline-block; opacity:0; transform:translateY(0.5em); }
[data-words].is-in .w{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
  [data-rise], [data-words] .w{ opacity:1; transform:none; }
}


/* ---------- Rückfallebene ohne JavaScript ---------- */
html:not(.js) .page[hidden]{ display:block !important; }
html:not(.js) .nav-toggle{ display:none !important; }
html:not(.js) .nav-links{ display:flex !important; }
html:not(.js) .page + .page{ border-top:1px solid var(--line); }
html:not(.js) [data-words] .w{ opacity:1 !important; transform:none !important; }

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */
.legal{ padding:0 var(--pad) 90px; max-width:760px; margin:0 auto; }
.legal h1{ font-size:44px; margin-bottom:8px; }
.legal .stand{ font-size:13.5px; color:var(--muted); margin-bottom:44px; }
.legal h2{ font-size:24px; margin:44px 0 14px; }
.legal h2:first-of-type{ margin-top:0; }
.legal h3{ font-size:18px; margin:26px 0 10px; }
.legal p{ font-size:15.5px; font-weight:300; line-height:1.75; color:var(--body); margin-bottom:14px; }
.legal ul{ margin:0 0 14px; padding-left:22px; }
.legal li{ font-size:15.5px; font-weight:300; line-height:1.75; color:var(--body); margin-bottom:6px; }
.legal a{ color:var(--accent-soft); text-decoration:underline; text-underline-offset:2px; }
.legal strong{ font-weight:600; color:var(--ink); }

/* ---------- Mobil ---------- */
@media (max-width: 860px){ .brand{ font-size:38px; } }
@media (max-width: 520px){ .brand{ font-size:32px; } }
@media (max-width:900px){
  :root{ --pad:22px; }
  h1{ font-size:42px; }
  .page h1{ font-size:36px; }
  h2.section{ font-size:32px; }
  .cta h2{ font-size:34px; }
  .row h2{ font-size:26px; }
  .hero{ grid-template-columns:1fr; gap:36px; padding-top:44px; padding-bottom:56px; }
  .grid-2, .grid-3, .field-row, .row{ grid-template-columns:1fr; }
  .row{ gap:24px; }
  .stats{ grid-template-columns:1fr; }
  .stats div{ padding:20px 0; border-bottom:1px solid var(--line); }
  .stats div:last-child{ border-bottom:none; }
  .nav{ flex-wrap:wrap; }
  .nav-toggle{
    display:block; background:none; border:1px solid var(--line-strong);
    border-radius:100px; padding:9px 16px; font-size:13px; font-weight:500; cursor:pointer;
  }
  .nav-links{
    order:3; width:100%; display:none; flex-direction:column; gap:0;
    border-top:1px solid var(--line); margin-top:14px;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:14px 0; border-bottom:1px solid var(--line); }
  .nav .btn-quiet{ display:none; }
  .aside{ position:static; }
  .form-card{ padding:24px; }
  .green-block, .form-card{ border-radius:18px; }
  .cta{ padding-bottom:56px; }
}

/* Kleinteile, die nur an je einer Stelle vorkommen */
.step-num{
  width:36px; height:36px; border-radius:100px; margin-bottom:18px;
  border:1px solid rgba(90,104,72,0.45);
  display:flex; align-items:center; justify-content:center;
  font-weight:500; font-size:13.5px; color:var(--green-ink);
}
.teaser{
  padding:40px 44px; display:flex; align-items:center; justify-content:space-between;
  gap:28px; flex-wrap:wrap;
}
.mini-step{ display:flex; gap:14px; padding:11px 0; border-bottom:1px solid rgba(120,104,84,0.12); }
.mini-step span{ font-size:12.5px; font-weight:500; color:var(--accent); padding-top:2px; }
.mini-step em{ font-family:'Newsreader',serif; font-style:normal; font-size:19px; color:var(--ink); }
@media (max-width:900px){
  .ablauf-grid{ grid-template-columns:1fr !important; gap:26px !important; }
  #warum, #warumMass, #person, #kontaktGrid{ grid-template-columns:1fr !important; gap:32px !important; }
  .green-block[style]{ padding:32px 24px !important; }
  .teaser{ padding:28px 24px; }
}
