/* ============================================================
   GLANZSTATT v2 – Vertrauens-Handwerk, hell & modern
   Marineblau trägt Autorität, Orange ist die Handlung,
   Barlow Condensed spricht Handwerk.
   ============================================================ */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #1B3A5C;          /* Marineblau – Brand robust */
  --navy-deep: #14293F;
  --navy-soft: #24486E;
  --orange: #E8620C;        /* Signal-Orange – Brand-Akzent, NUR Handlung */
  --orange-deep: #C55107;
  --silver: #B0B4B8;        /* Brand-Silber – Linien */
  --bg: #FAFBFC;
  --bg-alt: #F1F4F7;
  --ink: #1E2A38;
  --ink-dim: #51606F;
  --on-navy: #F2F6FA;
  --on-navy-dim: #A9BDD1;
  --line: #DDE3E9;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(27, 58, 92, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: #FFF6EF; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }
html { scrollbar-color: var(--navy) var(--bg-alt); scrollbar-width: thin; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(232, 98, 12, 0.15); }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--navy); color: #fff; font-weight: 600;
  padding: 0.6rem 1rem; border-radius: 0 0 10px 10px; text-decoration: none;
  transition: top 0.2s ease-out;
}
.skip:focus-visible { top: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

h1, h2, h3 { font-family: var(--display); line-height: 1.04; text-wrap: balance; color: var(--navy); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 1.6rem; }

a { color: inherit; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--text); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border-radius: 999px;
  padding: 0.85rem 1.6rem;
  transition: background-color 0.22s ease-out, border-color 0.22s ease-out, transform 0.22s ease-out, box-shadow 0.22s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--orange); color: #FFF8F2; box-shadow: 0 8px 20px -10px rgba(232, 98, 12, 0.55); }
.btn-cta:hover { background: var(--orange-deep); box-shadow: 0 10px 24px -10px rgba(232, 98, 12, 0.65); }
.btn-line { border: 1.5px solid var(--line); color: var(--navy); background: #fff; }
.btn-line:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-soft); }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.ic-s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--orange-deep); text-decoration: none; }
.text-link .ic { width: 1em; height: 1em; }
.text-link:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* ============ Header (sticky – Kontakt immer präsent) ============ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 0.8rem clamp(1.25rem, 4vw, 3rem);
  display: flex; align-items: center; gap: 2rem;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.02em; text-decoration: none; color: var(--navy);
}
.wordmark span, .foot-mark span { color: var(--orange); }
.head-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.head-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-dim);
  transition: color 0.2s ease-out;
}
.head-nav a:hover { color: var(--navy); }
.head-cta { padding: 0.6rem 1.2rem; font-size: 0.95rem; }

/* Icon-Kachel-Links (Pattern nach AMC-Vorbild, in Glanzstatt-Farben) */
.kopf-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.25rem 0;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-dim);
  transition: color 0.2s ease-out;
}
.kopf-link:hover { color: var(--navy); }
.kachel {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease-out;
}
.kopf-link:hover .kachel { background: var(--navy-soft); }
.kachel .ic-s { width: 17px; height: 17px; }
.legal-page .kopf-link { margin-left: auto; }

