/* rosa software – Gestaltung
   Leitidee: „Code, der blüht“. Mint als einzige Akzentfarbe, helles Design.
   Wie im Startbild verläuft der Seitenhintergrund dezent von hell (oben links) nach dunkler (unten rechts). */

:root {
  /* Hell (Standard) */
  --bg: #f5faf7;
  --bg-rgb: 245 250 247;
  --bg-2: #eaf4ef;
  --surface: #ffffff;
  --line: rgba(18, 52, 42, .12);
  --line-strong: rgba(18, 52, 42, .24);
  --text: #12201b;
  --muted: #4d6359;
  --accent: #2fbf8f;          /* Flächen, Linien */
  --accent-text: #0b7a58;     /* Akzent als Schrift auf hellem Grund */
  --accent-soft: rgba(47, 191, 143, .14);
  --btn-bg: #0f7a5a;
  --btn-bg-hover: #0c6a4e;
  --btn-fg: #ffffff;
  --code-bg: rgba(255, 255, 255, .78);
  --chip: rgba(18, 52, 42, .06);
  --shadow: 0 18px 40px -24px rgba(18, 52, 42, .35);
  --error: #c62828;
  --error-bg: rgba(198, 40, 40, .06);

  --f-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --f-sans: "Space Grotesk", "Space Grotesk Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 22px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  isolation: isolate;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 0%, #fbfdfc 0%, transparent 60%),
    linear-gradient(135deg, #f6faf8 0%, #edf3f0 45%, #dbe5e0 100%);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #0b1c16; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Schriftzug */
.wordmark { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.wordmark b { font-family: var(--f-mono); font-style: normal; font-weight: 500; font-size: .78em; color: var(--accent-text); margin-left: 0; }  /* Abstand ist ein echtes Leerzeichen (Screenreader lesen „rosa software“) */
.wordmark.is-inline { font-size: 1.08em; font-weight: 600; color: var(--text); white-space: nowrap; }  /* Firmenname im Fließtext, gleiches Layout wie im Kopf */
.legal .legal-brand { display: flex; width: fit-content; margin: 1.1rem 0 .6rem; color: var(--text); }
.legal .legal-brand + p { margin-top: 0; }  /* Logo und Schriftzug über der Anschrift im Impressum */

/* Knöpfe */
.btn {
  --bg: var(--btn-bg);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--btn-fg); font: 600 1rem/1 var(--f-sans);
  text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease-out), background-color .3s;
}
.btn:hover { transform: translateY(-2px); --bg: var(--btn-bg-hover); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { --bg: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }
.btn-ghost:hover { --bg: var(--chip); }
.btn-sm { padding: .7rem 1.1rem; font-size: .92rem; }
.btn .icon { font-size: 1.25em; }

.eyebrow { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); display: inline-flex; gap: .6rem; align-items: center; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
.h-xl { font-size: clamp(3rem, 7.2vw, 6.6rem); }
.h-lg { font-size: clamp(2.4rem, 6vw, 5.5rem); }
.h-md { font-size: clamp(1.6rem, 3vw, 2.4rem); }
em.accent { font-style: italic; color: var(--accent-text); }
.lead { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: var(--muted); max-width: 46ch; }

/* ---------- Kopfzeile (immer sichtbar) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem var(--gutter);
  transition: border-color .4s;
  background: rgb(var(--bg-rgb) / .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgb(var(--bg-rgb) / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 50px; height: 50px; }
.site-footer .brand img { width: 76px; height: 76px; }  /* 38px + 100 % */
.header-tools { display: flex; align-items: center; gap: .5rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .55rem .9rem; border-radius: 999px; text-decoration: none; font-size: .95rem; color: var(--muted); transition: color .25s, background-color .25s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); background: var(--chip); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 1.3rem; cursor: pointer; transition: background-color .25s, transform .3s var(--ease-out); }
.icon-btn:hover { background: var(--chip); }
.icon-btn:active { transform: scale(.94); }
.nav-toggle { display: none; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline-block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; background: rgb(var(--bg-rgb) / .97); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: .5rem; }
  .nav a { font-family: var(--f-display); font-size: 2rem; color: var(--text); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 74svh, 780px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: -8% 0 0 0; z-index: -2; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 108%; object-fit: cover; object-position: 70% 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, transparent 30%, rgba(18, 38, 31, .35) 62%, rgba(10, 22, 18, .82) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(var(--bg-rgb) / .96) 0%, rgb(var(--bg-rgb) / .75) 40%, rgb(var(--bg-rgb) / .05) 75%); }
