/* Schriften lokal eingebunden (keine Verbindung zu Google Fonts, DSGVO) */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #f6f1e3;          /* Creme */
  --bg-rgb: 246, 241, 227;
  --text: #1f1e1c;        /* Anthrazit */
  --muted: #5c564c;
  --accent: #1d5a57;      /* Petrol, einzige Akzentfarbe */
  --accent-dark: #164744;
  --on-accent: #f6f1e3;
  --line: #ddd4bd;
  --logo-fill: #efe6d2;   /* Beige, Füllung des Logos */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 6vw, 96px);
  --space: clamp(72px, 11vw, 140px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--text); color: var(--bg); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Überschriften: klassische Versalien mit kursivem Akzentwort */
h1, h2 {
  font-family: var(--serif); font-weight: 400;
  text-transform: uppercase; letter-spacing: .01em; line-height: .95;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(2.4rem, 6vw, 4rem); }
h1 em, h2 em {
  font-style: italic; text-transform: none; letter-spacing: 0;
  color: var(--accent);
  font-size: 1.12em;
  display: inline-block; margin-left: .1em;
}
.eyebrow {
  margin: 0 0 1em;
  font-family: var(--serif); font-size: .95rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: "— "; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 4px 24px;
  padding: 8px var(--gutter);
  background: rgba(var(--bg-rgb), .95);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: .14em;
  text-decoration: none; color: var(--text);
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-header ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0 clamp(8px, 2.5vw, 28px);
}
.site-header nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  text-decoration: none; color: var(--text);
  font-family: var(--serif); font-size: .95rem; letter-spacing: .16em; text-transform: uppercase;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--accent); }

/* Startbereich: Titelbild mit Namen als Overlay */
.hero { position: relative; color: #fff; }
.hero-stage {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh;
  display: grid; place-items: center; text-align: center;
}
.hero-media, .hero-media picture, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.hero-text { position: relative; z-index: 1; padding: 64px 16px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 13vw, 8.5rem);
  letter-spacing: .06em; margin: 0; line-height: 1;
}
.hero h1 span { display: inline-block; }
.hero p { font-size: .95rem; letter-spacing: .4em; text-transform: uppercase; margin: 1.2em 0 0; }
.scroll-hint {
  position: absolute; bottom: 20px; left: 50%; z-index: 1;
  width: 48px; height: 48px; margin-left: -24px;
  display: grid; place-items: center; color: #fff;
}
.scroll-hint span { width: 1px; height: 36px; background: currentColor; transform-origin: top; }

/* Momente: einzelne Fotos (ohne Bewegung als ruhige Liste) */
.momente-stage { max-width: 760px; margin: 0 auto; }
.momente h2 { text-align: center; }
.moment { margin: 0 0 clamp(32px, 6vw, 64px); }
.moment img { margin: 0 auto; max-height: 80vh; width: auto; }
.momente-count { display: none; }

.hero h1 { text-transform: none; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 30px;
  border: 1px solid currentColor;
  color: var(--text); text-decoration: none;
  font-family: var(--serif); font-size: 1rem; letter-spacing: .16em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.button.dark:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Abschnitte */
main > section, .page-head { padding: var(--space) var(--gutter); }
main > section > h2, main > section > .eyebrow, .page-head > * { text-align: center; }
.page-head { padding-bottom: 0; }
main > section.hero { padding: 0; }
.page-head h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
.page-head + section { padding-top: 48px; }
.intro { max-width: 640px; margin: 0 auto; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; margin-top: 48px; }

/* Willkommen: Foto mit versetztem Rahmen */
.welcome {
  display: grid; gap: clamp(48px, 7vw, 104px); align-items: center;
  max-width: 1200px; margin: 0 auto;
}
@media (min-width: 800px) { .welcome { grid-template-columns: 5fr 6fr; } }
.welcome-photo { position: relative; margin: 0 18px 18px 0; }
.welcome-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--accent);
}
.welcome-photo img { position: relative; }
.welcome-text .eyebrow, .welcome-text h2 { text-align: left; }
.signature { font-family: var(--serif); font-size: 2.2rem; margin-top: .8em; }

/* Galerie: ruhiges Masonry-Raster */
.gallery {
  columns: 1; column-gap: 20px;
  max-width: 1200px; margin: 48px auto 0;
}
@media (min-width: 600px) { .gallery { columns: 2; } }
@media (min-width: 900px) { .gallery { columns: 3; } }
.gallery a { display: block; margin: 0 0 20px; break-inside: avoid; overflow: hidden; }
.gallery img { width: 100%; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.02); }

/* Großansicht */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 96vw; max-height: 96vh;
}
.lightbox::backdrop { background: rgba(18, 30, 29, .95); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; margin: auto; }
.lightbox button {
  position: fixed; top: 12px; right: 12px;
  width: 48px; height: 48px;
  background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
}

/* Fotos herunterladen: Petrol-Fläche wie Wasser */
.clients { background: var(--accent); color: var(--on-accent); }
.clients h2, .clients h2 em, .clients .eyebrow, .clients .muted, .clients a:not(.button) { color: var(--on-accent); }
.clients .intro { text-align: left; }
.clients .buttons { margin: 8px 0 28px; }
.clients .button.primary { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.clients .button.primary:hover { background: transparent; color: var(--on-accent); }
.clients .button.dark { color: var(--on-accent); }
.clients .button.dark:hover { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.clients :focus-visible { outline-color: var(--on-accent); }
.steps {
  list-style: none; padding: 0; margin: 32px 0;
  display: grid; gap: 16px;
}
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline; }
.steps span { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; }

/* Kontakt */
.contact .intro { text-align: center; }
.contact a.mail {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 5vw, 2.4rem);
  text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
}

/* Fußzeile */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px; text-align: center;
  font-family: var(--serif); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
