/* =========================================================
   style.css – Aussehen der ganzen Webseite
   Farben und Abstände stehen ganz oben als "Variablen".
   Wer eine Farbe ändern will, ändert sie nur hier.
   ========================================================= */

:root {
  --text: #1c2a2e;          /* Haupttext, fast schwarz */
  --text-leise: #5b6466;    /* grauer Nebentext */
  --marke: #10574f;         /* Hauptfarbe, gleiches Grün wie im Logo */
  --marke-dunkel: #0b413b;
  --marke-hell: #e6f0ee;
  --akzent: #e0a526;        /* warmes Gelb für Hervorhebungen */
  --hintergrund: #f7f6f2;   /* Seitenhintergrund */
  --flaeche: #ffffff;       /* Karten, Kästen */
  --linie: #e3e0d8;         /* Rahmen und Trennlinien */

  /* Ampel – gleiche Farben wie in der Excel-Datei */
  --gruen-bg: #c6efce;  --gruen-text: #006100;
  --gelb-bg:  #ffeb9c;  --gelb-text:  #9c5700;
  --rot-bg:   #ffc7ce;  --rot-text:   #9c0006;

  --radius: 12px;
  --breite: 1120px;         /* maximale Inhaltsbreite */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
a  { color: var(--marke); }

.container {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 16px;
}

section { padding: 72px 0; scroll-margin-top: 70px; }
section.hell { background: var(--flaeche); border-block: 1px solid var(--linie); }

.abschnitt-kopf { max-width: 720px; margin-bottom: 40px; }
.abschnitt-kopf p { color: var(--text-leise); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marke);
  margin-bottom: 8px;
}

/* ---------- Platzhalter (gelb markiert, später ersetzen) ---------- */
.platzhalter {
  background: #fff3b0;
  outline: 2px dashed #d9a400;
  outline-offset: 1px;
  border-radius: 4px;
  padding: 0 4px;
}

.entwurf-hinweis {
  background: #fff3b0;
  border-bottom: 2px dashed #d9a400;
  font-size: 0.9rem;
  text-align: center;
  padding: 8px 16px;
}

/* ---------- Kopfzeile mit Navigation ---------- */
.kopfzeile {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 242, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}

.kopfzeile .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo-zeichen {               /* Bildzeichen aus bilder/logo-zeichen.svg */
  display: block;
  width: 32px; height: 32px;
  margin-right: 10px;
}

.navigation { display: flex; gap: 22px; align-items: center; }
.navigation a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.navigation a:hover { color: var(--marke); }
.navigation a.button, .navigation a.button:hover { color: #fff; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--marke);
  background: var(--marke);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}
.button:hover { background: var(--marke-dunkel); border-color: var(--marke-dunkel); }
.button.zweitrangig { background: transparent; color: var(--marke); }
.button.zweitrangig:hover { background: var(--marke-hell); }
.button.klein { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- Startbereich (Hero) ---------- */
.hero { padding: 64px 0 72px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text p.unterzeile { font-size: 1.15rem; color: var(--text-leise); max-width: 34em; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-fakten { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.95rem; color: var(--text-leise); }
.hero-fakten li::before { content: "✓ "; color: var(--marke); font-weight: 700; }

/* Nachgebaute Excel-Ansicht im Hero */
.tabellen-vorschau {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(28, 42, 46, 0.35);
  overflow: hidden;
}
.vorschau-titel {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--marke); color: #fff;
  padding: 10px 16px; font-size: 0.9rem; font-weight: 600;
}
.vorschau-titel span:last-child { font-weight: 400; opacity: 0.85; font-size: 0.8rem; }
.tabelle-scroll { overflow-x: auto; }
.tabellen-vorschau table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tabellen-vorschau th, .tabellen-vorschau td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--linie); }
.tabellen-vorschau th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-leise); background: #fbfaf7; }
.tabellen-vorschau td.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabellen-vorschau th.zahl { text-align: right; hyphens: manual; }
.tabellen-vorschau tr:last-child td { border-bottom: 0; }
.tabellen-vorschau td .ampel { margin-top: 4px; }
.tabellen-vorschau td { vertical-align: top; }
.vorschau-fuss { padding: 10px 16px; font-size: 0.78rem; color: var(--text-leise); background: #fbfaf7; border-top: 1px solid var(--linie); }

/* Ampel-Etiketten */
.ampel {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.ampel.gruen { background: var(--gruen-bg); color: var(--gruen-text); }
.ampel.gelb  { background: var(--gelb-bg);  color: var(--gelb-text); }
.ampel.rot   { background: var(--rot-bg);   color: var(--rot-text); }

/* ---------- Problem-Abschnitt ---------- */
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.beispiel-box {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-left: 5px solid var(--rot-text);
  border-radius: var(--radius);
  padding: 24px;
}
.beispiel-box h3 { margin-bottom: 14px; }
.rechenweg { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.rechenweg td { padding: 6px 0; border-bottom: 1px dashed var(--linie); }
.rechenweg td:last-child { text-align: right; white-space: nowrap; }
.rechenweg tr.summe td { font-weight: 700; border-bottom: 2px solid var(--text); }
.rechenweg tr.ergebnis td { font-weight: 700; color: var(--rot-text); border-bottom: 0; padding-top: 10px; }
.klein-grau { font-size: 0.85rem; color: var(--text-leise); }

.punkte { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.punkte li { padding-left: 34px; position: relative; }
.punkte li::before {
  content: "!"; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gelb-bg); color: var(--gelb-text);
  font-weight: 800; font-size: 0.85rem; display: grid; place-items: center;
}
.punkte strong { display: block; }

/* ---------- Funktionen (Kacheln) ---------- */
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kachel {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 24px;
}
section.hell .kachel { background: var(--hintergrund); }
.kachel .symbol {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--marke-hell); color: var(--marke);
  font-size: 1.3rem; margin-bottom: 14px;
}
.kachel p { margin: 0; color: var(--text-leise); font-size: 0.97rem; }

/* ---------- So geht's (Schritte) ---------- */
.schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: schritt; }
.schritte li { counter-increment: schritt; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; }
.schritte li::before {
  content: counter(schritt);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--marke); color: #fff; font-weight: 800;
  margin-bottom: 14px;
}
.schritte p { margin: 0; color: var(--text-leise); }

