/* ============================================================================
   style.css — Bewerberseite Klimaanlagenmonteure
   ----------------------------------------------------------------------------
   Alle Farben, Abstände und Radien stehen als Variablen in :root. Für ein
   Rebranding reicht es, dort die Werte zu ändern — der Rest zieht nach.

   Keine externen Schriften: dadurch keine Verbindung zu Google Fonts, kein
   Cookie-Banner nötig und eine spürbar schnellere erste Anzeige.
   ========================================================================== */

:root {
  /* --- Farben ------------------------------------------------------------ */
  --c-primary:      #0a5fb4;
  --c-primary-dark: #084a8c;
  --c-primary-soft: #e8f1fb;
  --c-accent:       #17b3cc;
  --c-accent-soft:  #e4f7fa;
  --c-ink:          #0f1b2a;
  --c-body:         #33475b;
  --c-muted:        #64788f;
  --c-bg:           #ffffff;
  --c-surface:      #f5f8fc;
  --c-border:       #dce5ef;
  --c-success:      #1a7f5a;
  --c-danger:       #c0392b;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --sp-1: .25rem; --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;  --sp-9: 6rem;

  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(15,27,42,.06), 0 2px 8px rgba(15,27,42,.05);
  --shadow-md: 0 4px 12px rgba(15,27,42,.08), 0 12px 32px rgba(15,27,42,.07);

  --wrap: 1100px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--c-primary); }

h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sp-8); }
.section--surface { background: var(--c-surface); }
.section--tint { background: linear-gradient(180deg, var(--c-primary-soft), #fff); }
.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--c-body); }
.small { font-size: .9375rem; }
.muted { color: var(--c-muted); }

.eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: var(--sp-3);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--c-ink); color: #fff; padding: var(--sp-3) var(--sp-4);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: var(--r-sm);
}

/* --- Kopfbereich ---------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 70px;
}
.logo { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.logo__mark { width: 38px; height: 38px; flex: none; border-radius: 10px; }
.logo__name { display: block; font-weight: 700; color: var(--c-ink); line-height: 1.2; }
.logo__sub { display: block; font-size: .8125rem; color: var(--c-muted); }
.header__cta { display: flex; align-items: center; gap: var(--sp-4); }
.header__phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) { .header__phone { display: none; } }

/* --- Schaltflächen -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-full);
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); }
.btn--accent { background: var(--c-accent); color: #04333b; }
.btn--accent:hover { filter: brightness(.95); }
.btn--ghost { border-color: var(--c-border); color: var(--c-ink); background: #fff; }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--lg { padding: var(--sp-4) var(--sp-6); font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* --- Hero ----------------------------------------------------------------- */
.hero { background: var(--c-ink); color: #c3d2e4; padding-block: var(--sp-8) var(--sp-9); }
.hero h1 { color: #fff; }
.hero .lead { color: #c3d2e4; margin-top: var(--sp-4); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #e3ecf7; border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4); font-size: .9375rem;
}

/* --- Karten --------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-5); box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--sp-2); }
.card__icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--c-primary-soft); color: var(--c-primary);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.badge {
  display: inline-block; background: var(--c-primary-soft); color: var(--c-primary-dark);
  border-radius: var(--r-full); padding: .2rem .7rem;
  font-size: .8125rem; font-weight: 700; margin-bottom: var(--sp-3);
}
.badge--accent { background: var(--c-accent-soft); color: #075e6c; }

/* --- Listen mit Haken ------------------------------------------------------ */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-top: var(--sp-3); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--c-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075e6c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/.75rem no-repeat;
}

/* --- Nummerierte Schritte --------------------------------------------------- */
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: var(--sp-5); }
.steps li { position: relative; padding-left: 3.25rem; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.steps h3 { font-size: 1.0625rem; margin-bottom: var(--sp-1); }
.steps p { font-size: .9375rem; color: var(--c-muted); }

/* --- Fragen (details/summary) ----------------------------------------------- */
.faq details {
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: #fff; margin-top: var(--sp-3);
}
.faq summary {
  cursor: pointer; padding: var(--sp-4) var(--sp-5);
  font-weight: 600; color: var(--c-ink); list-style: none;
  display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1rem; height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364788f' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div { padding: 0 var(--sp-5) var(--sp-5); }

/* --- Formular -------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: var(--sp-2); }
.field > label { font-weight: 600; font-size: .9375rem; color: var(--c-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--c-border); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-primary); outline: none;
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--c-danger); }
.field__hint { font-size: .8125rem; color: var(--c-muted); }
.field__error { font-size: .8125rem; color: var(--c-danger); font-weight: 600; }

.check { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: .9375rem; }
.check input { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .25rem; }

/* Honeypot: für Menschen unsichtbar, für Bots verlockend. Nicht display:none —
   manche Bots ignorieren Felder, die so versteckt sind. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { border-radius: var(--r-sm); padding: var(--sp-4); font-weight: 600; }
.form__status--ok   { background: #e6f5ef; color: var(--c-success); }
.form__status--fehler { background: #fdecea; color: var(--c-danger); }

/* --- Fußbereich ------------------------------------------------------------ */
.footer { background: var(--c-ink); color: #93a7bd; padding-block: var(--sp-7) var(--sp-5); margin-top: var(--sp-8); }
.footer h2 { color: #fff; font-size: 1.0625rem; margin-bottom: var(--sp-3); }
.footer a { color: #c3d2e4; }
.footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.footer__bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  font-size: .875rem;
}
.footer__legal { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* --- Feste Leiste auf dem Handy -------------------------------------------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 1px; background: var(--c-border);
}
.callbar a {
  flex: 1; text-align: center; padding: var(--sp-4) var(--sp-2);
  text-decoration: none; font-weight: 600; background: #fff;
}
.callbar a:first-child { background: var(--c-primary); color: #fff; }
@media (max-width: 720px) {
  .callbar { display: flex; }
  body { padding-bottom: 4rem; }
}

/* --- Druck ------------------------------------------------------------------ */
@media print {
  .header, .callbar, .hero__actions, .form, .footer__legal { display: none; }
  body { color: #000; font-size: 11pt; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero .lead { color: #000; }
}

/* --- Rechtstexte ------------------------------------------------------------ */
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.prose h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p, .prose ul, .prose ol { margin-top: var(--sp-3); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: var(--sp-2); }
