/* Ernst Haide – BusinessAufstellungen · gemeinsames Stylesheet

   ============================================================
   GESTALTUNGSREGELN DIESER WEBSITE (verbindlich, auch für neue Abschnitte)
   ------------------------------------------------------------
   ONE-PAGER: alles steht in index.php mit den Abschnitten #start,
   #aufstellungen, #angebot, #methode, #ueber-mich, #termine, #kontakt.
   Eigene Seiten sind nur impressum.php und datenschutz.php.

   Farben kommen aus dem Logo (Netz-Weltkugel in Orange):
     --orange      #c94716  Hauptfarbe: Knöpfe, Akzente, Zahlen, Linien (Weiß darauf 4,8:1)
     --orange-tief #a83a13  Hover, dunkle Akzente
     --sand        #fdf1ea  warmes Band für ruhige Abschnitte
     --schiefer    #22303a  dunkles Band (Kopfbild, Fußzeile, Zitat)
     --tinte/--grau Fließtext
   Bänder wechseln: dunkel (Kopfbild) → weiß → sand → weiß → dunkel (Fuß).
   NIE zwei farbige Bänder direkt hintereinander.

   Logo-Motiv: Die Netzkugel des Logos kehrt als sehr blasses Muster
   (assets/img/netz-muster.png) in farbigen Bändern wieder – Deckkraft ~6 %,
   nie über Text, nie kräftiger, keine andere Form.

   Karten: weiß, 1px Linie, Radius 16px, weicher Schatten.
   Schriften: Source Serif 4 (Überschriften), Inter (Fließtext) – lokal, kein CDN.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }

:root {
  --orange: #c94716;        /* Knöpfe/Akzente – Weiß darauf 4,8:1 */
  --orange-signal: #d94f1e; /* nur für Flächen/Muster, nicht hinter weißem Text */
  --orange-tief: #a83a13;
  --orange-hell: #f2865c;
  --sand: #fdf1ea;
  --sand-tief: #f6dfd2;
  --schiefer: #22303a;
  --schiefer-hell: #33454f;
  --tinte: #1d2733;
  --grau: #56646f;
  --linie: #e6e2de;
  --radius: 16px;
  --kopf: "Source Serif 4", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 108px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--text);
  color: var(--tinte);
  background: #fff;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--kopf); font-weight: 600; line-height: 1.18; letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.1em; }
a { color: var(--orange-tief); }
a:hover { color: var(--orange); }

.huelle { width: min(1180px, 100% - 48px); margin-inline: auto; }
@media (max-width: 560px) { .huelle { width: min(1180px, 100% - 32px); } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 10px 16px; border-radius: 8px; }

/* ===== Knöpfe ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; border: 1.5px solid var(--orange);
  padding: 14px 26px; border-radius: 10px; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(168, 58, 19, .7);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--orange-tief); border-color: var(--orange-tief); color: #fff; transform: translateY(-1px); }
.btn-hell { background: #fff; color: var(--schiefer); border-color: #fff; box-shadow: none; }
.btn-hell:hover { background: var(--sand); border-color: var(--sand); color: var(--schiefer); }
.btn-linie { background: none; color: var(--tinte); border-color: var(--linie); box-shadow: none; }
.btn-linie:hover { background: none; border-color: var(--orange); color: var(--orange-tief); }
.btn-klein { padding: 9px 18px; font-size: .95rem; }

/* ===== Kopfzeile ===== */
.kopf {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie);
}
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.marke img { height: 50px; width: auto; }
.menue ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.menue a { color: var(--tinte); text-decoration: none; font-size: .97rem; font-weight: 500; position: relative; }
.menue a:hover { color: var(--orange-tief); }
/* Der Kontakt-Knopf im Menü ist ein .btn – die allgemeine Menüfarbe darf ihn
   nicht überschreiben: schwarze Schrift auf Orange, und beim Überfahren wurde
   sie orange auf Orange, also unsichtbar. */