.hero-inner { padding: 7rem var(--gutter) 4rem; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero h1 { margin: 1rem 0 1.25rem; max-width: 11ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-code {
  position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 9vh, 5rem);
  font: .82rem/1.7 var(--f-mono); color: var(--text);
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem 1.25rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  min-width: 300px; box-shadow: var(--shadow);
}
.hero-code .k { color: var(--accent-text); } .hero-code .s { color: #b7791f; } .hero-code .c { color: var(--muted); }
.hero-code .caret { display: inline-block; width: .55em; height: 1.1em; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-hint { display: none; position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; font: .7rem var(--f-mono); letter-spacing: .2em; color: var(--muted); justify-items: center; gap: .5rem; }
.scroll-hint span { width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); animation: drip 2s var(--ease-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .hero-code, .scroll-hint { display: none; }
  .hero::after { background: linear-gradient(0deg, rgb(var(--bg-rgb) / .85) 20%, rgb(var(--bg-rgb) / .7) 60%, rgb(var(--bg-rgb) / .35)); }
}

/* ---------- Sektionen ---------- */
section { position: relative; }
.section { padding: clamp(5rem, 12vw, 10rem) 0; }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin: 0; }
#produkte { padding-top: clamp(3.5rem, 7vw, 6rem); border-top: 0; }
.section-alt { background: rgba(255, 255, 255, .35); border-block: 1px solid var(--line); }

/* Statement mit Wort-für-Wort-Einfärbung */
.statement p { font-family: var(--f-display); font-size: clamp(1.8rem, 4.4vw, 4rem); line-height: 1.15; letter-spacing: -.015em; margin: 0; max-width: 22ch; }
.statement .word { color: color-mix(in srgb, var(--text) 50%, transparent); transition: color .2s; }
.statement .word.on { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(3rem, 6vw, 5rem); }
.fact { background: rgba(255, 255, 255, .55); padding: 2rem; }
.fact strong { display: block; font: 500 clamp(2.6rem, 5vw, 4rem)/1 var(--f-display); color: var(--accent-text); }
.fact span { color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Produkte: kompaktes Raster */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease-out), border-color .3s; box-shadow: var(--shadow); }
.product:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.product .media { height: 128px; overflow: hidden; position: relative; background: var(--bg-2); }
.product .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.product:hover .media img { transform: scale(1.05); }
.product .media.logo { display: grid; place-items: center; background: linear-gradient(135deg, #e6f2f4, #d4ebe9); }
.product .media.logo img { width: 92px; height: 92px; object-fit: contain; border-radius: 18px; }
.product:hover .media.logo img { transform: scale(1.06) rotate(-2deg); }
.product .body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.product h3 { font-size: 1.45rem; }
.product p { margin: 0; color: var(--muted); font-size: .95rem; }
.product ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--muted); }
.product .note { font-size: .82rem; }
.product .more { margin-top: auto; align-self: flex-start; }
.product .more-row { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.status { align-self: flex-start; font: 500 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; display: inline-flex; gap: .45rem; align-items: center; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--accent-text); background: var(--accent-soft); }
.status.soon { color: var(--muted); background: var(--chip); }
.product.featured { border-color: var(--accent); }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/* Leistungen: Entwicklung (Fotokarten bleiben in beiden Modi dunkel) */
.dev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.dev-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; isolation: isolate; color: #eef6f2; }
.dev-card .media { position: absolute; inset: -12% 0; z-index: -2; }
.dev-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; filter: grayscale(.4) brightness(.75); }
.dev-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 18, 15, .95) 25%, rgba(8, 18, 15, .15)); }
.dev-card:hover .media img { transform: scale(1.06); filter: grayscale(0) brightness(.85); }
.dev-card .num { font: .75rem var(--f-mono); color: #7deac4; position: absolute; top: 1.25rem; left: 1.5rem; }
.dev-card .icon { font-size: 2rem; color: #7deac4; margin-bottom: .75rem; }
.dev-card h3 { font-size: 1.9rem; margin-bottom: .5rem; }
.dev-card p { margin: 0; color: #cfe0d8; font-size: .98rem; }
.dev-card ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.dev-card li { font: .72rem var(--f-mono); padding: .3rem .6rem; border-radius: 999px; background: rgba(255,255,255,.1); color: #dff7ee; }
@media (max-width: 1100px) { .dev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .dev-grid { grid-template-columns: 1fr; } .dev-card { min-height: 380px; } }
.dev-card h3 { hyphens: manual; }

/* Weitere Leistungen (sekundär): kleinere, helle Kacheln */
.extra { margin-top: clamp(3.5rem, 7vw, 6rem); }
.extra-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: .75rem 2.5rem; margin-bottom: 1.75rem; }
.extra-head .eyebrow { grid-column: 1 / -1; }
.extra-head p { margin: 0; color: var(--muted); max-width: 46ch; justify-self: end; }
.extra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.extra-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding-bottom: 1.25rem; transition: transform .4s var(--ease-out), border-color .3s; }
.extra-card img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: cover; margin-bottom: 1rem; transition: transform 1s var(--ease-out); }
.extra-card h4 { font: 600 1.1rem var(--f-sans); margin: 0 1.25rem .35rem; }
.extra-card p { margin: 0 1.25rem; color: var(--muted); font-size: .94rem; }
@media (hover: hover) { .extra-card:hover { transform: translateY(-4px); border-color: var(--line-strong); } }
@media (max-width: 1100px) { .extra-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .extra-head { grid-template-columns: 1fr; } .extra-head p { justify-self: start; } }
@media (max-width: 520px) { .extra-grid { grid-template-columns: 1fr; } }

/* Wechselnde Bild-Text-Reihen */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(4rem, 9vw, 8rem) 0; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.split-media .badge { position: absolute; left: 1.25rem; bottom: 1.25rem; font: .75rem var(--f-mono); color: #eef6f2; background: rgba(8, 18, 15, .65); backdrop-filter: blur(6px); padding: .5rem .8rem; border-radius: 999px; }
.split h2 { margin: 1rem 0 1.5rem; }
.checklist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; align-items: start; }
.checklist .icon { font-size: 1.5rem; color: var(--accent-text); margin-top: .15rem; }
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } .split-media { aspect-ratio: 16 / 11; } }

