/* ============================================================
   Nordstern Solutions – Stylesheet
   Farbschema, Layout & Komponenten. Blau-Töne über CSS-Variablen
   → einfach im :root anpassbar (Rebranding in Sekunden).
   ============================================================ */

:root {
  /* --- Blaues Farbschema --- */
  --blue-950: #06182e;
  --blue-900: #0a2540;
  --blue-800: #0e3a66;
  --blue-700: #12508f;
  --blue-600: #1e6fd0;
  --blue-500: #2f88f0;
  --blue-400: #5aa6f7;
  --blue-300: #9cc8fb;
  --blue-100: #e3f0ff;
  --blue-50:  #f2f8ff;

  --accent: #34d1c4;          /* frischer Türkis-Akzent */
  --accent-soft: #d6f6f2;

  /* --- Neutrale Töne --- */
  --ink: #0c1b2a;
  --body: #445468;
  --muted: #7a8aa0;
  --line: #e3e9f2;
  --surface: #ffffff;
  --surface-alt: #f4f8fd;

  /* --- System --- */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, .06);
  --shadow-md: 0 12px 30px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .16);
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

h1, h2 { font-family: var(--font-display); color: var(--ink); line-height: 1.06; font-weight: 600; letter-spacing: -.025em; }
h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1rem;
}

.grad-text {
  background: linear-gradient(100deg, var(--blue-400), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: .9rem 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: var(--btn-pad);
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(120deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 111, 208, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30, 111, 208, .45); }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; color: var(--blue-900); letter-spacing: -.02em; }
.brand-mark { color: var(--blue-600); display: grid; place-items: center; }
.brand-accent { color: var(--accent); }
/* Logo-Wortmarke */
.brand-logo { height: 38px; width: auto; display: block; }
/* Footer ist dunkel -> weiße Logo-Variante, größer, ohne Hintergrund */
.footer-brand .brand-logo { height: 54px; }

.primary-nav { display: flex; align-items: center; gap: .35rem; }
.primary-nav a {
  padding: .55rem .9rem;
  border-radius: 999px;
  font-weight: 500;
  color: var(--blue-900);
  font-size: .96rem;
  transition: background .2s, color .2s;
}
.primary-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.primary-nav a.nav-cta {
  background: var(--blue-900);
  color: #fff;
  padding-inline: 1.3rem;
}
.primary-nav a.nav-cta:hover { background: var(--blue-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 24px; height: 2px; border-radius: 2px; background: var(--blue-900);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(52, 209, 196, .30), transparent 60%),
    radial-gradient(70% 70% at 15% 20%, rgba(90, 166, 247, .35), transparent 60%),
    linear-gradient(160deg, var(--blue-950), var(--blue-800) 60%, var(--blue-700));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.hero-inner { padding: clamp(4rem, 12vh, 8rem) var(--gutter) clamp(3.5rem, 8vh, 6rem); max-width: calc(820px + 2 * var(--gutter)); }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255, 255, 255, .85); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-stats dt { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero-stats dd { color: rgba(255, 255, 255, .7); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 12vh, 9rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-sub { color: var(--body); margin-top: .8rem; font-size: 1.06rem; line-height: 1.6; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards (Leistungen) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--blue-100), var(--accent-soft));
  color: var(--blue-700);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--body); font-size: .96rem; }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-media { position: relative; min-height: 340px; }
.about-blob {
  position: absolute; inset: 0;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--blue-700), var(--blue-500) 55%, var(--accent));
  box-shadow: var(--shadow-lg);
}
.about-blob::after {
  content: ""; position: absolute; inset: 0; border-radius: 28px;
  background: radial-gradient(50% 50% at 70% 20%, rgba(255, 255, 255, .25), transparent 60%);
}
.about-card {
  position: absolute; bottom: -22px; right: -22px;
  background: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-md); max-width: 260px;
}
.about-card-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.about-card p { margin-top: .4rem; color: var(--ink); font-weight: 600; font-size: 1.05rem; line-height: 1.4; }

