/* =========================================================
   Malerbetrieb Schacht GmbH — Design System
   Designsprache orientiert an Documents\Claude\marioservice:
   Space Grotesk (Headlines) + Inter (Fließtext), versetzte
   Rot-Schatten-Karten, Stat-Kacheln, pulsierender Anruf-Button.
   Farbschema aus dem echten Firmenlogo: Rot #C6281B + Anthrazit
   ========================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2-variations"), url("../fonts/inter-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/spacegrotesk-var-latin.woff2") format("woff2-variations"), url("../fonts/spacegrotesk-var-latin.woff2") format("woff2");
}

:root {
  --rot: #c6281b;
  --rot-hell: #e2453a;
  --rot-dunkel: #971f15;
  --anthrazit: #23262b;
  --anthrazit-hell: #4a4e56;
  --tinte: #23262b;
  --tinte-hell: #62666d;
  --hintergrund: #f7f5f3;
  --flaeche: #ffffff;
  --rand: #e5e1dd;

  --font-head: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --schatten: 0 10px 30px -12px rgba(35, 38, 43, 0.25);
  --schatten-stark: 0 20px 45px -15px rgba(35, 38, 43, 0.35);

  --breite: 1180px;
  --nav-h: 84px;

  --dauer: 0.5s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--tinte);
  background: var(--hintergrund);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { padding-left: 1.2em; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--anthrazit);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }

/* ---------- Skip-Link & Fokus (BFSG) ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--rot);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 3000;
  transition: top 0.2s ease;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
a, button { min-height: 44px; }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

/* ---------- Layout ---------- */
section, .section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--alt { background: #fff; border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.abschnitt-kopf { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.abschnitt-kopf p { color: var(--tinte-hell); }
.text-zentriert { text-align: center; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.zweispalte { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

/* ---------- Buttons (3D-Pressed) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-head);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.2s ease;
}
.btn--primary {
  background: var(--rot);
  color: #fff;
  box-shadow: 0 5px 0 var(--rot-dunkel), 0 10px 20px -8px rgba(198, 40, 27, 0.5);
}
.btn--primary:hover { background: var(--rot-hell); transform: translateY(-2px); box-shadow: 0 7px 0 var(--rot-dunkel), 0 14px 24px -8px rgba(198, 40, 27, 0.55); }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--rot-dunkel); }
.btn--sekundaer {
  background: #fff;
  color: var(--anthrazit);
  box-shadow: 0 4px 0 var(--rand), inset 0 0 0 2px var(--rand);
}
.btn--sekundaer:hover { color: var(--rot); transform: translateY(-2px); box-shadow: 0 4px 0 var(--rand), inset 0 0 0 2px var(--rot); }
.btn--sekundaer:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rand); }
.btn--klein { padding: 10px 18px; font-size: 0.88rem; }
.btn--nav {
  background: var(--rot);
  color: #fff;
  padding: 0.55em 1.2em;
  font-size: 0.9rem;
  box-shadow: 0 3px 0 var(--rot-dunkel);
}
.btn--nav:hover { background: var(--rot-hell); }
.btn--nav:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rot-dunkel); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}

/* ---------- Kopfbereich / Navigation (sticky, nicht fixed) ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 245, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rand);
  transition: box-shadow 0.2s ease;
}
.kopf--gescrollt { box-shadow: 0 8px 24px -12px rgba(0,0,0,0.18); }
.kopf__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 62px; width: auto; }

.nav__liste { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--anthrazit);
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--rot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--rot); background: rgba(198,40,27,0.06); }
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--rot); }

.nav__aktion { display: flex; align-items: center; gap: 12px; }
.nav__telefon { display: none; }
@media (min-width: 1025px) {
  .nav__telefon { display: inline-flex; align-items: center; gap: 8px; }
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--anthrazit); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- CSS-Animationen ---------- */
@keyframes einfliegen {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__inhalt { animation: einfliegen 0.8s var(--ease) both; }
.hero__inhalt .kicker { animation: einfliegen 0.6s var(--ease) both; }
.hero__inhalt h1 { animation: einfliegen 0.75s var(--ease) 0.08s both; }
.hero__inhalt p { animation: einfliegen 0.75s var(--ease) 0.16s both; }
.hero__cta { animation: einfliegen 0.75s var(--ease) 0.24s both; }

@keyframes logoPuls {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.logo:hover img { animation: logoPuls 0.6s ease; }

@media (max-width: 1024px) {
  .nav__liste.ist-offen .nav__link { animation: einfliegen 0.4s var(--ease) both; }
  .nav__liste.ist-offen .nav__item:nth-child(1) .nav__link { animation-delay: 0.02s; }
  .nav__liste.ist-offen .nav__item:nth-child(2) .nav__link { animation-delay: 0.06s; }
  .nav__liste.ist-offen .nav__item:nth-child(3) .nav__link { animation-delay: 0.1s; }
  .nav__liste.ist-offen .nav__item:nth-child(4) .nav__link { animation-delay: 0.14s; }
  .nav__liste.ist-offen .nav__item:nth-child(5) .nav__link { animation-delay: 0.18s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__inhalt, .hero__inhalt .kicker, .hero__inhalt h1, .hero__inhalt p, .hero__cta, .logo:hover img { animation: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero--bild { min-height: 640px; display: flex; align-items: center; padding: 56px 0; color: #fff; }
.hero__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero--bild::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(35,38,43,0.88) 0%, rgba(35,38,43,0.62) 45%, rgba(35,38,43,0.4) 100%);
  z-index: 1;
}
.hero__inhalt { position: relative; z-index: 2; max-width: 680px; }
.kicker {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(198,40,27,0.14);
  color: var(--rot);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero--bild .kicker { background: rgba(255,255,255,0.16); color: #fff; }
.hero--bild h1, .hero--bild p { color: #fff; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.seiten-kopf { padding: 56px 0; background: linear-gradient(180deg, #fff 0%, var(--hintergrund) 100%); border-bottom: 1px solid var(--rand); }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dauer) var(--ease), transform var(--dauer) var(--ease); }
.reveal.reveal--sichtbar { opacity: 1; transform: translateY(0); }
.reveal--links { transform: translateX(-28px); }
.reveal--links.reveal--sichtbar { transform: translateX(0); }
.reveal--rechts { transform: translateX(28px); }
.reveal--rechts.reveal--sichtbar { transform: translateX(0); }
.reveal--skalieren { transform: scale(0.94); }
.reveal--skalieren.reveal--sichtbar { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Stat-Kacheln ---------- */
.statleiste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stat-kachel {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--schatten);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stat-kachel strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--rot);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-kachel span { color: var(--tinte-hell); font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .stat-kachel { transform: none !important; } }

/* ---------- Karten ---------- */
.karte {
  background: var(--flaeche);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--schatten);
  border: 1px solid var(--rand);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.karte:hover { box-shadow: var(--schatten-stark); }
.karte__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(198,40,27,0.1);
  color: var(--rot);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.karte__bild {
  margin: -32px -32px 20px;
  width: calc(100% + 64px);
  max-width: calc(100% + 64px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.karte h3 { margin-bottom: 0.4em; }
.karte p { color: var(--tinte-hell); margin-bottom: 0; font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .karte { transform: none !important; } }

/* ---------- Leistungs-Karten: versetzter Rot-Schatten (marioservice-Stil) ---------- */
.leistung-karte { position: relative; display: flex; height: 100%; }
.leistung-karte::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rot);
  border-radius: var(--radius);
  z-index: 0;
  transform: translate(10px, 10px);
  transition: transform 0.35s var(--ease);
}
.leistung-karte:hover::before { transform: translate(14px, 14px); }
.leistung-karte > .karte { position: relative; z-index: 1; flex: 1 1 auto; width: 100%; }
.leistung-karte:hover > .karte { box-shadow: var(--schatten-stark); }
.grid--leistungen, .grid:has(> .leistung-karte) { align-items: stretch; }
.leistung-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--rot);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  .leistung-karte::before { transform: translate(6px, 6px); }
  .leistung-karte:hover::before { transform: translate(6px, 6px); }
}

.leistungs-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.leistungs-liste li {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.leistungs-liste li::before { content: "✓"; color: var(--rot); font-weight: 800; flex-shrink: 0; }
.leistungs-liste ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.leistungs-liste ul li { border: none; background: var(--hintergrund); }

.bild-karte { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.bild-karte img { width: 100%; height: 100%; object-fit: cover; }

.hinweis-box {
  background: #fff;
  border: 1px solid var(--rand);
  border-left: 4px solid var(--rot);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

/* ---------- CTA-Sektion ---------- */
.cta-sektion {
  background: linear-gradient(135deg, var(--anthrazit), #34383f);
  color: #fff;
  border-radius: var(--radius);
  margin: 0 auto;
  padding: 56px 24px;
}
.cta-sektion h2, .cta-sektion p { color: #fff; }
.cta-sektion .hero__cta { justify-content: center; margin-top: 20px; }

/* ---------- Kontakt ---------- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.kontakt-karte { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border-radius: 14px; border: 1px solid var(--rand); }
.kontakt-karte .karte__icon { margin-bottom: 0; flex-shrink: 0; }
address { font-style: normal; }

/* ---------- Sponsoring ---------- */
.sponsor-karte { display: flex; align-items: center; gap: 24px; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--rand); box-shadow: var(--schatten); }
.sponsor-karte img { width: 92px; height: 92px; object-fit: contain; }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 16px; }
.formular label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 6px; }
.formular input, .formular textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--rand);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease;
}
.formular input:focus, .formular textarea:focus { border-color: var(--rot); }
.formular__checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--anthrazit-hell); }
.formular__checkbox input { width: auto; }
.hp-feld { position: absolute; left: -9999px; opacity: 0; height: 0; }
.formular__status { font-size: 0.9rem; margin-top: 8px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--anthrazit); color: rgba(255,255,255,0.85); padding: 56px 0 28px; margin-top: 40px; }
.fuss a { text-decoration: none; }
.fuss p { color: rgba(255,255,255,0.75); }
.fuss h4 { font-family: var(--font-head); }
.fuss__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.fuss__grid h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.fuss__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fuss__grid a:hover { color: var(--rot-hell); }
.fuss__unten { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.fuss__unten a:hover { color: #fff; }

/* ---------- Datenschutz-Consent-Banner ---------- */
.consent-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  visibility: hidden;
}
.consent-gate.zeigen { visibility: visible; pointer-events: auto; }
.consent-box {
  position: relative;
  width: 100%;
  background: var(--anthrazit);
  color: rgba(255, 255, 255, 0.9);
  padding: 28px 24px 32px;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.4);
  border-top: 3px solid var(--rot);
  box-sizing: border-box;
}
.consent-gate.zeigen .consent-box { transform: translateY(0); }
.consent-box__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.consent-box__text { flex: 1; min-width: 280px; }
.consent-box h2 { font-size: 1.05rem; margin-bottom: 0.6em; color: #fff; }
.consent-box ul { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); margin: 0 0 0.7em; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }
.consent-box ul strong { color: var(--rot-hell); }
.consent-box__text > a { color: rgba(255, 255, 255, 0.75); font-size: 0.82rem; text-decoration: underline; }
.consent-box__text > a:hover { color: #fff; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.consent-actions .btn { flex: 0 0 auto; white-space: nowrap; width: auto; }

/* ---------- Legal-Seiten ---------- */
.legal-text h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal-text p, .legal-text ul { color: var(--anthrazit-hell); }

/* ---------- 404 ---------- */
.fehlerseite { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 56px 0; }
.fehlerseite h1 { font-size: clamp(3rem, 8vw, 6rem); color: var(--rot); margin-bottom: 0.2em; }

/* ---------- Breakpoint 1024px ---------- */
@media (max-width: 1024px) {
  .nav__liste {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh; height: 100dvh;
    background: var(--hintergrund);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--nav-h) + 24px) 24px 24px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .nav__liste.ist-offen { transform: translateX(0); }
  .nav__link { padding: 16px; font-size: 1.1rem; }
  .nav__toggle { display: flex; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .zweispalte { grid-template-columns: 1fr; gap: 28px; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .fuss__grid { grid-template-columns: 1fr; gap: 24px; }
  section, .section { padding: 48px 0; }
  .hero { padding: 40px 0; }
  .hero--bild { min-height: 520px; }
  .karte:hover, .stat-kachel:hover { transform: none !important; }
  .statleiste { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .kopf__inner { height: 68px; }
  .logo img { height: 40px; }
  .consent-actions { flex-direction: column; }
  .statleiste { grid-template-columns: 1fr; }
}
