/* ==========================================================================
   Jessica Scholz | Globales Design
   Alle Gestaltungsvorgaben der Website an einer Stelle: Farben, Typografie,
   Abstände, Ecken, Schatten, Bewegung und Grundbausteine (Buttons, Felder).
   site.css baut nur Seitenbereiche daraus zusammen und nutzt ausschließlich
   diese Variablen. Wer das Aussehen ändern will, ändert es hier.
   ========================================================================== */
:root {
  /* ---------- Farben ---------- */
  --color-ink: #000;                      /* Text, Linien, dunkle Flächen */
  --color-paper: #fff;                    /* Hintergrund */
  --color-soft: #f4f1ec;                  /* helle Flächen, Platzhalter */
  --color-muted: #5c5a57;                 /* Nebentexte */
  --color-line: rgba(0, 0, 0, .18);       /* feine Trennlinien */
  --color-hover-dark: #2b2b2b;            /* Hover auf dunklen Buttons */
  --color-placeholder: #ddd;              /* Fläche, bevor ein Bild geladen ist */
  --color-error: #b42318;
  --color-success: #1d6b3a;
  --color-glass: rgba(255, 255, 255, .82); /* Karte auf Bild (Kundenstimmen) */
  --color-backdrop: rgba(0, 0, 0, .55);   /* Hintergrund hinter Dialogen */
  --shade-hero: linear-gradient(to top, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0) 45%);
  --shade-card: linear-gradient(to top, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .28) 32%, rgba(0, 0, 0, 0) 58%);

  /* ---------- Schriften ---------- */
  --font-serif: Fraunces, Georgia, "Times New Roman", serif;
  --font-sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --weight-regular: 400;
  --weight-bold: 600;
  --weight-heading: 600;                  /* Titel (wird je nach Schrift in /theme.css gesetzt) */
  --weight-menu: 400;                     /* Menüpunkte */

  /* Schriftgrößen */
  --text-xs: 13px;                        /* Hinweise, Copyright */
  --text-sm: 14px;                        /* Buttons, Formular-Labels */
  --text-base: 15px;                      /* Fließtext */
  --text-lg: 16px;                        /* Zitate, Eingabefelder */
  --heading-sm: 22px;                     /* kleine Überschriften */
  --heading-md: 24px;                     /* Karten, Leistungen */
  --heading-lg: 26px;                     /* Angebote, Namen */
  --heading-xl: clamp(30px, 1.6vw + 18px, 40px); /* Abschnittstitel */
  --heading-menu: clamp(26px, 3vw + 12px, 40px);
  --display: clamp(32px, 2.4vw + 20px, 52px);    /* große Zahlen, Preise */

  /* Zeilenhöhen und Laufweiten */
  --leading-tight: 1.25;
  --leading-heading: 1.3;
  --leading-body: 1.6;
  --leading-loose: 1.8;
  --tracking-caps: .14em;                 /* Buttons, Meta-Zeilen */
  --tracking-eyebrow: .2em;               /* Dachzeilen */

  /* ---------- Abstände ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --gutter: clamp(16px, 5.6vw, 80px);     /* Seitenrand */
  --frame: clamp(12px, 2.8vw, 40px);      /* weißer Rahmen ums Headerbild */
  --section: clamp(72px, 9vw, 140px);     /* Abstand zwischen Abschnitten */
  --gap-grid: clamp(16px, 2.4vw, 36px);   /* Abstand in Karten-Rastern */
  --gap-images: clamp(8px, 1.4vw, 20px);  /* Abstand zwischen Galeriebildern */
  --gap-split: clamp(40px, 7vw, 110px);   /* Abstand Text zu Bild */
  --content-max: 1440px;
  --text-max: 560px;
  --offer-max: 400px;                     /* Breite einer Shootingaktion-Kachel */

  /* ---------- Ecken ---------- */
  --radius-image: 0;                      /* Fotos */
  --radius-card: 0;                       /* Karten, Dialoge */
  --radius-button: 0;                     /* Buttons */
  --radius-field: 0;                      /* Eingabefelder */
  --radius-round: 50%;                    /* runde Knöpfe, Preis-Kreis */

  /* ---------- Linien und Schatten ---------- */
  --border: 1px solid var(--color-ink);
  --border-soft: 1px solid var(--color-line);
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, .12);
  --shadow-md: 0 6px 30px rgba(0, 0, 0, .12);
  --shadow-lg: 0 20px 70px rgba(0, 0, 0, .3);

  /* ---------- Bewegung ---------- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* weich auslaufend */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .2s;                         /* Hover */
  --dur-base: .45s;                        /* Menü, Dialoge */
  --dur-link: .6s;                         /* Linie unter Text-Links */
  --dur-reveal: 1.1s;                      /* Einblenden beim Scrollen */
  --dur-hero: 2.6s;                        /* Headerbild beim Laden */
  --reveal-shift: 28px;                    /* so weit gleiten Inhalte beim Einblenden */
  --reveal-stagger: 90ms;                  /* Versatz zwischen Geschwistern */
  --hover-zoom: 1.04;                      /* Bildzoom bei Hover */
  --hero-scroll-zoom: .12;                 /* Headerbild zoomt beim Scrollen um 12 % hinein */

  /* ---------- Bildausschnitte ---------- */
  --focus-hero: 50% 18%;                   /* Headerbild: Fokus oben (Gesicht) */
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--space-5); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font: var(--weight-regular) var(--text-base)/var(--leading-body) var(--font-sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-image); }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: var(--weight-heading); }
p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--color-ink); color: var(--color-paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -60px; z-index: 100; background: var(--color-ink); color: var(--color-paper); padding: 10px var(--space-4); }
.skip:focus { top: var(--space-4); }

