/* ============================================================
   Könner Gebäudeservice — style.css
   Statisch, keine externen Abhängigkeiten.
   Schriften werden selbst gehostet (Ordner fonts/).
   ============================================================ */

/* ---------- Schriften (selbst gehostet) ---------- */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-600.woff2') format('woff2');
}

:root {
  /* Farben */
  --deep: #233f3e;   /* tiefes Seegrün: Text, dunkle Flächen */
  --deep-2: #1b3130; /* dunklere Stufe für Hover auf --deep */
  --pale: #eceeea;   /* kühles Off-White: Hintergrund */
  --paper: #f4f5f2;  /* eine Stufe heller, für Flächenwechsel */
  --sand: #cbb894;   /* Sand: Linien und Akzente auf dunklem Grund */
  --sand-ink: #6f5c39; /* abgedunkelter Sand: Eyebrows auf hellem Grund (Kontrast ≥ 4.5:1) */
  --mut: #5d6f6c;    /* gedämpft: Fliesstext */
  --pale-mut: #b9c6c3; /* gedämpfter Text auf dunklem Grund */
  --line: #d7dad5;   /* Trennlinien */
  --line-dark: #3a5453; /* Trennlinien auf dunklem Grund */

  /* Typografie */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

  /* Abstände */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --sect: clamp(4rem, 10vw, 7rem);   /* vertikaler Abschnittsabstand */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --maxw: 1120px;

  --radius: 2px;
  --header-h: 4rem;
}

/* ---------- Grundlagen ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--deep);
  background: var(--pale);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 var(--s-3);
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
}

p {
  margin: 0 0 var(--s-2);
}

p, li, dd {
  color: var(--mut);
}

em {
  font-style: italic;
}

a {
  color: var(--deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.auf-dunkel :focus-visible,
.dunkel :focus-visible {
  outline-color: var(--pale);
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Eyebrow: Barlow Condensed 600, Versalien, gesperrt */
.eyebrow {
  display: block;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-ink);
  margin: 0 0 var(--s-2);
}

.dunkel .eyebrow {
  color: var(--sand);
}

/* Button */
.btn {
  display: inline-block;
  background: var(--deep);
  color: var(--pale);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.9em 1.7em;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--deep-2);
}

.dunkel .btn {
  background: var(--pale);
  color: var(--deep);
}

.dunkel .btn:hover {
  background: #ffffff;
}

/* Dunkle Flächen */
.dunkel {
  background: var(--deep);
  color: var(--pale);
}

.dunkel h2, .dunkel h3 {
  color: var(--pale);
}

.dunkel p, .dunkel li {
  color: var(--pale-mut);
}

.dunkel a {
  color: var(--pale);
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--pale);
  border-bottom: 1px solid var(--line);
}

.kopf-innen {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.marke {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--deep);
  text-decoration: none;
  white-space: nowrap;
}

.kopf-nav {
  display: none;
}

.kopf-rechts {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.kopf-tel {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Sehr schmale Bildschirme: Platz für die internationale Nummer schaffen */
@media (max-width: 420px) {
  .marke {
    font-size: 1.15rem;
  }
  .kopf-tel {
    font-size: 0.95rem;
  }
  .anrufleiste a {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .kopf-nav {
    display: flex;
    gap: var(--s-4);
  }
  .kopf-nav a {
    font-weight: 500;
    text-decoration: none;
  }
  .kopf-nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }
}

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

.hero {
  padding-block: var(--sect);
}

.hero-innen {
  display: grid;
  gap: var(--s-5);
  align-items: stretch;
}

.hero-text .lead {
  font-size: 1.15rem;
  max-width: 34em;
  margin-bottom: var(--s-4);
}

.hero-aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}

.hero-neben {
  color: var(--mut);
  font-weight: 500;
}

/* Rechte Fläche: heute Garantie-Zitat, später Bild */
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  min-height: 18rem;
}

.hero-panel blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  color: var(--pale);
}

.hero-panel .panel-fuss {
  margin: var(--s-3) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .hero-innen {
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
  }
}

