/* ===================================================================
   Klima Heinzel — "Luftstrom"
   Design-Welt aus der Visitenkarte: Corporate-Blau (Himmel→Royal→Tief),
   Anthrazit, Silber; gerundete Grotesk (Baloo 2) + Mulish.
   =================================================================== */

:root {
  /* Marke (aus Visitenkarte abgeleitet) */
  --sky:        #3aa6e2;
  --sky-light:  #7fd0f4;
  --blue:       #1866c0;
  --royal:      #0f4a97;
  --deep:       #0a2f6e;
  --deep-2:     #0a285f;
  --charcoal:   #2c333b;   /* Wortmarke */
  --silver:     #8b97a6;

  /* Text & Flächen */
  --ink:        #1b2732;
  --muted:      #566575;
  --line:       #d9e4ee;
  --ice:        #eef5fb;
  --ice-2:      #f6fafd;
  --white:      #ffffff;

  /* Text auf Blau (aus dem Blauton getönt, nie grau) */
  --on-blue:        #ffffff;
  --on-blue-soft:   #cfe0f4;
  --on-blue-line:   rgba(255,255,255,0.16);

  --radius:    18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(11,47,110,0.08);
  --shadow:    0 16px 44px rgba(11,47,110,0.14);
  --shadow-lg: 0 30px 70px rgba(10,47,110,0.22);
  --container: 1160px;
  --ease: cubic-bezier(0.33, 0.9, 0.28, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text {
  font-family: "Baloo 2", "Mulish", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--charcoal);
}

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 17px; font-size: .93rem; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--deep));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(15,74,151,0.40);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15,74,151,0.52); }

.btn-outline {
  background: rgba(255,255,255,0.06);
  color: var(--on-blue);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.16); border-color: #fff; }

