/* 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; justify-content: center; gap: 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); }
.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-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; }
