/* Kindertischlerei — Werkbank-Editorial
   Papier + Tinte, Zollstock-Gelb als Signatur, Zimmermannsbleistift-Rot als Akzent.
   Fraunces (weich, leicht schief) für Überschriften, Hanken Grotesk für Text. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("../fonts/hanken.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper:  #f3ece1;
  --paper-2:#ebe1d1;
  --wood:   #e9d3ac;
  --ink:    #1f1914;
  --ink-2:  #6b5f53;
  --line:   #d6c9b5;
  --ruler:  #f2c230;
  --pencil: #c8401e;
  --dark:   #1c1713;
  --dark-ink:#efe6d8;
  --dark-2: #9c8f80;

  --gut: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --r: 6px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --f-display: "Fraunces", Georgia, serif;
  --f-text: "Hanken", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ruler); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pencil); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--f-display); font-weight: 600; line-height: 1.02; letter-spacing: -.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--pencil); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Leiste ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gut);
  background: rgba(243, 236, 225, .88);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.bar.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand__logo { height: 52px; width: auto; }
@media (max-width: 600px) { .brand__logo { height: 40px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  padding: 8px 11px; border-radius: 999px;
  transition: background-color .2s ease;
}
.nav a:hover { background: var(--paper-2); }
.nav .nav__cta { background: var(--ink); color: var(--paper); margin-left: 8px; padding: 9px 16px; }
.nav .nav__cta:hover { background: var(--pencil); }
.bar__toggle { display: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }

@media (max-width: 1100px) {
  .bar__toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .35s var(--ease), visibility 0s .35s;
  }
  .nav a { font-size: 19px; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 500; }
  .nav a:hover { background: none; color: var(--pencil); }
  .nav .nav__cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; font-family: var(--f-text); font-size: 16px; padding: 14px; }
  .bar.is-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .35s var(--ease); }
}

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pencil); color: #fff; text-decoration: none; font-weight: 600;
  padding: 15px 24px; border-radius: 999px;
  transition: transform .2s var(--ease), background-color .2s ease;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--pencil); }
.link:hover { color: var(--pencil); }
.muted { color: var(--ink-2); }

/* Zollstock-Segment als Abschnitts-Etikett */
.tag {
  display: inline-flex; align-items: stretch;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 6px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 30px) left bottom / 100% 11px no-repeat,
    var(--ruler);
  padding: 6px 16px 15px 0; border-radius: 2px;
  margin-bottom: 22px;
}
.tag span { color: var(--pencil); padding: 0 12px 0 10px; font-variant-numeric: tabular-nums; }
.tag--light { color: var(--ink); }

.ruler {
  height: 40px; border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.75) 0 1px, transparent 1px 8px) left top / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(0,0,0,.75) 0 1.5px, transparent 1.5px 40px) left top / 100% 17px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 199px, rgba(0,0,0,.25) 199px 200px),
    var(--ruler);
  box-shadow: 0 10px 24px -14px rgba(60, 40, 10, .5);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gut) 0;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 22px; max-width: 34ch; }
.hero h1 { font-size: clamp(44px, 6.6vw, 96px); }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 38ch; margin-top: 26px; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }

.hero__pics { position: relative; aspect-ratio: 1 / 1.02; }
.pic { position: absolute; overflow: hidden; border-radius: var(--r); background: var(--paper-2); box-shadow: 0 24px 48px -28px rgba(50, 30, 10, .55); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic--a { inset: 0 14% 22% 0; }
.pic--b { width: 50%; aspect-ratio: 4/3; right: 0; bottom: 4%; border: 6px solid var(--paper); }
.pic--c { width: 34%; aspect-ratio: 4/3; right: 4%; top: 6%; border: 6px solid var(--paper); transform: rotate(3deg); }
.ruler--hero { position: absolute; left: -6%; bottom: 25%; width: 62%; transform: rotate(-7deg); transform-origin: left center; }

.facts {
  grid-column: 1 / -1; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink); margin-top: clamp(28px, 4vw, 56px);
}
.facts li { padding: 18px 16px 22px 0; font-size: 15px; color: var(--ink-2); }
.facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); color: var(--ink); line-height: 1.1; font-variation-settings: "SOFT" 100; }

