/* ==========================================================================
   Loof — Verlag & Beratung
   Design-System · reines CSS, keine Frameworks
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --cyan:        #19DDF6;
  --cyan-deep:   #06AFC8;
  --cyan-soft:   #D6F8FE;
  --cyan-mist:   #EEFCFF;

  --ink:         #0E1418;
  --ink-2:       #2B3540;
  --ink-3:       #5C6B78;

  --cream:       #FBF8F3;
  --paper:       #FFFFFF;
  --line:        #E7E2D9;

  --coral:       #FF6B5A;
  --sun:         #FFC542;

  --r-sm: 12px;
  --r:    20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-s: 0 2px 8px rgba(14,20,24,.06);
  --shadow:   0 14px 40px -18px rgba(14,20,24,.28);
  --shadow-l: 0 34px 70px -30px rgba(14,20,24,.35);

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);

  --display: "Nunito", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--cyan); color: var(--ink); }

/* --- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--mist  { background: var(--cyan-mist); }
.section--ink   { background: var(--ink); color: #EAF1F5; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #B9C6D0; }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Kicker */
.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 800;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 1rem;
}
.kicker::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--cyan);
}
.section--ink .kicker { color: var(--cyan); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-weight: 800; font-size: 1rem;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cyan); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(6,175,200,.9); }
.btn--primary:hover { background: #45E6FB; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--ink .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.section--ink .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  font-family: var(--display); font-weight: 800; color: var(--cyan-deep);
  display: inline-flex; align-items: center; gap: .45em;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,248,243,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-s); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 88px;
}
.brand { display: block; flex-shrink: 0; }
.brand img { width: clamp(140px, 17vw, 190px); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Sprachumschalter / Dil değiştirici */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
}
.lang a {
  font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .06em;
  padding: .4em .75em; border-radius: 999px; color: var(--ink-3);
  transition: background .18s ease, color .18s ease;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.nav a {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: 6px 0; position: relative; color: var(--ink-2);
  transition: color .18s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px;
  background: var(--cyan); border-radius: 3px; transition: right .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { font-size: .95rem; padding: .7em 1.25em; }
.nav .btn::after { display: none; }

.burger {
  display: none; width: 46px; height: 46px; border: 0; background: transparent;
  border-radius: 50%; cursor: pointer; position: relative;
}
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2.5px;
  background: var(--ink); border-radius: 2px; transition: transform .28s ease, opacity .2s ease;
}
.burger::before { top: 16px; }
.burger span { top: 22px; }
.burger::after { top: 28px; }
.nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span { opacity: 0; }
.nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav { margin-left: 0; }
  .nav {
    position: fixed; inset: 88px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 28px;
    transform: translateY(-130%); transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow);
  }
  .nav-open .nav { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 18px; justify-content: center; border-bottom: 0; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 8vw, 110px); }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none;
}
.hero__blob--1 { width: 520px; height: 520px; background: var(--cyan-soft); top: -180px; right: -140px; }
.hero__blob--2 { width: 320px; height: 320px; background: #FFF1CF; bottom: -140px; left: -110px; opacity: .7; }
.hero__inner { position: relative; text-align: center; }

.hero__logo { width: min(560px, 82vw); margin: 0 auto 8px; }
.hero__claim {
  font-family: var(--display); font-weight: 700; font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem); color: var(--ink-2);
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.hero__text { max-width: 58ch; margin: 0 auto clamp(28px, 4vw, 40px); font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.hero .btn-row { justify-content: center; }

.hero__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.pill {
  font-family: var(--display); font-weight: 700; font-size: .88rem;
  background: var(--paper); border: 1px solid var(--line);
  padding: .5em 1em; border-radius: 999px; color: var(--ink-2);
}

/* Page hero (Unterseiten) */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 56px); position: relative; overflow: hidden; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: .2em; }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-s);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--cyan-soft); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-3); font-size: .98rem; }

/* Karte mit Katze, die über den Rand schaut — Markenmotiv */
.card--cat { margin-top: 46px; overflow: visible; }
.card--cat .cat-peek {
  position: absolute; top: -42px; left: 32px; width: 84px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.card--cat:hover .cat-peek { transform: translateY(-8px) rotate(-4deg); }

.card__num {
  font-family: var(--display); font-weight: 900; font-size: 1.1rem;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cyan); color: var(--ink); margin-bottom: 18px;
}

.card--flat { box-shadow: none; background: transparent; border-color: transparent; padding: 0; }
.card--flat:hover { transform: none; box-shadow: none; }