/* ---------- Typografie ---------- */
.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: var(--text-base); line-height: 1.4; font-weight: var(--weight-bold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; margin-bottom: 14px; }
.title { font-family: var(--font-serif); font-size: var(--heading-xl); line-height: var(--leading-heading); font-weight: var(--weight-heading); letter-spacing: -.005em; }
.text { margin-top: 26px; }
p.gap { height: 1.6em; }
.center { text-align: center; }
.meta { font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 38px; border: var(--border); border-radius: var(--radius-button); background: transparent; text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.btn:hover { background: var(--color-ink); color: var(--color-paper); }
.btn-solid { background: var(--color-ink); color: var(--color-paper); }
.btn-solid:hover { background: var(--color-hover-dark); }
.btn-outline-light { border-color: var(--color-paper); color: var(--color-paper); }
.btn-outline-light:hover { background: var(--color-paper); color: var(--color-ink); }
.btn-block { width: 100%; }
form .btn[disabled] { opacity: .6; cursor: wait; }

/* Text-Link mit Linie: beim Hover zieht sie sich von rechts nach links zurück, danach baut sie sich von links wieder auf */
.link-btn { display: inline-block; margin-top: 30px; padding: 0 0 6px; border: 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; font-size: var(--text-sm); font-weight: var(--weight-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; text-decoration: none; transition: background-size var(--dur-link) var(--ease-in-out); }
.link-btn:hover, .link-btn:focus-visible { background-size: 0% 1px; }

.round-btn { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--radius-round); border: 0; background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-sm); padding: 0; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); }
.round-btn:hover { transform: scale(1.06); box-shadow: var(--shadow-md); }
.round-btn .ico { width: 24px; height: 24px; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Formularfelder ---------- */
.f { display: grid; gap: 6px; font-size: var(--text-sm); min-width: 0; }
.f input, .f textarea, .f select { width: 100%; border: 0; border-bottom: var(--border); background: transparent; padding: 10px 2px; border-radius: var(--radius-field); font-size: var(--text-lg); transition: border-color var(--dur-fast); }
.f textarea { resize: vertical; min-height: 96px; border: var(--border); padding: 10px 12px; }
.f input:focus, .f textarea:focus, .f select:focus { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.f input[aria-invalid="true"], .f textarea[aria-invalid="true"], .f select[aria-invalid="true"] { border-color: var(--color-error); }
/* Auswahlfeld (z. B. Uhrzeit): gleiche Linie wie Eingabefelder, Pfeil aus zwei Verläufen (CSP erlaubt keine data:-Bilder). */
.f select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-status { min-height: var(--space-5); margin-top: 14px; font-size: var(--text-sm); }
.form-status.err { color: var(--color-error); }
.form-status.ok { color: var(--color-success); font-weight: var(--weight-bold); }

/* ==========================================================================
   Bewegung
   Wird nur aktiv, wenn JavaScript läuft (Klasse .motion an <html>) und der
   Besucher keine reduzierte Bewegung eingestellt hat. Sonst ist alles sofort
   sichtbar.
   ========================================================================== */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, var(--reveal-shift), 0); } }
@keyframes settle { from { transform: scale(1.08); } }

/* Inhalte gleiten beim Scrollen sanft ein */
/* Die Hover-Übergänge von Buttons und Text-Links bleiben erhalten (sonst würde .reveal sie überschreiben). */
.motion .reveal { opacity: 0; transform: translate3d(0, var(--reveal-shift), 0); transition: opacity var(--dur-reveal) var(--ease-out) var(--delay, 0ms), transform var(--dur-reveal) var(--ease-out) var(--delay, 0ms), background-size var(--dur-link) var(--ease-in-out), background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.motion .reveal.in { opacity: 1; transform: none; }

/* Bilder öffnen sich wie ein Vorhang von unten und zoomen dabei leicht heraus */
.motion .reveal-media { clip-path: inset(14% 0 0 0); transition: clip-path calc(var(--dur-reveal) * 1.2) var(--ease-out); transition-delay: var(--delay, 0ms); }
.motion .reveal-media img { transform: scale(1.1); transition: transform calc(var(--dur-reveal) * 1.6) var(--ease-out); transition-delay: var(--delay, 0ms); }
.motion .reveal-media.in { clip-path: inset(0 0 0 0); }
.motion .reveal-media.in img { transform: none; }

/* Parallax-Flächen: das Bild ist höher als sein Rahmen und gleitet beim Scrollen */
.parallax { position: relative; overflow: hidden; }
.parallax > img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
