/* ==========================================================================
   DEZCOOL – Klima & Kältetechnik
   Design-System: abgeleitet aus dem Logo (dunkler Grund, silbergraues "D",
   blauer Wellen-Verlauf). Bewusst System-Schriften statt Web-Font-Dateien:
   keine externe Anfrage nötig (kein CDN, kein Selbst-Hosting-Overhead) und
   der geometrische Sans-Stack liegt nah an der Wortmarke.
   ========================================================================== */

:root {
  /* Farben – aus dem Logo abgeleitet */
  --ink: #0e1114;        /* Logo-Hintergrund: fast Schwarz */
  --ink-soft: #171b1f;    /* zweite dunkle Fläche (Footer, Karten auf dunkel) */
  --steel: #a7afb8;       /* silbergraues "D" / "DEZ" */
  --steel-dim: #6b737c;
  --blue-light: #57c6f7;  /* helles Ende des Wellen-Verlaufs */
  --blue-deep: #0b6fd1;   /* dunkles Ende des Wellen-Verlaufs / "COOL" */
  --paper: #f5f3ee;       /* warmes Off-White, kein Klinik-Weiß */
  --paper-dim: #ebe8e1;
  --text: #1b1f23;
  --text-soft: #4b525a;
  --text-invert: #f5f3ee;
  --line: #d8d4cb;
  --line-dark: #2a2f34;
  --focus: #ffb648;

  --wave-gradient: linear-gradient(90deg, var(--blue-light), var(--blue-deep));

  /* Typografie */
  --font-display: "Segoe UI Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", Menlo, Monaco, "Liberation Mono", monospace;

  /* Abstände */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --container: 1120px;
  --radius: 4px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 var(--space-2); letter-spacing: 0.01em; }
p { margin: 0 0 var(--space-2); }
a { color: inherit; }
ul { padding-left: 1.1em; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-2);
}
@media (min-width: 640px) {
  .container { padding-inline: var(--space-3); }
}

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

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -48px;
  background: var(--blue-deep);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-2); }

/* ---- Eyebrow / Labels ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: var(--space-1);
}
.theme-dark .eyebrow { color: var(--blue-light); }

/* ---- Platzhalter-Kennzeichnung ---- */
.placeholder {
  border: 2px dashed var(--steel-dim);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    135deg, rgba(107,115,124,0.06), rgba(107,115,124,0.06) 10px,
    transparent 10px, transparent 20px
  );
  padding: var(--space-3);
  position: relative;
}
.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--steel-dim);
  color: #fff;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}
.placeholder-tag::before { content: "◐"; }
.placeholder p:last-child { margin-bottom: 0; }
.placeholder-photo {
  aspect-ratio: 4 / 5;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--steel-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: var(--space-2);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--text-invert);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-invert);
  flex-shrink: 0;
}
.brand img {
  height: 56px;
  width: auto;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.call-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--wave-gradient);
  padding: 0.75em 1.15em;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}
.call-cta:hover, .call-cta:focus-visible { filter: brightness(1.08); }
.call-cta svg { width: 20px; height: 20px; }

.nav-toggle {
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--text-invert);
  border-radius: var(--radius);
  padding: 0.6em 0.8em;
  display: inline-flex;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }

.main-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  display: none;
}
.main-nav.is-open { display: block; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.main-nav a {
  display: block;
  padding: 0.7em 0.4em;
  text-decoration: none;
  color: var(--text-invert);
  font-weight: 600;
  border-bottom: 1px solid var(--line-dark);
}
.main-nav a[aria-current="page"],
.main-nav a.is-active { color: var(--blue-light); }

@media (min-width: 880px) {
  .brand-name { display: block; }
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    display: block;
    background: none;
    border: 0;
  }
  .main-nav ul {
    flex-direction: row;
    padding: 0;
    gap: var(--space-3);
  }
  .main-nav a { border-bottom: 0; padding: 0.3em 0; font-size: 1.05rem; }
  .header-actions { order: 3; }
  .site-header .container { flex-wrap: wrap; }
  .main-nav { order: 2; flex: 1 1 auto; margin-inline: var(--space-4); }
}

/* ---- Wellen-Signature ---- */
.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}
.wave-divider path { fill: url(#dezcool-wave-gradient); }

/* ---- Hero ---- */
.hero {
  background: var(--ink);
  color: var(--text-invert);
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding-block: var(--space-5) var(--space-4);
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--text-invert);
  max-width: 16ch;
}
.hero h1 .accent {
  background: var(--wave-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 1.1rem;
  max-width: 48ch;
}
.hero .lede {
  color: var(--steel);
  font-size: 1.1rem;
  max-width: 48ch;
  margin-bottom: var(--space-3);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.3em;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--wave-gradient);
  color: var(--ink);
}
.btn-primary:hover, .btn-primary:focus-visible { filter: brightness(1.08); }
.btn-outline {
  border-color: var(--steel-dim);
  color: var(--text-invert);
}
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--blue-light); color: var(--blue-light); }

.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
}
.hero-meta a { text-decoration: none; }
.hero-meta a:hover, .hero-meta a:focus-visible { color: var(--blue-light); }
.hero-wave {
  display: block;
  width: 100%;
  max-height: 130px;
  opacity: 0.9;
}

/* ---- Sections ---- */
section[id] { scroll-margin-top: 104px; }
.section { padding-block: var(--space-5); }
.section-tight { padding-block: var(--space-4); }
.theme-dark { background: var(--ink); color: var(--text-invert); }
.theme-dark h2, .theme-dark h3 { color: var(--text-invert); }
.theme-dim { background: var(--paper-dim); }

.section-head { max-width: 62ch; margin-bottom: var(--space-4); }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.section-head p { color: var(--text-soft); }
.theme-dark .section-head p { color: var(--steel); }

/* ---- Leistungs-Karten ---- */
.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  position: relative;
}
.card h3 { font-size: 1.1rem; }
.card::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 4px;
  background: var(--wave-gradient);
  margin-bottom: var(--space-2);
  border-radius: 2px;
}

/* ---- Kontakt ---- */
.contact-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}
.contact-list a { text-decoration: none; }
.contact-list dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-dim);
}
.contact-list dd { margin: 0.1em 0 0; font-size: 1.05rem; }
.theme-dark .contact-list dd a:hover { color: var(--blue-light); }

/* ---- Formular ---- */
.form-field {
  margin-bottom: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.form-field label { font-weight: 600; font-size: 0.95rem; }
.form-field input,
.form-field textarea {
  font: inherit;
  padding: 0.7em 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.form-field input:focus-visible,
.form-field textarea:focus-visible { border-color: var(--blue-deep); }
.form-field.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6em;
}
.form-field.checkbox input { margin-top: 0.3em; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: var(--space-2);
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: var(--space-2);
  min-height: 1.2em;
}
.form-status.is-success { color: #1a7f4b; }
.form-status.is-error { color: #b3261e; }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink-soft);
  color: var(--steel);
  padding-block: var(--space-4);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-3);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-grid h3 {
  color: var(--text-invert);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4em; }
.footer-grid a { text-decoration: none; color: var(--steel); }
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
}

/* ---- Rechtstexte (Impressum/Datenschutz) ---- */
.legal h2 { font-size: 1.3rem; margin-top: var(--space-4); }
.legal h2:first-child { margin-top: 0; }
.legal table { border-collapse: collapse; width: 100%; margin-block: var(--space-2); }
.legal th, .legal td { text-align: left; padding: 0.5em 0.8em 0.5em 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.notice-box {
  border-left: 4px solid var(--blue-deep);
  background: var(--paper-dim);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}