/* Outline auf hellem Grund (falls verwendet) */
.section:not(.band) .btn-outline {
  color: var(--blue);
  border-color: var(--line);
  background: var(--white);
}
.section:not(.band) .btn-outline:hover { border-color: var(--blue); background: var(--ice); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: block; }
.brand-mark .cur { }
.brand-text { font-size: 1.4rem; font-weight: 800; color: var(--charcoal); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a {
  padding: 9px 14px; font-weight: 600; font-size: .98rem;
  color: var(--charcoal); border-radius: 9px;
  transition: color .2s, background .2s;
}
.nav > a:hover { color: var(--blue); background: var(--ice); }
.nav .nav-cta { color: var(--white); }
.nav .nav-cta:hover { background: linear-gradient(135deg, var(--blue), var(--deep)); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 25px; height: 2.5px; background: var(--charcoal); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--on-blue);
  isolation: isolate;
  overflow: hidden;
}
.hero-current {
  position: absolute; inset: 0; z-index: -1;
}
.hero-current svg { display: block; width: 100%; height: 100%; }
.hero .cur { opacity: 0; animation: drawCurrent 1.4s var(--ease) forwards; }
.hero .cur1 { animation-delay: .05s; }
.hero .cur2 { animation-delay: .20s; }
.hero .cur3 { animation-delay: .35s; }
.hero .cur4 { animation-delay: .50s; }
@keyframes drawCurrent { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-inner { padding: 92px 24px 108px; max-width: 900px; }
.hero-tag {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600; font-size: 1rem;
  color: var(--sky-light);
  letter-spacing: .01em;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 .u-accent {
  position: relative; white-space: nowrap;
  color: var(--sky-light);
}
.hero h1 .u-accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .07em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky-light), rgba(127,208,244,0));
}
.hero-lead {
  font-size: 1.2rem; color: var(--on-blue-soft);
  max-width: 34rem; margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-trust {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--on-blue-line);
  border-radius: 16px;
  backdrop-filter: blur(4px);
}
.hero-trust .seal {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 12px;
  color: var(--deep);
  background: linear-gradient(135deg, var(--sky-light), var(--sky));
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.hero-trust strong { display: block; font-family: "Baloo 2",sans-serif; font-size: 1.02rem; color: #fff; }
.hero-trust span { font-size: .9rem; color: var(--on-blue-soft); }

/* ===== Sections ===== */
.section { padding: 96px 0; position: relative; }
.head { max-width: 42rem; margin: 0 auto 56px; text-align: center; }
.head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.head-sub { color: var(--muted); margin-top: 16px; font-size: 1.12rem; }
.head-invert h2 { color: #fff; }
.band .head-sub, .head-invert .head-sub { color: var(--on-blue-soft); }

/* ===== Leistungen ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc {
  background: var(--white);
  padding: 34px 30px;
  transition: background .25s var(--ease);
}
.svc:hover { background: var(--ice-2); }
.svc-ic {
  display: inline-grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 18px;
  color: var(--blue);
}
.svc-ic svg { width: 30px; height: 30px; }
.svc h3 { font-size: 1.24rem; margin-bottom: 10px; }
.svc p { color: var(--muted); }

/* ===== Band (blaue Felder) ===== */
.band {
  background: linear-gradient(160deg, var(--royal), var(--deep));
  color: var(--on-blue);
}
.band.band-soft { background: linear-gradient(160deg, #12559c, var(--deep-2)); }
.band-wave { position: absolute; left: 0; right: 0; height: 46px; pointer-events: none; color: var(--white); }
.band-wave-top { top: -1px; background: var(--white); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V20C240-6 480 40 720 30S1200-6 1440 18v28z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V20C240-6 480 40 720 30S1200-6 1440 18v28z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; }
.band + .section, .section:not(.band) { background: var(--white); }
/* Der weiße "Wellen"-Übergang wird durch das nächste/vorherige weiße Feld erzeugt */
.band-wave-bottom { bottom: -1px; background: var(--white); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 0v26C240 52 480 6 720 16S1200 52 1440 28V0z'/%3E%3C/svg%3E") top/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 0v26C240 52 480 6 720 16S1200 52 1440 28V0z'/%3E%3C/svg%3E") top/100% 100% no-repeat; }

/* ===== Ablauf ===== */
.flow {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
.flow-step {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--on-blue-line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.flow-node {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.2rem;
  color: var(--deep); border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-light), var(--sky));
}
.flow-step h3 { color: #fff; font-size: 1.18rem; margin-bottom: 8px; }
.flow-step p { color: var(--on-blue-soft); font-size: .98rem; }

/* ===== Meisterbetrieb ===== */
.meister-inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center;
}
.meister-card {
  background: linear-gradient(160deg, var(--royal), var(--deep));
  color: #fff; border-radius: var(--radius);
  padding: 40px 36px; text-align: center;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.meister-card::before {
  content: ""; position: absolute; inset: auto -30% -50% -30%; height: 240px;
  background: radial-gradient(circle, rgba(127,208,244,0.25), transparent 70%);
}
.meister-badge {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: grid; place-items: center; border-radius: 18px;
  color: var(--deep);
  background: linear-gradient(135deg, var(--sky-light), var(--sky));
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  position: relative;
}
.meister-name { font-family: "Baloo 2",sans-serif; font-weight: 800; font-size: 1.6rem; color: #fff; }
.meister-role { color: var(--sky-light); font-weight: 600; margin-top: 2px; }
.meister-loc { color: var(--on-blue-soft); font-size: .92rem; margin-top: 14px; }

.meister-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.meister-text > p { color: var(--muted); margin-bottom: 24px; font-size: 1.08rem; }

.check-list { list-style: none; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.head-invert + * .check-list li, .band .check-list li { color: #fff; }

/* ===== Kontakt ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.contact-info h2 { color: #fff; font-size: clamp(1.9rem,3.4vw,2.6rem); }

.phone-cta {
  display: inline-flex; align-items: center; gap: 16px;
  margin: 26px 0 30px;
  padding: 18px 28px 18px 20px;
  background: #fff; border-radius: 16px;
  color: var(--deep);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.phone-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.phone-cta svg { color: var(--blue); flex-shrink: 0; }
.phone-cta span { display: flex; flex-direction: column; font-family: "Baloo 2",sans-serif; font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: var(--charcoal); }
.phone-cta small { font-family: "Mulish",sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }

.contact-details { list-style: none; display: grid; gap: 18px; }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; }
.ci {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 11px;
  color: #fff; background: rgba(255,255,255,0.10);
  border: 1px solid var(--on-blue-line);
}
.ci-label { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sky-light); margin-bottom: 1px; }
.contact-details a, .contact-details span { color: #fff; }
.contact-details a:hover { color: var(--sky-light); }

/* Formular */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-weight: 700; font-size: .9rem; color: var(--charcoal); margin-bottom: 7px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--ice-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(24,102,192,0.14);
}
.contact-form input:user-invalid, .contact-form textarea:user-invalid { border-color: #d64545; }
.contact-form textarea { resize: vertical; }
.checkbox { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: .9rem !important; color: var(--muted) !important; margin: 6px 0 20px; }
.checkbox input { width: auto; margin-top: 3px; }
.checkbox a { color: var(--blue); text-decoration: underline; }
.form-note { margin-top: 14px; font-weight: 700; text-align: center; }
.form-note.success { color: #1a9d5a; }
.form-note.error { color: #d64545; }

/* ===== Footer ===== */
.site-footer { background: var(--charcoal); color: #b9c2cc; padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin-top: 12px; max-width: 24rem; font-size: .96rem; }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a:hover { color: var(--sky-light); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: .96rem; }
.footer-contact a { font-weight: 700; color: #fff; }
.footer-contact a:hover { color: var(--sky-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 24px; font-size: .88rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }

/* ===== Rechtsseiten (Impressum / Datenschutz) ===== */
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 22px;
  font-weight: 600; color: var(--blue);
}
.legal-back:hover { color: var(--deep); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal h2 {
  font-size: 1.25rem; color: var(--charcoal);
  margin-top: 38px; margin-bottom: 10px;
}
.legal p, .legal ul { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--deep); }
.legal strong { color: var(--ink); }
mark.todo {
  background: #fff3cd; color: #7a5b00;
  padding: 1px 6px; border-radius: 5px;
  font-size: .95em;
}
.legal-note {
  margin-top: 40px; padding: 16px 18px;
  background: var(--ice); border-radius: var(--radius-sm);
  font-size: .95rem; color: var(--muted);
}
.legal + .site-footer { margin-top: 0; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .meister-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .32s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 13px 14px; }
  .nav .nav-cta { justify-content: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .services, .flow { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 68px 0; }
  .hero-inner { padding: 66px 24px 84px; }
  .phone-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .cur { opacity: 1; }
}