/* ============ Hero ============ */
.hero { padding: clamp(3rem, 8vh, 6rem) 0 clamp(3.5rem, 9vh, 6.5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.hero h1 {
  font-size: clamp(3.1rem, 7.2vw, 5.2rem);
  font-weight: 700; line-height: 0.98;
}
.hero h1 em {
  font-style: normal; color: var(--orange);
  text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.12em;
  text-decoration-color: rgba(232, 98, 12, 0.35);
}
.hero-sub { margin-top: 1.5rem; max-width: 33rem; font-size: 1.16rem; color: var(--ink-dim); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }

/* Trust-Sektion: eigene Zeile direkt unter dem Hero */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem; padding-block: 1.4rem;
}
.trust-strip dt {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy); line-height: 1.1; letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.trust-strip dd { font-size: 0.9rem; color: var(--ink-dim); margin-top: 0.1rem; }

.hero-panel {
  background: var(--navy); color: var(--on-navy);
  border-radius: var(--radius); padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow);
}
.panel-title {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: #fff;
  margin-bottom: 0.7rem;
}
.hero-panel a {
  display: block; text-decoration: none;
  padding: 0.95rem 0.2rem;
  border-top: 1px solid rgba(176, 180, 184, 0.25);
}
.hero-panel a strong { display: block; font-size: 1.02rem; color: #fff; }
.hero-panel a span { display: block; font-size: 0.88rem; color: var(--on-navy-dim); margin-top: 0.15rem; transition: color 0.2s ease-out; }
.hero-panel a:hover strong { color: #FFD9BE; }
.hero-panel a:hover span { color: var(--on-navy); }
.panel-note { margin-top: 1rem; font-size: 0.85rem; color: var(--on-navy-dim); }

/* ============ Beweis ============ */
.proof { background: var(--bg-alt); padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.proof p { color: var(--ink-dim); max-width: 34rem; }
.proof p + p { margin-top: 0.9rem; }
.proof p strong { color: var(--ink); }
.materials { list-style: none; }
.materials li {
  padding: 1rem 0.2rem; border-bottom: 1px solid var(--line);
  color: var(--ink-dim); font-size: 0.98rem;
}
.materials li:first-child { border-top: 1px solid var(--line); }
.materials li strong { display: block; color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }

/* ============ Leistungen ============ */
.services { padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.service-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  transition: box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
.service:hover { box-shadow: var(--shadow); border-color: transparent; }
.service.featured {
  grid-column: 1 / -1;
  background: var(--navy); border-color: var(--navy);
  color: var(--on-navy);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem 3rem; align-items: center;
  padding: 2.3rem 2.2rem;
}
.service.featured h3 { grid-column: 1; }
.service.featured p { grid-column: 1; color: var(--on-navy-dim); max-width: 60ch; }
.service.featured .btn { grid-column: 2; grid-row: 1 / span 3; justify-self: end; }
.service-tag {
  grid-column: 1;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #FFC79A;
}
.service h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; margin-bottom: 0.5rem; }
.service.featured h3 { color: #fff; }
.service p { color: var(--ink-dim); font-size: 0.98rem; }
.service .text-link { display: inline-flex; margin-top: 0.9rem; }

/* ============ Galerie / Slideshow (AMC-Pattern: Punkte, Auto-Wechsel, Hover-Pause) ============ */
.work { background: #fff; border-block: 1px solid var(--line); padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.work-note { color: var(--ink-dim); max-width: 42rem; margin: -0.6rem 0 1.7rem; font-size: 0.98rem; }
.slideshow {
  display: grid;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.slideshow .slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid; place-content: center; justify-items: center; gap: 0.55rem;
  text-align: center; padding: 2rem;
  min-height: clamp(16rem, 38vw, 26rem);
  opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.slideshow .slide.aktiv { opacity: 1; pointer-events: auto; }
.slideshow img.slide { width: 100%; height: 100%; min-height: 0; object-fit: cover; padding: 0; display: block; }
.slide-mark {
  position: absolute; inset: 0; display: grid; place-content: center; overflow: hidden;
  font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 13vw, 8.5rem);
  letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.05); user-select: none; white-space: nowrap;
}
.slide-mark span { color: rgba(255, 158, 90, 0.09); }
.slide-label { position: relative; font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 3vw, 2rem); color: #fff; line-height: 1.15; }
.slide-hint {
  position: relative; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-navy-dim);
  border: 1px solid rgba(169, 189, 209, 0.4); border-radius: 999px; padding: 0.22rem 0.85rem;
}
.slide-punkte {
  grid-area: 1 / 1; align-self: end; justify-self: center;
  position: relative; z-index: 2;
  display: flex; gap: 0.15rem; padding-bottom: 0.75rem;
}
.slide-punkte button {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.slide-punkte button::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.25s ease-out, transform 0.25s ease-out;
}
.slide-punkte button:hover::after { background: rgba(255, 255, 255, 0.85); }
.slide-punkte button.aktiv::after { background: var(--orange); transform: scale(1.3); }

/* ============ Ablauf ============ */
.how { background: var(--bg-alt); padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.steps li {
  counter-increment: step;
  position: relative; padding-left: 3rem;
  color: var(--ink-dim); font-size: 0.95rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 999px;
  background: var(--orange); color: #FFF8F2;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
}
.steps li strong {
  display: block; color: var(--navy); font-family: var(--display);
  font-weight: 600; font-size: 1.3rem; margin-bottom: 0.3rem; letter-spacing: 0.01em;
}

/* ============ Kontakt ============ */
.contact {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  padding: clamp(4rem, 11vh, 7.5rem) 0;
  text-align: center;
}
.contact h2 { color: #fff; }
.tel-big {
  display: inline-block; text-decoration: none;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 5rem);
  color: #fff; line-height: 1.1;
  transition: color 0.2s ease-out;
}
.tel-big:hover { color: #FFC79A; }
.contact .cta-row { margin-top: 1.6rem; }
.contact address {
  font-style: normal; margin-top: 2.4rem;
  color: var(--on-navy-dim); font-size: 0.95rem; line-height: 1.8;
}

/* ============ Footer ============ */
.site-foot { background: var(--navy-deep); color: var(--on-navy-dim); }
.foot-inner {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding-block: 1.5rem;
}
.foot-mark { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--on-navy); letter-spacing: 0.02em; }
.site-foot nav { display: flex; gap: 1.4rem; }
.site-foot nav a { color: var(--on-navy-dim); text-decoration: none; font-size: 0.9rem; }
.site-foot nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.3em; }

/* ============ Mobile Kontakt-Leiste ============ */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  gap: 0.7rem;
}
.mobile-bar .btn { flex: 1; font-size: 1rem; padding: 0.8rem 1rem; }

/* ============ Rechtsseiten ============ */
.legal { min-height: 60vh; padding: clamp(2.5rem, 7vh, 4.5rem) 0 clamp(3.5rem, 9vh, 5.5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; margin-bottom: 1.8rem; }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-dim); max-width: 65ch; }
.legal p + p { margin-top: 0.8rem; }
.legal ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.legal a { color: var(--orange-deep); text-underline-offset: 0.25em; }
.legal .back { display: inline-block; margin-bottom: 2rem; text-decoration: none; font-weight: 600; color: var(--navy); }
.legal .back:hover { color: var(--orange-deep); }

/* ============ Reveals (GSAP setzt data-reveal; ohne JS bleibt alles sichtbar) ============ */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .slideshow .slide { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 60rem) {
  .hero-grid, .proof-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service.featured { grid-template-columns: 1fr; }
  .service.featured .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.8rem; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .trust-strip { grid-template-columns: 1fr; gap: 0.9rem; padding-block: 1.2rem; }
  .head-nav { display: none; }
  .kopf-link { margin-left: auto; }
}
@media (max-width: 46rem) {
  .head-cta span { display: none; }
  .head-cta { padding: 0.6rem 0.8rem; }
  .kopf-text { display: none; }
  .mobile-bar { display: flex; }
  .mobile-bar .btn { font-size: 0.92rem; padding: 0.75rem 0.5rem; gap: 0.4rem; line-height: 1.2; }
  body { padding-bottom: 4.6rem; }
  .contact { padding-bottom: clamp(4rem, 11vh, 7.5rem); }
}