.about-content h2 { margin-bottom: 1rem; }
.about-content p { margin-bottom: 1rem; }
.check-list { list-style: none; margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312508f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Portfolio ---------- */
.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.portfolio-thumb, .ref-image {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .75);
  font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  position: relative;
}
.portfolio-thumb::after, .ref-image::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 30% 10%, rgba(255, 255, 255, .18), transparent 60%);
}
[data-tone="1"] { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); }
[data-tone="2"] { background: linear-gradient(135deg, var(--blue-700), var(--accent)); }
[data-tone="3"] { background: linear-gradient(135deg, var(--blue-900), var(--blue-500)); }
[data-tone="4"] { background: linear-gradient(135deg, var(--blue-600), var(--blue-400)); }
[data-tone="5"] { background: linear-gradient(135deg, var(--blue-800), #3f6bd6); }
[data-tone="6"] { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); }

.portfolio-body { padding: 1.4rem 1.5rem 1.6rem; }
.tag {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--blue-700);
  background: var(--blue-50); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .7rem;
}
.portfolio-body h3 { margin-bottom: .4rem; }
.portfolio-body p { font-size: .94rem; color: var(--body); }

/* ---------- Referenzen ---------- */
.ref-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.ref-image span { position: relative; z-index: 1; }
.ref-card figcaption { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }
.ref-card blockquote { color: var(--ink); font-size: 1.02rem; font-weight: 500; line-height: 1.55; }
.ref-author { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.ref-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--accent));
  color: #fff; font-weight: 700; font-size: .85rem;
}
.ref-author strong { display: block; color: var(--ink); font-size: .95rem; }
.ref-author small { color: var(--muted); font-size: .85rem; }

.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.logo-row span {
  font-weight: 700; font-size: 1.15rem; color: var(--muted);
  letter-spacing: .02em; opacity: .8; transition: color .2s, opacity .2s;
}
.logo-row span:hover { color: var(--blue-700); opacity: 1; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--blue-600); }
.ci {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--blue-700);
  background: var(--blue-50);
}
.ci svg { width: 20px; height: 20px; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-md); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink);
  padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-alt); transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 136, 240, .14);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #e0607a; }
.form-note { font-size: .9rem; margin-top: .2rem; min-height: 1.2em; }
.form-note.ok { color: #1f9e6b; }
.form-note.err { color: #d1435f; }

/* Captcha (Sicherheitsabfrage) */
.captcha-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.captcha-img {
  display: block; height: 50px; width: 150px; flex: none;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--blue-50);
}
.captcha-reload {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-alt); color: var(--blue-700);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.captcha-reload:hover { background: var(--blue-50); border-color: var(--blue-300); transform: rotate(45deg); }
.field-captcha .captcha-row input { flex: 1 1 90px; min-width: 90px; }
.captcha-hint { font-size: .8rem; color: var(--muted); }

/* Honeypot: für Nutzer unsichtbar, für Bots als Feld sichtbar */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-950); color: rgba(255, 255, 255, .72); padding-top: 3.5rem; }
.site-footer .brand { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-tagline, .footer-philosophy { margin-top: 1rem; color: rgba(255, 255, 255, .92); }
.footer-philosophy { font-size: 1.05rem; line-height: 1.55; max-width: 30rem; }
.footer-nav, .footer-legal { display: grid; gap: .7rem; align-content: start; }
.footer-nav { justify-items: end; text-align: right; }
.footer-nav a, .footer-legal a { font-size: .96rem; color: rgba(255, 255, 255, .9); transition: color .2s; }
.footer-nav a:hover, .footer-legal a:hover { color: #fff; }
.footer-bottom { padding-block: 1.5rem 2rem; font-size: .85rem; color: rgba(255, 255, 255, .9); text-align: center; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Scroll-Reveal Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { min-height: 260px; margin-bottom: 1.5rem; }
  .about-card { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .3rem;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(14px);
    padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .4s var(--ease);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: .85rem 1rem; }
  .primary-nav a.nav-cta { text-align: center; margin-top: .4rem; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-items: start; text-align: left; }
  .hero-stats { gap: 1.4rem; }
  .hero-stats dt { font-size: 1.5rem; }
}

/* ---------- Barrierefreiheit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }

/* Referenzen-Sektion versteckt, wenn per JS deaktiviert */
[data-section].is-hidden,
[data-nav].is-hidden { display: none !important; }

/* ============================================================
   BILDER in Karten (Portfolio & Referenzen)
   ============================================================ */
a.portfolio-item { display: block; color: inherit; }
.portfolio-thumb, .ref-image { background: var(--surface-alt); overflow: hidden; }
.portfolio-thumb img, .ref-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s var(--ease);
}
.portfolio-item:hover .portfolio-thumb img { transform: scale(1.06); }
.portfolio-link {
  display: inline-block; margin-top: .9rem;
  color: var(--blue-600); font-weight: 600; font-size: .92rem;
}
.portfolio-item:hover .portfolio-link { color: var(--blue-700); }

/* ============================================================
   PROJEKT-DETAILSEITEN
   ============================================================ */
.detail-hero { padding: clamp(2.5rem, 6vh, 4rem) 0; background: var(--surface-alt); }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--blue-600); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.detail-hero h1 { margin: .3rem 0 .8rem; }
.detail-lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--body); }

