/* ==========================================================================
   Pyka Haustechnik – Website
   Farb- und Typo-System aus dem Claude-Design übernommen.
   ========================================================================== */

:root {
  --bg:        #F5F5F3;
  --surface:   #FFFFFF;
  --ink:       #16191C;
  --ink-2:     #22262A;
  --muted:     #41464B;
  --soft:      #5C6167;
  --line:      #E6E6E1;
  --line-2:    #D6D6D1;
  --field:     #DEDED9;

  --red:       #DB2430;
  --red-soft:  #FCF3F4;
  --blue:      #1B7FBF;
  --blue-soft: #EAF3FA;
  --blue-line: #BFDCEF;
  --blue-tint: #F1F7FC;

  --deep:      #0F3B5C;
  --deep-2:    #14476E;
  --deep-3:    #0B2E48;
  --on-deep:   #B7CBDA;
  --on-deep-2: #7FBCE4;

  --wrap: 1240px;
  --pad: 28px;

  --r-lg: 30px;
  --r-md: 26px;
  --r-sm: 20px;
  --r-xs: 16px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--red); }
img { max-width: 100%; }
::selection { background: var(--red); color: #fff; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --- Typografie ---------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: Archivo, system-ui, sans-serif;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.06; }
h3 { font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }

.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
}
.kicker--light { color: var(--on-deep-2); }
.lead { font-size: 19px; line-height: 1.62; color: var(--muted); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 16px;
  padding: 16px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(219,36,48,.24); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(219,36,48,.32); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost-light {
  border-color: rgba(255,255,255,.35); color: var(--bg); background: transparent; font-size: 15px; padding: 14px 24px;
}
.btn--ghost-light:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; border: none; }
.btn--blue:hover { background: var(--red); color: #fff; transform: translateY(-1px); }

/* --- Reveal on scroll ---------------------------------------------------- */

[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245,245,243,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-bar {
  max-width: var(--wrap); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 38px; width: auto; display: block; }
.site-nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.site-nav a {
  font-family: Archivo, sans-serif; font-size: 14.5px; font-weight: 600;
  letter-spacing: .01em; color: var(--ink);
}
.site-nav a:hover { color: var(--red); }
.header-cta {
  display: flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 14.5px; white-space: nowrap;
  transition: background .25s, transform .25s;
}
.header-cta:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.header-cta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.header-cta:hover .dot { background: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface);
  cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span + span { margin-top: 5px; }
.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); }

/* Wellen-Trenner unter dem Header (Logo-Motiv) */
.header-wave { position: relative; height: 26px; overflow: hidden; background: var(--bg); }
.header-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.header-wave .sheen {
  position: absolute; inset: 0; width: 34%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.85), rgba(255,255,255,0));
  animation: pyka-sheen 7s ease-in-out infinite;
  pointer-events: none; mix-blend-mode: overlay;
}

@keyframes pyka-sheen {
  0%   { transform: translateX(-40%); opacity: 0; }
  12%  { opacity: .9; }
  60%  { opacity: .9; }
  100% { transform: translateX(140%); opacity: 0; }
}
@keyframes pyka-glow {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%      { transform: scale(1.14); opacity: .8; }
}
@keyframes pyka-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pyka-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(219,36,48,.45); }
  70%      { box-shadow: 0 0 0 14px rgba(219,36,48,0); }
}

/* --- Hero ---------------------------------------------------------------- */