.site-footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.legal h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.legal h2 { text-align: left; font-size: 1.5rem; margin: 1.6em 0 .4em; line-height: 1.2; }
.todo { background: #fff0b8; color: var(--text); padding: 0 4px; }

@media (max-width: 599px) {
  .site-header { justify-content: center; }
}

/* ---------- Bewegung beim Scrollen ----------
   Nur aktiv, wenn JavaScript läuft und im System keine reduzierte Bewegung gewünscht ist
   (Klasse "motion" am html-Element, gesetzt in js/main.js). */
section[id] { scroll-margin-top: 72px; }

/* Kopfzeile liegt auf der Startseite transparent über dem Bild */
.js .home .site-header {
  position: fixed; left: 0; right: 0;
  background: transparent; border-color: transparent;
  transition: background .4s, border-color .4s;
}
.js .home .site-header .logo,
.js .home .site-header nav a { color: #fff; transition: color .4s; }
.js .home.scrolled .site-header { background: rgba(var(--bg-rgb), .95); border-color: var(--line); }
.js .home.scrolled .site-header .logo,
.js .home.scrolled .site-header nav a { color: var(--text); }
.js .home.scrolled .site-header nav a:hover { color: var(--accent); }

/* Titel erscheint beim Laden Wort für Wort */
.motion .hero h1 span { opacity: 0; animation: einblenden 1.4s cubic-bezier(.2, .7, .2, 1) forwards; }
.motion .hero h1 span:nth-child(2) { animation-delay: .25s; }
.motion .hero h1 span:nth-child(3) { animation-delay: .5s; }
.motion .hero p { opacity: 0; animation: einblenden 1.4s .9s forwards; }
.motion .scroll-hint span { animation: hinweis 2.4s 1.6s ease-in-out infinite both; }
@keyframes einblenden { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hinweis {
  0% { transform: scaleY(0); opacity: 1; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Bild löst sich auf: --p läuft von 0 (oben) bis 1 (Bild ganz verschwunden) */
.motion .hero { height: 200vh; height: 200svh; }
.motion .hero-stage { position: sticky; top: 0; }
.motion .hero-media {
  opacity: calc(1 - var(--p, 0) * 1.15);
  filter: blur(calc(var(--p, 0) * 14px));
  transform: scale(calc(1.02 + var(--p, 0) * .12));
  will-change: opacity, filter, transform;
}
.motion .hero-text {
  opacity: calc(1 - var(--p, 0) * 1.6);
  transform: translateY(calc(var(--p, 0) * -12vh));
}
.motion .hero h1 { letter-spacing: calc(.06em + var(--p, 0) * .5em); }
.motion .scroll-hint { opacity: calc(1 - var(--p, 0) * 4); }

/* Fotos erscheinen nacheinander: --r = Einblenden (0–1), --d = nach hinten treten (0–1) */
/* Die Fotostrecke beginnt schon, während sich das Titelbild auflöst (Überlappung um eine Bildschirmhöhe) */
.motion .momente {
  position: relative; z-index: 1;
  height: calc(var(--n, 5) * 75vh + 100vh); padding: 0;
  margin-top: -100vh; margin-top: -100svh;
}
.motion .momente-stage {
  position: sticky; top: 0; max-width: none;
  height: 100vh; height: 100svh; overflow: hidden;
}
.motion .momente h2 {
  position: absolute; top: clamp(76px, 12vh, 120px); left: 0; right: 0; margin: 0;
  font-size: .8rem; font-family: var(--sans); letter-spacing: .4em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}
.motion .moment {
  position: absolute; inset: 0; margin: 0;
  display: grid; place-items: center; padding: 120px 16px 80px;
  pointer-events: none;
}
.motion .moment picture { display: contents; }
.motion .moment img {
  max-width: min(90vw, 1000px); width: auto; height: auto;
  max-height: calc(100vh - 200px); max-height: calc(100svh - 200px);
  box-shadow: 0 24px 60px -30px rgba(43, 40, 38, .45);
  clip-path: inset(calc((1 - var(--r, 0)) * 100%) 0 0 0);
  transform: translateY(calc((1 - var(--r, 0)) * 60px)) scale(calc(1 - var(--d, 0) * .1));
  opacity: calc(1 - var(--d, 0) * .85);
  will-change: clip-path, transform, opacity;
}
.motion .momente-count {
  display: block; position: absolute; bottom: 24px; left: 0; right: 0; margin: 0;
  text-align: center; font-size: .8rem; letter-spacing: .3em; color: var(--muted);
}

/* Abschnitte gleiten sanft herein */
.motion .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s, transform 1s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.sichtbar { opacity: 1; transform: none; }
.motion .gallery a.reveal { transition-duration: .9s; }

/* ---------- Goldene Spirale im Titelbild ----------
   Der Pol (Zentrum) der Spirale liegt auf dem i-Punkt von "phi" (Element .pol).
   Pol im SVG bei 72,39 % der Breite und 72,39 % der Höhe. */
.hero h1 .pol { position: relative; font-style: inherit; display: inline-block; }
.spirale {
  position: absolute; left: 40%; top: 26%;   /* Mitte des i-Punkts */
  /* so groß, dass die ganze Spirale samt Rahmen im Titelbild Platz hat */
  width: min(76vw, 80vh); height: auto; aspect-ratio: 1.618 / 1;
  transform: translate(-72.39%, -72.39%);
  pointer-events: none; overflow: visible;
  fill: none; stroke: var(--on-accent);
}
.spirale-rahmen, .spirale-raster { stroke-width: 1; opacity: .22; vector-effect: non-scaling-stroke; }
.spirale-linie { stroke-width: 1.4; opacity: .7; vector-effect: non-scaling-stroke; }

/* Spirale zeichnet sich nach dem Titel langsam ins Bild */
.motion .spirale-linie { stroke-dasharray: 1; stroke-dashoffset: 1; animation: spirale-zeichnen 3.2s 1.2s cubic-bezier(.5, 0, .2, 1) forwards; }
.motion .spirale-rahmen, .motion .spirale-raster { opacity: 0; animation: spirale-raster 2s 2.6s forwards; }
@keyframes spirale-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes spirale-raster { to { opacity: .22; } }

/* Einige Eindrücke: alle Bilder im gleichen Format */
.gallery.gallery-gleich {
  columns: auto; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.gallery-gleich a { margin: 0; }
.gallery-gleich img { aspect-ratio: 4 / 5; height: auto; object-fit: cover; }

/* ---------- Feinschliff ---------- */
/* Kopfzeile über dem Titelbild besser lesbar: sanfter Verlauf oben */
.hero-media::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, .38), rgba(0, 0, 0, 0));
  pointer-events: none;
}
/* Rahmen der Spirale nur angedeutet, damit er nicht mit der Navigation kollidiert */
.spirale-rahmen { opacity: .12; }

@media (max-width: 599px) {
  /* Handy: Logo und Navigation kompakt und mittig */
  .site-header { flex-direction: column; gap: 0; padding-top: 4px; padding-bottom: 4px; }
  .site-header ul { justify-content: center; gap: 0 4px; }
  .site-header ul { flex-wrap: nowrap; }
  .site-header nav a { font-size: .74rem; letter-spacing: .05em; padding: 0 5px; white-space: nowrap; }
  /* "Willkommen" erreicht man auf dem Handy über das Logo, so passt die Navigation in eine Zeile */
  .site-header li:first-child { display: none; }
  /* Buttons volle Breite, Text bleibt einzeilig */
  .buttons { flex-direction: column; align-items: stretch; }
  .button { padding: 0 16px; letter-spacing: .1em; text-align: center; }
}
@media (max-width: 359px) {
  .site-header ul { flex-wrap: wrap; }
}

/* Zitat in der Begrüßung */
.zitat { margin: 0 0 1.6em; padding-left: 20px; border-left: 1px solid var(--accent); }
.zitat blockquote { margin: 0; }
.zitat p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.4; }
.zitat figcaption {
  margin-top: .6em; font-family: var(--serif); font-size: .9rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.zitat figcaption::before { content: "— "; }

/* Sanfter Bildwechsel in „Momente“: das neue Foto richtet sich leicht gedreht auf,
   das vorige wird weich unscharf und blasser, während es nach hinten tritt */
.motion .moment img {
  transform:
    translateY(calc((1 - var(--r, 0)) * 60px))
    rotate(calc((1 - var(--r, 0)) * -1.5deg))
    scale(calc(1.04 - var(--r, 0) * .04 - var(--d, 0) * .08));
  filter: blur(calc(var(--d, 0) * 6px)) saturate(calc(1 - var(--d, 0) * .4));
  will-change: clip-path, transform, opacity, filter;
}

/* ---------- Logo ---------- */
.logo { gap: 12px; }
.logo-zeichen { width: auto; height: 34px; flex: none; }
.site-footer .logo-bild { display: block; width: 88px; height: auto; margin: 0 auto 16px; }
@media (max-width: 599px) {
  .logo-zeichen { height: 28px; }
}

/* Bildwechsel „Aufdecken“ (data-uebergang="aufdecken" in index.html): das neue Foto öffnet sich
   von unten nach oben und legt sich über das vorige; das vorige wird unscharf, dehnt sich aus und blendet aus */
.motion .momente[data-uebergang="aufdecken"] .moment img {
  /* wächst nach unten und zur Seite, die Oberkante bleibt unter dem Schriftzug */
  transform-origin: 50% 0;
  /* --e läuft genau so lange wie das Aufdecken des nächsten Fotos (endet bei --d ≈ .8) */
  --e: clamp(0, var(--d, 0) / .8, 1);
  clip-path: inset(calc((1 - var(--r, 0)) * 100%) 0 0 0);
  transform: scale(calc(1 + var(--e) * .35));
  filter: blur(calc(var(--e) * 10px));
  /* das alte Foto verliert an Deckkraft, bis das neue ganz erschienen ist */
  opacity: calc(1 - var(--e));
}
.motion .momente[data-uebergang="aufdecken"] .moment:first-of-type img { clip-path: none; }

/* Sanfter Rahmen um die Fotos in „Momente“: helles Passepartout mit feiner Linie */
.moment img {
  box-sizing: border-box;
  border: clamp(8px, 1.4vw, 16px) solid #fbf8f0;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  border-radius: 2px;
}

/* Derselbe sanfte Rahmen für Portfolio und „Einige Eindrücke“.
   Der Rahmen sitzt am Link, damit der Zoom beim Überfahren innerhalb des Passepartouts bleibt. */
.gallery a {
  border: clamp(8px, 1.2vw, 14px) solid #fbf8f0;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  border-radius: 2px;
  box-shadow: 0 18px 40px -26px rgba(43, 40, 38, .45);
}

/* Schriftzug „Momente“: blendet mit dem ersten Foto ein und bleibt beim Wischen über den Fotos sichtbar */
.motion .momente h2 {
  z-index: 3;
  opacity: var(--m, 0);
  transform: translateY(calc((1 - var(--m, 0)) * 16px));
  font-size: .95rem;
  color: var(--text);
  text-shadow: 0 0 10px rgba(var(--bg-rgb), .95), 0 0 24px rgba(var(--bg-rgb), .8);
}

/* Kundengalerie (galerie.php) */
.code-form {
  width: min(100% - 32px, 440px); margin: 28px auto 0; padding-bottom: var(--space);
  display: grid; gap: 12px; text-align: center;
}
.code-form label { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.code-form input {
  font: 500 1.15rem var(--sans); letter-spacing: .18em; text-align: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px;
  background: #fbf8f0; color: var(--text);
}
.code-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.code-form input[aria-invalid="true"] { border-color: #a4473b; }
.code-fehler { margin: 0; color: #a4473b; font-size: .9rem; }
.code-form .button { justify-self: center; }
.galerie-aktionen { justify-content: center; margin-top: 24px; }
.kunden-foto { margin: 0 0 24px; break-inside: avoid; }
.kunden-foto a:not([download]) { margin-bottom: 6px; }
.gallery .kunden-foto figcaption { text-align: center; font-size: .8rem; letter-spacing: .1em; }
.gallery .kunden-foto figcaption a {
  border: 0; outline: 0; box-shadow: none; display: inline-flex; min-height: 44px; align-items: center;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.gallery .kunden-foto figcaption a:hover { color: var(--accent); }

/* „Momente“ steht immer über den Fotos: Schriftzug direkt unter der Kopfzeile, Fotos mit Abstand darunter */
.motion .momente h2 { top: calc(var(--kopf, 64px) + clamp(14px, 3vh, 28px)); }
.motion .moment { padding: calc(var(--kopf, 64px) + clamp(52px, 8vh, 76px)) 16px 64px; place-items: start center; }
.motion .moment img {
  max-height: calc(100vh - var(--kopf, 64px) - 150px);
  max-height: calc(100svh - var(--kopf, 64px) - 150px);
}

/* Verwaltung (verwaltung.php) */
.verwaltung .legal h2 { margin-top: 2em; }
.verwaltung-form { display: grid; gap: 8px; max-width: 520px; }
.verwaltung-form label { margin-top: 8px; font-size: .85rem; letter-spacing: .08em; }
.verwaltung-form input, .verwaltung-form select {
  font: 1rem var(--sans); padding: 12px; border: 1px solid var(--line); border-radius: 2px; background: #fbf8f0; color: var(--text);
}
.verwaltung-form .button { justify-self: start; margin-top: 16px; }
.code-kaestchen { display: flex; gap: 8px; margin: 8px 0 16px; }
.code-kaestchen span {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--accent); border-radius: 4px; background: #fff;
  font: 600 1.7rem var(--serif); font-variant-numeric: lining-nums; color: var(--accent);
}
.ergebnis { padding: 20px; border: 1px solid var(--line); background: #fbf8f0; }
.hinweis { color: var(--accent); }
.mailtext { white-space: pre-wrap; font-size: .9rem; background: var(--bg); padding: 12px; border: 1px solid var(--line); }
.galerie-liste { width: 100%; border-collapse: collapse; font-size: .95rem; }
.galerie-liste th, .galerie-liste td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.galerie-liste .abgelaufen { color: var(--muted); }
.link-knopf { font: inherit; background: none; border: 0; padding: 0; min-height: 44px; color: #a4473b; text-decoration: underline; cursor: pointer; }

/* Premium: Fotos kippen sich in 3D beim Hereingleiten und folgen der Maus mit einem leichten Lichtschimmer */
.gallery a { position: relative; }
.motion .gallery a.reveal {
  transform-origin: 50% 100%;
  transform: perspective(1200px) translateY(48px) rotateX(14deg);
  transition: opacity 1.1s, transform 1.1s cubic-bezier(.2, .7, .2, 1), box-shadow .6s;
}
.motion .gallery a.reveal.sichtbar {
  transform: perspective(1000px) rotateX(var(--kx, 0deg)) rotateY(var(--ky, 0deg)) scale(var(--ks, 1));
}
.motion .gallery a.kippt {
  transition: transform .18s ease-out, box-shadow .4s, opacity 1s;
  transition-delay: 0s !important;
  box-shadow: 0 34px 60px -30px rgba(43, 40, 38, .55);
  z-index: 1;
}
.gallery a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 250, 235, .38), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity .5s;
}
.gallery a.kippt::after { opacity: 1; }

/* Bildschutz: kein Ziehen, Markieren oder langes Drücken zum Sichern (außer in der Kundengalerie) */
.geschuetzt img, .lightbox img {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}

/* Rechnung: Formular und A4-Druckansicht */
.verwaltung-form textarea { font: 1rem var(--sans); padding: 12px; border: 1px solid var(--line); background: #fbf8f0; color: var(--text); border-radius: 2px; }
.rechnung-positionen { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.rechnung-positionen legend { font-size: .85rem; letter-spacing: .08em; margin-bottom: 8px; }
.rechnung-zeile { display: grid; grid-template-columns: 1fr 64px 96px; gap: 8px; }
.rechnung-zeile input { min-width: 0; }
.rechnung-leiste { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; max-width: 210mm; margin: 24px auto 12px; padding: 0 16px; }
.rechnung-warnung { max-width: 210mm; margin: 0 auto 12px; padding: 0 16px; }
.rechnung {
  box-sizing: border-box; max-width: 210mm; min-height: 297mm; margin: 0 auto 48px;
  padding: 18mm 20mm 16mm; background: #fffdf8; color: var(--text);
  box-shadow: 0 24px 60px -30px rgba(43, 40, 38, .35); display: flex; flex-direction: column;
  font-size: 10.5pt; line-height: 1.5;
}
.rechnung-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.rechnung-marke { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 15pt; letter-spacing: .12em; text-transform: uppercase; }
.rechnung-marke svg { height: 44px; width: auto; color: var(--text); }
.rechnung-absender { margin: 0; text-align: right; font-size: 9pt; color: var(--muted); }
.rechnung-ruecksende { margin: 22mm 0 2mm; font-size: 7.5pt; color: var(--muted); }
.rechnung-adresse { min-height: 25mm; }
.rechnung-daten { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 2px 16px; margin: 0 0 10mm; font-size: 9.5pt; }
.rechnung-daten dt { color: var(--muted); }
.rechnung-daten dd { margin: 0; text-align: right; }
.rechnung h1 { font-family: var(--serif); font-weight: 400; font-size: 24pt; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4mm; text-align: left; }
.rechnung-posten { width: 100%; border-collapse: collapse; margin: 6mm 0 4mm; }
.rechnung-posten th { font-weight: 400; font-size: 8.5pt; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; border-bottom: 1px solid var(--text); padding: 6px 4px; }
.rechnung-posten td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rechnung-posten th:nth-child(n+3), .rechnung-posten td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.rechnung-posten tfoot td { border: 0; text-align: right; padding: 4px; }
.rechnung-posten .rechnung-gesamt td { font-weight: 600; border-top: 1px solid var(--text); padding-top: 8px; color: var(--accent); }
.rechnung-bezahlt { color: var(--accent); }
.rechnung .signature { font-size: 20pt; }
.rechnung-fuss { margin-top: auto; padding-top: 6mm; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 8pt; color: var(--muted); }
.rechnung-fuss p { margin: 0; }
@media (max-width: 700px) { .rechnung { padding: 24px 16px; min-height: 0; } .rechnung-ruecksende { margin-top: 32px; } .rechnung-fuss { flex-direction: column; } }
@page { size: A4; margin: 0; }
@media print {
  body.verwaltung { background: #fff; }
  .nicht-drucken { display: none !important; }
  .rechnung { box-shadow: none; margin: 0; max-width: none; width: 210mm; height: 297mm; background: #fff; }
}

/* Angebote: ruhige Karten im Passepartout-Stil */
.angebote {
  display: grid; gap: 20px; max-width: 1200px; margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.angebot {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 36px); background: #fbf8f0;
  border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 18px 40px -30px rgba(43, 40, 38, .45);
  transition: border-color .3s, box-shadow .3s;
}
.angebot-nr { margin: 0 0 .6em; font-family: var(--serif); letter-spacing: .3em; color: var(--muted); }
.angebot h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem); text-transform: none; line-height: 1.1;
  text-align: left; margin: 0 0 .6em; color: var(--text);
}
.angebot p { margin: 0 0 1em; }
.angebot ul { list-style: none; margin: 0 0 1.4em; padding: 0; font-size: .95rem; color: var(--muted); }
.angebot li { padding-left: 1.4em; position: relative; }
.angebot li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.angebot .angebot-preis { margin: -.2em 0 1.2em; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--accent); }
.angebote-hinweis { max-width: 1200px; margin: 24px auto 0; text-align: center; }
.angebot-wahl {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--serif); font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
.angebot-wahl::after { content: " →"; white-space: pre; transition: transform .3s; }
.angebot-wahl:hover::after { transform: translateX(4px); }
.angebot.gewaehlt { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -30px rgba(43, 40, 38, .45); }
.angebot.gewaehlt .angebot-wahl::after { content: " ✓"; }

/* Anfrageformular */
.anfrage-form { max-width: 760px; margin: 40px auto 0; display: grid; gap: 24px; }
.wahl-raster { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.wahl-raster legend { margin-bottom: 12px; font-family: var(--serif); font-size: 1.25rem; }
.wahl { position: relative; display: flex; cursor: pointer; }
.wahl span { flex: 1; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span {
  display: flex; align-items: center; min-height: 52px; padding: 12px 16px 12px 48px;
  background: #fbf8f0; border: 1px solid var(--line); border-radius: 2px; line-height: 1.3;
  transition: border-color .2s, background .2s;
}
.wahl span::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 1px solid var(--muted); border-radius: 2px; background: #fff;
}
.wahl input:checked + span { border-color: var(--accent); background: #eef3ef; }
.wahl input:checked + span::before {
  background: var(--accent); border-color: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}
.wahl input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wahl:hover span { border-color: var(--muted); }
.anfrage-felder { display: grid; gap: 8px; }
.anfrage-felder label { margin-top: 8px; font-size: .85rem; letter-spacing: .08em; }
.anfrage-felder input, .anfrage-felder textarea {
  font: 1rem var(--sans); padding: 12px; border: 1px solid var(--line); border-radius: 2px; background: #fbf8f0; color: var(--text);
}
.anfrage-felder input[aria-invalid="true"] { border-color: #a4473b; }
.hinweis-klein { margin: 0; font-size: .85rem; }
.anfrage-form .button { justify-self: start; }
.anfrage-status:empty { display: none; }
.anfrage-status { margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: #fbf8f0; }
.anfrage-status.fehler { border-color: #a4473b; color: #a4473b; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 599px) { .anfrage-form .button { justify-self: stretch; } }
/* Handy: „Fotos herunterladen“ wird zu „Fotos“, damit das Menü in eine Zeile passt */
@media (max-width: 599px) { .nav-lang { display: none; } }

/* Portfolio: aufgeräumtes Raster, alle Fotos gleich groß, drei nebeneinander */
.gallery.gallery-raster { grid-template-columns: 1fr; max-width: 1200px; }
@media (min-width: 600px) { .gallery.gallery-raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery.gallery-raster { grid-template-columns: repeat(3, 1fr); } }
/* Bildausschnitt im Raster, wenn das Motiv nicht mittig liegt */
.gallery-gleich img.fokus-rechts { object-position: 85% 50%; }
.gallery-gleich img.fokus-links { object-position: 22% 50%; }
/* Verwaltung: Foto-Upload */
.verwaltung-form input[type="file"] { padding: 10px; background: #fff; }
.upload-stand progress { width: 100%; height: 8px; accent-color: var(--accent); }
.upload-text { margin: 4px 0 0; font-size: .9rem; }

/* Angebote kompakt: Titel und ein Satz */
.angebote { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.angebot { padding: clamp(20px, 2.4vw, 28px); }
.angebot-nr { margin-bottom: .3em; font-size: .85rem; }
.angebot h2 { font-size: clamp(1.5rem, 2.2vw, 1.8rem); margin-bottom: .35em; }
.angebot p { margin-bottom: .6em; color: var(--muted); }
@media (max-width: 599px) {
  .angebot { padding: 18px 20px; }
  .angebot-wahl { min-height: 40px; }
}

/* „Eine andere Idee“: offene Karte über die ganze Breite */
.angebot-frei { grid-column: 1 / -1; align-items: center; text-align: center; border-style: dashed; background: transparent; }
.angebot-frei h2 { text-align: center; }
.angebot-frei p:not(.angebot-nr) { max-width: 34em; }
.angebot-frei .angebot-wahl { align-self: center; }

/* Momente als Triptychon: drei Fotos nebeneinander, nichts hält beim Scrollen fest */
.triptychon { padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 48px); position: relative; z-index: 1; }
.triptychon h2 {
  margin: 0 0 clamp(28px, 4vw, 48px); text-align: center;
  font-size: .8rem; font-family: var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--muted);
}
.triptychon-reihe {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px);
  max-width: 1200px; margin: 0 auto; align-items: start;
}
.triptychon-bild { margin: 0; }
.triptychon-bild img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; box-sizing: border-box;
  border: clamp(8px, 1.2vw, 14px) solid #fbf8f0; outline: 1px solid var(--line); outline-offset: -1px; border-radius: 2px;
  box-shadow: 0 24px 60px -34px rgba(43, 40, 38, .5);
}
.motion .triptychon-bild:nth-child(2) { transition-delay: .15s; }
.motion .triptychon-bild:nth-child(3) { transition-delay: .3s; }
/* Das Titelbild löst sich auf, während die Fotos schon heraufkommen */
.motion .triptychon { margin-top: -85vh; margin-top: -85svh; }
/* Handy: zum Wischen nebeneinander statt einer langen Strecke untereinander */
@media (max-width: 699px) {
  .triptychon { padding-left: 0; padding-right: 0; }
  .triptychon-reihe {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 13% 48px; margin-bottom: -40px; scrollbar-width: none;
  }
  .triptychon-reihe::-webkit-scrollbar { display: none; }
  .triptychon-bild { scroll-snap-align: center; }
}
/* Handy: Leiste zeigt, wie weit man wischen kann; jedes Bild rastet einzeln ein und federt nach */
.triptychon-leiste { display: none; }
@media (max-width: 699px) {
  .triptychon-bild { scroll-snap-stop: always; }
  .triptychon-leiste {
    display: block; position: relative; width: 120px; height: 2px; margin: 20px auto 0;
    background: var(--line); border-radius: 2px; overflow: hidden;
  }
  .triptychon-leiste span {
    position: absolute; inset: 0 auto 0 0; width: var(--sichtbar, 34%); border-radius: 2px; background: var(--accent);
    transform: translateX(calc(var(--stand, 0) * (100% / var(--sichtbar-anteil, .34) - 100%)));
  }
  .triptychon-bild.federt img { animation: federn .55s cubic-bezier(.3, 1.5, .5, 1); }
}
@keyframes federn { 0% { transform: scale(.96); } 60% { transform: scale(1.015); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .triptychon-bild.federt img { animation: none; } }
.gallery-gleich img.fokus-bruecke { object-position: 72% 50%; }
.gallery-gleich img.fokus-schatten { object-position: 70% 50%; }

/* Willkommen: Timos Portrait liegt wie ein Abzug über dem Tor-Foto */
.welcome-portrait {
  position: absolute; z-index: 2; right: -18px; bottom: -40px; width: 44%; display: block;
  transform: rotate(3deg); box-shadow: 0 24px 50px -24px rgba(43, 40, 38, .55);
}
.welcome-portrait img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; box-sizing: border-box;
  border: clamp(6px, 1vw, 12px) solid #fbf8f0; outline: 1px solid var(--line); outline-offset: -1px; border-radius: 2px;
}
@media (max-width: 799px) { .welcome-photo { margin-bottom: 64px; } .welcome-portrait { width: 46%; right: -6px; } }

/* Feine Papierstruktur: leichtes Korn im Cremehintergrund wie bei analogem Fotopapier */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)' opacity='.38'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Portfolio-Filter */
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 0 auto clamp(28px, 4vw, 44px); }
.filter button {
  font: .82rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer;
  transition: color .3s, border-color .3s, background .3s;
}
.filter button:hover { color: var(--accent); border-color: var(--accent); }
.filter button[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.gallery a.ausgeblendet { display: none; }
.motion .gallery a.einblenden { animation: filter-ein .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes filter-ein { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* Sternschnuppe: kurz nach dem Zeichnen fliegt ein Lichtpunkt die Spirale entlang und blitzt im i-Punkt auf.
   Drei Striche mit gleicher Spitze ergeben einen nach hinten auslaufenden Schweif. */
.spirale-schweif, .spirale-stern { fill: none; stroke: #fff4d6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; }
.schweif-lang { stroke-width: 1.6; stroke-dasharray: .16 3; }
.schweif-kurz { stroke-width: 2.6; stroke-dasharray: .06 3; filter: drop-shadow(0 0 4px rgba(255, 228, 160, .9)); }
.spirale-stern { stroke: #fff; stroke-width: 4.5; stroke-dasharray: .008 3;
  filter: drop-shadow(0 0 5px #fff3c4) drop-shadow(0 0 14px rgba(240, 196, 100, .95)); }
.spirale-blitz { fill: #fffaf0; opacity: 0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 6px #fff3c4) drop-shadow(0 0 16px rgba(240, 196, 100, .9)); }
.motion .schweif-lang { animation: stern-lang 1.7s 3s cubic-bezier(.45, 0, .55, 1) forwards; }
.motion .schweif-kurz { animation: stern-kurz 1.7s 3s cubic-bezier(.45, 0, .55, 1) forwards; }
.motion .spirale-stern { animation: stern-kopf 1.7s 3s cubic-bezier(.45, 0, .55, 1) forwards; }
.motion .spirale-blitz { animation: stern-blitz .45s 4.62s ease-out forwards; }
@keyframes stern-lang { 0% { stroke-dashoffset: 0.16; opacity: 0; } 6%, 94% { opacity: 0.35; } 100% { stroke-dashoffset: -0.86; opacity: 0; } }
@keyframes stern-kurz { 0% { stroke-dashoffset: 0.06; opacity: 0; } 6%, 94% { opacity: 0.7; } 100% { stroke-dashoffset: -0.96; opacity: 0; } }
@keyframes stern-kopf { 0% { stroke-dashoffset: 0.008; opacity: 0; } 6%, 94% { opacity: 1; } 100% { stroke-dashoffset: -1.012; opacity: 0; } }
@keyframes stern-blitz {
  0% { opacity: 0; transform: scale(.4); }
  30% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(1); }
}

/* i-Punkt von „phi“: das i steht zunächst ohne Punkt (ı), der Punkt entsteht beim Aufblitzen der Sternschnuppe */
.i-punkt {
  position: absolute; left: 40%; top: 26%; width: .105em; height: .105em; border-radius: 50%;
  background: currentColor; transform: translate(-50%, -50%);
}
.motion .i-punkt { opacity: 0; animation: i-punkt .5s 4.7s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes i-punkt { from { opacity: 0; transform: translate(-50%, -50%) scale(0); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.hero h1 .vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Großansicht öffnet sich sanft; Momente-Fotos sind anklickbar */
.lightbox img { transition: transform .3s, opacity .3s; touch-action: none; }
.motion .lightbox[open] img { animation: gross-ein .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes gross-ein { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.triptychon-bild a { display: block; cursor: zoom-in; }

/* Großansicht: Blättern */
.lightbox .lightbox-zurueck, .lightbox .lightbox-weiter {
  top: 50%; right: auto; width: 56px; height: 72px; margin-top: -36px;
  font-size: 3rem; font-family: var(--serif); color: rgba(255, 255, 255, .85); transition: color .2s, transform .2s;
}
.lightbox .lightbox-zurueck { left: 8px; }
.lightbox .lightbox-weiter { left: auto; right: 8px; }
.lightbox .lightbox-zurueck:hover { color: #fff; transform: translateX(-3px); }
.lightbox .lightbox-weiter:hover { color: #fff; transform: translateX(3px); }
.lightbox .lightbox-zurueck[hidden], .lightbox .lightbox-weiter[hidden] { display: none; }
.lightbox-stand {
  position: fixed; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center;
  font: .8rem var(--sans); letter-spacing: .3em; color: rgba(255, 255, 255, .7);
}
.motion .lightbox img.von-rechts { animation: blatt-rechts .35s cubic-bezier(.2, .7, .2, 1); }
.motion .lightbox img.von-links { animation: blatt-links .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes blatt-rechts { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes blatt-links { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) { .lightbox .lightbox-zurueck, .lightbox .lightbox-weiter { width: 44px; font-size: 2.4rem; } }

/* Angebote: So läuft's ab */
.ablauf { padding-top: clamp(72px, 10vw, 120px); padding-bottom: 0; }
.ablauf h2, .gutschein h2 { text-align: center; }
.ablauf-schritte {
  list-style: none; margin: clamp(28px, 4vw, 48px) auto 0; padding: 0; max-width: 1100px;
  display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  counter-reset: schritt;
}
.ablauf-schritte li { text-align: center; position: relative; }
.ablauf-zeichen {
  display: inline-grid; place-items: center; position: relative; width: 72px; height: 72px; margin-bottom: 14px;
  color: #b99a5b; border: 1px solid rgba(185, 154, 91, .5); border-radius: 50%;
}
/* Goldene Spirale wächst von innen nach außen: Schritt 1 zu einem Drittel, 2 zu zwei Dritteln, 3 ganz */
.ablauf-zeichen svg { width: 100%; height: 100%; overflow: visible; }
.ablauf-spirale { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: var(--anteil) 2; }
.ablauf-spirale.drittel { --anteil: .34; }
.ablauf-spirale.zweidrittel { --anteil: .67; }
.ablauf-spirale.voll { --anteil: 1; }
.motion .ablauf-schritte li .ablauf-spirale { stroke-dashoffset: var(--anteil); transition: stroke-dashoffset 1.6s cubic-bezier(.5, 0, .2, 1) .3s; }
.motion .ablauf-schritte li.sichtbar .ablauf-spirale { stroke-dashoffset: 0; }
.ablauf-zeichen small {
  position: absolute; right: -4px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: .75rem var(--sans); color: var(--on-accent); background: var(--accent);
}
.ablauf-schritte h3 { margin: 0 0 .4em; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.ablauf-schritte p { margin: 0 auto; max-width: 30ch; color: var(--muted); }

/* Angebote: Gutschein als Petrol-Band */
.gutschein { margin-top: clamp(56px, 7vw, 88px); background: var(--accent); color: var(--on-accent); padding: clamp(56px, 8vw, 96px) 16px; }
.gutschein-inhalt { max-width: 640px; margin: 0 auto; text-align: center; }
.gutschein .eyebrow { color: rgba(246, 241, 227, .75); }
.gutschein h2 { color: var(--on-accent); }
.gutschein h2 em { color: #e2c98f; }
.gutschein p { color: rgba(246, 241, 227, .9); }
.gutschein-knopf { margin-top: 12px; color: var(--accent); background: var(--on-accent); border-color: var(--on-accent); }
.gutschein-knopf:hover { background: transparent; color: var(--on-accent); }

/* Gutschein: Betrag erscheint erst, wenn „Gutschein“ angekreuzt ist */
.gutschein-betrag { margin: 0; padding: 20px 20px 22px; background: #fbf8f0; border: 1px solid rgba(185, 154, 91, .5); border-radius: 2px; animation: betrag-ein .4s ease-out; }
.anfrage-form:not(:has(input[value="gutschein"]:checked)) .gutschein-betrag { display: none; }
.gutschein-betrag > legend { float: left; width: 100%; margin-bottom: 10px; font-family: var(--serif); font-size: 1.5rem; }
.gutschein-betrag > legend em { color: var(--accent); }
.gutschein-unter { clear: both; margin: 0 0 12px; font-size: .85rem; letter-spacing: .08em; }
.betrag-raster { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.betrag { position: relative; cursor: pointer; }
.betrag input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.betrag span {
  display: inline-block; min-width: 72px; padding: 9px 16px; text-align: center;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: background .2s, border-color .2s, color .2s;
}
.betrag:hover span { border-color: var(--muted); }
.betrag input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.betrag input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.betrag-frei { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; font-size: .85rem; letter-spacing: .08em; }
.betrag-feld { position: relative; display: inline-flex; align-items: center; }
.betrag-feld input { width: 9em; font: 1rem var(--sans); padding: 10px 32px 10px 12px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--text); }
.betrag-feld span { position: absolute; right: 12px; color: var(--muted); pointer-events: none; }
.betrag-feld input[aria-invalid="true"] { border-color: #a4473b; }
@keyframes betrag-ein { from { opacity: 0; transform: translateY(-6px); } }
.gutschein-felder { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.gutschein-felder label { margin-top: 6px; font-size: .85rem; letter-spacing: .08em; }
.gutschein-felder input, .gutschein-felder textarea {
  font: 1rem var(--sans); padding: 12px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--text);
}
.gutschein-felder [aria-invalid="true"] { border-color: #a4473b; }

/* Verwaltung: Gutscheine */
.gutschein-anfragen { display: grid; gap: 16px; }
.gutschein-anfrage { padding: 20px; border: 1px solid #b99a5b; background: #fbf8f0; }
.gutschein-anfrage h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.gutschein-anfrage .verwaltung-form { max-width: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); column-gap: 16px; }
.gutschein-anfrage .verwaltung-form label { display: grid; gap: 4px; margin: 0; }
.gutschein-anfrage .verwaltung-form .breit { grid-column: 1 / -1; }
.gutschein-anfrage .knoepfe { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.gutschein-anfrage .knoepfe .button { margin: 8px 0 0; }
.gutschein-liste td form { display: inline; }
.haken { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); }
.haken::before { content: ""; width: 18px; height: 18px; border: 1px solid var(--muted); border-radius: 2px; background: #fff; }
.haken.an::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px #fff; }

/* Gutschein zum Ausdrucken (gutschein.php) */
body.gutschein-seite { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.gutschein-karte {
  width: min(100%, 640px); padding: 10px; background: #fff; border: 1px solid #b99a5b; box-shadow: 0 20px 50px -30px rgba(31, 30, 28, .45);
}
.gutschein-karte-innen { padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 48px); border: 1px solid #e6d8b8; text-align: center; }
.gutschein-karte .logo-zeichen { width: 44px; height: auto; color: var(--text); }
.gutschein-karte .eyebrow { margin: 10px 0 4px; }
.gutschein-karte h1 { margin: 0 0 28px; font-size: clamp(2.4rem, 7vw, 3.4rem); letter-spacing: .12em; }
.gutschein-klein { margin: 0; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.gutschein-name { margin: 2px 0 16px; font: italic 400 clamp(1.6rem, 5vw, 2.1rem)/1.25 var(--serif); color: var(--accent); }
.gutschein-name.von { color: var(--text); font-size: clamp(1.3rem, 4vw, 1.6rem); }
.gutschein-widmung { max-width: 30em; margin: 6px auto 26px; font: italic 1.2rem/1.5 var(--serif); }
.gutschein-wert { margin: 8px 0 0; font: 400 clamp(2.8rem, 9vw, 3.8rem)/1 var(--serif); color: #b99a5b; }
.gutschein-zweck { margin: 6px 0 24px; color: var(--muted); }
.gutschein-code { margin: 0; font-size: .9rem; color: var(--muted); }
.gutschein-code strong { font-size: 1.1rem; letter-spacing: .15em; color: var(--text); }
.gutschein-aktionen { display: flex; justify-content: center; margin-top: 24px; }
@media print {
  body.gutschein-seite { padding: 0; min-height: 0; background: #fff; }
  .gutschein-karte { box-shadow: none; }
  .gutschein-aktionen { display: none; }
}

/* Gutschein-Kauf: Zusammenfassung und Bestellknopf statt „Anfrage senden“ */
.gutschein-summe { margin: 0; padding: 14px 16px; border-left: 2px solid #b99a5b; background: #fbf8f0; font-size: .95rem; }
.knopf-kauf { display: none; }
/* Kauf erst, wenn der Verkauf in inc/konfig.php eingeschaltet ist (main.js setzt dann .verkauf), sonst bleibt es eine Anfrage */
.anfrage-form:not(.verkauf) .nur-kauf, .anfrage-form.verkauf .nur-anfrage { display: none; }
.anfrage-form:not(.verkauf:has(input[value="gutschein"]:checked)) .gutschein-summe { display: none; }
.anfrage-form.verkauf:has(input[value="gutschein"]:checked) .knopf-anfrage { display: none; }
.anfrage-form.verkauf:has(input[value="gutschein"]:checked) .knopf-kauf { display: inline; }
.widerruf-formular { padding: 20px; border: 1px solid var(--line); background: #fbf8f0; }
.gutschein-anfrage .gutschein-wartet { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