/* Zweispaltiger Titelbereich: Text/Eckdaten links, Illustration rechts */
.detail-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.detail-hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.detail-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem 1.6rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem); padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.detail-meta dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-600); font-weight: 600; }
.detail-meta dd { color: var(--ink); font-weight: 600; margin-top: .25rem; }

@media (max-width: 820px) {
  .detail-hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

.detail-body { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail-text .lead-para { font-size: 1.12rem; color: var(--ink); font-weight: 500; margin-bottom: 1.2rem; }
.detail-text h2 { margin: 1.8rem 0 .6rem; font-size: 1.5rem; }
.detail-text p { margin-bottom: 1rem; }
.detail-aside {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.detail-aside h3 { margin-bottom: 1rem; }
.detail-aside .check-list { margin: 0 0 1.4rem; }
.detail-aside p { margin-bottom: 1rem; }
.detail-aside .btn { margin-top: 1.4rem; }

/* ---------- Foto-Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item { margin: 0; }
.gallery-item a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s var(--ease); }
.gallery-item a:hover img { transform: scale(1.07); }
.gallery-item figcaption { margin-top: .5rem; font-size: .88rem; color: var(--muted); }

/* ---------- Projekt-Navigation (vor/zurück) ---------- */
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: clamp(2rem, 5vh, 3rem); }
.pn {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.pn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.pn.next { text-align: right; }
.pn-dir { font-size: .82rem; color: var(--blue-600); font-weight: 600; }
.pn-title { color: var(--ink); font-weight: 700; }

/* ---------- CTA-Band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 6vh, 4rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-top: .4rem; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 24, 46, .93);
  display: none; align-items: center; justify-content: center;
  padding: 6vh 6vw; opacity: 0; transition: opacity .25s;
}
.lb-overlay.open { display: flex; opacity: 1; }
.lb-figure { max-width: 1000px; width: 100%; text-align: center; margin: 0; }
.lb-img { max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lb-caption { color: #fff; margin-top: 1rem; font-size: .95rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1; transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 3vh; right: 4vw; }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }

/* ============================================================
   RECHTSSEITEN (Impressum / Datenschutz)
   ============================================================ */
.legal { padding: clamp(2.5rem, 6vh, 4rem) 0; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { margin: 2.2rem 0 .6rem; font-size: 1.35rem; }
.legal h3 { margin: 1.4rem 0 .4rem; font-size: 1.1rem; }
.legal p, .legal address, .legal ul { margin-bottom: 1rem; color: var(--body); font-style: normal; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--blue-600); }
.legal a:hover { text-decoration: underline; }
.legal .muted-note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--blue-300); padding: .6rem 1rem; background: var(--surface-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Responsive Ergänzungen ---------- */
@media (max-width: 900px) {
  .detail-body { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .detail-meta { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .project-nav { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SORTIMENT – Partner-Zeile in den Karten
   ============================================================ */
.card { display: flex; flex-direction: column; }
.card-partners {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: .85rem; color: var(--body);
}
.card-partners span {
  display: block; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .25rem;
}
/* Etwas Abstand vor der Partner-Zeile, wenn direkt nach dem Text */
.card p + .card-partners { margin-top: 1rem; }

/* ============================================================
   PARTNER-SEKTION
   ============================================================ */
.partner-logos {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
}
.partner-logos span {
  display: inline-flex; align-items: center;
  padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--blue-900); font-weight: 700; font-size: 1rem;
  letter-spacing: .01em; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.partner-logos span:hover {
  transform: translateY(-3px);
  border-color: var(--blue-300); color: var(--blue-600);
}

/* ============================================================
   PROZESS – 4 Schritte
   ============================================================ */
.process-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff; font-weight: 800; font-size: 1.35rem;
  box-shadow: 0 8px 18px rgba(30, 111, 208, .35);
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--body); font-size: .96rem; }
/* Verbindungslinie zwischen den Schritten (Desktop) */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -.9rem;
  width: 1.1rem; height: 2px; background: var(--blue-300);
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .step:nth-child(2n)::after { display: none; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .partner-logos span { padding: .6rem 1rem; font-size: .92rem; }
}

/* ============================================================
   ✦ MINIMAL & LUXURIÖS – Redesign-Overrides
   ============================================================ */

/* ---------- Hero: Serifen-Typo, ruhiger ---------- */
.hero-stats dt { font-family: var(--font-display); font-weight: 500; }
.hero-lead { max-width: 600px; }

/* ---------- Sortiment: editoriale Katalog-Liste ---------- */
.sortiment-list { border-top: 1px solid var(--line); }
.srow {
  display: grid;
  grid-template-columns: 72px minmax(200px, 1.1fr) 1.5fr;
  gap: 1rem 2.5rem;
  align-items: baseline;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.srow:hover { background: linear-gradient(90deg, var(--surface-alt), rgba(244, 248, 253, 0)); padding-left: 1.7rem; }
.srow-num {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  color: var(--blue-300); transition: color .4s var(--ease);
}
.srow:hover .srow-num { color: var(--blue-600); }
.srow-main h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.srow-partners { margin-top: .55rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.srow-desc { color: var(--body); font-size: 1rem; line-height: 1.6; }
@media (max-width: 720px) {
  .srow { grid-template-columns: 44px 1fr; gap: .3rem 1rem; padding: 1.5rem .3rem; }
  .srow:hover { padding-left: .3rem; }
  .srow-desc { grid-column: 2; margin-top: .5rem; }
  .srow-num { font-size: 1.2rem; }
}

/* ---------- Partner: ruhige Wortmarken-Leiste ---------- */
.partner-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1.4rem 3rem; padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  max-width: 920px; margin: 0 auto;
}
.partner-strip span {
  font-size: 1.06rem; font-weight: 600; letter-spacing: .03em;
  color: var(--muted); transition: color .25s, transform .25s var(--ease);
}
.partner-strip span:hover { color: var(--blue-700); transform: translateY(-2px); }

/* ---------- Prozess: minimal, große Serifen-Zahlen ---------- */
.step {
  background: transparent; border: 0; border-top: 1px solid var(--line);
  border-radius: 0; box-shadow: none; padding: 1.8rem .3rem 0;
}
.step:hover { transform: none; box-shadow: none; }
.step-num {
  display: block; width: auto; height: auto; border-radius: 0;
  background: none; box-shadow: none; margin-bottom: .8rem;
  color: var(--blue-300); font-family: var(--font-display);
  font-weight: 400; font-size: 2.6rem; line-height: 1;
}
.step:not(:last-child)::after { display: none; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }

/* ---------- Karten (Projekte, Referenzen) ---------- */
.portfolio-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.tag { font-family: var(--font); }

/* ---------- Kontaktformular: unterlinierte Felder ---------- */
.contact-form { box-shadow: none; }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: .7rem .1rem;
}
.field input:focus, .field textarea:focus {
  background: transparent; box-shadow: none; border-bottom-color: var(--blue-500);
}

/* ---------- Buttons: etwas zurückhaltender ---------- */
.btn-primary { box-shadow: 0 6px 16px rgba(30, 111, 208, .22); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(30, 111, 208, .32); }

/* ---------- Detail-/Rechtsseiten: Serifen-Überschriften ---------- */
.detail-text h2, .legal h2 { font-family: var(--font-display); font-weight: 600; }
.about-card p { font-family: var(--font); }

/* ============================================================
   ✦ REDESIGN v2 – Bento-Bildkarten (Sortiment) & Partner-Marquee
   ============================================================ */

/* ---------- Sortiment: Bento aus Bildkarten ---------- */
.sortiment-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.scard {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.scard-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.scard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.scard:hover .scard-media img { transform: scale(1.06); }
.scard-badge {
  position: absolute; top: .9rem; left: .9rem;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--blue-700); box-shadow: var(--shadow-sm);
}
.scard-badge svg { width: 22px; height: 22px; }
.scard-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.scard-body h3 { margin-bottom: .4rem; }
.scard-desc { color: var(--body); font-size: .95rem; line-height: 1.55; flex: 1; }
.scat-partners {
  margin-top: 1.1rem; padding-top: .85rem; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--muted); letter-spacing: .02em;
}
.scat-partners span {
  display: inline-block; margin-right: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-600);
}

/* Alle Karten als großzügige Zeilen: Bild + Text nebeneinander,
   abwechselnd Bild links/rechts für einen ruhigen Rhythmus */
@media (min-width: 721px) {
  .scard { flex-direction: row; align-items: stretch; }
  .scard:nth-child(even) { flex-direction: row-reverse; }
  .scard-media { flex: 1 1 50%; aspect-ratio: auto; min-height: 300px; }
  .scard-body { flex: 1 1 50%; justify-content: center; padding: 2.4rem 2.6rem; }
  .scard-body h3 { font-size: 1.7rem; }
  .scard-desc { font-size: 1.04rem; flex: 0; margin-bottom: .3rem; }
}

/* ---------- Partner: laufendes Band (Marquee) ---------- */
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 3.5rem; width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500; color: var(--muted);
  white-space: nowrap; letter-spacing: .01em; transition: color .2s;
}
.marquee-track span:hover { color: var(--blue-700); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 1.2rem 2.4rem; padding: 0 var(--gutter); }
}
@media (max-width: 560px) { .marquee-track span { font-size: 1.2rem; } }

/* ============================================================
   ✦ REDESIGN v3 – Hero-Motiv, Projekte-Bento, kräftiger Prozess
   ============================================================ */

/* ---------- Hero: Architektur-Motiv + Bento-Stat-Kacheln ---------- */
.hero-inner { position: relative; z-index: 2; }
.hero-motif {
  position: absolute; top: 50%; right: -30px; transform: translateY(-50%);
  width: min(42%, 520px); height: auto; opacity: .14; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 60%, transparent);
  mask-image: linear-gradient(to left, #000 60%, transparent);
}
@media (max-width: 980px) { .hero-motif { display: none; } }

.hero-stats { gap: 1rem; margin-top: 2.6rem; padding-top: 0; border-top: 0; }
.hero-stats > div {
  flex: 1 1 150px; padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero-stats dt { font-size: 1.55rem; }

/* ---------- Projekte: Bento (Feature-Karte + Raster) ---------- */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; grid-auto-flow: dense;
}
.portfolio-item--feature {
  grid-column: span 2; grid-row: span 2;
  position: relative; display: flex; flex-direction: column; min-height: 360px;
}
.portfolio-item--feature .pf-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.portfolio-item--feature:hover .pf-img { transform: scale(1.04); }
.portfolio-item--feature .pf-overlay {
  position: relative; z-index: 1; margin-top: auto;
  padding: clamp(1.5rem, 3vw, 2.4rem); color: #fff;
  background: linear-gradient(to top, rgba(6, 24, 46, .92) 18%, rgba(6, 24, 46, .5) 58%, rgba(6, 24, 46, 0));
}
.portfolio-item--feature h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: .4rem 0 .5rem; }
.portfolio-item--feature p { color: rgba(255, 255, 255, .86); max-width: 34rem; }
.portfolio-item--feature .tag { background: rgba(255, 255, 255, .16); color: #fff; }
.portfolio-item--feature .portfolio-link { color: #fff; margin-top: .9rem; }
.portfolio-item--feature:hover { box-shadow: var(--shadow-lg); }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item--feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item--feature { grid-column: span 1; }
}

/* ---------- Prozess: kräftigere Karten mit Zahlen-Badge ---------- */
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.9rem 1.6rem 1.7rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(30, 111, 208, .30);
}

