/* =====================================================================
   MELIO HAUSVERWALTUNG — Stylesheet
   Design-Tokens aus dem Melio-Kurzmanual 2024 (Farbpalette + Schriften).
   Ein einziges Stylesheet für alle Seiten (Start, Impressum, Datenschutz).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1) Selbstgehostete Schriften (DSGVO: KEIN Laden von Google Fonts!)
   Die woff2-Dateien liegen in /assets/fonts/ — solange sie fehlen,
   greifen die Fallback-Schriften unten (Segoe UI / system-ui).
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Nunito Sans"), url("../assets/fonts/nunito-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("Nunito Sans SemiBold"), url("../assets/fonts/nunito-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Nunito Sans Bold"), url("../assets/fonts/nunito-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("PT Sans"), url("../assets/fonts/pt-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("PT Sans Bold"), url("../assets/fonts/pt-sans-700.woff2") format("woff2");
}

/* ---------------------------------------------------------------------
   2) Design-Tokens
   --------------------------------------------------------------------- */
:root {
  /* Marken-Farben (RGB-Werte aus dem Kurzmanual, Seite 02 Farbpalette) */
  --mr-blau:        #3C4D61;   /* RGB 60/77/97   — Primär: Headlines, Flächen */
  --mr-orange:      #EF9D11;   /* RGB 239/157/17 — Akzent */
  --mr-blaugrau:    #6A7B8C;   /* RGB 106/123/140 — Sekundär */
  --mr-sand:        #D9D0C6;   /* RGB 217/208/198 — hell */
  --mr-warmgrau:    #B5ADA6;   /* RGB 181/173/166 — warmgrau */
  --mr-weiss:       #FFFFFF;

  /* Abgeleitete Funktions-Farben (Kontrast-geprüft) */
  --c-text:         #23303d;   /* Fließtext, dunkles Blaugrau statt reinem Schwarz */
  --c-text-mut:     #566573;   /* gedämpfter Text */
  --c-bg:           #FFFFFF;
  /* Weiche Flächen/Linien = bewusst aufgehellte Töne der Manual-Palette (Sand/Warmgrau).
     Statischer Hex-Fallback zuerst, color-mix überschreibt in unterstützenden Browsern. */
  --c-bg-soft:      #f4efe9;
  --c-bg-soft:      color-mix(in srgb, var(--mr-sand) 28%, #ffffff);      /* heller Sand-Ton für Abschnitte */
  --c-line:         #e4ded6;
  --c-line:         color-mix(in srgb, var(--mr-warmgrau) 42%, #ffffff);  /* warmes, aufgehelltes Grau für Linien */
  --c-gold-hell:    #f7c978;   /* aufgehellter Gold-Akzent für kleinen Text auf dunklem Grund (AA) */

  /* Typografie */
  --ff-head: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ff-body: "PT Sans", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Layout */
  --breite: 1080px;
  --breite-schmal: 760px;
  --radius: 14px;
  --schatten: 0 6px 24px rgba(60, 77, 97, 0.10);
  --schatten-hover: 0 12px 34px rgba(60, 77, 97, 0.18);
}

/* ---------------------------------------------------------------------
   3) Basis / Reset
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--mr-blau); text-decoration-color: var(--mr-orange); text-underline-offset: 3px; }
/* Hover hält den lesbaren Blauton (AA); Orange bleibt nur als dekorativer Unterstrich. */
a:hover { color: var(--mr-blau); text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--ff-head);
  color: var(--mr-blau);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--mr-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.25rem);
}

.container--schmal { max-width: var(--breite-schmal); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sprunglink für Tastatur-/Screenreader-Nutzer */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--mr-blau); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  z-index: 100; transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------------------------------------------------------------------
   4) Kopfzeile
   --------------------------------------------------------------------- */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.85rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.hauptnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(0.9rem, 2.5vw, 1.9rem); align-items: center;
}
.hauptnav a {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mr-blau);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.hauptnav a:hover, .hauptnav a[aria-current="page"] {
  color: var(--mr-blau);
  border-bottom-color: var(--mr-orange);
}

/* ---------------------------------------------------------------------
   5) Hero (blaues Marken-Band)
   --------------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, #445572 0%, var(--mr-blau) 55%, #33424f 100%);
  color: var(--mr-weiss);
  padding-block: clamp(2.75rem, 7vw, 4.75rem);
}
.hero h1 {
  color: var(--mr-weiss);
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.1rem);
  letter-spacing: 0.01em;
  max-width: 18ch;
}
/* .hero .hero__eyebrow: höhere Spezifität als `.hero p`, sonst überschreibt jene
   Regel Größe und Farbe des Eyebrows. */
