/* 108 – Fibel · Lesefibel der 60er: Bildkarten, Silbenbögen, Schreibschrift auf Lineatur */
:root {
  --paper: #f6ecc6;
  --paper-2: #fbf4da;
  --card: #fffaea;
  --ink: #26221e;
  --ink-2: #4a433b;
  --red: #d23a26;
  --red-t: #b2301e;
  --blue: #3f8fcc;
  --blue-t: #24639c;
  --yel: #f2c230;
  --ln: #93bcd9;
  --ln-2: #e0736a;
  --band: rgba(160, 205, 232, .22);
  --sans: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --script: 'Playwrite DE Grund', 'Segoe Script', 'Bradley Hand', cursive;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 56px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .2 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper) var(--grain); color: var(--ink); font: 300 18px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 600; text-decoration: none; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Silbenbögen (per script.js) ---------- */
.syl { line-height: 1.32; text-wrap: balance; }
.w { white-space: nowrap; }
.w--soft { white-space: normal; }
.s { position: relative; }
.s::after { content: ''; position: absolute; left: .07em; right: .07em; bottom: -.16em; height: .2em; border: .055em solid var(--red); border-top: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.w .s:nth-child(even)::after { border-color: var(--blue); }

/* ---------- Lineatur (Schreibschrift) ---------- */
.lined { --fs: 22px; --lh: 2.4em; font: 400 var(--fs)/var(--lh) var(--script); color: var(--blue-t);
  background-image: linear-gradient(to bottom,
    transparent 0 calc(.42em - 1px), var(--ln) calc(.42em - 1px) .42em,
    transparent .42em calc(1.02em - 1px), var(--ln) calc(1.02em - 1px) 1.02em,
    var(--band) 1.02em calc(1.6em - 1.5px), var(--ln-2) calc(1.6em - 1.5px) 1.6em,
    transparent 1.6em calc(2.18em - 1px), var(--ln) calc(2.18em - 1px) 2.18em, transparent 2.18em);
  background-size: 100% var(--lh); background-position: 0 var(--lo, 0px); }
.lined span { padding-left: .3em; }
.lined--s { --fs: 17px; }
.lined--kicker { --fs: 21px; color: var(--red-t); }

/* ---------- Bausteine ---------- */
.plate { position: relative; margin: 0; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 2px var(--ink); background: #fff; }
.art { display: block; width: 100%; height: auto; }
.label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-t); }
.label__no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.label--small { margin: 0; }
.page__head h2, .about h2, .bookplate h2 { font-size: clamp(32px, 4vw, 54px); }
.intro { margin-top: 22px; max-width: 60ch; font-size: 19px; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: 12px; font-weight: 500; font-size: 17px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 0 0 2px var(--ink), 4px 4px 0 2px var(--ink); }
.btn--line { background: var(--card); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 4px 4px 0 2px var(--blue); }
.btn:hover { transform: translate(-2px, -2px); }
.btn--red:hover { box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 2px var(--ink); }
.btn--line:hover { box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 2px var(--blue); }
.btn:active { transform: translate(2px, 2px); }
.folio { margin-top: clamp(70px, 8vw, 110px); text-align: center; font-size: 15px; color: var(--ink-2); letter-spacing: .2em; }

