/* ==========================================================================
   Hohmann Business – gemeinsames Design-System
   Ein Stylesheet für alle Seiten (Hub + 3 Firmen + Rechtsseiten).
   Keine externen Ressourcen (keine Google Fonts) -> self-contained + DSGVO.
   ========================================================================== */

/* --- Design-Tokens / Basis-Palette --------------------------------------- */
:root {
  /* Gedeckte, warme Grundfarben (ländlich-bodenständig) */
  --bg:            #f6f3ec; /* Cremeweiß / Sand */
  --bg-soft:       #efeadf; /* leicht abgesetzte Flächen */
  --surface:       #ffffff; /* Karten */
  --ink:           #26221d; /* Haupttext (Anthrazit-Braun) */
  --ink-soft:      #55504733;/* Trennlinien (transparentes Braun) */
  --muted:         #6b645a; /* Sekundärtext */
  --border:        #ddd6c8;

  /* Neutraler Basiston (wird pro Seite durch --accent überschrieben) */
  --accent:        #4a6340; /* gedämpftes Waldgrün */
  --accent-dark:   #38492f;
  --accent-tint:   #eaeee3; /* sehr helle Akzentfläche */
  --on-accent:     #ffffff;

  /* Typografie */
  --font-head: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --maxw: 1080px;
  --radius: 10px;
  --shadow: 0 2px 4px rgba(38, 34, 29, .06), 0 8px 24px rgba(38, 34, 29, .07);
}

/* --------------------------------------------------------------------------
   AKZENTFARBEN JE SEITE
   Body bekommt eine .theme-* Klasse; diese überschreibt nur --accent & Co.
   NEUE 4. FIRMA ERGÄNZEN: hier einen weiteren .theme-<name> Block hinzufügen.
   -------------------------------------------------------------------------- */
.theme-hub {
  --accent: #4a6340; --accent-dark: #38492f; --accent-tint: #eaeee3;
}
.theme-jagdschule {   /* Waldgrün */
  --accent: #3f5e3a; --accent-dark: #2e4629; --accent-tint: #e8eee4;
}
.theme-bueroservice { /* seriöses Schiefer-Blau/Grau */
  --accent: #3a5a78; --accent-dark: #2b4459; --accent-tint: #e6edf3;
}
.theme-waffenhandel { /* Anthrazit */
  --accent: #3a3f45; --accent-dark: #26292e; --accent-tint: #e9eaec;
}

/* --- Reset / Grundlagen --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.2rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }

section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--bg-soft); }
.section-lead { max-width: 46rem; color: var(--muted); }

/* Sichtbar-versteckt (Barrierefreiheit) */
.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: .6rem 1rem; border-radius: var(--radius);
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; color: var(--on-accent); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600;
  padding: .7rem 1.35rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 2px solid var(--accent);
  transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent); color: var(--on-accent); }

/* --- Header / Navigation ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand .brand-mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  border-radius: 8px; font-weight: 700;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px; justify-content: center;
  width: 42px; height: 42px; padding: 0; border: 1px solid var(--border);
  background: var(--surface); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 20px; margin-inline: auto; background: var(--ink); border-radius: 2px; }

.site-nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--accent-dark); }
.site-nav .btn { padding: .45rem 1rem; }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; color: var(--on-accent); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media svg { width: 100%; height: 100%; object-fit: cover; }
.hero::after { /* Lesbarkeits-Overlay */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,18,14,.30), rgba(20,18,14,.62)),
              linear-gradient(90deg, color-mix(in srgb, var(--accent-dark) 55%, transparent), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 12vw, 7rem); max-width: 42rem; }
.hero-inner--quote { max-width: 36rem; padding-block: clamp(2.75rem, 8vw, 5.5rem); }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; opacity: .9; }
.hero h1 { margin: .4rem 0 .6rem; color: var(--on-accent); }
.hero p { font-size: 1.15rem; margin: 0 0 1.5rem; max-width: 34rem; }
.hero .verse-quote {
  margin: 0 0 1.35rem;
  padding: 0 0 0 1rem;
  background: transparent;
  border: none;
  border-left: 3px solid rgba(255, 255, 255, .45);
  border-radius: 0;
}
.hero .verse-quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(.88rem, 2.1vw, 1.02rem);
  line-height: 1.48;
  color: rgba(255, 255, 255, .93);
}
.hero .verse-quote blockquote p { margin: 0 0 .45rem; }
.hero .verse-quote blockquote p:last-child { margin-bottom: 0; }
.hero .verse-quote figcaption {
  margin-top: .65rem;
  font-family: var(--font-body);
  font-size: .88rem;
  color: rgba(255, 255, 255, .78);
  font-style: italic;
  text-align: left;
}
.hero .btn-outline { color: var(--on-accent); border-color: var(--on-accent); }
.hero .btn-outline:hover { background: var(--on-accent); color: var(--accent-dark); }