.hero { position: relative; padding: 96px var(--pad) 88px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -160px; right: -120px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(219,36,48,.18), rgba(27,127,191,.10) 55%, rgba(245,245,243,0) 72%);
  animation: pyka-glow 9s ease-in-out infinite; pointer-events: none;
}
.hero__inner {
  max-width: var(--wrap); margin: 0 auto; position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 64px; align-items: center;
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
}
/* Zeilenumbrüche in der Headline nur auf großen Screens erzwingen */
.br-lg { display: none; }
@media (min-width: 760px) { .br-lg { display: inline; } }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--soft);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.hero h1 { margin-top: 26px; }
.hero .lead { max-width: 52ch; margin: 26px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: 38px;
  margin-top: 52px; justify-content: start;
}
.stat__num { font-family: Archivo, sans-serif; font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.stat__label { font-size: 13.5px; color: var(--soft); margin-top: 4px; line-height: 1.4; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 34px 80px rgba(20,24,28,.22); aspect-ratio: 4/5;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__card {
  position: absolute; left: -26px; bottom: 34px;
  background: var(--surface); border-radius: 18px; padding: 20px 24px;
  box-shadow: 0 20px 44px rgba(20,24,28,.16);
  display: flex; align-items: center; gap: 16px;
}
.hero__card img { width: 52px; height: 60px; object-fit: contain; }
.hero__card b { font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px; display: block; }
.hero__card span { font-size: 13px; color: var(--soft); display: block; margin-top: 3px; }

/* --- Laufband ------------------------------------------------------------ */

.marquee { background: var(--deep); color: #fff; padding: 18px 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: pyka-marquee 34s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 46px; padding-right: 46px; }
.marquee__group span {
  display: flex; align-items: center; gap: 46px;
  font-family: Archivo, sans-serif; font-weight: 600; font-size: 15px;
  letter-spacing: .02em; white-space: nowrap; color: var(--bg);
}
.marquee__group i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* --- Sektionen ----------------------------------------------------------- */

.section { padding: 104px var(--pad); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.section-head h2 { margin-top: 16px; max-width: 20ch; }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 40ch; margin: 0; }

/* --- Leistungen ---------------------------------------------------------- */

.tabs {
  display: flex; gap: 10px; margin-top: 44px;
  overflow-x: auto; padding-bottom: 6px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; cursor: pointer;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); color: var(--deep); border: 1px solid var(--blue-line);
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.tab:hover { border-color: var(--blue); }
.tab[aria-selected="true"] {
  background: var(--red); color: #fff; border-color: var(--red);
  box-shadow: 0 10px 24px rgba(219,36,48,.28);
}
.panel {
  margin-top: 28px; background: var(--surface); border-radius: var(--r-md);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 18px 50px rgba(20,24,28,.06);
}
.panel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.panel__body { padding: 52px 52px 56px; min-width: 0; }
.panel__meta { display: flex; align-items: center; gap: 12px; }
.panel__meta .pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--red);
  animation: pyka-pulse 2.8s ease-out infinite;
}
.panel__meta span {
  font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--soft);
}
.panel__body h3 { margin-top: 18px; }
.panel__body > p { font-size: 17.5px; line-height: 1.65; color: var(--muted); margin: 16px 0 0; max-width: 56ch; }
.panel__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.panel__list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 16px; line-height: 1.5; color: var(--ink-2);
}
.panel__list li::before {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft); border: 1px solid var(--blue-line); margin-top: 2px;
}
.panel__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 34px;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 16px; color: var(--ink);
  border-bottom: 2px solid var(--red); padding-bottom: 4px;
}
.panel__cta:hover { color: var(--red); }
.panel__media { position: relative; min-width: 0; min-height: 460px; background: #EDEDE9; }
.panel__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}

/* --- Einblicke / Instagram ----------------------------------------------- */

.insights {
  position: relative; background: var(--deep); color: var(--bg);
  padding: 104px 0; overflow: hidden;
}
.insights__glow {
  position: absolute; top: 0; left: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219,36,48,.20), rgba(27,127,191,.14) 45%, rgba(15,59,92,0) 70%);
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.insights .section-head h2 { max-width: none; }
.insights .section-head p { color: var(--on-deep); font-size: 16px; max-width: 46ch; margin-top: 16px; }

.rail-nav { display: flex; gap: 12px; align-items: center; }
.rail-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: var(--bg);
  font-size: 20px; cursor: pointer; transition: background .25s, border-color .25s, color .25s;
  display: grid; place-items: center;
}
.rail-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