/* ---------- Angebots-Assistent ---------- */

.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;
}

.assistent {
  background: var(--paper);
  padding-block: var(--sect);
}

.assistent-intro {
  max-width: 40em;
  margin-bottom: var(--s-3);
}

.assistent-eingabe {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  max-width: 46em;
}

.assistent-eingabe input {
  flex: 1 1 16rem;
  min-width: 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--deep);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8em 0.9em;
}

.assistent-eingabe input:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 1px;
}

.paket {
  background: #ffffff;
  max-width: 46em;
  margin-top: var(--s-4);
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
}

.paket h3 {
  margin-bottom: var(--s-2);
}

.paket-posten {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.paket-posten li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--deep);
}

.paket-preis {
  white-space: nowrap;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.paket-total {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: 0.7rem;
  margin: 0 0 var(--s-2);
  font-weight: 600;
  color: var(--deep);
}

.paket-hinweis {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.paket-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.paket-aktionen .neben {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Abnahmegarantie ---------- */

.garantie {
  padding-block: var(--sect);
}

.garantie-satz {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.2;
  max-width: 24em;
  margin: 0 0 var(--s-4);
  color: var(--pale);
}

.garantie-details {
  max-width: 44em;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
  font-size: 0.95rem;
}

.garantie-details p {
  margin-bottom: var(--s-2);
}

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

.leistungen {
  padding-block: var(--sect);
}

.leistung {
  border-top: 1px solid var(--line);
  padding-block: var(--s-4);
  display: grid;
  gap: var(--s-2);
}

.leistung:last-of-type {
  border-bottom: 1px solid var(--line);
}

.leistung h3 {
  margin: 0;
}

.leistung p {
  margin: 0;
  max-width: 38em;
}

.preisanker {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-ink);
}

@media (min-width: 768px) {
  .leistung {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: var(--s-4);
  }
  .leistung .leistung-text {
    display: grid;
    gap: var(--s-2);
  }
}

/* ---------- Zwischenband ---------- */

.band {
  padding-block: clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.band p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--pale);
}

/* ---------- Preise ---------- */

.preise {
  background: var(--paper);
  padding-block: var(--sect);
}

.preise-intro {
  max-width: 40em;
  margin-bottom: var(--s-5);
}

.preisblock {
  margin-bottom: var(--s-5);
}

.preisblock:last-child {
  margin-bottom: 0;
}

.preisblock h3 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-ink);
  margin-bottom: var(--s-2);
}

.preisblock .hinweis {
  font-size: 0.95rem;
  margin: var(--s-2) 0 0;
}

.bedingungen {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.bedingungen li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

th, td {
  text-align: left;
  font-weight: 400;
  vertical-align: top;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--deep);
}

th[scope="row"] {
  padding-right: var(--s-2);
  color: var(--mut);
}

td.preis {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

td.preis .einheit {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--mut);
  white-space: normal;
}

@media (min-width: 768px) {
  .preise-spalten {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
  }
  .preisblock {
    break-inside: avoid;
  }
}

/* ---------- Leistungsumfang ---------- */

.umfang {
  padding-block: var(--sect);
}

.umfang-intro {
  max-width: 40em;
  margin-bottom: var(--s-5);
}

.umfang-spalten {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 768px) {
  .umfang-spalten {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
  }
}

.umfang h3 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-2);
  margin-bottom: 0;
}

.umfang dl {
  margin: 0;
}

.umfang dt {
  font-weight: 600;
  padding-top: var(--s-3);
}

.umfang dd {
  margin: 0.25rem 0 var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}

.umfang dd:last-child {
  margin-bottom: 0;
}

.umfang ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.umfang ul li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}

.umfang ul li strong {
  color: var(--deep);
  font-weight: 600;
}

/* ---------- Einzugsgebiet ---------- */

.gebiet {
  background: var(--paper);
  padding-block: var(--sect);
}

.gebiet p {
  max-width: 44em;
  font-size: 1.1rem;
}

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

.kontakt {
  padding-block: var(--sect);
}

