/* ==========================================================
   Bau & Struktur – Maurermeister Felix Stein GmbH
   Gemeinsames Stylesheet für alle Seiten.
   Stil: kräftig und plakativ – große fette Überschriften,
   dunkelblaue Farbflächen, klare Kanten, hoher Kontrast.
   Farben änderst du unten bei ":root".
   ========================================================== */

:root {
  /* --- Blau (Hauptfarbe) --- */
  --blau-nacht:   #0b1f38;   /* Startblöcke, Fußbereich      */
  --blau-tief:    #0e2a4a;   /* Überschriften                */
  --blau:         #14416f;   /* Knöpfe                       */
  --blau-mittel:  #1b5a93;   /* Links                        */
  --blau-hell:    #e6eef6;   /* helle Fläche                 */

  /* --- Braun (Akzent) --- */
  --braun:        #a8632a;
  --braun-dunkel: #80471a;
  --braun-hell:   #e8a874;   /* nur auf dunklem Grund        */
  --sand:         #f3ebe1;

  /* --- Neutral --- */
  --weiss:        #ffffff;
  --papier:       #f4f6f9;
  --text:         #15202c;
  --text-leise:   #4e5c6b;
  --text-hell:    #c3d2e2;   /* Text auf dunklem Grund       */

  /* --- Linien, Kanten, Abstände --- */
  --linie:        #d9e0e8;
  --linie-stark:  #0e2a4a;
  --kante:        4px;       /* klare Kanten: wenig Rundung  */
  --kante-gross:  6px;
  --rand:         20px;
  --max:          1180px;
  --tempo:        .18s ease;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Keine externen Schriften (DSGVO) – die Schrift des Geräts. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blau-mittel); text-underline-offset: 3px; }
a:hover { color: var(--braun-dunkel); }

/* ---------- Typografie: groß, fett, eng ---------- */

h1, h2, h3 {
  color: var(--blau-tief);
  margin: 0 0 .5em;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.2rem, 8.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.032em;
  line-height: 1.03;
}

h2 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}

p { margin: 0 0 1em; }

.leise { color: var(--text-leise); }
.gross { font-size: 1.12rem; }

/* Kleine Zeile über der Überschrift, mit Balken davor */
.vorzeile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--braun-dunkel);
  margin-bottom: 14px;
}
.vorzeile::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--braun);
  flex: 0 0 auto;
}

/* ---------- Grundgerüst ---------- */

.inhalt {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--rand);
}

.abschnitt { padding: 62px 0; }
.abschnitt--schmal { padding: 40px 0; }
.abschnitt--flaeche { background: var(--papier); }
.abschnitt--sand { background: var(--sand); }

/* Dunkler Abschnitt – kommt über die Klasse .start zum Einsatz */
.abschnitt--dunkel {
  background: var(--blau-nacht);
  color: var(--text-hell);
}
.abschnitt--dunkel h2,
.abschnitt--dunkel h3 { color: #fff; }

/* ---------- Kopfbereich / Navigation ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 3px solid var(--linie-stark);
}
.kopf__reihe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blau-tief);
}
.marke img { height: 44px; width: auto; }
.marke__text { display: flex; flex-direction: column; line-height: 1.1; }
.marke__name {
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -.028em;
}
.marke__zusatz {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-leise);
  letter-spacing: .01em;
}

.nav-knopf {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blau-nacht);
  border: 0;
  border-radius: var(--kante);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 12px 16px;
  cursor: pointer;
}
.nav-knopf__balken {
  display: inline-block;
  width: 18px; height: 2.5px;
  background: #fff;
  position: relative;
}
.nav-knopf__balken::before,
.nav-knopf__balken::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2.5px; background: #fff;
}
.nav-knopf__balken::before { top: -6px; }
.nav-knopf__balken::after  { top:  6px; }

.nav { display: none; }
.nav--offen { display: block; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav a {
  display: block;
  padding: 14px 2px;
  text-decoration: none;
  color: var(--blau-tief);
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--linie);
}
.nav a[aria-current="page"] { color: var(--braun-dunkel); }

/* ---------- Schaltflächen: groß, hoher Kontrast ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.005em;
  padding: 16px 24px;
  border-radius: var(--kante);
  border: 2px solid transparent;
  min-height: 58px;
  text-align: center;
  cursor: pointer;
  transition: background var(--tempo), border-color var(--tempo),
              color var(--tempo), transform var(--tempo);
}
.knopf:hover { transform: translateY(-2px); }

.knopf--whatsapp { background: #16734a; color: #fff; }
.knopf--whatsapp:hover { background: #0f5a39; color: #fff; }

.knopf--blau { background: var(--blau); color: #fff; }
.knopf--blau:hover { background: var(--blau-nacht); color: #fff; }

.knopf--rand {
  background: transparent;
  color: var(--blau-tief);
  border-color: var(--linie-stark);
}
.knopf--rand:hover {
  background: var(--blau-tief);
  color: #fff;
}

.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopfreihe .knopf { flex: 1 1 230px; }

/* ---------- Startblock: dunkelblaue Fläche ---------- */

.start {
  background: var(--blau-nacht);
  color: var(--text-hell);
  padding: 52px 0 56px;
  position: relative;
  overflow: hidden;
}
/* Sehr dezentes Mauerwerks-Raster im Hintergrund */
.start::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 120px 40px;
  pointer-events: none;
}
.start .inhalt { position: relative; }