.rail {
  margin-top: 48px; display: flex; gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 0 var(--pad) 8px;
  scroll-padding-left: var(--pad); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail__spacer-start { flex: 0 0 max(0px, calc((100vw - var(--wrap)) / 2)); }
.rail__spacer-end { flex: 0 0 var(--pad); }

.post { flex: 0 0 clamp(260px, 30vw, 380px); margin: 0; scroll-snap-align: start; }
.post__media {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden;
  background: var(--deep-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  display: block; cursor: zoom-in;
}
.post__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.post__media:hover img { transform: scale(1.05); }
.post__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(11,46,72,.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: #fff; letter-spacing: .02em;
}
.post figcaption { margin-top: 16px; }
.post__title { font-family: Archivo, sans-serif; font-weight: 700; font-size: 17px; }
.post__note { font-size: 14.5px; color: var(--on-deep); margin-top: 5px; line-height: 1.5; }
.post__link {
  display: inline-block; margin-top: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--on-deep-2); border-bottom: 1px solid rgba(127,188,228,.4); padding-bottom: 2px;
}
.post__link:hover { color: #fff; border-color: #fff; }

.rail-foot {
  max-width: var(--wrap); margin: 0 auto; padding: 34px var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.dots { display: flex; gap: 8px; }
.dot-btn {
  cursor: pointer; border: none; padding: 0; height: 6px; border-radius: 999px;
  width: 14px; background: rgba(255,255,255,.32); transition: width .3s var(--ease), background .3s;
}
.dot-btn[aria-current="true"] { width: 34px; background: var(--red); }

/* Projektfotos-Raster */
.projects { max-width: var(--wrap); margin: 84px auto 0; padding: 0 var(--pad); position: relative; }
.projects__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.projects__head h3 { font-size: clamp(22px, 2.2vw, 28px); }
.projects__head p { color: var(--on-deep); font-size: 15.5px; margin: 8px 0 0; max-width: 52ch; }
.grid-photos {
  margin-top: 28px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.photo {
  position: relative; display: block; border-radius: var(--r-xs); overflow: hidden;
  aspect-ratio: 4/3; background: var(--deep-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); cursor: zoom-in;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.06); }
.photo__cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(8,32,52,.86), rgba(8,32,52,0));
  font-size: 13.5px; font-weight: 600; color: #fff;
}

/* --- Einsatzgebiet ------------------------------------------------------- */

.region__grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 64px; align-items: center;
}
.region__grid h2 { margin-top: 16px; }
.region__grid > div > p { font-size: 17.5px; line-height: 1.65; color: var(--muted); margin: 20px 0 0; max-width: 48ch; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.chip {
  border: 1px solid var(--blue-line); border-radius: 999px; padding: 10px 18px;
  font-size: 14.5px; font-weight: 600; background: var(--blue-soft); color: var(--blue);
}

.map {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--blue-line); box-shadow: 0 20px 50px rgba(15,59,92,.14);
  background: var(--blue-soft); min-height: 420px;
}
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.map__placeholder, .map__consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 14px; text-align: center; padding: 32px;
  background:
    repeating-linear-gradient(45deg, rgba(27,127,191,.05) 0 12px, rgba(27,127,191,0) 12px 24px),
    var(--blue-soft);
}
.map__placeholder p, .map__consent p { margin: 0; font-size: 14.5px; color: var(--soft); max-width: 34ch; line-height: 1.5; }
.map__consent svg { color: var(--blue); }
.map__pin {
  position: absolute; left: 18px; bottom: 18px; background: var(--surface);
  border-radius: 14px; padding: 14px 18px; box-shadow: 0 12px 30px rgba(15,59,92,.18);
  display: flex; align-items: center; gap: 12px; pointer-events: none;
}
.map__pin .pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--red);
  animation: pyka-pulse 2.8s ease-out infinite; flex: 0 0 auto;
}
.map__pin b { display: block; font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.map__pin span { display: block; font-size: 13px; color: var(--soft); margin-top: 3px; }

.pillars {
  max-width: var(--wrap); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px;
}
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,24,28,.10); }
.pillar__no { font-family: Archivo, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--red); }
.pillar__title { font-family: Archivo, sans-serif; font-weight: 700; font-size: 19px; margin-top: 14px; }
.pillar__text { font-size: 15px; line-height: 1.55; color: var(--soft); margin-top: 10px; }