/* --- Karten-Grid (Hub-Kacheln + Leistungen) ------------------------------ */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
/* min-height:0 nötig, damit auch Hochkant-Fotos das 16/10-Raster nicht sprengen
   (Flex-Items haben sonst min-height:auto und wachsen auf die Bildhöhe an). */
.card-media { aspect-ratio: 16 / 10; background: var(--accent-tint); min-height: 0; overflow: hidden; }
.card-media svg, .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* Leistungs-Kacheln (kompakter, mit Icon) */
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; gap: .9rem; align-items: flex-start;
}
.feature .feature-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 9px;
  background: var(--accent-tint); color: var(--accent-dark);
  display: grid; place-items: center;
}
.feature h3 { margin: .1rem 0 .25rem; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Text + Portrait nebeneinander (z. B. Vorstellung Lehrgangsleiter) */
.media-text { display: grid; gap: 1.75rem 2.25rem; grid-template-columns: 1fr; align-items: start; }
.media-text .section-lead { max-width: none; }
@media (min-width: 760px) {
  .media-text.with-portrait { grid-template-columns: 280px 1fr; }
}
.portrait {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--accent-tint);
}
.portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.portrait figcaption {
  padding: .6rem .85rem; font-size: .88rem; color: var(--muted);
  background: var(--surface); text-align: center;
}

/* Gedicht / Zitat (Heldbereich oder Inhaltssektion) */
.verse-quote {
  margin: 0;
  padding: 1.35rem 1.5rem;
  background: var(--accent-tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.verse-quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
}
.verse-quote blockquote p { margin: 0 0 .75rem; }
.verse-quote blockquote p:last-child { margin-bottom: 0; }
.verse-quote figcaption {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--muted);
  font-style: italic;
  text-align: right;
}

/* Info-Box (Termine etc.) */
.infobox {
  background: var(--accent-tint); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.infobox h3 { margin-top: 0; }

/* --- Kontakt-Sektion ----------------------------------------------------- */
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .75rem; align-items: baseline; }
.contact-list .label { flex: 0 0 5.5rem; color: var(--muted); font-size: .9rem; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* --- Platzhalter-Kennzeichnung (sichtbar) -------------------------------- */
.placeholder-note {
  display: inline-block; font-size: .78rem; font-weight: 600;
  color: var(--muted); background: repeating-linear-gradient(
    45deg, var(--bg-soft), var(--bg-soft) 8px, #e7e0d0 8px, #e7e0d0 16px);
  border: 1px dashed var(--border); border-radius: 6px;
  padding: .15rem .5rem; letter-spacing: .02em;
}
.tbd { color: var(--muted); font-style: italic; }

/* --- Rechtsseiten-Banner ------------------------------------------------- */
.legal-banner {
  background: #fff4d6; border: 1px solid #e6c65a; border-left: 5px solid #c99a1e;
  color: #6b520f; border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: 2rem; font-weight: 600;
}
.legal-content h2 { margin-top: 2.25rem; }
.legal-content h3 { margin-top: 1.5rem; }
.legal-content { max-width: 48rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--accent-dark); color: #e8e4da; margin-top: 2rem; }
.site-footer a { color: #ffffff; }
.site-footer .container { padding-block: 2.5rem; }
.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; color: #fff; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18); margin-top: 2rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .9rem; color: #cfc9bd;
}
.footer-bottom a { color: #cfc9bd; }

/* --------------------------------------------------------------------------
   Mobile Navigation
   -------------------------------------------------------------------------- */
@media (max-width: 799px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; }
  .site-nav li { border-top: 1px solid var(--border); }
  .site-nav li:first-child { border-top: 0; }
  .site-nav a { display: block; padding: .8rem .2rem; }
  .site-nav .btn { text-align: center; margin-top: .6rem; }
}
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
}

/* Fokus-Sichtbarkeit für Tastaturnutzung */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, #000 0%); outline-offset: 2px; }