.menue a.btn, .menue a.btn:hover { color: #fff; }
.menue a.ist-aktiv:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.burger { display: none; width: 46px; height: 40px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; cursor: pointer; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: var(--tinte); border-radius: 2px; margin: 0 auto; position: relative; transition: .2s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menue-offen .burger span { background: transparent; }
body.menue-offen .burger span::before { top: 0; transform: rotate(45deg); }
body.menue-offen .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: block; }
  .menue { position: fixed; inset: 78px 0 auto 0; background: #fff; border-bottom: 1px solid var(--linie);
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: 0 18px 30px -20px rgba(29,39,51,.5); }
  body.menue-offen .menue { transform: none; }
  .menue ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .menue li { border-top: 1px solid var(--linie); }
  .menue li:first-child { border-top: 0; }
  .menue a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .menue .btn { margin-top: 12px; justify-content: center; }
  .marke img { height: 40px; }
}

/* ===== Bänder ===== */
.band { padding: clamp(64px, 8vw, 112px) 0; position: relative; isolation: isolate; }
.band-sand { background: var(--sand); border-top: 1px solid var(--sand-tief); border-bottom: 1px solid var(--sand-tief); }
.band-dunkel { background: var(--schiefer); color: #fff; }
.band-dunkel h2, .band-dunkel h3 { color: #fff; }
.band-dunkel p { color: #d5dde3; }

/* Logo-Motiv als sehr blasses Muster in farbigen Bändern */
.netz::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("img/netz-muster.png"); background-size: 620px 500px; opacity: .06;
}
.band-dunkel.netz::before { opacity: .10; }
.netz::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: min(460px, 50vw); aspect-ratio: 1;
  background: url("img/netz-gross.png") no-repeat center / contain; opacity: .07; z-index: -1; pointer-events: none;
}
.band-dunkel.netz::after { opacity: .12; }

.kopfzeile { max-width: 64ch; margin-bottom: clamp(32px, 5vw, 52px); }
.kopfzeile .augen { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-tief); margin: 0 0 .6em; }
.band-dunkel .kopfzeile .augen { color: var(--orange-hell); }
.kopfzeile p { color: var(--grau); font-size: 1.1rem; margin: 0; }
.band-dunkel .kopfzeile p { color: #cfd8de; }

/* ===== Kopfbild ===== */
.hero { position: relative; color: #fff; background: var(--schiefer); overflow: hidden; }
.hero-bild { position: absolute; inset: 0; z-index: 0; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; }
.hero-bild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,29,36,.92) 0%, rgba(20,29,36,.74) 46%, rgba(20,29,36,.30) 100%);
}
/* Der Textblock beginnt bündig mit dem Inhalt der übrigen Abschnitte.
   Vorher trug die Hülle selbst die Breitenbegrenzung – zusammen mit ihrem
   margin-inline:auto rückte damit der ganze Block in die Mitte. */
