/* ==========================================================
   HSK Kömür – Haustechnik · One-Pager (WordPress-Plugin)
   Farben & Schriften zentral hier ändern (Abschnitt :root)
   ========================================================== */

/* ---------- Schriften (lokal gehostet = DSGVO-freundlich) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben & Maße ---------- */
:root {
  color-scheme: light;
  --navy: #0E2240;        /* Logo: Deep Navy */
  --navy-2: #16325C;      /* etwas heller, für Flächen auf Navy */
  --blue: #1E7FD8;        /* Logo: Wasser-Blau */
  --blue-text: #1767B8;   /* Blau für Text auf Weiß (bessere Lesbarkeit) */
  --blue-light: #6CB8FF;  /* Blau auf dunklem Grund */
  --orange: #F58220;      /* Logo: Heizungs-Orange (Buttons) */
  --orange-text: #B85A0C; /* Orange für Text auf Weiß */
  --yellow: #FFC226;      /* Logo: Flammen-Gelb */
  --ground: #F3F6FA;      /* heller, leicht bläulicher Hintergrund */
  --paper: #FFFFFF;
  --ink: #0E2240;
  --muted: #4B5B74;
  --muted-on-navy: #B5C3D8;
  --line: #D9E1EC;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14,34,64,.06), 0 12px 32px -12px rgba(14,34,64,.18);
  --wrap: 1180px;
  --header-h: 76px;
  --font-display: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-text); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* Kleinzeile mit "Vorlauf/Rücklauf"-Markierung: Blau = kalt, Orange = warm */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text);
}
.eyebrow::before {
  content: ""; width: 34px; height: 8px; border-radius: 4px; flex: none;
  background: linear-gradient(90deg, var(--blue) 0 46%, transparent 46% 54%, var(--orange) 54% 100%);
}
.on-navy .eyebrow { color: var(--blue-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--yellow); }
.btn-outline { border-color: currentColor; color: var(--paper); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--navy-2); }
.btn-block { width: 100%; }
/* WhatsApp: typisches Grün, dunkle Schrift für guten Kontrast */
.btn-whatsapp { background: #25D366; color: var(--navy); }
.btn-whatsapp:hover { background: #3EE07B; }
/* Mit offiziellem Logo: weißer Grund, damit das grüne Logo unverändert sichtbar bleibt */
.btn-whatsapp.has-logo { background: #fff; color: var(--navy); }
.btn-whatsapp.has-logo:hover { background: #F2FBF5; }
.btn img.wa-logo { width: 24px; height: 24px; flex: none; object-fit: contain; }
.contact-list .icon img.wa-logo { width: 26px; height: 26px; object-fit: contain; }

/* ---------- Top-Bar ---------- */
.topbar { background: var(--navy); color: var(--muted-on-navy); font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-block: 8px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--paper); }
.topbar svg { width: 16px; height: 16px; color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { height: 42px; width: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.brand-text small { font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .28em; color: var(--muted); }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: .92rem;
}
.nav a:hover { background: var(--ground); }
.nav a.active { color: var(--blue-text); background: #E7F1FC; }

.header-call { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.header-call .icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--navy); }
.header-call .icon svg { width: 20px; height: 20px; }
.header-call small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.1; }
.header-call strong { font-family: var(--font-display); font-size: 1rem; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; display: block; }

@media (max-width: 1060px) {
  .header-call > span:last-child { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; order: 3; }
  .header-call { margin-left: auto; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
  .nav:not(.open) { display: none; }
  .nav ul { flex-direction: column; padding: 12px 20px 20px; gap: 2px; }
  .nav a { padding: 14px 16px; font-size: 1rem; border-radius: 10px; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .brand img { height: 34px; }
  .brand-text strong { font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--paper); }
.hero-flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 .w-water { color: var(--blue-light); }
.hero h1 .w-heat { color: var(--orange); }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted-on-navy); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; margin: 8px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.trust svg { width: 22px; height: 22px; flex: none; color: var(--yellow); }

.callback { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); display: grid; gap: 18px; }
.callback h2 { font-size: 1.45rem; }
.callback > p { color: var(--muted); margin-top: -8px; }
.callback .note { font-size: .9rem; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .trust { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Formular-Elemente ---------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field label .req { color: var(--orange-text); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,127,216,.18); }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .95rem; background: var(--paper); cursor: pointer; }
.choice input:checked + span { border-color: var(--blue); background: #E7F1FC; color: var(--blue-text); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.upload { position: relative; border: 1.5px dashed #AEBDD2; border-radius: var(--radius-sm); padding: 18px; background: var(--ground); display: grid; gap: 4px; text-align: center; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload strong { color: var(--blue-text); }
.upload small { color: var(--muted); }
.upload-list { font-size: .92rem; color: var(--ink); }
.upload:focus-within { border-color: var(--blue); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; }
.form-status.ok { background: #E6F6EC; color: #16623A; }
.form-status.err { background: #FDECEC; color: #9B1C1C; }

@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Leistungen ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; }
.service-icon svg { width: 30px; height: 30px; }
.service[data-trade="heat"] .service-icon { background: #FEF0E3; color: var(--orange-text); }
.service[data-trade="water"] .service-icon { background: #E7F1FC; color: var(--blue-text); }
.service[data-trade="both"] .service-icon { background: linear-gradient(135deg, #E7F1FC 50%, #FEF0E3 50%); color: var(--navy); }
.service p { color: var(--muted); }
.service .more { font-family: var(--font-display); font-weight: 700; font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--navy); min-height: 44px; }
.service .more svg { width: 16px; height: 16px; transition: transform .15s ease; }
.service .more:hover svg { transform: translateX(3px); }

@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Über uns ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.photo { position: relative; }
.photo-frame {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #1B3A68, var(--navy));
  display: grid; place-items: center; text-align: center; color: var(--muted-on-navy);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame .ph { display: grid; gap: 14px; justify-items: center; padding: 24px; }
.photo-frame .ph img { width: 160px; height: auto; object-fit: contain; opacity: .9; }
.photo-badge {
  position: absolute; right: -14px; bottom: 28px; background: var(--orange); color: var(--navy);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); display: grid; line-height: 1.1;
}
.photo-badge strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.photo-badge span { font-weight: 600; font-size: .92rem; }
.about-copy { display: grid; gap: 20px; }
.about-copy > p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--blue); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .photo { max-width: 460px; }
  .photo-badge { right: 12px; }
}
@media (max-width: 480px) { .checks { grid-template-columns: 1fr; } }

/* Ablauf: drei Schritte, verbunden wie eine Leitung (kalt -> warm) */
.process { margin-top: clamp(56px, 8vw, 96px); }
.process h3.process-title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}
.step { position: relative; display: grid; gap: 10px; counter-increment: step; }
.step::before {
  content: counter(step); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 4px solid var(--blue); color: var(--navy);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; position: relative;
}
.step:nth-child(2)::before { border-color: #8A80A0; }
.step:nth-child(3)::before { border-color: var(--orange); }
.step p { color: var(--muted); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, var(--blue), var(--orange)); }
  .step { grid-template-columns: 50px 1fr; column-gap: 18px; }
  .step::before { grid-row: span 2; }
}

/* ---------- Unser Team ---------- */
.team { background: var(--ground); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); align-items: start; max-width: 1040px; margin-inline: auto; }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; margin-top: 44px; }
.member.is-owner { margin-top: 0; border: 2px solid var(--orange); box-shadow: 0 26px 50px -28px rgba(14,34,64,.55); }
.member-photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: linear-gradient(160deg, #1B3A68, var(--navy)); display: grid; place-items: center; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.member-ph { color: rgba(255,255,255,.35); }
.member-ph svg { width: 96px; height: 96px; }
.member-badge { position: absolute; top: 14px; left: 14px; background: var(--orange); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.member-body { padding: 20px 22px 24px; display: grid; gap: 6px; text-align: center; }
.member-body h3 { font-size: 1.2rem; }
.member.is-owner .member-body h3 { font-size: 1.35rem; }
.member-body p { color: var(--muted); }
.member-quals { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; justify-items: center; }
.member-quals li { display: inline-flex; align-items: flex-start; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--ink); text-align: left; }
.member-quals svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #1F7A4D; }
@media (hover: hover) { .member:hover .member-photo img { transform: scale(1.05); } }
@media (max-width: 820px) {
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }
  .member, .member.is-owner { margin-top: 0; }
  .member.is-owner { order: -1; }
}

/* ---------- Zahlen ---------- */
.stats { background: var(--navy); color: var(--paper); }
.stats .wrap { display: grid; grid-template-columns: repeat(var(--stat-cols, 4), minmax(0, 1fr)); gap: 24px; padding-block: clamp(40px, 6vw, 64px); }
.stat { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--navy-2); }
.stat:nth-child(odd) { border-left-color: var(--blue); }
.stat:nth-child(even) { border-left-color: var(--orange); }
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted-on-navy); font-weight: 600; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Referenzen ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.project-img { aspect-ratio: 4 / 3; max-width: 100%; position: relative; display: grid; place-items: center; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-img .ph-icon { width: 56px; height: 56px; color: rgba(255,255,255,.85); }
.project[data-trade="water"] .project-img { background: linear-gradient(145deg, #2A8FE6, #124C8C); }
.project[data-trade="heat"] .project-img { background: linear-gradient(145deg, #FFB347, #D2600E); }
.project .tag {
  position: absolute; top: 14px; left: 14px; background: var(--paper); color: var(--navy);
  font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.project .ba { position: absolute; bottom: 14px; right: 14px; background: rgba(14,34,64,.8); color: var(--paper); font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.project-body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.project-body p { color: var(--muted); }
.projects-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.projects-cta p { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

@media (max-width: 960px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } .projects-cta .btn { width: 100%; } }

/* Referenzen: bei 5 Projekten zweite Reihe mittig */
@media (min-width: 961px) {
  .projects-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .projects-grid > .project { grid-column: span 2; }
  .projects-grid > .project:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
  .projects-grid > .project:nth-child(4):last-child { grid-column: 3 / span 2; }
}
@media (min-width: 601px) and (max-width: 960px) {
  .projects-grid > .project:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--orange); color: var(--navy); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-block: clamp(44px, 6vw, 64px); }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { font-size: 1.1rem; margin-top: 8px; font-weight: 600; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.cta-band .btn-ghost:hover { background: rgba(14,34,64,.08); }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cta-band .actions .btn { width: 100%; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info > p { color: var(--muted); font-size: 1.1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.contact-list .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--blue-text); }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a, .contact-list strong { color: var(--ink); font-weight: 700; text-decoration: none; font-family: var(--font-display); font-size: 1rem; }
.contact-list a:hover { color: var(--blue-text); }
.contact-list .is-whatsapp .icon { color: #128C4A; }
.contact-list a em { font-style: normal; font-weight: 600; color: #128C4A; font-size: .92rem; }

/* ---------- WhatsApp-Button unten rechts ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 58px; height: 58px; padding: 0 16px; justify-content: center;
  border-radius: 999px; background: #25D366; color: var(--navy); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  box-shadow: 0 10px 28px rgba(14,34,64,.28), 0 2px 6px rgba(14,34,64,.18);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float span { display: none; }
.wa-float img.wa-logo { width: 32px; height: 32px; object-fit: contain; flex: none; }
.wa-float.has-logo { background: #fff; }
@media (hover: hover) { .wa-float.has-logo:hover { background: #F2FBF5; } }
.wa-float:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (min-width: 900px) { .wa-float { padding: 0 22px 0 18px; } .wa-float span { display: inline; } }
@media (hover: hover) { .wa-float:hover { background: #3EE07B; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,34,64,.32); } }
@media print { .wa-float { display: none; } }
.hsk-testhinweis { position: fixed; left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 61; max-width: min(440px, calc(100vw - 110px)); background: #FFF7D6; color: #3A2E00; border: 1px solid #E8C94A; border-radius: 10px; padding: 10px 14px; font-size: .88rem; line-height: 1.4; box-shadow: 0 6px 18px rgba(14,34,64,.18); }
.hsk-testhinweis a { color: inherit; font-weight: 700; }
body:has(.wa-float) .footer-bottom { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.contact-card { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-card .note { font-size: .9rem; color: var(--muted); text-align: center; display: flex; gap: 8px; justify-content: center; align-items: center; }
.contact-card .note svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--muted-on-navy); padding-top: clamp(48px, 7vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.footer-logo { background: var(--paper); border-radius: 12px; padding: 16px 22px; display: flex; justify-content: center; align-items: center; justify-self: start; width: fit-content; max-width: 100%; }
.footer-logo img { width: 200px; max-width: 100%; height: auto; margin: 0 auto; }
.site-footer h3 { color: var(--paper); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted-on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.footer-about { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; font-size: .92rem; }
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Rechtstext-Seiten (Impressum / Datenschutz) ---------- */
.legal { background: var(--paper); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 28px; }
.legal-content h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal-content h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal-content p, .legal-content li { color: var(--muted); max-width: 72ch; }
.legal-content p + p { margin-top: 10px; }
.legal-content ul, .legal-content ol { padding-left: 1.2em; }
.legal-content a { color: var(--blue-text); word-break: break-word; }
.legal-content .hint { background: #FEF0E3; color: #7A3B06; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; }
.legal-content .hint a { color: #7A3B06; font-weight: 700; }
.legal-back { margin-top: 48px; }

/* ---------- Feinschliff für Handy, Tablet & Laptop ---------- */
/* Seitenränder wachsen mit dem Bildschirm und weichen der Kamera-Aussparung (iPhone quer) aus */
.wrap {
  padding-left: max(clamp(20px, 4vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 4vw, 40px), env(safe-area-inset-right, 0px));
}
@media (max-width: 900px) {
  .nav ul { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
}

/* Touch-Geräte: Hover-Effekte nicht "hängen" lassen */
@media (hover: none) {
  .btn:hover, .service:hover { transform: none; }
  .service:hover { box-shadow: none; }
}

/* Touch-Geräte: größere Tippflächen für kleine Links (mind. ca. 40–44 px) */
@media (pointer: coarse) {
  .topbar .wrap { padding-block: 2px; }
  .topbar a, .topbar span { min-height: 40px; }
  .site-footer ul { gap: 0; }
  .site-footer ul a { display: inline-block; padding-block: 10px; }
  .site-footer ul li:not(:has(a)) { padding-block: 10px; }
  .footer-bottom nav { gap: 8px; }
  .footer-bottom nav a { display: inline-block; padding: 10px 8px; }
  .contact-list a { display: inline-block; padding-block: 8px; margin-block: -8px; }
  .consent a { padding-block: 6px; }
}

/* Handy im Querformat (wenig Höhe): kompakterer Kopfbereich */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 60px; }
  .brand img { height: 34px; }
  .header-call .icon, .nav-toggle { width: 42px; height: 42px; }
  .hero .wrap { padding-block: 36px 44px; }
  .hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.4rem); }
  .section { padding-block: 56px; }
}

/* ==========================================================
   Effekte (angelehnt an das Plumberkit-Template)
   ========================================================== */

/* Verhindert, dass hereingleitende Elemente die Seite seitlich verbreitern.
   "clip" statt "hidden", damit der klebende Header weiter funktioniert. */
body { overflow-x: clip; }

/* ---------- Header: beim Runterscrollen weg, beim Hochscrollen wieder da ---------- */
.site-header { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; will-change: transform; }
.site-header.is-scrolled { box-shadow: 0 8px 28px -14px rgba(14,34,64,.45); }
.site-header.is-hidden { transform: translateY(calc(-100% - var(--adminbar, 0px) - env(safe-area-inset-top, 0px))); }
.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --adminbar: 46px; } }
@media (max-width: 600px) { .admin-bar { --adminbar: 0px; } }

/* ---------- Einblenden beim Scrollen ---------- */
/* Greift nur, wenn JavaScript läuft (Klasse "reveal-on") – sonst ist alles sofort sichtbar */
.reveal-on [data-reveal] {
  opacity: 0;
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.reveal-on [data-reveal="up"]    { transform: translateY(40px); }
.reveal-on [data-reveal="left"]  { transform: translateX(-56px); }
.reveal-on [data-reveal="right"] { transform: translateX(56px); }
.reveal-on [data-reveal="zoom"]  { transform: scale(.88); }
.reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }

/* Auf schmalen Bildschirmen alles von unten einblenden (kein seitliches Hereinschieben) */
@media (max-width: 900px) {
  .reveal-on [data-reveal="left"], .reveal-on [data-reveal="right"] { transform: translateY(40px); }
}

/* ---------- Startbereich: fließende Linien bewegen sich langsam ---------- */
.hero-flow .flow-water { animation: hsk-flow-a 16s ease-in-out infinite alternate; }
.hero-flow .flow-heat  { animation: hsk-flow-b 19s ease-in-out infinite alternate; }
@keyframes hsk-flow-a { from { transform: translate(0, 0); } to { transform: translate(-70px, -14px); } }
@keyframes hsk-flow-b { from { transform: translate(0, 0); } to { transform: translate(60px, 12px); } }

/* ---------- Startbereich: Hintergrund-Diashow mit langsamem Zoom (Ken Burns) ---------- */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slides img.is-active { opacity: 1; animation: hsk-kenburns 7s linear forwards; }
@keyframes hsk-kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,34,64,.94) 0%, rgba(14,34,64,.86) 45%, rgba(14,34,64,.62) 100%);
}
.hero.has-slides .hero-flow { opacity: .55; }

/* ---------- Hover-Effekte (nur mit Maus) ---------- */
@media (hover: hover) {
  .btn { transition: transform .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease; }
  .btn-primary:hover { transform: translateY(-4px); box-shadow: 0 14px 26px -12px rgba(245,130,32,.75); }
  .btn-navy:hover { transform: translateY(-4px); box-shadow: 0 14px 26px -12px rgba(14,34,64,.6); }
  .btn-outline:hover, .cta-band .btn-ghost:hover { transform: translateY(-4px); }

  /* Leistungskarten färben sich navy ein */
  .service { transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease; }
  .service h3, .service p, .service .more { transition: color .35s ease; }
  .service .service-icon { transition: background .35s ease, color .35s ease, transform .35s ease; }
  .service:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(14,34,64,.7); }
  .service:hover h3, .service:hover .more { color: var(--paper); }
  .service:hover p { color: var(--muted-on-navy); }
  .service:hover .service-icon { background: var(--orange); color: var(--navy); transform: rotate(-6deg) scale(1.06); }

  /* Projektkarten: Bild zoomt leicht und wird abgedunkelt */
  .project { transition: transform .35s ease, box-shadow .35s ease; }
  .project-img { overflow: hidden; }
  .project-img > img, .project-img .ph-icon { transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
  .project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .project:hover .project-img > img { transform: scale(1.07); filter: brightness(.8); }
  .project:hover .ph-icon { transform: scale(1.18); }

  /* Über-uns-Foto */
  .photo-frame img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .photo:hover .photo-frame > img { transform: scale(1.04); }

  /* Kontakt-Icons */
  .contact-list .icon { transition: background .25s ease, color .25s ease, border-color .25s ease; }
  .contact-list li:hover .icon { background: var(--orange); border-color: var(--orange); color: var(--navy); }
}

/* ---------- Wer "weniger Bewegung" eingestellt hat, bekommt keine Animationen ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
  .hero-flow .flow-water, .hero-flow .flow-heat, .hero-slides img.is-active { animation: none; }
  .site-header { transition: none; }
}

/* ---------- WordPress-Anpassungen ---------- */
/* Kopfbereich unter der schwarzen Admin-Leiste (nur für eingeloggte Nutzer sichtbar) */
.admin-bar .site-header { top: 32px; }
.admin-bar section[id] { scroll-margin-top: calc(var(--header-h) + 40px); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Schutz gegen übrig gebliebene Theme- oder Plugin-Styles */
body.hsk-onepager { margin: 0; padding: 0; }
.hsk-onepager button, .hsk-onepager input, .hsk-onepager select, .hsk-onepager textarea { font-family: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; }
.hsk-onepager .btn, .hsk-onepager .btn:hover, .hsk-onepager .btn:focus { text-decoration: none; }
.hsk-onepager .btn-primary, .hsk-onepager .btn-primary:visited { color: var(--navy); }
.hsk-onepager .btn-navy, .hsk-onepager .btn-navy:visited { color: var(--paper); }
.hsk-onepager h1, .hsk-onepager h2, .hsk-onepager h3 { text-transform: none; }
.hsk-onepager .project-img img, .hsk-onepager .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hsk-onepager .photo-frame .ph img { width: 160px; height: auto; object-fit: contain; }