.start h1 { color: #fff; margin-bottom: .32em; }
.start .vorzeile { color: var(--braun-hell); }
.start .vorzeile::before { background: var(--braun-hell); }

.start__balken {
  width: 86px;
  height: 6px;
  background: var(--braun-hell);
  margin: 0 0 24px;
}

.start__satz {
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
  color: var(--text-hell);
  max-width: 50ch;
  line-height: 1.55;
}

.start .leise { color: #9fb4ca; }
.start a:not(.knopf) { color: #fff; }

/* Knöpfe auf dunklem Grund */
.start .knopf--blau {
  background: var(--braun);
  border-color: var(--braun);
}
.start .knopf--blau:hover {
  background: var(--braun-dunkel);
  border-color: var(--braun-dunkel);
}
.start .knopf--rand {
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.start .knopf--rand:hover {
  background: #fff;
  color: var(--blau-nacht);
  border-color: #fff;
}

/* ---------- Raster ---------- */

.raster { display: grid; gap: 18px; }
.raster--2 { grid-template-columns: 1fr; }
.raster--3 { grid-template-columns: 1fr; }

/* ---------- Karten: klare Kanten, kräftig abgesetzt ---------- */

.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-top: 5px solid var(--blau-tief);
  border-radius: var(--kante);
  padding: 26px 24px;
  transition: border-color var(--tempo), transform var(--tempo),
              box-shadow var(--tempo);
}
.karte:hover {
  border-top-color: var(--braun);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11,31,56,.1);
}
.karte h3 { margin-bottom: .4em; }
.karte p:last-child { margin-bottom: 0; }

/* Preis groß herausgestellt */
.karte__preis {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--braun-dunkel);
  line-height: 1.2;
  margin: 0 0 14px;
}

/* Merkmale ohne Rahmen, mit kräftigem Balken */
.merkmal {
  border-left: 5px solid var(--braun);
  padding: 2px 0 2px 18px;
}
.merkmal h3 { margin-bottom: .25em; }
.merkmal p { margin: 0; color: var(--text-leise); }

/* Schritte 1-2-3 */
.schritt { display: flex; gap: 18px; align-items: flex-start; }
.schritt__nr {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: var(--kante);
  background: var(--blau-nacht);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}
.schritt h3 { margin-bottom: .25em; }
.schritt p { margin: 0; color: var(--text-leise); }

/* ---------- Platzhalter für spätere Fotos ---------- */

.bildplatz {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 26px;
  border-radius: var(--kante);
  background: var(--blau-hell);
  border: 2px dashed #9db5cc;
  color: var(--blau-tief);
  font-size: .98rem;
  font-weight: 600;
}
.bildplatz--braun {
  background: var(--sand);
  border-color: #c9ab8c;
  color: var(--braun-dunkel);
}
.bildplatz span { max-width: 34ch; }

/* ---------- Hinweis „BITTE ERGÄNZEN" ---------- */

.ergaenzen {
  display: inline-block;
  background: #ffeeb8;
  border-left: 4px solid #c8991f;
  color: #5e4504;
  font-size: .95rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 var(--kante) var(--kante) 0;
}
.hinweis-kasten {
  background: #fff6d9;
  border-left: 6px solid #c8991f;
  color: #543e04;
  border-radius: 0 var(--kante) var(--kante) 0;
  padding: 18px 20px;
  font-size: 1rem;
}
.hinweis-kasten p:last-child { margin-bottom: 0; }

/* ---------- Preistabelle ---------- */

.preis-tabelle {
  width: 100%;
  border-collapse: collapse;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--kante);
  overflow: hidden;
  font-size: 1rem;
}
.preis-tabelle caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  color: var(--text-leise);
  font-size: 1rem;
}
.preis-tabelle th,
.preis-tabelle td {
  text-align: left;
  padding: 18px 18px;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
.preis-tabelle thead th {
  background: var(--blau-nacht);
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-top: 15px;
  padding-bottom: 15px;
}
.preis-tabelle tbody tr:last-child td { border-bottom: 0; }
.preis-tabelle tbody tr:hover { background: var(--papier); }
.preis-tabelle td strong {
  color: var(--blau-tief);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.preis-tabelle .preis {
  white-space: nowrap;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  color: var(--braun-dunkel);
}

/* ---------- Listen: Kontakt, Impressum, Öffnungszeiten ---------- */

.daten { margin: 0; }
.daten div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--linie);
}
.daten dt {
  font-weight: 800;
  color: var(--blau-tief);
  flex: 0 0 165px;
}
.daten dd { margin: 0; flex: 1 1 200px; }