.hero-innen { position: relative; z-index: 1; padding: clamp(84px, 12vw, 152px) 0 clamp(64px, 9vw, 108px); }
.hero-innen > * { max-width: 44rem; }
.hero .augen { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-hell); margin: 0 0 1em; }
.hero h1 { color: #fff; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #dfe6ea; max-width: 40rem; }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-marken { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-marken img { height: 74px; width: auto; background: #fff; border-radius: 12px; padding: 7px; }
.hero-marken p { margin: 0; color: #cfd8de; font-size: .95rem; max-width: 30ch; }

/* ===== Karten ===== */
.raster { display: grid; gap: 22px; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: 0 14px 34px -24px rgba(29, 39, 51, .5);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; min-width: 0;
}
.karte:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -26px rgba(29, 39, 51, .55); }
.karte h3 { margin-bottom: .4em; }
.karte p { color: var(--grau); margin: 0; }
.karte p + p { margin-top: .8em; }
.karte-nr {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-tief));
  color: #fff; font-weight: 700; margin-bottom: 18px; flex: none;
}
.karte-bild { margin: -30px -28px 22px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.karte-bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.karte-liste { margin: 0; padding-left: 1.1em; color: var(--grau); }
.karte-liste li { margin-bottom: .4em; }

/* Preis als „ab“-Wert auf einer Angebotskarte – ruhiges Label direkt unter der
   Überschrift, dezent in der Akzentfarbe, ohne die Karte optisch zu überladen. */
.preis { display: inline-block; font-weight: 700; color: var(--orange-tief); font-size: .98rem; margin: 0 0 .7em; }
.preis mark {
  background: var(--sand-tief); color: var(--orange-tief); font-weight: 700;
  padding: 1px 8px; border-radius: 6px; font-family: var(--text);
}

/* ===== Zwei Spalten mit Bild ===== */
.split { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.ist-gedreht .split-bild { order: -1; } }
.split-bild img { border-radius: var(--radius); box-shadow: 0 26px 50px -30px rgba(29, 39, 51, .7); }
.split-text p { color: var(--grau); }
.split-text .band-dunkel p { color: #d5dde3; }

/* ===== Zitat ===== */
.zitat { position: relative; max-width: 54rem; margin: 0 auto; text-align: center; }
.zitat-text { font-family: var(--kopf); font-size: clamp(1.35rem, 2.6vw, 1.95rem); line-height: 1.4; color: #fff; margin: 0 0 18px; }
.zitat-wer { color: var(--orange-hell); font-weight: 600; letter-spacing: .04em; margin: 0; }

/* ===== Aufklappbare Texte ===== */
.mehr-huelle { position: relative; overflow: hidden; max-height: 7.5em; transition: max-height .35s ease; }
.mehr-huelle.ist-offen { max-height: 240em; }
.mehr-huelle:not(.ist-offen)::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3em;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
}
.band-sand .mehr-huelle:not(.ist-offen)::after { background: linear-gradient(180deg, rgba(253,241,234,0), var(--sand)); }
.mehr-knopf {
  border: 0; background: none; padding: 8px 0 0; font: inherit; font-weight: 600; color: var(--orange-tief);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.mehr-knopf:hover { text-decoration: underline; }
.mehr-knopf::after { content: "▾"; font-size: .85em; }
.mehr-knopf[aria-expanded="true"]::after { content: "▴"; }

/* ===== Termine ===== */
.termin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--linie); }
.termin:last-child { border-bottom: 0; }
.termin strong { font-size: 1.05rem; }
.termin span { color: var(--grau); }
.termin .frei { color: var(--orange-tief); font-weight: 600; }

/* ===== Kontakt ===== */
.kontakt-raster { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kontakt-karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; box-shadow: 0 14px 34px -24px rgba(29,39,51,.5); }
.kontakt-karte h3 { margin-bottom: .3em; }
.kontakt-karte a { font-weight: 600; text-decoration: none; }
.kontakt-karte a:hover { text-decoration: underline; }
.kontakt-zeile { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.kontakt-zeile svg { width: 20px; height: 20px; color: var(--orange); flex: none; }

/* ===== Fußzeile ===== */
.fuss { background: var(--schiefer); color: #cbd5dc; padding: clamp(52px, 7vw, 76px) 0 26px; }
.fuss h2 { font-size: 1.05rem; color: #fff; margin-bottom: .7em; font-family: var(--text); letter-spacing: .04em; text-transform: uppercase; }
.fuss a { color: #eaf0f4; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss p { margin: 0 0 .6em; }
.fuss-raster { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.fuss-marke img { height: 58px; width: auto; margin-bottom: 16px; }
.fuss-links { list-style: none; margin: 0; padding: 0; }
.fuss-links li { margin-bottom: .45em; }
.fuss-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: #9fb0bb; }
.fuss-zeile p { margin: 0; }

/* ===== Rechtstexte ===== */
.rechts { padding: clamp(48px, 7vw, 84px) 0; }
.rechts .huelle { max-width: 800px; }
.rechts h2 { font-size: 1.45rem; margin-top: 1.6em; }
.rechts h3 { font-size: 1.1rem; margin-top: 1.4em; }
.rechts p, .rechts li { color: var(--grau); }

/* ===== Einblenden beim Scrollen ===== */
html.js .zeig { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .zeig.ist-da { opacity: 1; transform: none; }
html.js .raster .zeig:nth-child(2) { transition-delay: .08s; }
html.js .raster .zeig:nth-child(3) { transition-delay: .16s; }
html.js .raster .zeig:nth-child(4) { transition-delay: .08s; }
html.js .raster .zeig:nth-child(5) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { html.js .zeig { opacity: 1; transform: none; transition: none; } }

/* ===== Lightbox ===== */
.lupe { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.lb { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; background: rgba(15,22,28,.92); padding: 24px; }
.lb.ist-offen { display: flex; }
.lb img { max-width: min(1100px, 92vw); max-height: 86vh; width: auto; border-radius: 10px; }
.lb-zu { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; font-size: 24px; cursor: pointer; }
body.lb-offen { overflow: hidden; }

/* Aufklappbarer Text im dunklen Band: der Verlauf muss dunkel auslaufen */
.band-dunkel .mehr-huelle:not(.ist-offen)::after {
  background: linear-gradient(180deg, rgba(34, 48, 58, 0), var(--schiefer));
}

@media (max-width: 520px) {
  .hero-knoepfe .btn { width: 100%; }
  .hero-marken img { height: 62px; }
}

/* ===== Kopfbild: drei Fakten statt Siegel ===== */
.hero-fakten {
  display: flex; flex-wrap: wrap; gap: 14px 40px; list-style: none; margin: 46px 0 0; padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-fakten li { display: flex; flex-direction: column; gap: 2px; }
.hero-fakten strong { font-family: var(--kopf); font-size: 1.35rem; color: #fff; }
.hero-fakten span { color: #c9d3da; font-size: .93rem; max-width: 22ch; }

/* ===== Beratungstermin vereinbaren ===== */
.beratung {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); box-shadow: 0 18px 44px -28px rgba(29, 39, 51, .55);
}
.beratung-kopf { max-width: 62ch; margin-bottom: 26px; }
.beratung-kopf h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: .35em; }
.beratung-kopf p { color: var(--grau); margin: 0; }

.slots { border: 0; margin: 0 0 26px; padding: 0; }
.slots legend {
  padding: 0; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-tief); margin-bottom: 14px;
}
.slots-leer { color: var(--grau); margin: 0 0 16px; }
.slot-tage { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.slot-tag { background: var(--sand); border: 1px solid var(--sand-tief); border-radius: 14px; padding: 16px 16px 12px; }
.slot-datum { font-weight: 700; margin: 0 0 12px; font-size: .97rem; }
.slot-zeiten { display: flex; flex-direction: column; gap: 10px; }

.slot {
  display: flex; flex-direction: column; gap: 2px; position: relative;
  background: #fff; border: 1.5px solid var(--linie); border-radius: 12px;
  padding: 12px 14px 12px 44px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.slot:hover { border-color: var(--orange); }
.slot input {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; accent-color: var(--orange); margin: 0;
}
.slot input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.slot:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(201, 71, 22, .14); }
.slot-zeit { font-weight: 700; }
.slot-art { color: var(--grau); font-size: .9rem; }
.slot-frei { margin-top: 16px; background: #fff; }
/* Die Zeitkacheln tragen nur Datum und Uhrzeit – sie dürfen schmal sein. */
.slot-zeiten .slot { padding: 10px 14px 10px 44px; }
/* Wie gesprochen wird, wählt der Interessent selbst */
.wege { margin-top: -6px; }
.weg-liste { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.felder { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feld { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.feld-breit { grid-column: 1 / -1; }
.feld label { font-size: .92rem; font-weight: 600; }
.feld input, .feld textarea {
  font: inherit; color: var(--tinte); background: #fff;
  border: 1.5px solid var(--linie); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.feld input:focus, .feld textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(201, 71, 22, .14); }
.feld textarea { resize: vertical; min-height: 110px; }
/* Fallenfeld für Maschinen – für Menschen unsichtbar, aber nicht display:none */
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.beratung-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 24px; }
.beratung-fuss .klein { margin: 0; font-size: .88rem; color: var(--grau); max-width: 46ch; }

.hinweis { border-radius: 12px; padding: 18px 20px; margin-bottom: 22px; }
.hinweis strong { display: block; margin-bottom: 4px; }
.hinweis p { margin: 0; }
.hinweis-gut { background: #eef7f0; border: 1px solid #cde5d4; color: #1f4a2c; }
.hinweis-gut a { color: #1f4a2c; }
.hinweis-fehler { background: #fdeceb; border: 1px solid #f4c9c5; color: #8a2318; }

/* Kopfbild gespiegelt: Das Motiv ist links dicht und rechts offen – gespiegelt
   liegt die ruhige Fläche unter dem Text und die Figuren stehen frei. */
.hero-bild img { transform: scaleX(-1); }

/* Einwilligung in die Datenschutzerklärung – Pflicht vor dem Absenden */
.einwilligung {
  display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 0;
  background: var(--sand); border: 1px solid var(--sand-tief); border-radius: 12px; padding: 14px 16px;
}
.einwilligung input {
  width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); flex: none; cursor: pointer;
}
.einwilligung input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.einwilligung label { font-size: .95rem; color: var(--grau); cursor: pointer; }
.einwilligung a { font-weight: 600; }