/* Sicherheit */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.sec-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; transition: border-color .3s, transform .4s var(--ease-out); }
.sec-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.sec-item .icon { font-size: 2rem; color: var(--accent-text); }
.sec-item h3 { font-size: 1.35rem; margin: 1rem 0 .5rem; font-family: var(--f-sans); font-weight: 600; letter-spacing: 0; }
.sec-item p { margin: 0; color: var(--muted); font-size: .97rem; }
.security-banner { position: relative; height: clamp(320px, 50vw, 560px); border-radius: calc(var(--radius) + 8px); overflow: hidden; color: #eef6f2; }
.security-banner img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; filter: saturate(.6) hue-rotate(95deg); }
.security-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,15,.92), rgba(8,18,15,.1)); }
.security-banner .txt { position: absolute; z-index: 1; left: clamp(1.5rem, 5vw, 4rem); top: 50%; translate: 0 -50%; max-width: 30ch; }
.security-banner .eyebrow, .security-banner em.accent { color: #7deac4; }
@media (max-width: 900px) { .security-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .security-grid { grid-template-columns: 1fr; } }

/* Referenzen / Lebenslauf */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 140px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline .progress { position: absolute; left: 140px; top: 0; width: 1px; height: 100%; background: var(--accent); transform-origin: top; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 2.5rem; padding: 1.75rem 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 135px; top: 2.25rem; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--accent); }
.timeline time { font: 500 .9rem var(--f-mono); color: var(--accent-text); padding-top: .2rem; }
.timeline h3 { font-family: var(--f-sans); font-weight: 600; font-size: 1.25rem; letter-spacing: 0; margin-bottom: .35rem; }
.timeline p { margin: 0; color: var(--muted); }
.todo { color: #8a4b00; font-family: var(--f-mono); font-size: .9em; }
@media (max-width: 640px) {
  .timeline::before, .timeline .progress { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: .35rem; padding-left: 2rem; }
  .timeline li::before { left: 0; top: 2rem; }
}
/* Porträt bei Referenzen und im Kontakt */
.about-head { grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.portrait { margin: 0; display: grid; gap: .9rem; justify-items: start; }
.portrait img { width: 260px; height: 260px; object-fit: cover; border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow); outline: 1px solid var(--line); outline-offset: 6px; }
.portrait figcaption { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.portrait figcaption strong { display: block; color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .about-head { grid-template-columns: 1fr; } .portrait img { width: 200px; height: 200px; } }
.contact-person { display: flex; align-items: center; gap: 1rem; }
.contact-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--accent-soft); }
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 4rem; }
.ref { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: var(--surface); }
.ref .kind { font: .72rem var(--f-mono); color: var(--accent-text); text-transform: uppercase; letter-spacing: .1em; }
.ref h3 { font-family: var(--f-sans); font-weight: 600; font-size: 1.25rem; letter-spacing: 0; margin: .6rem 0 .5rem; }
.ref p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Laufband */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.25rem 0; }
.marquee-inner { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; font: italic 500 clamp(1.6rem, 3vw, 2.6rem) var(--f-display); color: color-mix(in srgb, var(--text) 60%, transparent); }
.marquee-inner span::after { content: "✿"; color: var(--accent); margin-left: 3rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Kontakt & Formular ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-aside .lead { margin: 1.5rem 0 2rem; }
.contact-aside dl { display: grid; gap: 1.25rem; margin: 0; }
.contact-aside dt { font: .75rem var(--f-mono); color: var(--accent-text); text-transform: uppercase; letter-spacing: .1em; }
.contact-aside dd { margin: .2rem 0 0; }
.contact-aside dd a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-aside dd a:hover { border-color: var(--accent); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow); }
.form fieldset { border: 0; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem 1rem; }
.form legend { font: 500 .78rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1.1rem; padding: 0; display: flex; gap: .6rem; align-items: center; width: 100%; }
.form legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { display: grid; gap: .4rem; grid-column: span 6; align-content: start; }
.field.w2 { grid-column: span 2; } .field.w3 { grid-column: span 3; } .field.w4 { grid-column: span 4; }
.field label, .field .label { font-weight: 500; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #fbfdfc; border: 1px solid var(--line-strong); border-radius: 12px; padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-size: .85rem; color: var(--muted); }
.field .err { display: none; font-size: .87rem; color: var(--error); align-items: center; gap: .35rem; }
.field.invalid label, .field.invalid .label { color: var(--error); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); background: var(--error-bg); }
.field.invalid .err { display: flex; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; align-items: start; font-size: .95rem; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--btn-bg); padding: 0; }
.field.invalid .check input { outline: 2px solid var(--error); outline-offset: 2px; }
.form-summary { display: none; border: 1px solid var(--error); background: var(--error-bg); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.form-summary.show { display: block; }
.form-summary strong { color: var(--error); }
.form-summary ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form-actions small { color: var(--muted); }
.form-success { display: none; text-align: center; padding: 3rem 1rem; }
.form-success .icon { font-size: 3.5rem; color: var(--accent-text); }
.form.sent .form-success { display: block; }
.form.sent form { display: none; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) {
  .field.w2, .field.w3, .field.w4 { grid-column: span 6; }
}

/* ---------- Abschluss & Fußzeile ---------- */
.final-cta { text-align: center; padding: clamp(6rem, 14vw, 12rem) var(--gutter); position: relative; overflow: hidden; isolation: isolate; }
.final-cta .bg { position: absolute; inset: -20% 0; z-index: -2; opacity: .3; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%); }
.final-cta .bg img { width: 100%; height: 100%; object-fit: cover; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgb(var(--bg-rgb) / .3), transparent 72%); }
.final-cta h2 { max-width: 14ch; margin: 1.5rem auto 2.5rem; }

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font: 500 .75rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1rem; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 9rem var(--gutter) 6rem; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 1rem 0 2.5rem; }
.legal h2 { font-size: 1.6rem; margin: 2.75rem 0 .75rem; }
.legal h3 { font-family: var(--f-sans); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent-text); }

/* ---------- Animation: Startzustände nur mit JS ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .split-words .w > span { transform: none; }
  .statement .word { color: var(--text); }
}