.kontakt-spalten {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .kontakt-spalten {
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(3rem, 6vw, 5rem);
  }
}

.kontakt-tel {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  text-decoration: none;
  margin-bottom: var(--s-2);
}

.kontakt-tel:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.kontakt-info p {
  max-width: 30em;
}

/* ---------- Formular ---------- */

.formular h3 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-3);
}

.feld {
  margin-bottom: var(--s-3);
}

.feld label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.feld label .optional {
  font-weight: 400;
  color: var(--mut);
}

.feld input,
.feld select,
.feld textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--deep);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7em 0.8em;
}

.feld input:focus-visible,
.feld select:focus-visible,
.feld textarea:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 1px;
}

.feld textarea {
  min-height: 7rem;
  resize: vertical;
}

.feld [aria-invalid="true"] {
  border-color: #a04128;
}

.feld-fehler {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #a04128;
}

@media (min-width: 560px) {
  .feld-reihe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-3);
  }
}

/* Leistungsauswahl: Checkboxen, eine oder mehrere */
.feld-leistungen {
  border: 0;
  padding: 0;
  margin: 0 0 var(--s-3);
  min-width: 0;
}

.feld-leistungen legend {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
  margin-bottom: 0.5rem;
}

.leistung-wahl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem 1rem;
}

@media (min-width: 560px) {
  .leistung-wahl {
    grid-template-columns: 1fr 1fr;
  }
}

.leistung-wahl label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
  font-size: 0.98rem;
  color: var(--deep);
  cursor: pointer;
  margin: 0;
}

.leistung-wahl input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin: 0.2rem 0 0;
  accent-color: var(--deep);
}

/* Anfrage-Links bei Leistungen und Preistabellen */
.leistung-aktion {
  margin: 0;
}

.anfrage-link {
  font-weight: 500;
  color: var(--deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.anfrage-link::after {
  content: " \2192";
}

/* Honeypot: ausserhalb des sichtbaren Bereichs, nicht display:none */
.hp-feld {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular-fuss {
  margin-top: var(--s-3);
}

.datenschutz {
  font-size: 0.9rem;
  margin-top: var(--s-2);
}

.lieber-tel {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-weight: 500;
  color: var(--deep);
}

.formular-erfolg {
  border-top: 2px solid var(--deep);
  padding-top: var(--s-3);
}

.formular-erfolg p:first-child {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--deep);
}

.formular-fehler-global {
  margin: var(--s-2) 0 0;
  padding: var(--s-2);
  border: 0;
  border-left: 3px solid #a04128;
  background: var(--paper);
  color: var(--deep);
  font-weight: 500;
}

/* ---------- Fusszeile ---------- */

.fuss {
  padding-block: var(--s-5);
  font-size: 0.95rem;
}

.fuss .marke {
  color: var(--pale);
  font-size: 1.35rem;
}

.fuss-zeilen {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 0.4rem;
}

.fuss-zeilen p {
  margin: 0;
}

.fuss a {
  color: var(--pale);
}

/* ---------- Mobile Anrufleiste ---------- */

.anrufleiste {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  background: var(--deep);
  border-top: 1px solid var(--line-dark);
}

.anrufleiste a {
  display: block;
  text-align: center;
  padding: 0.95rem 1rem;
  color: var(--pale);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

body {
  padding-bottom: 3.4rem; /* Platz für die Anrufleiste */
}

@media (min-width: 768px) {
  .anrufleiste {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */

.rechtsseite {
  padding-block: var(--sect);
}

.rechtsseite .container {
  max-width: 46rem;
}

.rechtsseite h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.rechtsseite h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-top: var(--s-5);
}

.rechtsseite p {
  max-width: 40em;
}

.rechtsseite ul {
  color: var(--mut);
  padding-left: 1.2em;
}

.rechtsseite li {
  margin-bottom: 0.4rem;
}

.stand {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

/* ---------- danke.html ---------- */

.danke {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding-block: var(--sect);
}

.danke .container {
  max-width: 40rem;
}
