/* JC Web & Media | Gestaltung der Website
   Dunkle Fassung: Grundfarbe Anthrazit aus dem Logo, Schrift in gebrochenem Weiß, Orange als einziger Akzent.
   Aufbau: Schriften, Grundwerte, Grundlagen, Bausteine, Abschnitte, Formular, Fußzeile, Unterseiten, Bewegung. */

/* ---------------------------------------------------------------- Schriften (lokal, keine Fremdserver) */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/figtree-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/figtree-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/figtree-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/figtree-latin-700.woff2') format('woff2'); }

/* ---------------------------------------------------------------- Grundwerte */
:root {
  --bg: #1e2124;             /* Anthrazit aus dem Logo: Grundfarbe */
  --bg-2: #25292d;           /* leicht abgesetzte Flächen */
  --bg-3: #2d3236;
  --text: #f5f4f1;           /* gebrochenes Weiß */
  --text-2: #c8ccd0;         /* Fließtext, Kontrast 10:1 */
  --muted: #9ba1a7;          /* Nebeninformationen, Kontrast 6,4:1 */
  --line: rgba(245, 244, 241, .12);
  --line-strong: rgba(245, 244, 241, .26);
  --accent: #e8721e;         /* Orange für Buttons, "Neu", E-Mail, Linien beim Darüberfahren, Fokus (Kontrast 5,3:1 zu Anthrazit) */
  --accent-hover: #f2873a;
  --logo: #f9700c;           /* Orange aus dem Logo: nur für die Logo-Dreiecke */
  --on-accent: #1e2124;
  --white: #ffffff;
  --error: #ffb4a6;

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-h1: clamp(2.5rem, 1.5rem + 3.3vw, 5rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 3.1rem);
  --fs-sub: clamp(1.0625rem, .9rem + .5vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: .9375rem;

  --gutter: clamp(20px, 4.5vw, 96px);
  --max: 1600px;
  --section-y: clamp(48px, 8vw, 104px);
  --header-h: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 768px) { :root { --fs-body: 1.125rem; } }
@media (min-width: 1800px) { :root { --fs-body: 1.1875rem; --fs-small: 1rem; } }
@media (min-width: 1024px) { :root { --header-h: 76px; --nav-aus: clamp(0px, 6vw - 48px, 72px); } }

/* ---------------------------------------------------------------- Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  color-scheme: dark;
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (hover: hover) { a:hover { text-decoration-color: var(--accent); } }
button, input, textarea { font: inherit; color: inherit; }
a, button, input, textarea, label { touch-action: manipulation; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Überschriften kräftig und eng gesetzt */
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1, h2 { font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.025em; }
p, li { text-wrap: pretty; }
@media (max-width: 767px) { p, li { hyphens: auto; -webkit-hyphens: auto; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 100; padding: 12px 18px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Orange Unterzeile unter Überschriften (wie im Karriere-Abschnitt von ulco.de, hier in der Markenfarbe) */
.unterzeile { color: var(--text-2); font-size: var(--fs-sub); font-weight: 400; line-height: 1.45; }

/* ---------------------------------------------------------------- Buttons und Links */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.5em; border: 1.5px solid transparent; border-radius: 0;
  font: 600 1rem/1.2 var(--font); text-align: center; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn-accent:hover { background: var(--accent-hover); }
  .btn-outline:hover { border-color: var(--text); }
}

/* Textlink mit Linie, die beim Darüberfahren von links nach rechts orange wird */
.text-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--text);
}
.text-link::before, .text-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: var(--line-strong);
}
.text-link::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
@media (hover: hover) { .text-link:hover::after { transform: scaleX(1); } }
.text-link:focus-visible::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- Ecke: Schnitt und oranges Dreieck wie im Logo */
.ecke {
  --t: clamp(52px, 7vw, 104px);
  --d: calc(var(--t) * .44);
  --schnitt: polygon(0 0, calc(100% - var(--t) - var(--d)) 0, 100% calc((var(--t) + var(--d)) * .75), 100% 100%, 0 100%);
  position: relative;
}
.ecke::after {
  content: ''; position: absolute; top: 0; right: 0; width: var(--t); height: calc(var(--t) * .75);
  background: var(--logo); clip-path: polygon(0 0, 100% 0, 100% 100%); pointer-events: none;
}

/* ---------------------------------------------------------------- Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-scrolled {
  background: rgba(30, 33, 36, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header.is-scrolled { background: var(--bg); } }
/* am Computer steht die Kopfzeile links und rechts etwas weiter außen als der Inhalt (--nav-aus) */
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; padding-inline: calc(var(--gutter) - var(--nav-aus, 0px)); }
.brand { position: relative; display: inline-flex; flex: none; color: var(--text); text-decoration: none; }
.brand-logo { height: 26px; width: auto; aspect-ratio: 2851 / 664; fill: currentColor; }
@media (min-width: 1024px) { .brand-logo { height: 30px; } }