/* Zwei Säulen: Verlag / Beratung */
.pillar {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(28px, 3.4vw, 46px);
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.pillar__tag {
  font-family: var(--display); font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; font-size: .76rem; color: var(--cyan-deep);
}
.pillar ul { margin: 0 0 26px; padding: 0; list-style: none; }
.pillar li { padding: 9px 0 9px 30px; position: relative; color: var(--ink-2); border-top: 1px solid var(--line); }
.pillar li:first-child { border-top: 0; }
.pillar li::before {
  content: ""; position: absolute; left: 4px; top: 18px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--cyan);
}
/* Karten auf dunklem Grund: transparent statt weiß, sonst verschwindet die Schrift */
.section--ink .card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
}
.section--ink .card:hover { border-color: rgba(25, 221, 246, .5); }
.section--ink .card p { color: #93A3AF; }

/* --- Buch --------------------------------------------------------------- */
.book {
  display: grid; gap: clamp(28px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
}
@media (max-width: 820px) { .book { grid-template-columns: 1fr; } }

.book__cover {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: 6px 18px 18px 6px;
  background: linear-gradient(150deg, var(--cyan) 0%, #63E9FB 55%, #A8F2FD 100%);
  box-shadow: var(--shadow-l), inset 14px 0 22px -18px rgba(0,0,0,.5);
  display: grid; place-items: center; padding: 12%;
  overflow: hidden;
}
.book__cover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.16), rgba(0,0,0,0));
}
.book__cover-inner { text-align: center; }
.book__cover-title {
  font-family: var(--display); font-weight: 900; color: var(--ink);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.05; letter-spacing: -.03em;
}
.book__cover-sub {
  font-family: var(--display); font-weight: 700; font-style: italic;
  color: rgba(14,20,24,.65); font-size: .95rem; margin-top: .8em;
}
.book__cover img { width: 62%; margin: 0 auto 18px; }

.book__meta { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 0; }
.book__meta li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: .96rem;
}
.book__meta li:last-child { border-bottom: 1px solid var(--line); }
.book__meta dt, .book__meta b { font-family: var(--display); font-weight: 800; }
.book__meta span:last-child { color: var(--ink-3); text-align: right; }

.badge {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--sun); color: var(--ink);
  padding: .4em .9em; border-radius: 999px; margin-bottom: 14px;
}
.badge--soon { background: var(--cyan-soft); color: var(--cyan-deep); }

/* Programmliste */
.title-list { display: grid; gap: 18px; }
.title-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: clamp(18px, 3vw, 32px);
  align-items: center; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 22px; transition: border-color .2s ease, transform .2s ease;
}
.title-row:hover { border-color: var(--cyan); transform: translateX(4px); }
.title-row__cover {
  aspect-ratio: 1/1; border-radius: 4px 10px 10px 4px;
  background: linear-gradient(150deg, var(--cyan), #A8F2FD); display: grid; place-items: center;
}
.title-row__cover img { width: 62%; }
.title-row h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.title-row p { margin: 0; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 640px) {
  .title-row { grid-template-columns: 64px 1fr; }
  .title-row .link-arrow { grid-column: 1 / -1; }
}

/* --- Ablauf / Steps ----------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 4px; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--cyan-deep);
  line-height: 1;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--ink-3); }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* --- Preise ------------------------------------------------------------- */
.price-card { display: flex; flex-direction: column; }
.price-card .price {
  font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--ink);
  margin: 6px 0 4px;
}
.price-card .price small { font-size: .9rem; font-weight: 700; color: var(--ink-3); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.price-card li { padding-left: 28px; position: relative; font-size: .96rem; color: var(--ink-2); }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--cyan-deep); font-weight: 900;
}
.price-card .btn { margin-top: auto; justify-content: center; }
.price-card--feature { border-color: var(--cyan); box-shadow: var(--shadow); }
.price-card--feature .badge { background: var(--cyan); }

/* --- Zitat -------------------------------------------------------------- */
.quote {
  font-family: var(--display); font-weight: 700; font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.35; letter-spacing: -.02em;
  max-width: 22ch;
}
.quote--wide { max-width: 30ch; }

/* --- Formular ----------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--display); font-weight: 800; font-size: .92rem; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-3); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cyan-deep); flex-shrink: 0; }
.check a { text-decoration: underline; }
.form__note { font-size: .85rem; color: var(--ink-3); }
.form-status { font-family: var(--display); font-weight: 800; color: var(--cyan-deep); min-height: 1.4em; }

/* --- FAQ ---------------------------------------------------------------- */
.faq details {
  border-top: 1px solid var(--line); padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--display); font-weight: 800; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--cyan-deep); font-weight: 700; line-height: 1;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-3); }

/* --- CTA-Band ----------------------------------------------------------- */
.cta-band {
  background: var(--cyan); border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 66px); text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { margin-bottom: .35em; }
.cta-band p { color: rgba(14,20,24,.75); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }
.cta-band__cat { width: 92px; margin: 0 auto 14px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #B9C6D0; padding: clamp(56px, 7vw, 88px) 0 32px; }
.site-footer h4 {
  font-family: var(--display); font-weight: 800; color: #fff; font-size: 1rem;
  letter-spacing: .04em; margin: 0 0 16px;
}
.footer-grid {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer__logo { width: 200px; margin-bottom: 18px; }
.site-footer p { font-size: .93rem; line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { font-size: .93rem; transition: color .18s ease; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: .85rem; color: #7C8B97;
}

/* --- Prose (Impressum / Datenschutz) ------------------------------------ */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--cyan-deep); text-decoration: underline; }
.prose .todo {
  background: #FFF6D8; border-left: 4px solid var(--sun);
  padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .92rem; color: #6B5400;
}

/* --- Reveal ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* Katzen-Auftritt im Hero */
@keyframes peek-in {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.hero__logo { animation: peek-in .8s cubic-bezier(.16,1,.3,1) both; }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0; z-index: 100;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--cyan-deep); outline-offset: 3px; border-radius: 4px; }