/* ---------- Kopf ---------- */
.top { position: relative; z-index: 30; border-bottom: 2px solid var(--ink); box-shadow: 0 4px 0 -1px var(--paper), 0 5px 0 0 var(--ink); }
.top__in { display: flex; align-items: center; gap: 30px; min-height: 92px; }
.logo { display: block; flex: none; }
.logo img { width: 84px; height: auto; aspect-ratio: 1510 / 1300; }
.top__book { display: flex; flex-direction: column; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.35; color: var(--ink-2); padding-left: 22px; border-left: 2px solid var(--ink); }
.top__book span { color: var(--red-t); }
.menu { display: none; }
.nav { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: flex-end; }
.nav__list { display: flex; gap: 4px; }
.nav__list a { display: inline-block; padding: 8px 12px; font-weight: 400; font-size: 18px; text-decoration: none; border-radius: 8px; }
.nav__list a::first-letter { color: var(--red); font-weight: 700; }
.nav__list a:hover { background: rgba(63,143,204,.12); }
.nav__end { display: flex; align-items: center; gap: 16px; }
.tel { font-weight: 500; text-decoration: none; white-space: nowrap; }
.tel:hover { color: var(--red-t); }
.lang { display: grid; place-items: center; width: 46px; height: 42px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px var(--yel); font-weight: 600; font-size: 15px; text-decoration: none; }
.lang:hover { background: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 30px 0 clamp(90px, 9vw, 130px); }
.plate--hero { border-radius: 14px; }
.plate--hero .art { aspect-ratio: 1200 / 372; height: auto; }
.hero__txt { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 5vw, 72px); align-items: end; margin-top: 28px; }
.hero h1 { margin-top: 4px; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.3; }
.lead { font-size: 17.5px; line-height: 1.62; color: var(--ink-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 16px 18px; margin-top: 24px; }
.avail { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; font-weight: 400; color: var(--ink-2); }
.avail__dot { width: 12px; height: 12px; border-radius: 50%; background: #4ba24a; box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Seiten ---------- */
.page { position: relative; padding-block: clamp(90px, 10vw, 140px) clamp(40px, 5vw, 60px); border-top: 2px solid var(--ink); }
.page:nth-of-type(odd) { background-color: var(--paper-2); }
.page__head--center { text-align: center; }
.page__head--center .label { justify-content: center; }
.page__head--center .intro { margin-inline: auto; }

/* Schwerpunkt */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(28px, 4vw, 56px); margin-top: clamp(52px, 6vw, 80px); }
.cases li { position: relative; padding-top: 4px; }
.cases__no { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 50%; background: var(--yel); box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px var(--ink); font-size: 26px; font-weight: 600; }
.cases li:nth-child(3n+2) .cases__no { background: #9fcbe9; }
.cases li:nth-child(3n) .cases__no { background: #f2a08e; }
.cases h3 { font-size: 23px; line-height: 1.25; }
.cases p { margin-top: 8px; font-size: 17px; color: var(--ink-2); hyphens: auto; }

.numcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); margin-top: clamp(64px, 8vw, 100px); }
.numcard { position: relative; display: grid; align-content: start; gap: 10px; padding: 26px 28px 24px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 2px var(--ink), 5px 5px 0 2px rgba(38,34,30,.18); }
.numcard b { font-size: clamp(46px, 5vw, 70px); line-height: 1; font-weight: 600; color: var(--blue-t); white-space: nowrap; }
.numcard > span:not([class]) { min-height: 2.7em; font-size: 17px; line-height: 1.35; font-weight: 400; }
.dots { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 26px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.dots em { font-style: normal; font-weight: 600; color: var(--red); line-height: 9px; font-size: 16px; }
.dots--1 i { width: 18px; height: 18px; }
.week { margin-top: 6px; display: flex; gap: 5px; }
.week i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px rgba(38,34,30,.35); }
.week i.on { background: var(--blue); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }

.story { margin: clamp(70px, 8vw, 110px) 0 0; }
.story__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.story__codes { font-weight: 600; font-size: 20px; letter-spacing: .06em; }
.story__panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: 26px; counter-reset: p; }
.story__panels li { position: relative; counter-increment: p; }
.story__panels li::before { content: counter(p); position: absolute; z-index: 2; left: 10px; top: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--ink); font-weight: 600; font-size: 16px; }
.story__leg { margin-top: 14px; font-weight: 600; font-size: 20px; letter-spacing: .04em; }
.story__leg span { color: var(--red); }
.story__panels .lined { margin-top: 2px; }
.story__text { margin-top: 30px; font-weight: 400; font-size: 18px; }
.story__note { margin-top: 4px; color: var(--ink-2); font-size: 16px; }