/* ---------- Prozess: untereinander (vertikale Liste, Zahl links) ---------- */
.process-grid { display: flex; flex-direction: column; gap: 1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr;
  column-gap: 1.4rem; align-items: center;
  padding: 1.5rem 1.8rem;
}
.step-num { grid-row: 1 / 3; align-self: center; margin-bottom: 0; }
.step h3 { grid-column: 2; align-self: end; margin-bottom: .25rem; }
.step p { grid-column: 2; align-self: start; margin: 0; }

/* ============================================================
   ✦ Referenzen im Bento-Stil (Feature-Stimme + kompakte Karten)
   ============================================================ */
.ref-bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; grid-auto-flow: dense;
}
.ref-card--feature { grid-column: span 2; grid-row: span 2; }
.ref-card--feature .ref-quote {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.4rem; line-height: .5; color: var(--blue-300);
}
@media (min-width: 721px) {
  .ref-card--feature { flex-direction: row; }
  .ref-card--feature .ref-image { flex: 1 1 44%; aspect-ratio: auto; min-height: 340px; }
  .ref-card--feature figcaption { flex: 1 1 56%; justify-content: center; padding: clamp(1.8rem, 3vw, 2.8rem); }
  .ref-card--feature blockquote { font-size: clamp(1.3rem, 1.9vw, 1.75rem); line-height: 1.42; }
}
@media (max-width: 900px) {
  .ref-bento { grid-template-columns: repeat(2, 1fr); }
  .ref-card--feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .ref-bento { grid-template-columns: 1fr; }
  .ref-card--feature { grid-column: span 1; }
}

