/* luogo Website. Tokens zuerst, dann Basis, Bausteine, Abschnitte. */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --pomodoro: #E0442C;
  --pomodoro-scuro: #C2361F;
  --crema: #F6EFE4;
  --espresso: #2A1D17;
  --limone: #F3C64B;
  --basilico: #3F6B4C;

  --bg: #F6EFE4;
  --bg-alt: #EFE5D6;
  --surface: #FFFCF7;
  --line: #E2D6C4;
  --fg: #2A1D17;
  --fg-2: #6B5A4E;
  --accent: #C2361F;
  --card-shadow: 0 14px 30px rgba(42, 29, 23, .18);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1410;
    --bg-alt: #241A15;
    --surface: #2A1D17;
    --line: #3A2C24;
    --fg: #F6EFE4;
    --fg-2: #B9A897;
    --accent: #F07A62;
    --card-shadow: 0 0 0 1px #3A2C24;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Typografie */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(48px, 11.5vw, 108px); line-height: .95; }
h2 { font-size: clamp(40px, 7.5vw, 72px); line-height: 1; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--fg-2); max-width: 34em; }
.overline { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.small { font-size: 14px; color: var(--fg-2); }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--pomodoro-scuro); color: var(--crema);
  font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease-out, background .15s ease-out;
}
.btn:hover { background: #A92D19; }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--dark { background: var(--espresso); color: var(--crema); }
.btn--dark:hover { background: #1C1410; }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.top__logo img { height: 34px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* Abschnitte */
section { padding-block: clamp(64px, 11vw, 128px); }
.alt { background: var(--bg-alt); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--lg { gap: 40px; }

/* Einstieg */
.hero { padding-block: clamp(24px, 5vw, 56px) clamp(64px, 10vw, 112px); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 8px; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

/* Sammelkarte */
.card {
  --c-bg: var(--pomodoro); --c-fg: var(--crema);
  position: relative; aspect-ratio: 3 / 4; width: 100%;
  border-radius: 7% / 5.25%; background: var(--c-bg); color: var(--c-fg);
  box-shadow: var(--card-shadow); overflow: hidden;
  container-type: inline-size; font-family: var(--sans);
}
.card__frame { position: absolute; inset: 3.6cqw; border: 1px solid color-mix(in srgb, var(--c-fg) 38%, transparent); border-radius: 4.5cqw; pointer-events: none; }
.card__coords { position: absolute; top: 7cqw; left: 7.5cqw; font: 400 3.9cqw/1.25 var(--mono); letter-spacing: .04em; opacity: .78; white-space: pre; }
.card__kind { position: absolute; top: 7.2cqw; right: 7.5cqw; font-size: 3.7cqw; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.card__text { position: absolute; left: 7.5cqw; right: 7.5cqw; bottom: 7cqw; }
.card__name { font-size: 9.6cqw; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.card__city { font-size: 4.6cqw; font-weight: 500; opacity: .82; margin-top: 1.2cqw; }
.card__holo {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: var(--holo, .0);
  background: linear-gradient(115deg, transparent 20%, #ff9bd2 36%, #9be7ff 48%, #fff7a8 58%, transparent 76%);
  background-size: 260% 260%; background-position: calc(50% + var(--mx, 0) * 60%) calc(50% + var(--my, 0) * 60%);
  transition: opacity .3s ease-out;
}
.card { --pin: var(--c-bg); }

/* Kartenfächer: jede Karte bewegt sich für sich */
.fan { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1 / .98; }
.fcard { position: absolute; width: 52%; top: 8%; left: 24%; perspective: 900px; transition: scale .25s ease-out; }
.fcard--l { transform: translate(-50%, 7%) rotate(-10deg); }
.fcard--r { transform: translate(50%, 7%) rotate(10deg); }
.fcard--m { scale: 1.08; z-index: 2; }
.fcard .card { transform: rotateX(calc(var(--my, 0) * -14deg)) rotateY(calc(var(--mx, 0) * 16deg)); transition: transform .2s ease-out; will-change: transform; }
.fcard.is-active { z-index: 3; scale: 1.1; }
.fcard--m.is-active { scale: 1.16; }
.fcard.is-active .card, .fan.is-live .card { --holo: .8; }

/* Karte mit echtem Motiv */
.card--art { --c-fg: #FFFCF7; }
.card__img { position: absolute; top: 4%; left: 6%; width: 88%; height: auto; -webkit-mask-image: linear-gradient(#000 74%, transparent 94%); mask-image: linear-gradient(#000 74%, transparent 94%); }

/* Der Moment: Karte zum Umdrehen */
.moment { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .moment { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.flip { display: block; width: min(100%, 320px); margin-inline: auto; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; font: inherit; color: inherit; text-align: left; border-radius: 22px; }
.flip__inner { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__face--back { transform: rotateY(180deg); }
.back { height: 100%; border-radius: 7% / 5.25%; background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: var(--card-shadow); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.back h3 { font-size: 28px; }
.back dl { margin: 0; display: grid; gap: 10px; font-size: 15px; }
.back dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.back dd { margin: 2px 0 0; white-space: pre-line; }
.back__foot { margin-top: auto; font-size: 11px; color: var(--fg-2); }
.flip-hint { text-align: center; margin-top: 16px; }

/* So geht's */
.steps { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { display: flex; flex-direction: column; gap: 18px; }
.step__text h3 { font-size: 30px; }
.step__text .overline { color: var(--accent); }
.step__text p { color: var(--fg-2); margin-top: 6px; }
.phone { width: min(78%, 270px); margin-inline: auto; aspect-ratio: 9 / 19.5; border-radius: 38px; border: 7px solid var(--espresso); background: var(--surface); overflow: hidden; box-shadow: var(--card-shadow); }
@media (prefers-color-scheme: dark) { .phone { border-color: #3A2C24; } }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__todo { height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--fg-2); font-size: 14px; background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 60%, transparent) 14px 15px); }

/* Was sonst noch drin ist: schlichte Liste mit Haarlinien */
.more { margin: 0; display: grid; column-gap: 48px; }
@media (min-width: 720px) { .more:not(.more--single) { grid-template-columns: 1fr 1fr; } }
.more > div { padding: 18px 0; border-top: 1px solid var(--line); }
.more dt { font-weight: 600; }
.more dd { margin: 4px 0 0; color: var(--fg-2); }

/* Wer dahintersteckt */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; } }

/* Warteliste */
.join { background: var(--pomodoro-scuro); color: var(--crema); }
.join h2 em { color: var(--limone); }
.join .lead, .join .small { color: var(--crema); }
.join__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .join__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.form { display: grid; gap: 12px; }
.form label { font-size: 14px; font-weight: 600; }
.form input { width: 100%; min-height: 52px; border-radius: 999px; border: 0; padding: 0 22px; font: 400 17px var(--sans); background: var(--crema); color: var(--espresso); }
.form input::placeholder { color: #6B5A4E; }
.form input:focus-visible { outline: 3px solid var(--limone); outline-offset: 2px; }
.form .btn { margin-top: 6px; }
.form__msg { min-height: 1.5em; font-weight: 500; }
.join :focus-visible { outline-color: var(--limone); }

/* Fragen */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--sans); font-size: 26px; color: var(--accent); transition: transform .2s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--fg-2); max-width: 40em; }

/* Fuß */
.foot { padding-block: 48px; border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.foot__brand { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-style: italic; font-size: 22px; }
.foot__brand img { width: 40px; height: 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--fg); font-size: 15px; }
.foot .small { margin-top: 24px; }

/* Rechtsseiten */
.legal { padding-block: 48px 96px; max-width: 46em; }
.legal h1 { font-size: clamp(44px, 8vw, 72px); margin-bottom: 24px; }
.legal h2 { font-size: 30px; margin: 36px 0 10px; }
.legal h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 22px 0 6px; }
.legal p, .legal ul, .legal address { margin: 0 0 12px; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 4px; }
.legal .stand { color: var(--fg-2); font-size: 15px; margin-bottom: 28px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; margin-bottom: 8px; }
.todo { border: 2px dashed var(--accent); border-radius: 14px; padding: 16px 18px; color: var(--accent); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fcard, .fcard .card, .flip__inner, .btn { transition: none; }
  .fcard .card { transform: none; }
}

/* Hinweise am Kartenfächer */
.chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: var(--card-shadow); }
.chip .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface); margin-right: -8px; }
.chip .dot:last-of-type { margin-right: 2px; }
.chip { z-index: 5; }
.chip--a { top: -3%; left: 0; transform: rotate(-3deg); }
.chip--b { bottom: 2%; right: 0; transform: rotate(2deg); }

/* Listen werden zu einer Karte */
.merge { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .merge { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.merge__visual { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(100%, 420px); margin-inline: auto; }
.lists { display: grid; gap: 10px; width: 100%; }
.list { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.list:nth-child(1) { transform: rotate(-1.5deg); } .list:nth-child(2) { transform: rotate(1deg) translateX(10px); } .list:nth-child(3) { transform: rotate(-.6deg); }
.list .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); flex: none; }
.list b { display: block; font-weight: 600; font-size: 16px; }
.list span { font-size: 14px; color: var(--fg-2); }
.merge__arrow { width: 22px; height: 38px; color: var(--accent); }
.map { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); --pin: var(--map-land); }
.map svg { width: 100%; height: 100%; }
.map__land { fill: var(--map-land); } .map__street { fill: none; stroke: var(--map-street); }
.map__label { position: absolute; left: 14px; bottom: 12px; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--fg); background: var(--surface); padding: 2px 12px; border-radius: 999px; }
:root { --map-land: #EFE4D3; --map-street: #FFFCF7; }
@media (prefers-color-scheme: dark) { :root { --map-land: #2A1D17; --map-street: #3A2C24; --basilico: #5E9470; } }

/* Unterwegs: Karte mit Unterhaltung */
.trip { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .trip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.trip__visual { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: center; width: min(100%, 460px); margin-inline: auto; }
.trip__card { transform: rotate(-4deg); }
.talk { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-size: 14px; line-height: 1.35; }
.bubble b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--fg-2); margin-bottom: 2px; }
.bubble .dot, .tag .dot { width: 10px; height: 10px; border-radius: 50%; }
.bubble--me { align-self: flex-end; background: var(--pomodoro-scuro); border-color: transparent; color: var(--crema); border-radius: 18px 18px 6px 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 5px 12px; border-radius: 999px; background: var(--limone); color: var(--espresso); font-size: 12px; font-weight: 600; }