/* ---------- Abschnitte ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gut) 0; }
.sec--wood, .sec--dark { max-width: none; padding-bottom: clamp(80px, 11vw, 150px); margin-top: clamp(80px, 11vw, 150px); }
.sec--wood > *, .sec--dark > * { max-width: calc(var(--max) - 2 * var(--gut)); margin-left: auto; margin-right: auto; }
.sec--wood { background: var(--wood); }
.sec--wood + .sec { padding-top: clamp(80px, 11vw, 150px); }
.sec--dark { background: var(--dark); color: var(--dark-ink); }
.sec--dark .tag { color: var(--ink); }
.sec--dark h2 em { color: var(--ruler); }
.sec--dark + .sec, .sec--wood + .sec { margin-top: 0; }

.sec__head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head h2 { font-size: clamp(36px, 5.2vw, 72px); max-width: 16ch; }
.sec__sub { font-size: 19px; max-width: 58ch; margin-top: 22px; color: inherit; opacity: .8; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--rev { grid-template-columns: .9fr 1.1fr; }
.prose p + p { margin-top: 16px; }
.prose h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.prose a { text-decoration-color: var(--pencil); text-underline-offset: 3px; }
.big { font-family: var(--f-display); font-size: clamp(23px, 2.3vw, 31px); line-height: 1.25; font-weight: 400; letter-spacing: -.01em; font-variation-settings: "SOFT" 100; margin-bottom: 22px; }
.shout { font-family: var(--f-display); font-style: italic; font-size: 28px; color: var(--pencil); margin-top: 26px !important; }

.frame { border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; }
.frame figcaption { font-size: 14px; color: var(--ink-2); padding: 10px 2px 0; background: var(--paper); }
.frame--tilt { transform: rotate(-2deg); box-shadow: 0 30px 50px -30px rgba(60, 35, 5, .6); }

.address { margin-top: 36px; padding-top: 18px; border-top: 1.5px solid var(--ink); max-width: 340px; }
.address__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.address p:last-child { font-size: 19px; }

/* Ziele */
.goals { margin-top: clamp(64px, 9vw, 120px); }
.goals h3 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 26px; }
.goals ol { list-style: none; counter-reset: g; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.goals li {
  counter-increment: g; position: relative;
  padding: 22px 24px 26px 0; border-bottom: 1px solid var(--line);
  font-size: 17px; line-height: 1.45;
}
.goals li::before {
  content: counter(g, decimal-leading-zero); display: block;
  font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--pencil); margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

/* Preis */
.price { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.price__card { background: var(--paper); border-radius: var(--r); padding: clamp(28px, 3vw, 40px); box-shadow: 0 30px 60px -40px rgba(60, 35, 5, .55); }
.price__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.price__num { font-family: var(--f-display); font-weight: 600; font-size: clamp(88px, 10vw, 140px); line-height: 1; letter-spacing: -.04em; margin: 8px 0 24px; font-variation-settings: "SOFT" 100, "WONK" 1; }
.price__num span { font-size: .28em; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.price__list { list-style: none; border-top: 1.5px solid var(--ink); }
.price__list li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; }
.price__list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 3px; background: var(--pencil); border-radius: 2px; }
.price__list li:last-child { color: var(--ink-2); }

/* Zeiten */
.where { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.where h3 { font-size: clamp(28px, 3vw, 40px); }
.where p { margin: 6px 0 12px; }
.where__pic img { aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 900px) { .where { grid-template-columns: 1fr; } }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 28px; }
.week__day { background: var(--paper-2); border-radius: var(--r); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.week__day p { font-family: var(--f-display); font-weight: 600; font-size: 22px; margin-bottom: 6px; font-variation-settings: "SOFT" 100; }
.week__day span { font-variant-numeric: tabular-nums; font-weight: 500; background: var(--paper); border-radius: 4px; padding: 7px 10px; font-size: 15.5px; }
.note { font-size: 15px; color: var(--ink-2); margin-top: 16px; margin-bottom: clamp(56px, 8vw, 100px); }
.note a { color: var(--ink); text-decoration-color: var(--pencil); text-underline-offset: 3px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 210px); grid-auto-flow: dense; gap: 12px; }
.gallery a { display: block; position: relative; border-radius: var(--r); overflow: hidden; background: #2a231d; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s ease; }
.gallery span {
  position: absolute; left: 10px; bottom: 10px; right: 10px; width: fit-content;
  font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--ruler);
  padding: 4px 9px; border-radius: 3px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .3s var(--ease);
}
@media (hover: hover) {
  .gallery a:hover img { transform: scale(1.035); }
  .gallery a:hover span, .gallery a:focus-visible span { opacity: 1; transform: none; }
}
@media (hover: none) { .gallery span { opacity: 1; transform: none; } }

/* Erwachsene */
.qa p { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; font-weight: 400; padding: 20px 0; border-bottom: 1px solid var(--line); font-variation-settings: "SOFT" 100; }
.qa p:first-child { border-top: 1.5px solid var(--ink); }
.qa .qa__answer { font-style: italic; color: var(--pencil); border-bottom: 0; }
.qa .btn { margin-top: 18px; }

/* Karten */
.cards { display: grid; gap: 14px; }
.cards--2 { grid-template-columns: 1fr; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper-2); border-radius: var(--r); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.sec--wood .card { background: var(--paper); }
.card h3 { font-size: 26px; }
.card p { font-size: 16px; }
.card__kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pencil); }
.card__num { font-family: var(--f-display); font-size: 44px !important; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.card__num span { font-size: 17px; font-weight: 500; letter-spacing: 0; font-family: var(--f-text); color: var(--ink-2); }
.card .link { margin-top: auto; }
.card a:not(.link) { text-decoration-color: var(--pencil); text-underline-offset: 3px; font-weight: 600; }

.signoff { margin-top: 40px; font-size: 18px; max-width: 62ch; }
.signoff span { display: block; margin-top: 14px; font-family: var(--f-display); font-style: italic; font-size: 28px; color: var(--pencil); }

/* Kontakt */
.contact {
  position: relative; overflow: hidden;
  margin-top: clamp(80px, 11vw, 150px);
  background: var(--pencil); color: #fff;
  padding: clamp(90px, 11vw, 150px) var(--gut) clamp(70px, 9vw, 120px);
}
.contact__in { max-width: calc(var(--max) - 2 * var(--gut)); margin: 0 auto; position: relative; }
.ruler--wide { position: absolute; top: 34px; left: -40px; right: -40px; transform: rotate(-1.5deg); }
.contact h2 { font-size: clamp(42px, 6.4vw, 92px); max-width: 15ch; }
.contact__lead { font-size: 21px; margin-top: 18px; opacity: .9; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1.3fr .9fr; gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.contact__item {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  border-top: 1.5px solid rgba(255,255,255,.6); padding-top: 16px;
}
a.contact__item:hover .contact__value { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.contact__value { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; overflow-wrap: anywhere; font-variation-settings: "SOFT" 100; }
.contact__value--s { font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 34px var(--gut); font-size: 15px; background: var(--paper); color: var(--ink-2); }
.foot__logo img { height: 64px; width: auto; }
.foot__addr { margin-right: auto; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; color: var(--ink); font-weight: 500; }
.foot nav a:hover { color: var(--pencil); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 12, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 8px; }
.lb[hidden] { display: none; }
.lb figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; }
.lb img { max-height: calc(100svh - 110px); width: auto; border-radius: 4px; }
.lb figcaption { color: var(--dark-ink); font-size: 15px; }
.lb button { color: var(--dark-ink); font-size: 28px; width: 52px; height: 52px; border-radius: 50%; }
.lb button:hover { background: rgba(255,255,255,.1); }
.lb__close { position: absolute; top: 14px; right: 14px; }
.lb__prev { grid-column: 1; } .lb__next { grid-column: 3; }

/* Unterseiten (Impressum / Datenschutz) */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gut) clamp(80px, 10vw, 140px); }
.legal h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 36px; }
.legal h2 { font-size: 28px; margin: 48px 0 14px; }
.legal h3 { font-size: 20px; margin: 28px 0 8px; font-family: var(--f-text); font-weight: 700; letter-spacing: 0; }
.legal p, .legal li { font-size: 16.5px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal a { text-decoration-color: var(--pencil); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; }

/* Einblenden beim Scrollen */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ease); }
  .js .rv.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .goals ol { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .week { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero, .split, .split--rev, .price { grid-template-columns: 1fr; }
  .hero__pics { max-width: 560px; width: 100%; }
  .split--rev > .frame { order: 2; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .goals ol, .cards--4, .contact__grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr 1fr; }
  .week__day:last-child { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 8px; }
  .gallery span { font-size: 12px; left: 6px; bottom: 6px; }
  .lb { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lb figure { grid-column: 1 / -1; }
  .lb__prev { grid-column: 1; justify-self: start; } .lb__next { grid-column: 2; justify-self: end; }
}

/* Häufige Fragen */
.faq__list { border-top: 1.5px solid var(--ink); max-width: 900px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2vw, 24px); line-height: 1.3;
  font-variation-settings: "SOFT" 100;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--f-text); font-weight: 400; font-size: 28px; line-height: 1; color: var(--pencil); transition: transform .3s var(--ease); flex: none; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--pencil); outline-offset: 4px; }
.faq__item p { padding: 0 0 24px; max-width: 68ch; color: var(--ink-2); }
.faq { padding-bottom: clamp(80px, 11vw, 150px); }
