/* Apple-Fassung (live seit 28.10.2026): letzte Schicht über main.css, agency.css und den Seiten-CSS, in allen Seiten
   von site/ eingebunden (nicht in den Konzeptentwürfen unter beispiele/). Grundlage ist der Skill „apple-design“
   (emilkowalski/skills): Apples Regeln aus den WWDC-Vorträgen zu Typografie, Rückmeldung, Materialien und
   Barrierefreiheit, übertragen aufs Web. Inhalte, Farben und Aufbau bleiben gleich; geändert ist, wie leicht sich
   die Seite lesen und bedienen lässt. */

:root {
  /* Kurven aus dem Skill: kräftiges ease-out für Rückmeldung, iOS-Kurve für Blätter und Leisten */
  --a-out: cubic-bezier(0.23, 1, 0.32, 1);
  --a-sheet: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- 1. Schrift: Laufweite und Zeilenabstand je Größe (Skill §15) ----------
   Große Schrift etwas enger, aber nicht so eng, dass Buchstaben ineinanderlaufen. Zweizeilige Überschriften
   bekommen etwas mehr Zeilenabstand, damit Unterlängen (g, p) die nächste Zeile nicht berühren.
   Grundschrift in rem: Wer im Browser eine größere Schrift eingestellt hat, bekommt sie auch hier. */
body { font-size: 1.0625rem; }
h2 { letter-spacing: -0.042em; line-height: 1.02; }
.a-hero__title { letter-spacing: -0.05em; line-height: 0.94; }
h3 { letter-spacing: -0.028em; }
p, li { hanging-punctuation: first; }

/* ---------- 2. Kleine Etiketten: eine Schrift, normale Schreibweise ----------
   Die Etiketten in Mono-Großbuchstaben mit weiter Laufweite (12 px) sind schwer zu lesen und wirken technisch.
   Sie stehen jetzt in Geist, normal geschrieben, mindestens 13 px. Die Mono-Schrift bleibt nur dort, wo sie etwas
   nachahmt: Kassenbon, Dateinamen, Adressleiste in den Vorführungen. */
:is(.eyebrow, .note-center, .menu a span, .menu p, .stat__src, .tile__kicker, .tile__fine, .work__count,
  .work-card__num, .steps__meta, .plan__kicker, .cta__note, .contact__lines span, .choice legend, .footer__nav p,
  .footer__bottom, .to-top, .show__note, .show__num, .film__note, .film__time, .road__meta, .picker__count,
  .picker__ai-label, .picker__ai-meta, .picker__fine, .relay__note, .uc__tab-t small, .uc__fine, .vig__cap,
  .bl-ref__shot figcaption, .scen__fine, .rules__kicker, .baulog__fine, .kdemo__label, .wa-sec__note, .wa__fine,
  .app__fine, .outcomes__title, .systems__more, .agenda__fine, .sw-case__kicker, .sw-case__tabs button span, .pill,
  .pill__back, .portrait__hint, .hero__facts span, .area__label, .pains__num, .bundle__title small, .plan__badge) {
  font-family: var(--sans) !important;
  text-transform: none !important;
  letter-spacing: 0.003em !important;
  font-variant-numeric: tabular-nums;
}
:is(.note-center, .stat__src, .tile__fine, .film__note, .show__note, .picker__fine, .picker__ai-meta, .relay__note,
  .uc__fine, .vig__cap, .bl-ref__shot figcaption, .scen__fine, .baulog__fine, .wa-sec__note, .wa__fine, .app__fine,
  .agenda__fine, .cta__note, .portrait__hint) { font-size: 13px !important; line-height: 1.45 !important; }
:is(.tile__kicker, .work-card__num, .plan__kicker, .contact__lines span, .choice legend, .footer__nav p, .road__meta,
  .steps__meta, .picker__count, .picker__ai-label, .uc__tab-t small, .rules__kicker, .kdemo__label, .sw-case__kicker,
  .outcomes__title, .area__label, .hero__facts span, .plan__badge) { font-size: 13.5px !important; line-height: 1.3 !important; font-weight: 500 !important; }
.footer__bottom, .to-top, .film__time, .menu a span, .menu p, .pill, .pill__back { font-size: 13.5px !important; }
.uc__how { font-size: 14.5px; }

/* Abschnittsmarken („01 —— LEISTUNGEN“ → „Leistungen“): Nummer und Strich fallen weg. Die Überschrift darunter
   trägt die Hierarchie, die Marke sagt nur noch leise, wo man ist (Skill §16, Wegweiser). */
.eyebrow { gap: 0; color: var(--muted); font-size: 16px !important; font-weight: 500 !important; line-height: 1.2 !important; }
.eyebrow > span { display: none !important; }
.light .eyebrow, .contact .eyebrow, .picker-sec .eyebrow { color: var(--ink-muted); }

/* Metazeilen in den Ablauf-Karten unter den Titel: erst was passiert, dann die Bedingung (Reihenfolge = Wichtigkeit) */
.road > li > .road__num { order: 0; }
.road > li > h3 { order: 1; }
.road > li > .road__meta { order: 2; display: block; margin-top: -2px; color: var(--muted); font-weight: 400 !important; }
.road > li > p, .road > li > .road__list { order: 3; }
.road__hl .road__meta { color: var(--ink-muted) !important; }
:is(.road__meta, .steps__meta)::first-letter { text-transform: uppercase; }
.steps__meta { display: block; }

/* ---------- 3. Lesbarkeit: Einleitungen größer, Fließtext in Karten nicht unter 16 px ---------- */
.a-hero__lead { font-size: clamp(1.13rem, 1.45vw, 1.32rem); line-height: 1.5; color: #b7b1a6; }
.sec-head__lead { font-size: clamp(1.08rem, 1.35vw, 1.22rem); line-height: 1.55; }
:is(.area__body > p, .road > li > p, .steps p, .tile > p, .tile__text p, .picker__list p) { font-size: max(1rem, 16px) !important; line-height: 1.6; }
.area__list { font-size: 15px; }
.road__list li { font-size: 15px; }
.a-hero__promise { font-size: 15px; }
/* Zeilenlänge: lange Absätze bleiben unter ca. 65 Zeichen */
:is(.sec-head__lead, .about__text > p, .faq__body p, .contact__lead) { max-width: min(36em, 100%); }

/* Einleitung direkt unter die Überschrift statt rechts unten daneben (Skill §16, Nähe zeigt Zusammengehörigkeit):
   Das Auge liest Überschrift und Satz in einem Zug, statt quer über die Seite zu springen. */
.sec-head--split { grid-template-columns: minmax(0, 1fr); max-width: 1000px; align-items: start; gap: 22px; }
.sec-head--split > div { gap: 22px; }

/* ---------- 4. Rückmeldung beim Drücken (Skill §1, §10) ----------
   Alles, was man drücken kann, gibt sofort beim Berühren nach (nicht erst beim Loslassen), kurz und ohne Nachlauf.
   apple.js sorgt dafür, dass iPhone und iPad :active überhaupt anzeigen. touch-action nimmt die Tipp-Verzögerung. */
a, button, summary, label, input, select, textarea, [role="tab"] { touch-action: manipulation; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
.btn { transition: transform 160ms var(--a-out), background-color 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s; }
.btn svg { transition: transform 200ms var(--a-out); }
:is(.btn, .menu-toggle, .faq-ask__send, .picker__ask button, .mobile-cta, .calc__add, .calc__del, .choice span,
  .picker__options span, .sw-case__tabs button, .work__nav button, .film__play):active { transform: scale(0.97) !important; transition-duration: 80ms !important; }
:is(.area, .uc__tabs button, .work-card, .road > li):active { transform: scale(0.985) !important; transition-duration: 80ms !important; }
/* Textlinks werden beim Drücken kurz blasser, wie Textknöpfe auf dem iPhone */
:is(.nav a, .footer__nav a, .footer__bottom a, .to-top, .link-arrow, .contact__lines a, .pill__back, .area__more, .faq summary):active { opacity: 0.55; transition: opacity 0s; }
.faq summary { transition: color 0.2s, opacity 0.25s; }

/* Hover nur mit Maus: Auf Touch-Geräten bleibt ein Hover-Zustand nach dem Tippen sonst hängen
   (z. B. blieb eine geöffnete FAQ-Frage grau). */
@media (hover: none) {
  .faq summary:hover { color: inherit; }
  .btn--primary:hover { opacity: 1; }
  .btn:hover svg { transform: none; }
  .nav a:hover:not(.is-active):not([aria-current="page"]) { color: var(--muted); background: transparent; }
  .uc__tabs button:hover:not([aria-selected="true"]) { transform: none; box-shadow: none; background: var(--bg-2); border-color: var(--line); }
  .uc__tabs button:hover .uc__tab-go { transform: none; }
  .footer__nav a:hover { color: var(--muted); }
}

/* ---------- 5. Tippflächen mindestens 44 × 44 pt, auf jedem Touch-Gerät (auch iPad quer) ---------- */
.choice span { min-height: 44px; }
@media (pointer: coarse) {
  :is(.nav a, .footer__nav a, .footer__bottom a, .to-top, .contact__lines a, .pill__back, .link-arrow, .area__more,
    .logo, .form__code-open) { min-height: 44px; display: inline-flex; align-items: center; }
  .footer__nav a { width: fit-content; }
  .footer__nav div { gap: 0; }
  .btn--small { min-height: 44px; }
  .calc__del { width: 44px; height: 44px; }
  .uc__tab-go { width: 44px; height: 44px; }
}

/* ---------- 6. Bewegung: Inhalt wartet nicht ----------
   Einblendungen beim Scrollen kürzer und ohne Wort-für-Wort-Aufbau der Überschriften: Text ist sofort lesbar,
   die Bewegung bestätigt nur noch. Skill §1: jede Wartezeit auf dem Weg zur Information ist ein Rückschritt. */
.js [data-reveal] { transform: translateY(8px); transition: opacity 0.32s var(--a-out), transform 0.32s var(--a-out); transition-delay: calc(var(--d, 0s) * 0.35); }
.js [data-split] .w__in { transform: none !important; transition: none !important; }
.js .stat.is-in, .js .tile.is-in, .js .review.is-in { transition: border-color 0.3s, opacity 0.4s var(--a-out), transform 0.4s var(--a-out); }

/* Mobilmenü: kommt vom Knopf oben rechts, kurz und ohne lange Staffel (Skill §7, räumliche Herkunft) */
.menu a { animation: a-menu-in 0.26s var(--a-out) both; }
.menu a:nth-child(n) { animation-delay: calc((var(--n, 0)) * 18ms); }
.menu a:nth-child(2) { --n: 1; } .menu a:nth-child(3) { --n: 2; } .menu a:nth-child(4) { --n: 3; }
.menu a:nth-child(5) { --n: 4; } .menu a:nth-child(6) { --n: 5; }
@keyframes a-menu-in { from { opacity: 0; transform: translateY(-10px); } }

/* Feste Anfrage-Leiste unten: gleicher Weg rein und raus, iOS-Kurve, schneller */
.mobile-cta { transition: transform 0.36s var(--a-sheet), background-color 0.25s, color 0.25s, box-shadow 0.25s; }

/* Kopfzeile wird beim Scrollen ohne Verzögerung zum Material (vorher 0,45 s) */
.header__inner { transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.header.is-scrolled .header__inner, .menu-open .header__inner {
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
}

/* Aufklappen der Fragen: ease-out statt Standardkurve, kurz */
.faq details::details-content { transition-timing-function: var(--a-out) !important; }

/* ---------- 7. Formular: klare Felder statt nur einer Linie ----------
   Ein Feld soll wie ein Feld aussehen (Skill §16, Vertrautheit). Gleiche Schwebe-Beschriftung wie bisher,
   aber mit Fläche, runder Ecke und deutlichem Fokus. */
.contact .field input, .contact .field textarea {
  padding: 24px 16px 10px;
  border: 1px solid rgba(18, 16, 14, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.contact .field input:hover, .contact .field textarea:hover { border-color: rgba(18, 16, 14, 0.32); }
.contact .field input:focus, .contact .field textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(18, 16, 14, 0.08); }
.contact .field > label { margin: 17px 16px 0; max-width: calc(100% - 32px); }
.contact .field input:focus + label, .contact .field textarea:focus + label,
.contact .field input:not(:placeholder-shown) + label, .contact .field textarea:not(:placeholder-shown) + label { transform: translateY(-9px) scale(0.74); }
.contact .field input[aria-invalid="true"], .contact .field textarea[aria-invalid="true"] { border-color: #b4232a; }
.contact .field::after { display: none; }
.contact .form__row { gap: 16px; }
.contact .form { gap: 22px; }

/* ---------- 8. Barrierefreiheit: weniger Bewegung, weniger Transparenz, mehr Kontrast (Skill §14) ---------- */
@media (prefers-reduced-transparency: reduce) {
  .header.is-scrolled .header__inner, .menu-open .header__inner, .menu { background: #100f0d; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #cfc9be; --dim: #b4aea3; --line: rgba(240, 235, 225, 0.3); --line-2: rgba(240, 235, 225, 0.45); --ink-muted: #3a352e; }
  .header.is-scrolled .header__inner { background: #0b0a09; border-color: var(--line-2); }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; }
}