/* Logo in der Kopfzeile
   Auf der Startseite oben groß (es ragt in die Bühne hinein), beim Scrollen klein. Die Kopfzeile selbst behält ihre Höhe,
   deshalb verschiebt sich beim Verkleinern nichts.
   Licht wie beim großen Logo der Fußzeile: Beim Laden der Startseite wandert ein breiter Lichtpunkt einmal langsam (3,6 s)
   von links nach rechts über das dunkle Logo, dahinter bleibt es hell (Variante A vom 6.11.2026, deutlicher sichtbar).
   Drei Ebenen: Grundebene (gedämpft), .brand-hell (bleibt), .brand-glanz (wandernder Lichtpunkt).
   Bewusst ohne CSS-filter: der zeichnet in Chrome einen Kasten hinter das Logo. */
.brand-kopf { --logo-h: 34px; color: #565c64; isolation: isolate; align-self: flex-start; margin-top: calc((var(--header-h) - var(--logo-h)) / 2); transition: margin-top .45s var(--ease); }
.brand-kopf .brand-logo { height: var(--logo-h); transition: height .45s var(--ease); }
.startseite .brand-kopf { --logo-h: 48px; margin-top: 8px; }
.is-scrolled .brand-kopf, .startseite .is-scrolled .brand-kopf { --logo-h: 26px; margin-top: calc((var(--header-h) - var(--logo-h)) / 2); }
@media (min-width: 1024px) {
  .brand-kopf { --logo-h: 46px; }
  .startseite .brand-kopf { --logo-h: 76px; margin-top: 14px; }
  .is-scrolled .brand-kopf, .startseite .is-scrolled .brand-kopf { --logo-h: 30px; }
}
.brand-hell, .brand-glanz { position: absolute; left: 0; top: 0; pointer-events: none; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.brand-hell {
  color: #f1f3f5;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
  -webkit-mask-position: 0 0; mask-position: 0 0;
}
.brand-glanz {
  color: #ffffff;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  -webkit-mask-size: 55% 230%; mask-size: 55% 230%;
  -webkit-mask-position: 260% 50%; mask-position: 260% 50%;
}
@keyframes logo-hell { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes logo-glanz { from { -webkit-mask-position: -160% 50%; mask-position: -160% 50%; } to { -webkit-mask-position: 260% 50%; mask-position: 260% 50%; } }
@media (prefers-reduced-motion: no-preference) {
  .startseite .brand-hell { animation: logo-hell 3.6s cubic-bezier(.42, 0, .38, 1) .9s both; }
  .startseite .brand-glanz { animation: logo-glanz 3.6s cubic-bezier(.42, 0, .38, 1) .9s both; }
}

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.main-nav > ul > li > a, .menu-nav a { text-decoration: none; }
.main-nav > ul > li > a { position: relative; display: block; padding: 10px 0; font-weight: 500; color: var(--text-2); transition: color .2s var(--ease); }
.main-nav > ul > li > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--text);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.main-nav > ul > li > a[aria-current='true'] { color: var(--text); }
.main-nav > ul > li > a[aria-current='true']::after { transform: scaleX(1); }
@media (hover: hover) { .main-nav > ul > li > a:hover { color: var(--text); } .main-nav > ul > li > a:hover::after { transform: scaleX(1); background: var(--accent); } }
/* Kontakt in der Kopfzeile: führt zur E-Mail. Ein kleines Feld zeigt die Adresse mit "E-Mail schreiben" und
   "Adresse kopieren" (für alle, die E-Mails im Browser schreiben und kein Mailprogramm eingerichtet haben). */
.nav-kontakt { position: relative; }
.nav-kontakt-knopf {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 0;
  background: none; border: 0; color: var(--text-2); font: 500 var(--fs-body)/1.6 var(--font); cursor: pointer;
  transition: color .2s var(--ease); -webkit-tap-highlight-color: transparent;
}
.nav-kontakt a, .nav-kontakt-knopf { display: inline-flex; align-items: center; gap: 7px; }
.nav-kontakt-icon { width: 17px; height: 17px; color: var(--muted); }
.nav-kontakt-knopf::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--text);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-kontakt-knopf[aria-expanded='true'] { color: var(--text); }
.nav-kontakt-knopf[aria-expanded='true']::after { transform: scaleX(1); }
.nav-kontakt-knopf.ist-aktuell, .main-nav > ul > li > a.ist-aktuell { color: var(--text); }
.nav-kontakt-knopf.ist-aktuell::after, .main-nav > ul > li > a.ist-aktuell::after { transform: scaleX(1); }
@media (hover: hover) { .nav-kontakt-knopf:hover::after { transform: scaleX(1); background: var(--accent); } }
@media (hover: hover) { .nav-kontakt-knopf:hover { color: var(--text); } .nav-kontakt-knopf:hover::after { transform: scaleX(1); } }
.kontakt-panel {
  position: absolute; right: -24px; top: calc(100% + 14px); z-index: 50; width: min(360px, calc(100vw - 32px));
  display: grid; gap: 12px; padding: 22px 22px 20px; background: var(--bg-2); border: 1px solid var(--line-strong);
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .2);
  color: var(--text-2); font-size: var(--fs-small); text-align: left;
  opacity: 0; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .25s var(--ease-out);
}
.kontakt-panel.ist-offen { opacity: 1; transform: none; }
.kontakt-panel::after { content: ''; position: absolute; top: -1px; right: -1px; width: 18px; height: 13.5px; background: var(--logo); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.kontakt-panel-titel { color: var(--muted); }
.kontakt-panel-adresse { color: var(--text); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; user-select: all; }
.kontakt-panel-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.kontakt-panel-aktionen .btn { min-height: 44px; padding: 0 1em; font-size: .9375rem; }
.kontakt-panel-hinweis { color: var(--muted); font-size: .875rem; }
.kontakt-panel-hinweis.ist-erfolg { color: var(--text); font-weight: 600; }
.kontakt-panel-tel { padding-top: 10px; border-top: 1px solid var(--line); }
.kontakt-panel-tel a { color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .kontakt-panel-tel a:hover { text-decoration: underline; text-decoration-color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .kontakt-panel { transition: none; } }

.header-cta { display: none; min-height: 44px; padding: 0 1.1em; font-size: .9688rem; }

.menu-button {
  display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 2px 0 8px;
  background: none; border: 0; color: var(--text); font-weight: 500; font-size: 1rem; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.menu-icon { position: relative; width: 22px; height: 12px; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .3s var(--ease-out); }
.menu-icon::before { top: 0; }
.menu-icon::after { bottom: 0; }
.menu-icon.is-close::before { transform: translateY(5px) rotate(45deg); }
.menu-icon.is-close::after { transform: translateY(-5px) rotate(-45deg); }
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .site-header .menu-button { display: none; }
}

/* Menü auf Handy und Tablet */
.menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text); overflow-y: auto; overscroll-behavior: contain;
}
.menu:not([open]) { display: none; }
.menu[open] { display: flex; flex-direction: column; }
.menu:focus { outline: none; }
.menu::backdrop { background: rgba(0, 0, 0, .3); }
.menu-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.menu-nav { display: flex; flex-direction: column; gap: 32px; padding-top: 12px; padding-bottom: 40px; }
.menu-nav li a {
  display: flex; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.4rem); font-weight: 600; letter-spacing: -.025em;
}
.menu-mail { font-size: var(--fs-small); color: var(--text-2); }
.menu-mail a { color: var(--text); }
/* Handy-Menü: Kontakt öffnet direkt das Mailprogramm, die Adresse steht klein darunter */
html.menu-offen { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] { animation: menu-auf .35s var(--ease-out); }
  .menu[open] .menu-nav li { animation: hoch .5s var(--ease-out) both; animation-delay: calc(60ms + var(--i, 0) * 40ms); }
}