.zeiten { list-style: none; margin: 0; padding: 0; max-width: 380px; }
.zeiten li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linie);
  font-weight: 600;
}
.zeiten li:last-child { border-bottom: 0; }
.zeiten .zu { color: var(--text-leise); font-weight: 400; }

/* ---------- Formularfelder ---------- */

.feld-gruppe { display: grid; gap: 18px; margin-top: 22px; }
.feld-label {
  display: block;
  font-weight: 800;
  color: var(--blau-tief);
  margin-bottom: 7px;
}
.feld {
  width: 100%;
  font: inherit;
  font-size: 1.02rem;
  padding: 14px;
  color: var(--text);
  background: var(--weiss);
  border: 2px solid var(--linie);
  border-radius: var(--kante);
  transition: border-color var(--tempo);
}
.feld:focus { border-color: var(--blau); outline: none; }
select.feld { cursor: pointer; }   /* Pfeil des Geräts bleibt sichtbar */
textarea.feld { resize: vertical; }

/* ---------- Textseiten: Impressum, Datenschutz ---------- */

.text-seite { padding: 44px 0 60px; }
.text-seite h1 { font-size: clamp(2rem, 6.5vw, 3.1rem); }
.text-seite h2 {
  font-size: clamp(1.3rem, 3.2vw, 1.65rem);
  margin-top: 1.9em;
  padding-top: .6em;
  border-top: 2px solid var(--linie);
}
.text-seite h3 { margin-top: 1.5em; }
.text-seite ul { padding-left: 22px; }
.text-seite li { margin-bottom: .45em; }
.text-seite p, .text-seite li { max-width: 74ch; }

/* ---------- WhatsApp: fester Knopf unten ---------- */

.wa-fix {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #16734a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 16px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transition: background var(--tempo), transform var(--tempo);
}
.wa-fix:hover {
  background: #0f5a39;
  color: #fff;
  transform: translateY(-2px);
}
.wa-fix svg { flex: 0 0 auto; }

/* ---------- Fußbereich ---------- */

