/* =========================================================
   Webseiten Reiser – gemeinsames Stylesheet
   Farben und Schrift änderst du zentral hier oben.
   ========================================================= */

:root {
  /* Grundfarben */
  --tinte: #1A2540;        /* dunkles Blau für Text und Rahmen */
  --tinte-hell: #4A5470;   /* gedämpfter Text */
  --papier: #F5F6F8;       /* Seitenhintergrund */
  --weiss: #FFFFFF;
  --linie: #D9DEE7;        /* feine Linien */
  --himmel: #DCE6F2;       /* helle Flächen in Vorschauen */
  --schild: #F2B705;       /* Gelb wie ein Ladenschild */

  /* Markisenfarben der Branchen */
  --markise-rot: #C8453A;
  --markise-blau: #2F6FB0;
  --markise-gruen: #3E8E63;
  --markise-lila: #7A5AA6;

  /* Systemschriften: werden nicht aus dem Internet geladen (gut für den Datenschutz) */
  --schrift: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 1100px;
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--papier);
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--markise-blau); outline-offset: 3px; }

.container {
  width: min(100% - 2.5rem, var(--breite));
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; max-width: 20ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; max-width: 62ch; }

/* ---------- Kopfbereich ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}

.kopf-inhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-block: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.logo::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 3px;
  background: var(--schild);
}

.navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.navigation a { font-weight: 600; color: var(--tinte-hell); text-decoration: none; }
.navigation a:hover { color: var(--tinte); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--tinte);
  border-radius: 8px;
  background: var(--tinte);
  color: var(--weiss);
  font-weight: 700;
  text-decoration: none;
}
.knopf:hover { background: var(--tinte-hell); border-color: var(--tinte-hell); }

.knopf-hell { background: transparent; color: var(--tinte); }
.knopf-hell:hover { background: var(--weiss); color: var(--tinte); border-color: var(--tinte); }

.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Startbereich ---------- */
.start { padding-block: clamp(3rem, 8vw, 6rem) 3rem; }
.einleitung { font-size: 1.2rem; color: var(--tinte-hell); }

.vorteile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.vorteile li::before { content: "✓"; margin-right: 0.45rem; font-weight: 800; color: var(--markise-gruen); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(3rem, 7vw, 5rem); }
.abschnitt-weiss { background: var(--weiss); border-block: 1px solid var(--linie); }

/* ---------- Branchen als Schaufenster mit Markise ---------- */
.schaufenster-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.schaufenster {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--tinte);
  border-radius: 6px;
  background: var(--weiss);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.schaufenster:hover { transform: translateY(-3px); }

/* Die Markise: Streifen oben, Bögen darunter. Farbe kommt aus --farbe. */
.markise {
  position: relative;
  height: 44px;
  background: repeating-linear-gradient(90deg, var(--farbe) 0 28px, var(--weiss) 28px 56px);
}
.markise::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
  background: radial-gradient(circle at 14px 0, var(--farbe) 12px, transparent 13px) repeat-x;
  background-size: 28px 12px;
}

.farbe-rot   { --farbe: var(--markise-rot); }
.farbe-blau  { --farbe: var(--markise-blau); }
.farbe-gruen { --farbe: var(--markise-gruen); }
.farbe-lila  { --farbe: var(--markise-lila); }

.schaufenster-text { display: flex; flex: 1; flex-direction: column; padding: 1.9rem 1.25rem 1.25rem; }
.schaufenster-text p { color: var(--tinte-hell); }
.link-text { margin-top: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pakete ---------- */
.pakete {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.paket { padding: 1.5rem; border: 1px solid var(--linie); border-radius: 8px; background: var(--papier); }
.paket ul { margin: 0; padding-left: 1.1rem; }
.preis { margin: 0.25rem 0 1rem; font-size: 1.8rem; font-weight: 800; }
.hinweis { margin-top: 1.5rem; font-size: 0.95rem; color: var(--tinte-hell); }

/* ---------- Ablauf (echte Reihenfolge, daher nummeriert) ---------- */
.schritte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}
.schritte li { counter-increment: schritt; }
.schritte li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--schild);
  font-weight: 800;
}

/* ---------- Kontakt ---------- */
.kontakt { background: var(--tinte); color: var(--weiss); }
.kontakt p { color: #D5DBE7; }
.kontakt .knopf { background: var(--schild); border-color: var(--schild); color: var(--tinte); }
.kontakt .knopf:hover { background: #FFD24D; border-color: #FFD24D; }
.kontakt-daten { margin-top: 1.5rem; }

/* ---------- Fußbereich ---------- */
.fuss { padding-block: 2rem; font-size: 0.95rem; color: var(--tinte-hell); }
.fuss-inhalt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.fuss .navigation a { font-weight: 500; }

/* ---------- Branchenseiten ---------- */
.seitenkopf { padding-block: 3rem 0.5rem; }
.zurueck { display: inline-block; margin-bottom: 1rem; font-weight: 600; color: var(--tinte-hell); text-decoration: none; }
.zurueck:hover { color: var(--tinte); }

.beispiele { display: grid; gap: 2rem; margin-top: 1.5rem; }

.beispiel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 2rem;
  padding: 1.75rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--weiss);
}
.beispiel ul { padding-left: 1.1rem; }

.groesse {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  background: var(--schild);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Platzhalter-Vorschau im Browserfenster-Look.
   Später durch einen Screenshot ersetzen (siehe Kommentar im HTML). */
.vorschau { overflow: hidden; aspect-ratio: 16 / 10; border: 2px solid var(--tinte); border-radius: 8px; background: var(--papier); }
.vorschau-leiste { display: flex; align-items: center; gap: 6px; height: 24px; padding-left: 10px; background: var(--linie); }
.vorschau-leiste span { width: 8px; height: 8px; border-radius: 50%; background: var(--tinte-hell); opacity: 0.5; }
.vorschau-inhalt { display: grid; gap: 8px; padding: 14px; }
.vorschau-tabs { display: flex; gap: 6px; }
.tab { width: 40px; height: 8px; border-radius: 2px; background: var(--tinte-hell); opacity: 0.35; }
.balken { height: 10px; border-radius: 3px; background: var(--linie); }
.balken-gross { height: 44px; background: var(--himmel); }
.balken-kurz { width: 60%; }

.abschnitt-eng { padding-top: 1rem; }

/* ---------- Rechtstexte ---------- */
.rechtstext { padding-block: 3rem 4rem; }
.rechtstext h2 { font-size: 1.3rem; margin-top: 2rem; }
.platzhalter { background: #FFF3C4; padding: 0 0.2em; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 760px) {
  .beispiel { grid-template-columns: 1fr; }
}

/* Weniger Bewegung, wenn im Betriebssystem so eingestellt */
@media (prefers-reduced-motion: reduce) {
  .schaufenster { transition: none; }
  .schaufenster:hover { transform: none; }
}