/* --- Kontakt ------------------------------------------------------------- */

.contact { padding: 0 var(--pad) 104px; }
.contact__box {
  max-width: var(--wrap); margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.contact__left { padding: 56px; min-width: 0; }
.contact__left h2 { margin-top: 16px; }
.contact__left > p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; max-width: 42ch; }
.contact__list { display: grid; gap: 14px; margin-top: 34px; }
.contact__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--r-xs); padding: 20px 22px; color: var(--ink);
  transition: border-color .25s, background .25s;
}
a.contact__item:hover { color: var(--ink); }
a.contact__item--phone:hover { border-color: var(--red); background: var(--red-soft); }
a.contact__item--wa:hover { border-color: var(--blue); background: var(--blue-tint); }
.contact__label { display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.contact__value {
  display: block; font-family: Archivo, sans-serif; font-weight: 700; font-size: 21px;
  margin-top: 6px; white-space: nowrap;
}
.contact__arrow { font-size: 18px; }

.contact__right { background: var(--bg); padding: 56px; border-left: 1px solid var(--line); min-width: 0; }
.form { display: grid; gap: 18px; }
.form__title { font-family: Archivo, sans-serif; font-weight: 700; font-size: 20px; }
.form label {
  display: grid; gap: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--soft);
}
.form input, .form select, .form textarea {
  font-family: "IBM Plex Sans", sans-serif; font-size: 16px; font-weight: 400;
  padding: 15px 16px; border: 1px solid var(--field); border-radius: 12px;
  background: var(--surface); color: var(--ink); outline: none;
  text-transform: none; letter-spacing: normal; width: 100%;
  transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 108px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); }
.form__hint { font-size: 13px; color: var(--soft); line-height: 1.5; margin: -4px 0 0; }
.form__hint a { font-weight: 600; }