/* ---------- Mini-Rechner ---------- */
.rechner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
}
.rechner-eingaben { padding: 28px; display: grid; gap: 16px; align-content: start; }
.rechner-eingaben label { display: grid; gap: 4px; font-weight: 600; font-size: 0.95rem; }
.rechner-eingaben label small { font-weight: 400; color: var(--text-leise); }
.rechner-eingaben input, .rechner-eingaben select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #cfcabd;
  border-radius: 8px;
  background: #fffdf6;   /* leicht gelb = Eingabefeld, wie in der Excel-Datei */
  width: 100%;
}
.rechner-eingaben input:focus, .rechner-eingaben select:focus { outline: 2px solid var(--marke); outline-offset: 1px; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.rechner-ergebnis { background: var(--marke); color: #fff; padding: 28px; display: grid; gap: 14px; align-content: start; }
.rechner-ergebnis h3 { color: #fff; }
.ergebnis-zeilen { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ergebnis-zeilen td { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.ergebnis-zeilen td:last-child { text-align: right; white-space: nowrap; }
.ergebnis-zeilen tr.summe td { font-weight: 700; }
.mindestpreis-box { background: rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 16px; }
.mindestpreis-box .wert { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.ampel-ergebnis { background: #fff; color: var(--text); border-radius: 10px; padding: 14px 16px; font-size: 0.95rem; }
.ampel-ergebnis .ampel { margin-bottom: 6px; }
.rechner-hinweis { font-size: 0.82rem; opacity: 0.85; margin: 0; }

/* ---------- Preise ---------- */
.preis-karten { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; }
.preis-karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
}
.preis-karte.empfohlen { border: 2px solid var(--marke); }
.preis-karte .etikett { align-self: flex-start; background: var(--marke-hell); color: var(--marke); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.preis { font-size: 2.2rem; font-weight: 800; margin: 6px 0 2px; }
.preis-badge { display: inline-block; vertical-align: middle; margin-left: 12px; padding: 3px 10px; border-radius: 999px; background: #dff3e7; color: var(--marke); font-size: 0.78rem; font-weight: 700; }
.preis-zusatz { color: var(--text-leise); font-size: 0.9rem; margin-bottom: 18px; }
.preis-karte ul { padding-left: 1.2em; margin: 0 0 24px; flex-grow: 1; }
.preis-karte li { margin-bottom: 6px; }
.rechenbeispiel {
  max-width: 900px; margin-top: 28px;
  background: var(--marke-hell); border-radius: var(--radius); padding: 20px 24px;
}
.rechenbeispiel p { margin: 0; }

/* ---------- Für wen / Handwerk ---------- */
.zielgruppen { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.zielgruppen li { background: var(--flaeche); border: 1px solid var(--linie); padding: 6px 14px; border-radius: 999px; font-weight: 500; }
section.hell .zielgruppen li { background: var(--hintergrund); }
.bald-box { border: 2px dashed var(--linie); border-radius: var(--radius); padding: 24px; max-width: 720px; }
.bald-box p:last-child { margin-bottom: 0; }

/* ---------- Über Centblick (Klassen heißen noch ueber-mich) ---------- */
.ueber-mich { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ueber-mich-text { grid-column: 1; grid-row: 1; }
.ueber-mich-grafik {
  grid-column: 2; grid-row: 1;
  width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--linie);
}

/* Datenschutz-Band unter den Funktionen */
.daten-band {
  margin-top: 20px;
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--marke); color: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
}
.daten-band h3 { color: #fff; margin-bottom: 6px; }
.daten-band p { margin: 0; opacity: 0.92; }
.daten-band .symbol {
  flex: none;
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.15); font-size: 1.3rem;
}

/* ---------- FAQ (aufklappbar, ohne JavaScript) ---------- */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 0 20px;
}
section.hell .faq details { background: var(--hintergrund); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 28px 16px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--marke); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-leise); }

/* ---------- Kontakt ---------- */
.kontakt-box {
  background: var(--marke); color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.kontakt-box h2 { color: #fff; }
.kontakt-box p { opacity: 0.92; }
.kontakt-box .button { background: #fff; color: var(--marke); border-color: #fff; }
.kontakt-box .button:hover { background: var(--marke-hell); }
.kontakt-daten { font-size: 1.05rem; }
.kontakt-daten a { color: #fff; }
.kontakt-box .platzhalter { color: var(--text); }

/* ---------- Fußzeile ---------- */
.fusszeile { padding: 32px 0; font-size: 0.9rem; color: var(--text-leise); }
.fusszeile .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.fusszeile nav { display: flex; gap: 20px; }
.fusszeile a { color: var(--text-leise); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.unterseite { padding: 56px 0 72px; }
.unterseite .container { max-width: 780px; }
.unterseite h2 { font-size: 1.3rem; margin-top: 2em; }
.unterseite h2 small { font-size: 0.72rem; font-weight: 600; vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.pruef-hinweis { background: #fff3b0; border: 2px dashed #d9a400; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; }

/* =========================================================
   Handy und Tablet: unter 900 px Breite wird alles einspaltig
   ========================================================= */
@media (max-width: 900px) {
  section { padding: 56px 0; }
  .hero .container,
  .zwei-spalten,
  .rechner,
  .kontakt-box { grid-template-columns: 1fr; }
  .kacheln, .schritte { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 40px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .kopfzeile .container { flex-wrap: wrap; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
  .navigation {
    width: 100%;
    overflow-x: auto;           /* Menü lässt sich auf dem Handy seitlich wischen */
    gap: 12px;
    font-size: 0.9rem;
    padding-bottom: 4px;
  }
  .navigation a { white-space: nowrap; font-size: 0.9rem; }
  .navigation .button { display: none; }
  .kacheln, .schritte, .preis-karten, .feld-paar { grid-template-columns: 1fr; }
  .ueber-mich { grid-template-columns: 1fr; gap: 24px; }
  .ueber-mich-grafik, .ueber-mich-text { grid-column: 1; grid-row: auto; }
  .daten-band { padding: 22px; }
  .rechner-eingaben, .rechner-ergebnis, .kontakt-box { padding: 22px; }
  .tabellen-vorschau th, .tabellen-vorschau td { padding: 9px 8px; }
  .tabellen-vorschau .nur-breit { display: none; }  /* Spalte "Wareneinsatz" auf dem Handy ausblenden */
}

/* =========================================================
   Bestellseite (bestellen.html)
   ========================================================= */
.b2b-hinweis {
  background: var(--marke-hell);
  border-left: 4px solid var(--marke);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
}
.bestellformular { display: grid; gap: 20px; margin: 28px 0 40px; }
.bestellformular fieldset {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--flaeche);
  padding: 20px 24px 24px;
  margin: 0;
  display: grid; gap: 14px;
}
.bestellformular legend { font-weight: 800; padding: 0 6px; }
.bestellformular label { display: grid; gap: 4px; font-weight: 600; font-size: 0.95rem; }
.bestellformular label small { font-weight: 400; color: var(--text-leise); }
.bestellformular input:not([type="radio"]):not([type="checkbox"]), .bestellformular textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #cfcabd;
  border-radius: 8px;
  background: #fffdf6;
  width: 100%;
}
.bestellformular input:focus, .bestellformular textarea:focus { outline: 2px solid var(--marke); outline-offset: 1px; }
.bestellformular .paket-wahl, .bestellformular .haekchen {
  display: flex; gap: 12px; align-items: flex-start;
  font-weight: 400;
  cursor: pointer;
}
.bestellformular .paket-wahl {
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 12px 14px;
}
.bestellformular .paket-wahl:has(input:checked) { border-color: var(--marke); background: var(--marke-hell); }
.bestellformular input[type="radio"], .bestellformular input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--marke);
}
.bestellformular .klein-grau { margin: 0; }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button:disabled:hover { background: var(--marke); border-color: var(--marke); }

.bestell-ergebnis {
  background: var(--flaeche);
  border: 2px solid var(--marke);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}
.bestell-ergebnis h2 { margin-top: 0; }
.bestell-ergebnis textarea {
  width: 100%;
  font: 0.85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 12px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--hintergrund);
  margin-bottom: 12px;
}
.ablauf { padding-left: 1.3em; }
.ablauf li { margin-bottom: 8px; }
.b2b-zeile { margin-top: 16px; }

/* =========================================================
   Drucken (z. B. AGB als PDF speichern: Cmd + P → "Als PDF sichern")
   ========================================================= */
@media print {
  .kopfzeile, .fusszeile, .entwurf-hinweis, .pruef-hinweis { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .unterseite { padding: 0; }
  .platzhalter { background: none; outline: none; padding: 0; }
  a { color: inherit; }
}
button.button { font: inherit; font-weight: 700; }
.bestellformular > .button { justify-self: start; padding-left: 28px; padding-right: 28px; }