/* ---------------------------------------------------------------- Start: Originalfoto als Vollbild, Text unten links
   Das Foto läuft beim Scrollen normal mit (kein feststehender Hintergrund). Die Kopfzeile liegt darüber. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end; min-height: 100vh; min-height: 100svh;
  margin-top: calc(var(--header-h) * -1);
}
.hero-bild { position: absolute; inset: 0; z-index: -2; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; }
/* Startbild: Stadt in der Abenddämmerung, von Natur aus ruhig. Nur leicht abgedunkelt: oben für die Navigation, hinter
   dem Text (unten links), unten der Übergang in die Seite. Mit Schwarz statt Grau, damit nichts blass wirkt. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .25) 0, rgba(0, 0, 0, 0) 16%),
    radial-gradient(ellipse 66% 58% at 14% 84%, rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, .15) 50%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(30, 33, 36, 0) 82%, var(--bg) 100%);
}
/* Hochformat (Handy): der Text steht über die ganze Breite, deshalb ein leichter Verlauf von unten */
@media (max-aspect-ratio: 4/5) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .25) 0, rgba(0, 0, 0, 0) 14%),
      linear-gradient(180deg, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, .3) 64%, rgba(0, 0, 0, .3) 84%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(180deg, rgba(30, 33, 36, 0) 82%, var(--bg) 100%);
  }
}
.hero-inhalt { display: grid; gap: clamp(18px, 2vw, 26px); justify-items: start; padding-block: calc(var(--header-h) + 64px) clamp(64px, 12vh, 128px); }
.hero-titel { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.03em; }
.hero-text { max-width: 30em; color: var(--text); font-size: var(--fs-sub); line-height: 1.45; }
.hero-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 8px; }
@media (max-width: 559px) { .hero-aktionen .btn { width: 100%; } }
/* Handy: main.js hält die Bildschirmhöhe beim Laden fest (.hoehe-fest, --bildschirm-h). Sonst wächst das Startbild mit,
   wenn ein Browser beim Scrollen seine Leisten ausblendet (z. B. Firefox auf dem iPhone), und die ganze Seite springt. */