.fuss {
  background: var(--blau-nacht);
  color: var(--text-hell);
  padding: 54px 0 28px;
  font-size: 1rem;
}
.fuss h2 {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.025em;
}
.fuss h3 {
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.fuss a { color: #fff; text-decoration: underline; }
.fuss a:hover { color: var(--braun-hell); }
.fuss__raster { display: grid; gap: 32px; grid-template-columns: 1fr; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 10px; }
.fuss__unten {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .95rem;
  color: #92a8c0;
  padding-bottom: 64px;   /* Platz für den WhatsApp-Knopf */
}

/* ---------- Hilfen für Tastatur und Screenreader ---------- */

.nur-screenreader {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprung {
  position: absolute; left: -9999px;
  background: #fff; color: var(--blau-tief);
  padding: 14px 18px; z-index: 100; font-weight: 800;
}
.sprung:focus { left: 8px; top: 8px; }

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

/* Lange deutsche Wörter dürfen getrennt werden */
p, li, dd, dt, td, th, caption, .karte, .merkmal {
  overflow-wrap: break-word;
}

/* ==========================================================
   Ab Tablet
   ========================================================== */
@media (min-width: 720px) {
  body { font-size: 19px; }
  .abschnitt { padding: 86px 0; }
  .abschnitt--schmal { padding: 52px 0; }
  .start { padding: 84px 0 92px; }
  .raster { gap: 26px; }
  .raster--2 { grid-template-columns: 1fr 1fr; }
  .raster--3 { grid-template-columns: 1fr 1fr; }
  .fuss__raster { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* ==========================================================
   Ab Desktop
   ========================================================== */
@media (min-width: 960px) {
  .raster--3 { grid-template-columns: repeat(3, 1fr); }
  .start { padding: 104px 0 112px; }

  .nav-knopf { display: none; }
  .nav { display: block !important; }
  .nav ul {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
  }
  .nav a {
    border-bottom: 0;
    padding: 10px 14px;
    border-radius: var(--kante);
    font-size: 1rem;
  }
  .nav a:hover { background: var(--blau-hell); }
  .nav a[aria-current="page"] {
    background: var(--blau-nacht);
    color: #fff;
  }
  .kopf__reihe { min-height: 86px; }
}

/* ==========================================================
   Preistabelle auf dem Handy
   Unter 760px wird aus jeder Tabellenzeile eine eigene Karte.
   Sonst wäre die Tabelle breiter als der Bildschirm.
   ========================================================== */
@media (max-width: 760px) {

  .preis-tabelle,
  .preis-tabelle tbody,
  .preis-tabelle tr,
  .preis-tabelle td {
    display: block;
    width: 100%;
  }

  /* Kopfzeile entfällt – die Beschriftung steht jetzt
     über jedem Wert (siehe ::before weiter unten). */
  .preis-tabelle thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .preis-tabelle {
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .preis-tabelle caption {
    display: block;
    width: 100%;
    padding-bottom: 16px;
  }

  .preis-tabelle tr {
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-top: 5px solid var(--blau-tief);
    border-radius: var(--kante);
    margin-bottom: 18px;
    padding: 4px 0 12px;
  }
  .preis-tabelle tr:hover { background: var(--weiss); }

  .preis-tabelle td {
    border-bottom: 0;
    padding: 9px 20px;
  }

  /* Name der Leistung = Überschrift der Karte */
  .preis-tabelle td.was {
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .preis-tabelle td.was strong { font-size: 1.2rem; }

  /* Beschriftung über jedem Wert */
  .preis-tabelle td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--text-leise);
    margin-bottom: 4px;
  }

  .preis-tabelle td.preis {
    white-space: normal;
    font-size: 1.22rem;
  }
}

/* ==========================================================
   Rücksicht auf Nutzer, die Bewegung reduzieren
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .knopf:hover, .karte:hover, .wa-fix:hover { transform: none; }
}

@media print {
  .kopf, .nav, .wa-fix, .knopfreihe { display: none !important; }
  .start { background: #fff; color: #000; }
  .start h1 { color: #000; }
  body { font-size: 12pt; }
}

/* Hervorgehobene Karte („Nicht sicher, was Sie brauchen?") */
.karte--sand {
  background: var(--sand);
  border-color: #ddc7ab;
  border-top-color: var(--braun);
}
.karte--sand:hover { border-top-color: var(--blau-tief); }

/* Auf schmalen Handys zeigt der feste WhatsApp-Knopf nur das Symbol,
   damit er keine Formularfelder oder Texte verdeckt. */
@media (max-width: 520px) {
  .wa-fix { padding: 16px; border-radius: 50%; }
  .wa-fix__text { display: none; }
}