.form-done { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.form-done__mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 26px;
}
.form-done__title { font-family: Archivo, sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.form-done p { font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 36ch; margin: 0; }
.link-btn {
  align-self: flex-start; margin-top: 10px; background: none; border: none; padding: 0;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px; color: var(--blue); cursor: pointer;
}
.link-btn:hover { color: var(--red); }
[hidden] { display: none !important; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--deep-3); color: var(--on-deep); padding: 56px var(--pad); }
.footer__top {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start;
}
.footer__brand { max-width: 38ch; }
.footer__logo { display: inline-flex; background: var(--bg); border-radius: 12px; padding: 14px 18px; }
.footer__logo img { height: 36px; width: auto; display: block; }
.footer__brand p { font-size: 15px; line-height: 1.6; margin: 20px 0 0; }
.footer__col { display: grid; gap: 8px; font-size: 15px; align-content: start; }
.footer__col b { font-family: Archivo, sans-serif; font-weight: 700; color: var(--bg); margin-bottom: 6px; }
.footer__col a { color: var(--on-deep); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  max-width: var(--wrap); margin: 44px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px;
}
.footer__bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__bottom a { color: var(--on-deep); }
.footer__bottom a:hover { color: #fff; }

/* --- Lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(8,24,38,.92); backdrop-filter: blur(6px);
  padding: 24px; place-items: center;
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox__img {
  max-width: min(1100px, 92vw); max-height: 82vh; width: auto; height: auto;
  border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  display: block; margin-inline: auto;
}
.lightbox__cap {
  color: #E8EEF3; font-size: 15px; text-align: center; margin-top: 16px;
  max-width: 60ch; line-height: 1.5;
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.28);
  color: #fff; border-radius: 50%; width: 48px; height: 48px; cursor: pointer;
  font-size: 20px; display: grid; place-items: center; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --- Consent-Banner ------------------------------------------------------ */

.footer__cookie {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--on-deep); text-decoration: underline; text-underline-offset: 3px;
}
.footer__cookie:hover { color: #fff; }

.consent {
  position: fixed; inset: auto 0 0 0; z-index: 130;
  padding: 16px; display: flex; justify-content: center;
  animation: consent-in .4s var(--ease) both;
}
.consent[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.consent__box {
  width: min(940px, 100%);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: 0 24px 60px rgba(11,46,72,.28);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.consent__text { flex: 1 1 340px; min-width: 0; }
.consent__text b { font-family: Archivo, sans-serif; font-weight: 700; font-size: 16px; display: block; margin-bottom: 6px; }
.consent__text p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.consent__actions { display: flex; gap: 12px; flex: 0 0 auto; flex-wrap: wrap; }
.consent__actions .btn { padding: 13px 22px; font-size: 15px; }

@media (max-width: 640px) {
  .consent { padding: 10px; }
  .consent__box { padding: 18px 18px 20px; gap: 16px; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1 1 auto; }
}

/* --- Rechtstexte (Impressum / Datenschutz) ------------------------------- */

.legal { max-width: 820px; margin: 0 auto; padding: 72px var(--pad) 104px; }
.legal h1 { font-size: clamp(32px, 4vw, 46px); }
.legal h2 { font-size: clamp(21px, 2.2vw, 26px); margin-top: 44px; }
.legal h3 { font-size: 18px; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal .todo {
  background: #FFF6D6; border: 1px solid #E8D48A; border-radius: 12px;
  padding: 14px 18px; font-size: 15px; color: #6B5410; margin: 18px 0;
}
.legal .back { display: inline-block; margin-bottom: 28px; font-weight: 600; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1000px) {
  .panel__body { padding: 40px 34px 44px; }
  .panel__media { min-height: 340px; }
  .contact__left, .contact__right { padding: 40px 32px; }
  .contact__right { border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(20,24,28,.12);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .site-nav.is-open { max-height: 60vh; overflow-y: auto; }
  .site-nav a { padding: 16px var(--pad); font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .header-bar { gap: 14px; }
  .brand img { height: 32px; }
  .hero { padding: 60px var(--pad) 64px; }
  .hero__inner { gap: 44px; }
  .hero__card { left: 12px; bottom: 12px; padding: 14px 16px; gap: 12px; }
  .hero__card img { width: 40px; height: 46px; }
  .hero__stats { gap: 24px; }
  .stat__num { font-size: 28px; }
  .section { padding: 72px var(--pad); }
  .insights { padding: 72px 0; }
  .projects { margin-top: 56px; }
  .rail-nav { display: none; }
  .panel__body { padding: 32px 24px 36px; }
  .panel__media { min-height: 280px; aspect-ratio: 4/3; }
  .contact { padding: 0 var(--pad) 72px; }
  .contact__left, .contact__right { padding: 32px 24px; }
  .contact__value { font-size: 19px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__stats { grid-template-columns: repeat(2, auto); }
  .hero__actions .btn { flex: 1 1 100%; }
  .post { flex: 0 0 78vw; }
  .footer__top { gap: 28px; }
}

/* Zusätzlicher Mobile-Sticky-Call-Button */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none;
  align-items: center; gap: 10px; background: var(--red); color: #fff;
  padding: 14px 20px; border-radius: 999px; box-shadow: 0 14px 34px rgba(219,36,48,.36);
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px;
}
.call-fab:hover { color: #fff; }
@media (max-width: 900px) { .call-fab { display: inline-flex; } }
@media print { .call-fab, .site-header, .marquee { display: none; } }