.hoehe-fest .hero { min-height: var(--bildschirm-h); }
.hoehe-fest .hero-inhalt { padding-bottom: clamp(64px, calc(var(--bildschirm-h) * .12), 128px); }
.hoehe-fest .scroll-hinweis { bottom: clamp(18px, calc(var(--bildschirm-h) * .035), 36px); }

/* Scroll-Hinweis: kleine Maus unten mittig (ruhig), auf Handy und Touch-Geräten eine Hand,
   die nach oben wischt. Verblasst, sobald man zu scrollen beginnt (main.js setzt .ist-weg). */
.scroll-hinweis {
  position: absolute; left: 50%; bottom: clamp(18px, 3.5vh, 36px); z-index: 1; transform: translateX(-50%);
  color: var(--text-2); opacity: .75; pointer-events: none; transition: opacity .5s var(--ease);
}
.scroll-hinweis.ist-weg { opacity: 0; }
.scroll-hinweis svg { display: block; will-change: transform; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.scroll-hinweis .scroll-maus { width: 22px; height: 35px; }
.scroll-hinweis .scroll-hand { display: none; width: 30px; height: 30px; }
@media (pointer: coarse), (max-width: 767px) { .scroll-hinweis .scroll-maus { display: none; } .scroll-hinweis .scroll-hand { display: block; } }
@keyframes scroll-rad { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 75%, 100% { transform: translateY(7px); opacity: 0; } }
@keyframes scroll-hand { 0% { transform: translateY(4px); opacity: 0; } 25% { opacity: 1; } 75% { transform: translateY(-4px); opacity: 1; } 100% { transform: translateY(-4px); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .scroll-rad { animation: scroll-rad 2.4s var(--ease) infinite; }
  .scroll-hand { animation: scroll-hand 2.4s var(--ease) infinite; }
}

/* ---------------------------------------------------------------- Abschnitte */
.section { padding-block: var(--section-y); }
.section-titel { margin-bottom: clamp(28px, 4vw, 48px); }
.section-titel span { display: block; }

/* Problemleiste "Kommt Ihnen das bekannt vor?": vier Gedanken des Kunden in Anführungszeichen, darunter die Lösung
   mit Button. Bewusst ohne Symbole (die bleiben den vier Schritten vorbehalten); eine feine Linie trennt die Punkte.
   Am Handy linksbündig als Liste zwischen Linien, nur die Gedanken, die Sätze gibt es wie bei den Leistungen erst ab
   768 px. Ab 768 px zentriert (Anregung sevenpears.de), zwei, ab 1024 px vier nebeneinander. */
.probleme-titel { margin-bottom: 24px; }
.probleme-liste { display: grid; border-bottom: 1px solid var(--line); }
.problem { padding-block: 15px; border-top: 1px solid var(--line); }
.problem-text { display: grid; gap: 8px; }
.problem-name { font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.problem-text p { display: none; color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; }
.probleme-loesung { display: grid; justify-items: start; gap: 10px; margin-top: 36px; }
.probleme-loesung-titel { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.probleme-loesung-text { max-width: 30em; color: var(--text-2); }
/* "Kostenlose Beratung": bewusst kein zweiter oranger Kasten, sondern orange Schrift mit Pfeil (gleiche Funktion) */
.probleme-cta { gap: 8px; margin-top: 6px; color: var(--accent); font-size: 1.125rem; }
.probleme-cta::before { background: currentColor; opacity: .35; }
.probleme-cta svg { flex: none; width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
@media (hover: hover) { .probleme-cta:hover { color: var(--accent-hover); } .probleme-cta:hover svg { transform: translateX(3px); } }
.probleme-hinweis { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--muted); font-size: var(--fs-small); }
.probleme-hinweis svg { flex: none; width: 18px; height: 18px; }
@media (min-width: 768px) {
  .probleme { text-align: center; }
  .probleme-titel { margin-bottom: clamp(28px, 4vw, 48px); }
  .probleme-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 48px); border-bottom: 0; }
  .problem { padding: 22px 0 0; }
  .problem-name { font-size: clamp(1.25rem, 1rem + .6vw, 1.5rem); line-height: 1.25; letter-spacing: -.015em; }
  .problem-text p { display: block; max-width: 26em; margin-inline: auto; }
  .probleme-loesung { justify-items: center; margin-top: clamp(40px, 5vw, 64px); }
}
@media (min-width: 1024px) {
  .probleme-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Leistungen: je Leistung Name, ein Satz, was enthalten ist (Haken-Liste) und ein klarer "Anfragen"-Link.
   Der Link deckt die ganze Zeile ab; er springt zum Formular und wählt dort dieselbe Leistung sichtbar vor. */
.leistungen-hinweis { margin: calc(clamp(28px, 4vw, 48px) * -.45) 0 clamp(20px, 3vw, 30px); color: var(--muted); font-size: var(--fs-small); }
.leistungen { border-top: 1px solid var(--line); container-type: inline-size; }
.leistung {
  position: relative; isolation: isolate; display: grid; gap: 10px; justify-items: start;
  padding: clamp(22px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--line);
}
.leistung-name {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.03em;
  transition: color .25s var(--ease), transform .45s var(--ease-out);
}
.leistung-text { color: var(--text-2); max-width: 36em; }
.leistung-inhalt { display: grid; gap: 7px 24px; width: 100%; margin-top: 2px; color: var(--text-2); font-size: var(--fs-small); }
.leistung-inhalt li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.leistung-inhalt svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
/* letzter Punkt: macht klar, dass die Liste nur Beispiele nennt */
.leistung-inhalt .leistung-weiteres { color: var(--muted); }
.leistung-inhalt .leistung-weiteres svg { color: var(--muted); }
/* Zwei Spalten, die Punkte fließen spaltenweise: ein zweizeiliger Punkt lässt daneben keine Lücke */
@container (min-width: 560px) {
  .leistung-inhalt { display: block; columns: 2; column-gap: 24px; }
  .leistung-inhalt li { break-inside: avoid; }
  .leistung-inhalt li:not(:last-child) { margin-bottom: 7px; }
}
.leistung-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 2px;
  color: var(--text); font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.leistung-link::after { content: ''; position: absolute; inset: 0; }
/* Text und Pfeil liegen über der Klickfläche der Zeile, so lässt sich das Darüberfahren genau an ihnen erkennen */
.leistung-link-text { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; transition: color .2s var(--ease); }
.leistung-pfeil { width: 22px; height: 22px; transition: transform .45s var(--ease-out); }
@media (hover: hover) {
  .leistung:hover .leistung-name { transform: translateX(6px); }
  .leistung-link-text:hover { color: var(--accent); }
  .leistung:hover .leistung-link-text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
  .leistung:hover .leistung-pfeil { transform: translateX(6px); }
}
.leistung-link:focus-visible { outline: none; }
.leistung-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.leistung-mehr { display: none; }

/* Handy: die Leistungen als kompakte Zeilen, alle Details auf der Unterseite leistungen.html.
   Der Hinweis über der Liste entfällt dort (er bezieht sich auf die Details und "Anfragen", die nur am Computer zu sehen sind). */
@media (max-width: 767px) {
  .leistungen-hinweis { display: none; }
  .leistungen .leistung { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 16px; padding-block: 16px; }
  .leistungen .leistung-name { font-size: 1.375rem; }
  .leistungen .leistung-text, .leistungen .leistung-inhalt, .leistungen .leistung-link { display: none; }
  .leistung-mehr { display: inline-flex; color: var(--text-2); -webkit-tap-highlight-color: transparent; }
  .leistung-mehr::after { content: ''; position: absolute; inset: 0; }
  .leistung-mehr svg { width: 26px; height: 26px; }
  .leistung-mehr:focus-visible { outline: none; }
  .leistung-mehr:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
}

/* Unterseite Leistungen */
.seite-leistungen .unterzeile { margin-top: 14px; max-width: 30em; }
.leistungen-detail { margin-top: clamp(28px, 5vw, 56px); border-top: 1px solid var(--line); container-type: inline-size; }
.leistung-detail { display: grid; gap: 12px; justify-items: start; padding-block: clamp(26px, 4vw, 44px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.leistung-detail .btn { margin-top: 10px; }
.leistungen-schluss { margin-top: clamp(28px, 4vw, 44px); color: var(--text-2); }
.leistungen-schluss a { color: var(--text); text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; }
@media (hover: hover) { .leistungen-schluss a:hover, .text a:hover { text-decoration-color: var(--accent); } }

/* Laptop: gerenderte Einzelbilder (Blender), beim Scrollen geblättert. Zuerst ein Standbild, sobald die Bilder geladen sind,
   übernimmt die Zeichenfläche. Bei "Bewegung reduzieren" bleibt das Standbild (dann schon offen) stehen. */
.leistungen-raster { display: grid; gap: clamp(4px, 2vw, 24px); }
.laptop { position: relative; isolation: isolate; width: 100%; max-width: 900px; margin-inline: auto; aspect-ratio: 4 / 3; }
.laptop-standbild, .laptop-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.laptop-standbild img { width: 100%; height: 100%; object-fit: contain; }
.laptop-canvas { opacity: 0; transition: opacity .5s var(--ease); }
.laptop.ist-bereit .laptop-canvas { opacity: 1; }
.laptop.ist-bereit .laptop-standbild { opacity: 0; transition: opacity .5s var(--ease) .1s; }
@media (min-width: 1024px) {
  .leistungen-raster {
    --spalt: clamp(32px, 4vw, 64px);
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); column-gap: var(--spalt); align-items: start; container-type: inline-size;
  }
  /* Der Laptop steht zuerst oben neben der Überschrift und hält dann senkrecht mittig im sichtbaren Bereich unter der
     Kopfzeile an, während man die Leistungen liest. Seine Höhe ergibt sich aus der Spaltenbreite (Containereinheiten). */
  .laptop {
    --laptop-h: calc(min(900px, (100cqi - var(--spalt)) * 1.12 / 2.12) * .75);
    position: sticky; margin-left: calc(var(--gutter) * -.6);
    top: max(var(--header-h), calc((100vh + var(--header-h) - var(--laptop-h)) / 2));
    top: max(var(--header-h), calc((100svh + var(--header-h) - var(--laptop-h)) / 2));
  }
  /* Überschrift so groß, wie die Spalte es zulässt: jeder der beiden Sätze auf einer Zeile */
  .leistungen-text { container-type: inline-size; }
  .leistungen-text .section-titel { font-size: clamp(1.9rem, 7.2cqi, 3.75rem); }
}

/* ---------------------------------------------------------------- Kontakt */
/* Kontakt: auf demselben Hintergrund wie die übrige Seite, Text links, Formular rechts */
.kontakt-raster { display: grid; gap: 48px; }
/* Handy: Das Formular ist zugeklappt, bis jemand "Kostenloses Erstgespräch" oder "Kontakt" wählt (main.js) */
/* Formular mit eigener Überschrift: Ziel aller Buttons "Kostenloses Erstgespräch" (#kontaktformular) */
.kontakt-formular { display: grid; gap: 24px; align-content: start; }
.formular-titel { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; }
.formular-oeffnen { justify-self: stretch; }
.formular:focus { outline: none; }
@media (max-width: 767px) { .kontakt.formular-zu .formular { display: none; } }
@media (min-width: 768px) { .formular-oeffnen { display: none; } }
.kontakt-text { display: grid; gap: 18px; align-content: start; }
.kontakt-text > p:not(.unterzeile) { color: var(--text-2); max-width: 30em; }
.schritte-titel { margin-top: 14px; color: var(--text); font-size: var(--fs-body); font-weight: 600; letter-spacing: 0; }
/* Die vier Schritte untereinander: feines Liniensymbol in einem zurückhaltenden Rahmen (Haarlinie), kleine Logo-Ecke,
   daneben Name und ein Satz, das Symbol jeweils mittig zum Text. Die Verbindungslinie läuft durchgehend hinter den
   Symbolen von der Mitte des ersten bis zur Mitte des letzten; die Symbole decken sie ab und lassen mit einem Rand in
   Seitenfarbe davor und danach eine kleine Lücke. */
.schritte { display: grid; }
.schritte li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 16px; padding-bottom: 20px; }
.schritte li:last-child { padding-bottom: 0; }
.schritte li::before { content: ''; position: absolute; left: 19.5px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.schritte li:first-child::before { top: calc(50% - 10px); }
.schritte li:last-child::before { bottom: 50%; }
.schritt-symbol {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  color: var(--text); background: #26282b; box-shadow: inset 0 0 0 1px rgba(245, 244, 241, .16);
}
.schritt-symbol { z-index: 1; box-shadow: inset 0 0 0 1px rgba(245, 244, 241, .16), 0 0 0 6px var(--bg); }
.schritt-symbol svg { width: 20px; height: 20px; }
.schritt-symbol::after { content: ''; position: absolute; top: 0; right: 0; width: 8px; height: 6px; background: var(--logo); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.schritt-text { display: grid; gap: 2px; align-content: center; min-height: 40px; }
.schritt-text strong { font-weight: 600; line-height: 1.35; }
.schritt-text span { color: var(--text-2); font-size: var(--fs-small); line-height: 1.45; }
.kontakt-direkt { display: grid; gap: 4px; justify-items: start; }
.kontakt-mail {
  padding-block: 2px; color: var(--accent); font-size: clamp(1.2rem, 1.08rem + .5vw, 1.45rem); font-weight: 600;
  text-decoration: none; transition: color .2s var(--ease);
}
@media (hover: hover) { .kontakt-mail:hover { color: var(--accent-hover); } }
.kontakt-tel { color: var(--muted); font-size: var(--fs-small); }
/* Herkunft unter Telefon (früher im Abschnitt Über uns): leise, damit E-Mail und Formular vorne bleiben */
.kontakt-herkunft { margin-top: 6px; color: var(--muted); font-size: var(--fs-small); }
.kontakt-tel a { color: var(--text-2); text-decoration: none; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .kontakt-tel a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); } }
@media (min-width: 1024px) {
  .kontakt-raster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 6vw, 96px); }
  .kontakt-text { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* ---------------------------------------------------------------- Formular (ohne eigene Fläche, nur die Eingabefelder sind hell) */
.formular { position: relative; isolation: isolate; display: grid; gap: 24px; align-content: start; }
.auswahl { min-width: 0; margin: 0; padding: 0; border: 0; }
.auswahl legend { margin-bottom: 12px; padding: 0; font-weight: 600; }
.auswahl-optionen { display: flex; flex-wrap: wrap; gap: 10px; }
.option { position: relative; display: flex; -webkit-tap-highlight-color: transparent; }
.option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option span {
  position: relative; flex: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px;
  border: 1px solid var(--line-strong); font-weight: 500; font-size: var(--fs-small); line-height: 1.25;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease);
}
.option span svg { display: none; flex: none; width: 16px; height: 16px; }
/* gewählt: hell, mit Haken */
.option input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.option input:checked + span svg { display: block; }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.option.ist-vorgewaehlt span { outline: 2px solid var(--accent); outline-offset: 2px; }


.auswahl-status { margin-top: 12px; color: var(--text-2); font-size: var(--fs-small); }
.auswahl-status:empty { display: none; }
@media (hover: hover) { .option:hover span { border-color: rgba(245, 244, 241, .7); } }

.felder { display: grid; gap: 18px; }
@media (min-width: 640px) { .felder { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feld-breit { grid-column: 1 / -1; } }
.feld label { display: block; margin-bottom: 8px; font-weight: 500; font-size: var(--fs-small); }
.optional { color: var(--muted); font-weight: 400; }
.feld input, .feld textarea {
  display: block; width: 100%; min-height: 52px; padding: 13px 14px; border: 1.5px solid var(--white); border-radius: 0;
  background: var(--white); color: var(--bg); font-size: 1.0625rem; line-height: 1.4; -webkit-appearance: none; appearance: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.feld textarea { min-height: 110px; resize: vertical; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feld.hat-fehler input { border-color: var(--error); box-shadow: inset 0 0 0 1px #c2412d; }
.feld-fehler { margin-top: 8px; color: var(--error); font-size: var(--fs-small); }
.honigtopf { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular-hinweis { color: var(--muted); font-size: var(--fs-small); max-width: 36em; }
.formular-hinweis a { color: var(--text); }
.formular .btn-accent { justify-self: start; min-width: 220px; }
.formular .btn[aria-busy='true'] { cursor: progress; opacity: .8; }
.formular-status { color: var(--error); font-weight: 500; }
.formular-meldung { position: relative; display: grid; gap: 10px; padding: 28px; border: 1px solid var(--line-strong); }
.formular-meldung:focus { outline: none; }
.formular-meldung:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.formular-meldung h3 { font-size: 1.375rem; }
.formular-meldung p { color: var(--text-2); }
.formular-erfolg::after { content: ''; position: absolute; top: -1px; right: -1px; width: 24px; height: 18px; background: var(--logo); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.formular-ausweich-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.formular.ist-gesendet > :not(.formular-erfolg) { display: none; }
@media (max-width: 559px) { .formular .btn-accent, .formular-ausweich-aktionen .btn { width: 100%; } }

/* ---------------------------------------------------------------- Fußzeile mit großem Logo als Abschluss */
/* Slogan links, alle Angaben (Adresse, Telefon, E-Mail, Rechtliches) untereinander am rechten Rand */
.site-footer { padding-top: clamp(56px, 7vw, 104px); color: var(--muted); font-size: var(--fs-small); }
.footer-zeile { display: grid; gap: 32px; }
.footer-claim { color: var(--text); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.footer-angaben { display: grid; gap: 18px; }
.footer-angaben address { font-style: normal; color: var(--text-2); line-height: 1.6; }
.footer-links { display: grid; gap: 0; }
.footer-links a { display: inline-block; padding: 3px 0; color: var(--text-2); text-decoration: none; transition: color .2s var(--ease); }
.footer-angaben { justify-items: end; text-align: right; }
@media (min-width: 640px) {
  .footer-zeile { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 48px; }
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.footer-gross { margin-top: clamp(40px, 6vw, 80px); }
.footer-logo { width: 100%; height: auto; aspect-ratio: 2851 / 664; fill: var(--bg-3); }
/* Licht: eine hellere Kopie des Logos, nur in einem weichen Kreis um den Mauszeiger sichtbar (ohne Farben, nur als leichte Belichtung). Ohne Maus bleibt das Logo ruhig. */
.footer-marke { position: relative; --lx: 50%; --ly: 50%; --lr: clamp(120px, 20vw, 320px); }
.footer-licht {
  position: absolute; inset: 0; fill: #4a5157; opacity: 0; filter: brightness(1.12);
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0, rgba(0, 0, 0, .45) 45%, transparent 100%);
  mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0, rgba(0, 0, 0, .45) 45%, transparent 100%);
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.footer-marke.ist-beleuchtet .footer-licht { opacity: 1; }
.footer-unten { padding-block: 24px 32px; font-size: .875rem; }
/* Handy: Anschrift und Kontakt linksbündig und kompakt, darunter das Motto direkt über dem großen Logo,
   so bilden Motto und Logo gemeinsam den Abschluss der Seite */
@media (max-width: 767px) {
  .site-footer { padding-top: 40px; }
  .footer-unten { padding-block: 22px 28px; }
}
@media (max-width: 639px) {
  .footer-zeile { gap: 22px; }
  .footer-claim { order: 2; margin-top: 18px; }
  .footer-gross { margin-top: 14px; }
  .footer-angaben { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); justify-items: start; text-align: left; gap: 14px 24px; }
  .footer-angaben nav { grid-column: 1 / -1; }
  .footer-angaben nav .footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
}

/* ---------------------------------------------------------------- Unterseiten (Impressum, Datenschutz, 404) */
.seite { padding-block: clamp(40px, 7vw, 96px) var(--section-y); }
.seite h1 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.03em; }
.text { max-width: 44em; color: var(--text-2); }
.text h1 { color: var(--text); }
.text > * + * { margin-top: 1em; }
.text h2 { margin-top: 2.2em; color: var(--text); font-size: 1.5rem; line-height: 1.25; letter-spacing: -.015em; }
.text a { color: var(--text); text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; }
.text address { font-style: normal; }
.stand { color: var(--muted); font-size: var(--fs-small); }
.fehlt { background: #ffe8a3; color: var(--bg); padding: 0 .2em; }
.seite-404 { min-height: 52vh; }
.seite-404 .lead { margin-top: 20px; color: var(--text-2); font-size: var(--fs-sub); }
.seite-404 .btn { margin-top: 32px; }

/* ---------------------------------------------------------------- Bewegung
   Ein ruhiger Auftakt beim Laden und dezentes Einblenden beim Scrollen. Bei "Bewegung reduzieren" ist alles sofort da. */
@keyframes hoch { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bild { from { transform: scale(1.06); } to { transform: none; } }
@keyframes ecke-rein { from { opacity: 0; transform: translate(14px, -14px); } to { opacity: 1; transform: none; } }
@keyframes menu-auf { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-titel { animation: hoch .9s var(--ease-out) .15s both; }
  .hero-text { animation: hoch .9s var(--ease-out) .23s both; }
  .hero-aktionen { animation: hoch .9s var(--ease-out) .31s both; }
  .hero-bild img { animation: bild 2.6s var(--ease-out) both; }

  .js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(20px); }
  .js [data-reveal] { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--delay, 0s); }
}