.hero .hero__eyebrow {
  font-family: var(--ff-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: var(--c-gold-hell);
  max-width: none;
  margin: 0 0 1rem;
}
.hero p {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: #eaf0f6;
  max-width: 52ch;
  margin: 0.35rem 0 0;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.9rem;
  background: var(--mr-orange);
  color: #2a2000;
  font-family: var(--ff-head);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hero__cta:hover {
  color: #2a2000; background: #ffab1f;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

/* ---------------------------------------------------------------------
   6) Abschnitte
   --------------------------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.section--soft { background: var(--c-bg-soft); }

.section__kopf { max-width: 60ch; margin-bottom: 2rem; }
.section__label {
  font-family: var(--ff-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--mr-blaugrau);
  margin: 0 0 0.6rem;
}
.section h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem);
}
.section__intro { color: var(--c-text-mut); font-size: 1.08rem; }

/* Oranger Punkt-Akzent (Marken-Motiv „BUY. HOLD. IMPROVE.") */
.dot::after {
  content: "."; color: var(--mr-orange); font-weight: 700;
}

/* ---------------------------------------------------------------------
   7) Kontakt-Karten (Standorte) — hier neue Standorte ergänzen
   --------------------------------------------------------------------- */
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.karte {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten-hover); }
.karte__top {
  border-top: 4px solid var(--mr-orange);
  margin: -0.4rem 0 1.15rem; padding-top: 1.2rem;
}
.karte h3 {
  font-size: 1.3rem; margin-bottom: 0.15rem;
}
.karte__geltung {
  font-family: var(--ff-body);
  color: var(--c-text-mut);
  font-size: 0.98rem; margin: 0 0 1.2rem;
  /* Höhe von zwei Zeilen reservieren, damit die Kontaktzeilen (Telefon/Zeiten/
     E-Mail) über beide Karten hinweg auf gleicher Höhe starten, egal ob der
     Text ein- oder zweizeilig umbricht. */
  min-height: 3.3em;
}
.karte dl { margin: 0; display: grid; gap: 1.05rem; }
.zeile { display: flex; align-items: flex-start; gap: 0.85rem; }
.zeile__icon {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px;
  color: var(--mr-blau);
}
.zeile dt {
  font-family: var(--ff-head);
  font-weight: 600; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--mr-blaugrau); margin-bottom: 0.1rem;
}
.zeile dd { margin: 0; }
.zeile__gruppe { display: flex; flex-direction: column; }
.zeile a {
  font-size: 1.18rem; font-weight: 700; color: var(--mr-blau);
  text-decoration: none; font-family: var(--ff-head);
}
.zeile a:hover {
  color: var(--mr-blau);
  text-decoration: underline;
  text-decoration-color: var(--mr-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.zeile--mail a { font-size: 1.05rem; word-break: break-word; }
.zeile__wert { font-size: 1.05rem; }

/* ---------------------------------------------------------------------
   8) Hinweis-/Callout-Box (wiederverwendbar, z. B. für spätere
      Inhaltsseiten). Auf der Startseite bewusst NICHT genutzt.
   --------------------------------------------------------------------- */
.hinweis {
  background: #f2ece4;
  background: color-mix(in srgb, var(--mr-sand) 30%, var(--c-bg));
  border: 1px solid var(--c-line);
  border-left: 5px solid var(--mr-orange);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--c-text);
  max-width: 72ch;
}
.hinweis strong { color: var(--mr-blau); }

/* ---------------------------------------------------------------------
   9) Inhalts-Seiten (Impressum / Datenschutz)
   --------------------------------------------------------------------- */
.prose { max-width: var(--breite-schmal); }
.prose h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.08rem; margin-top: 1.5rem; color: var(--mr-blaugrau); }
.prose p, .prose li { color: var(--c-text); }
.prose ul { padding-left: 1.2rem; }
.prose address { font-style: normal; }

/* Gesellschafts-Liste (Impressum) */
.gesellschaften { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.gesellschaften li {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}
.gesellschaften .name { font-family: var(--ff-head); font-weight: 700; color: var(--mr-blau); display: block; }
.gesellschaften .reg { color: var(--c-text-mut); font-size: 0.95rem; }

/* PLATZHALTER-Markierung — rechtlich zu prüfende Angaben, NICHT online stellen */
.todo {
  background: #fff8e6;
  border: 2px dashed #e0a800;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
  color: #6b5300;
  font-size: 0.97rem;
}
.todo b { color: #8a6500; }

/* ---------------------------------------------------------------------
   10) Fußzeile
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--mr-blau);
  color: #cfd8e2;
  padding-block: clamp(2.25rem, 5vw, 3rem);
  margin-top: auto;
}
.site-footer__grid {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
}
.footer-wortmarke {
  font-family: var(--ff-head);
  font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #fff; font-size: 1.05rem;
}
.footer-wortmarke span { color: var(--mr-orange); } /* oranger Punkt */
.footer-claim { margin: 0.35rem 0 0; font-size: 0.9rem; color: #a9b6c4; max-width: 46ch; }
.site-footer nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.site-footer a { color: #eaf0f6; text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--mr-orange);
  text-decoration-thickness: 2px;
}
.site-footer__legal {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.86rem; color: #96a4b3;
}

/* Layout-Grundgerüst: Footer bleibt unten */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---------------------------------------------------------------------
   11) Responsiv
   --------------------------------------------------------------------- */
@media (max-width: 560px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .hauptnav ul { gap: 1.1rem; }
  .brand img { height: 40px; }
}

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