/* ---------- Sortiment-Karten als Links + Kategorie-Detailseiten ---------- */
.scard-link { display: inline-block; margin-top: 1rem; color: var(--blue-600); font-weight: 600; font-size: .9rem; }
.scard:hover .scard-link { color: var(--blue-700); }
.aside-partners { font-weight: 600; color: var(--blue-800); margin-bottom: .9rem; }

/* ---------- Marken-Links (Marquee & Detail-Spalte) ---------- */
.marquee-track a, .aside-partners a { color: inherit; }
.marquee-track a:hover { color: var(--blue-700); text-decoration: underline; }
.aside-partners a:hover { color: var(--blue-600); text-decoration: underline; }

/* ---------- Stretched-Link: ganze Sortiment-Karte klickbar, Marken einzeln klickbar ---------- */
.scard { position: relative; }
.scard-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.scat-partners { position: relative; z-index: 2; }
.scat-partners a:hover { color: var(--blue-600); text-decoration: underline; }

/* ---------- Footer: Link-Haftungshinweis ---------- */
.footer-disclaimer { max-width: 760px; margin: 0 auto 1rem; font-size: .8rem; line-height: 1.55; color: rgba(255, 255, 255, .4); }

/* ---------- Einsatzbereiche (Neubau / Altbau / Sanierung) – Bild-Karten ---------- */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.usecase-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-md); background: var(--surface-alt);
}
.usecase-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.usecase:hover .usecase-media img { transform: scale(1.05); }
.usecase-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6, 24, 46, .78), rgba(6, 24, 46, .1) 55%, transparent);
}
.usecase-media h3 {
  position: absolute; left: clamp(1rem, 2vw, 1.5rem); bottom: clamp(.9rem, 2vw, 1.3rem);
  z-index: 2; color: #fff; font-size: clamp(1.4rem, 2vw, 1.7rem); margin: 0;
}
.usecase p { margin-top: 1.1rem; color: var(--body); font-size: 1rem; line-height: 1.6; }

@media (max-width: 900px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usecase-grid { grid-template-columns: 1fr; } }

/* ---------- Über uns: Philosophie-Foto ---------- */
.about-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }

/* ---------- Fehlerseiten (404 / 403 / 500) ---------- */
.error-page { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: clamp(3rem, 9vh, 6rem) 0; }
.error-code {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(4.5rem, 17vw, 9.5rem); letter-spacing: -.03em; margin-bottom: .4rem;
  background: linear-gradient(120deg, var(--blue-500), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .8rem; }
.error-text { color: var(--body); max-width: 48ch; margin: 0 auto 2rem; font-size: 1.06rem; line-height: 1.6; }
.error-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--line); }
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-300); transform: translateY(-2px); }

/* Datenschutz-Hinweis am Kontaktformular */
.form-privacy { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-top: -.2rem; }
.form-privacy a { color: var(--blue-600); text-decoration: underline; }