/* Leistungen – Bildkarten */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); margin-top: clamp(52px, 6vw, 76px); }
.card { padding: 14px 14px 28px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 2px rgba(38,34,30,.16); transition: transform .2s; }
.card:nth-child(2n) { transform: rotate(.6deg); }
.card:nth-child(3n) { transform: rotate(-.5deg); }
.card .lined { margin: 14px 8px 0; }
.card h3 { margin: 18px 12px 0; font-size: 25px; line-height: 1.2; }
.card h3::first-letter { color: var(--red); }
.card p:last-child { margin: 10px 12px 0; font-size: 17px; color: var(--ink-2); hyphens: auto; }

/* Ablauf – ABC */
.abc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); margin-top: clamp(48px, 6vw, 70px); }
.abc__pic { display: grid; place-items: center; height: 150px; border-radius: 50%/42%; background: #e6f0f4; box-shadow: inset 0 0 0 2px rgba(38,34,30,.12); }
.abc__pic .art { width: 72%; }
.abc h3 { display: block; margin-top: 22px; font-size: 27px; line-height: 1.2; }
.abc h3::first-letter { float: left; margin: -.08em .08em 0 -.02em; font-size: 2.6em; line-height: .95; font-weight: 600; color: var(--red); }
.abc p { clear: both; margin-top: 12px; font-size: 17px; color: var(--ink-2); hyphens: auto; }

/* Über uns */
.about__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.photo { position: relative; margin: 0; padding: 14px 14px 10px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 2px rgba(38,34,30,.16); transform: rotate(-1.2deg); }
.photo img { border-radius: 8px; filter: sepia(.18) saturate(.92) contrast(1.04); }
.photo::after { content: ''; position: absolute; inset: 14px 14px auto; aspect-ratio: 1; border-radius: 8px; background: radial-gradient(circle, rgba(38,34,30,.22) 0 1px, transparent 1.4px) 0 0 / 5px 5px; mix-blend-mode: multiply; pointer-events: none; }
.photo figcaption { margin-top: 8px; }
.about__lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.copybook { margin-top: 30px; }
.copybook .lined { --fs: 21px; color: var(--ink); }
.copybook .lined::before { content: ''; display: inline-block; width: .5em; height: .5em; margin-left: .2em; border-radius: 50%; background: var(--red); vertical-align: .05em; }

/* Kontakt – Exlibris */
.contact { padding-bottom: clamp(90px, 10vw, 140px); }
.contact__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.bookplate { position: relative; padding: clamp(32px, 4vw, 52px) clamp(24px, 4vw, 52px) clamp(30px, 4vw, 44px); border-radius: 24px; background: var(--card); box-shadow: 0 0 0 2px var(--ink), 0 0 0 10px var(--card), 0 0 0 12px var(--red), 8px 8px 0 12px rgba(38,34,30,.15); }
.bookplate::before, .bookplate::after { content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--yel); box-shadow: 0 0 0 2px var(--ink); top: -9px; left: -9px; }
.bookplate::after { left: auto; right: -9px; background: var(--blue); }
.bookplate__k { margin-top: 26px; font-size: 15px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.bookplate__addr { --fs: 22px; margin-top: 6px; color: var(--ink); }
.bookplate__geo { margin-top: 10px; font-size: 14px; letter-spacing: .08em; color: var(--ink-2); }
.contact .intro { margin-top: 0; }
.facts { display: grid; gap: 18px; margin-top: 28px; }
.facts dt { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--red-t); }
.facts dd { margin-top: 2px; font-weight: 400; font-size: 19px; overflow-wrap: anywhere; }
.facts dd span { display: block; font-size: 15px; color: var(--ink-2); }
.facts a { text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.facts a:hover { color: var(--blue-t); }
.contact .ctas { margin-top: 30px; }

/* Fuß */
.foot { padding: 70px 0 90px; background: var(--red); color: #fff7e8; border-top: 2px solid var(--ink); }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 44px; align-items: center; }
.logo--foot { padding: 10px 14px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 2px var(--ink); }
.logo--foot img { width: 88px; }
.foot__brand { font-weight: 600; font-size: 19px; }
.foot__addr p + p { margin-top: 4px; font-size: 16px; }
.foot__addr a { text-decoration: none; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 500; }
.foot__nav a { text-decoration: none; padding: 4px 0; }
.foot__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot__copy { grid-column: 2 / -1; font-size: 14px; opacity: .92; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 36px 0 110px; }
.back { display: inline-block; margin-bottom: 34px; font-weight: 500; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.leaf { max-width: 900px; margin-inline: auto; padding: clamp(32px, 6vw, 72px) clamp(20px, 7vw, 90px) clamp(30px, 4vw, 50px); border-radius: 16px; background: var(--card); box-shadow: 0 0 0 2px var(--ink), 8px 8px 0 2px rgba(38,34,30,.14); }
.leaf__head { padding-bottom: 26px; margin-bottom: 34px; border-bottom: 2px solid var(--ink); }
.leaf h1 { font-size: clamp(30px, 4.6vw, 50px); hyphens: manual; overflow-wrap: break-word; }
.legal-body { max-width: 68ch; font-size: 17px; line-height: 1.7; font-weight: 300; }
.legal-body h2 { margin: 40px 0 10px; font-size: clamp(21px, 2.3vw, 25px); line-height: 1.3; }
.legal-body h2::first-letter { color: var(--red); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { margin: 0 0 14px; }
.legal-body li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.legal-body li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.legal-body a { color: var(--blue-t); font-weight: 400; text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-body .legal-note { padding: 14px 18px; border-radius: 12px; background: #fde9a6; box-shadow: 0 0 0 2px var(--ink); font-weight: 400; }
.legal-body .legal-address { padding: 16px 20px; border-radius: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 2px rgba(38,34,30,.2); }
.leaf .folio { margin-top: 50px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .top__book { display: none; }
  .nav { gap: 18px; }
  .nav__list a { padding: 8px 9px; }
  .abc { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
}
@media (max-width: 1060px) {
  .hero__txt { grid-template-columns: 1fr; }
  .cards, .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .numcards { grid-template-columns: 1fr; max-width: 560px; }
  .contact__in, .about__in { grid-template-columns: 1fr; }
  .photo { max-width: 520px; }
}
@media (max-width: 960px) {
  .menu { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; min-height: 46px; padding: 8px 16px 8px 12px; border: 0; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px var(--yel); font-weight: 500; font-size: 16px; cursor: pointer; }
  .menu__ico { display: grid; gap: 4px; width: 20px; }
  .menu__ico i { height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu__ico i:nth-child(2) { background: var(--red); }
  .top.open .menu__ico i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .top.open .menu__ico i:nth-child(2) { opacity: 0; }
  .top.open .menu__ico i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav { position: absolute; left: var(--pad); right: var(--pad); top: calc(100% + 6px); display: none; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 2px rgba(38,34,30,.2); }
  .js .top.open .nav, html:not(.js) .nav { display: flex; }
  html:not(.js) .nav { position: static; margin-bottom: 14px; }
  html:not(.js) .top__in { flex-wrap: wrap; }
  html:not(.js) .menu { display: none; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__list a { display: block; padding: 12px; font-size: 20px; }
  .nav__end { justify-content: space-between; padding-top: 12px; border-top: 2px dashed rgba(38,34,30,.25); }
  .foot__in { grid-template-columns: auto 1fr; }
  .foot__nav, .foot__copy { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .top__in { min-height: 80px; }
  .logo img { width: 70px; }
  .hero { padding-top: 18px; }
  .plate--hero .art { aspect-ratio: 3 / 2; }
  .bookplate { margin-inline: 12px; }
  .hero h1 { font-size: 38px; }
  .lined--kicker { --fs: 17px; }
  .btn { width: 100%; }
  .cards, .cases, .story__panels { grid-template-columns: 1fr; }
  .card:nth-child(n) { transform: none; }
  .abc { grid-template-columns: 1fr; }
  .lined { --fs: 18px; }
  .lined--s { --fs: 16px; }
  .copybook .lined { --fs: 17px; }
  .bookplate__addr { --fs: 17px; }
  .numcard { padding: 22px; }
  .foot { padding-bottom: 110px; }
  .foot__in { grid-template-columns: 1fr; }
  .logo--foot { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
}
