/* baconnect.de - Design portiert aus dem Lovable-Entwurf (TanStack/Tailwind) in handgeschriebenes CSS.
   Tokens 1:1 aus src/styles.css (OKLCH). Keine Build-Pipeline noetig (ALL-INKL static). */
:root {
  /* Design-Tokens 1:1 aus dem Lovable-Entwurf (src/styles.css, OKLCH). Ein Look, schlicht/edel. */
  --radius: 0.5rem;
  --accent: oklch(0.66 0.18 145);          /* BAconnect-Gruen ~#2EB04A */
  --accent-deep: oklch(0.55 0.17 145);     /* Hover/Links */
  --accent-soft: oklch(0.96 0.03 145);     /* helle Akzentflaeche */
  --accent-bright: oklch(0.82 0.16 150);   /* Highlight auf Dunkel (Stats) */
  --accent-strong: oklch(0.52 0.15 150);   /* WCAG-AA-sicher (#007f35): Text 5.1:1 auf Weiss, weisser Text 4.9:1 darauf */
  --accent-foreground: oklch(0.985 0 0);
  --brand: oklch(0.22 0.02 250);           /* near-black, Headings/Footer/Hero */
  --brand-foreground: oklch(0.985 0 0);
  --background: oklch(1 0 0);
  --foreground: oklch(0.18 0.02 250);
  --surface: oklch(0.975 0.01 145);        /* whisper-of-green */
  --card: oklch(1 0 0);
  --muted-foreground: oklch(0.45 0.02 250);
  --border: oklch(0.9 0.01 250);
  --secondary: oklch(0.96 0.01 145);
  --destructive: oklch(0.55 0.22 27);
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gradient-hero: linear-gradient(135deg, oklch(0.24 0.03 235), oklch(0.30 0.07 158));
  --shadow-card: 0 1px 2px rgb(15 23 30 / .04), 0 12px 30px -18px rgb(15 23 30 / .14);
  /* Spacing-Skala (8er): Sektions-Rhythmus 64->96px, Header->Inhalt 40px, Karten-Gap 24px */
  --section-y: clamp(4rem, 7vw, 6rem);
  --content-narrow: 42rem;   /* Lesbreite fuer Fliesstext (~65 Zeichen) */
}

*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; font-weight: 600; }
p { margin: 0; }

.container-page { width: 100%; margin-inline: auto; padding-inline: 1.25rem; max-width: 70rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--radius); padding: .6rem 1rem; font-size: .9rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-lg { padding: .65rem 1.5rem; font-size: 1rem; }
.btn-accent { background: var(--accent-strong); color: var(--accent-foreground); box-shadow: 0 1px 2px rgb(16 24 40 / .1); }
.btn-accent:hover { background: oklch(0.46 0.13 152); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--secondary); }
.btn-outline-light { background: transparent; border-color: rgb(255 255 255 / .3); color: var(--brand-foreground); }
.btn-outline-light:hover { background: rgb(255 255 255 / .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row-center { justify-content: center; }

.icon { width: 2rem; height: 2rem; }
.icon-sm { width: 1rem; height: 1rem; }

.eyebrow { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 500; color: var(--accent-strong); margin-bottom: 1rem; }
.hero .eyebrow { color: var(--accent-bright); }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 6rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 3rem; width: auto; object-fit: contain; flex-shrink: 0; }
.nav-desktop { display: none; align-items: center; gap: .15rem; white-space: nowrap; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .55rem; font-size: .98rem; font-weight: 500; color: var(--foreground); background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: var(--accent-deep); }
.nav-dropdown { position: relative; }
.nav-menu { position: absolute; left: 0; top: 100%; padding-top: .5rem; min-width: 14rem; opacity: 0; visibility: hidden; transition: opacity .15s; }
.nav-dropdown:hover .nav-menu, .nav-dropdown:focus-within .nav-menu { opacity: 1; visibility: visible; }
.nav-menu-item { display: block; padding: .5rem .75rem; font-size: .9rem; border-radius: var(--radius); background: var(--card); }
.nav-menu > .nav-menu-item:first-child { margin-top: 0; }
.nav-menu { border-radius: var(--radius); }
.nav-menu-item:hover, .nav-menu-item.active { background: var(--secondary); color: var(--accent-deep); }
.nav-menu { background: var(--card); border: 1px solid var(--border); box-shadow: 0 10px 30px rgb(0 0 0 / .1); padding: .25rem; }
.chev { width: .9rem; height: .9rem; }
.header-cta { display: none; align-items: center; gap: .75rem; }
/* Telefonnummer im Header erst auf breiten Schirmen, damit das Logo nie gequetscht wird (CTA-Button bleibt) */
.header-phone { display: none; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.header-phone:hover { color: var(--accent-deep); }
@media (min-width: 1500px) { .header-phone { display: inline-flex; } }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: none; border: 0; cursor: pointer; }
.burger, .burger::before, .burger::after { content: ""; display: block; width: 1.4rem; height: 2px; background: var(--brand); position: relative; transition: transform .2s; }
.burger::before { position: absolute; top: -6px; }
.burger::after { position: absolute; top: 6px; }
.nav-mobile { display: none; border-top: 1px solid var(--border); background: var(--background); }
.nav-mobile.open { display: block; }
.nav-mobile-inner { display: flex; flex-direction: column; gap: .25rem; padding-top: 1rem; padding-bottom: 1rem; }
.nav-mobile-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); padding: .25rem .75rem; }
.nav-mobile-sub { padding: .5rem .75rem .5rem 1.5rem; font-size: .9rem; }
.nav-mobile-link { padding: .6rem .75rem; font-size: .95rem; font-weight: 500; }
.nav-mobile-sub.active, .nav-mobile-link.active { color: var(--accent-deep); }

@media (min-width: 1180px) {
  .nav-desktop { display: flex; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .logo img { height: 3.25rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand); color: var(--brand-foreground); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
/* Links voll abgedunkelt fuer Textkontrast, nach rechts transparent -> Foto bleibt sichtbar und "atmet". */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand) 0%, color-mix(in oklab, var(--brand) 82%, transparent) 42%, color-mix(in oklab, var(--brand) 30%, transparent) 78%, color-mix(in oklab, var(--brand) 15%, transparent) 100%); }
.hero-grid { position: absolute; inset: 0; opacity: .07; pointer-events: none; background-image: linear-gradient(var(--brand-foreground) 1px, transparent 1px), linear-gradient(90deg, var(--brand-foreground) 1px, transparent 1px); background-size: 48px 48px; }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(5rem, 8vw, 7rem); padding-bottom: clamp(5rem, 8vw, 7rem); }
/* Hero-Text: eigene, schmaelere Spalte, ABER linksbuendig an der Inhalts-Kante (kein Zentrieren). */
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; line-height: 1.05; max-width: 48rem; }
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.125rem, 2vw, 1.25rem); opacity: .9; line-height: 1.65; max-width: 44rem; }
.hero .btn-row { margin-top: 2rem; }

/* ---------- Hero-Trust-Badges ---------- */
.hero-badges { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hero-badges li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 500; color: var(--brand-foreground); }
.hero-badges .icon-sm { color: var(--accent-bright); flex-shrink: 0; }

/* ---------- Nutzen-Karten direkt unter Hero ---------- */
.highlights-section { padding-top: 3rem; padding-bottom: 1.25rem; }

/* ---------- Prozess-Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: .9rem; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-card); }
.step-no { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 9999px; background: var(--accent); color: var(--accent-foreground); font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-body { display: flex; flex-direction: column; gap: .2rem; }
.step-body strong { color: var(--brand); }
.step-text { font-size: .9rem; color: var(--muted-foreground); line-height: 1.5; }

/* ---------- Vorher/Nachher ---------- */
.cmp { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cmp { grid-template-columns: 1fr 1fr; } }
.cmp-col { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; background: var(--card); }
.cmp-col.before { background: var(--surface); }
.cmp-col h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.cmp-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.cmp-col li { font-size: .95rem; }
.cmp-col.before li::before { content: "\2715  "; color: var(--destructive); font-weight: 700; }
.cmp-col.after li::before { content: "\2713  "; color: var(--accent); font-weight: 700; }

/* ---------- Ansprechpartner ---------- */
.person-card { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-card); max-width: 50rem; }
@media (min-width: 640px) { .person-card { flex-direction: row; align-items: center; gap: 2rem; padding: 2rem; } }
.person-photo { width: 8rem; height: 8rem; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
.person-avatar { width: 8rem; height: 8rem; border-radius: 9999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--gradient-hero); color: var(--brand-foreground); font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: .02em; }
.person-info .section-h { margin: .1rem 0 0; }
.person-role { color: var(--accent-deep); font-weight: 600; margin-top: .25rem; }
.person-text { color: var(--muted-foreground); margin-top: .6rem; }
.person-contact { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-weight: 600; }
.person-contact a { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent-deep); }
.person-contact a:hover { color: var(--brand); }

/* ---------- Section ---------- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
/* Aller Text (Hero + Abschnitts-Ueberschriften + Subs) liegt in EINER schmalen Spalte (48rem),
   linksbuendig an gemeinsamer Kante. Nur Karten-/Raster (.grid, .related-grid ...) nutzen die volle Breite. */
.section-h { font-size: clamp(1.875rem, 3vw, 2.25rem); font-weight: 600; color: var(--brand); max-width: 48rem; line-height: 1.2; }
.section-sub { margin-top: 1rem; color: var(--muted-foreground); max-width: 44rem; font-size: 1.125rem; line-height: 1.65; }
/* Eigenständiger Lead-Absatz (Startseiten-Fließtext, Hub-Intro) außerhalb von .article/.prose.
   .article .lead und .prose.lead sind spezifischer und überschreiben das hier wo nötig. */
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--foreground); max-width: 48rem; }
.lead p { margin: 0 0 1rem; }
.lead p:last-child { margin-bottom: 0; }
.section-h + .lead { margin-top: 1rem; }
.section-body { margin-top: 2.5rem; }
/* Folge-Kategorie-Ueberschrift im gruppierten Hub deutlich vom vorherigen Karten-Grid absetzen */
.section-body + .section-h { margin-top: 4rem; }
.bg-surface { background: var(--surface); }
.bg-brand { background: var(--brand); color: var(--brand-foreground); }
.text-center { text-align: center; }
/* 404 / Fehlerseite */
.error-page { text-align: center; }
.error-page .section-h, .error-page .section-sub { margin-inline: auto; }
.error-page .section-sub { margin-top: 1rem; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: .5rem; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.error-links { margin-top: 3.5rem; }
.error-links .eyebrow { margin-bottom: 1.25rem; }
.error-page .card { text-align: left; }
.maxw-3xl { max-width: 48rem; margin-inline: auto; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { border: 1px solid var(--border); background: var(--card); border-radius: .75rem; padding: 1.5rem; transition: border-color .15s; }
.card-link:hover { border-color: var(--accent); }
.card .icon { color: var(--accent); width: 2rem; height: 2rem; }
.card h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; color: var(--brand); }
/* Highlight-Kartentitel sieht aus wie ein Karten-h3, ist aber kein Heading (sauberer h1->h2-Outline) */
.highlight-card .highlight-title { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; color: var(--brand); }
.card p { margin-top: .5rem; color: var(--muted-foreground); }
.card-more { margin-top: 1rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--accent-deep); }
.card-link:hover .card-more .icon-sm { transform: translateX(3px); transition: transform .15s; }

.feature .icon { width: 1.75rem; height: 1.75rem; color: var(--accent); }
.feature h3 { margin-top: .75rem; font-size: 1.1rem; font-weight: 600; color: var(--brand); }
.feature p { margin-top: .5rem; color: var(--muted-foreground); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding-top: 3.5rem; padding-bottom: 3.5rem; text-align: center; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-v { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 600; color: var(--accent-bright); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-l { margin-top: .5rem; font-size: .9rem; opacity: .8; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist .dot { margin-top: .6rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- Closing CTA ---------- */
.closing { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.closing-card { border: 1px solid var(--border); background: var(--surface); border-radius: 1rem; padding: 2rem; text-align: center; }
@media (min-width: 640px) { .closing-card { padding: 3rem; } }
.closing-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; color: var(--brand); }
.closing-card p { margin-top: 1rem; color: var(--muted-foreground); max-width: 42rem; margin-inline: auto; }
.closing-card .btn-row { margin-top: 1.75rem; }

/* ---------- Prose (Impressum/Datenschutz/Fliesstext) ---------- */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.5rem; color: var(--brand); margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; color: var(--brand); margin-top: 1.5rem; }
.prose p, .prose ul { margin-top: .75rem; color: var(--foreground); }
.prose a { color: var(--accent-deep); text-decoration: underline; }

/* ---------- Prose / Lead ---------- */
.prose.lead { font-size: 1.15rem; color: var(--foreground); max-width: 48rem; }
.prose.lead p { margin: 0; }
.section-body.prose h3 { font-size: 1.1rem; color: var(--brand); margin-top: 1.5rem; }
.section-body.prose p { margin-top: .6rem; }

/* ---------- Artikel-Detailseiten (Leistungen/Standorte/Wissen/Branchen/Conversion) ---------- */
.detail-body { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.article { max-width: 65ch; }

/* Detailseiten: 2-Spalten (Artikel links, Sticky-CTA-Sidebar rechts) -> kein leerer rechter Raum. */
.detail-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.detail-grid .article { max-width: none; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; } }
.detail-aside { }
@media (min-width: 960px) { .detail-aside { position: sticky; top: 6.75rem; } }
.aside-card { border: 1px solid var(--border); border-radius: .75rem; background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.aside-card .eyebrow { margin-bottom: .6rem; }
.aside-h { font-size: 1.2rem; font-weight: 600; color: var(--brand); }
.aside-text { margin-top: .5rem; color: var(--muted-foreground); font-size: .92rem; line-height: 1.6; }
.btn-block { display: flex; width: 100%; margin-top: 1.1rem; }
.aside-contact { list-style: none; margin: 1.1rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; font-weight: 600; }
.aside-contact a { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent-deep); }
.aside-contact a:hover { color: var(--brand); }
.aside-contact .icon-sm { color: var(--accent); flex-shrink: 0; }

/* Kontaktseite: Formular links (Hauptspalte), Kontakt+Ansprechpartner rechts (Sidebar) */
.contact-main { max-width: none; }
.aside-person { margin-top: 1.25rem; }
.aside-person-head { display: flex; gap: 1rem; align-items: center; }
.aside-person .person-avatar { width: 3.5rem; height: 3.5rem; font-size: 1.15rem; flex-shrink: 0; }
.aside-person-info { min-width: 0; }
/* Kontaktliste im Ansprechpartner spannt die volle Kartenbreite (sonst bricht die Rufnummer um) */
.aside-person > .aside-contact { margin-top: .9rem; }
.aside-person .aside-contact a { white-space: nowrap; }
.aside-person-name { font-weight: 600; color: var(--brand); margin-top: .1rem; }
.aside-person-role { color: var(--accent-deep); font-size: .9rem; font-weight: 600; }
/* vCard + QR (Visitenkarte zum Speichern) in den Kontakt-Boxen */
.vcard-row { display: flex; gap: .75rem; align-items: center; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.vcard-qr { width: 7rem; height: 7rem; flex-shrink: 0; border: 1px solid var(--border); border-radius: .4rem; background: #fff; padding: .3rem; }
.vcard-dl { font-size: .9rem; min-width: 0; }
.vcard-dl a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent-deep); }
.vcard-dl a:hover { color: var(--brand); }
.vcard-dl small { display: block; margin-top: .25rem; color: var(--muted-foreground); }

/* Inhaltsverzeichnis in der Sidebar (B6) */
.aside-toc { margin-bottom: 1.25rem; padding: 1.25rem 1.4rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); }
.aside-toc-h { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted-foreground); margin-bottom: .6rem; }
.aside-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.aside-toc a { font-size: .9rem; color: var(--foreground); line-height: 1.35; display: block; padding: .15rem 0; border-left: 2px solid transparent; padding-left: .7rem; margin-left: -.7rem; transition: color .15s, border-color .15s; }
.aside-toc a:hover { color: var(--accent-deep); border-color: var(--accent); }
.art-block > h2[id], .article h2[id] { scroll-margin-top: 7rem; }

/* Kernaussage-Callout (B7) */
.callout { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 .65rem .65rem 0; padding: 1rem 1.25rem; margin: 0 0 1.75rem; font-size: 1.12rem; line-height: 1.6; color: var(--brand); font-weight: 500; }

/* Inline-Inhaltsbild im Artikel (B8) */
.art-figure { margin: 1.5rem 0; }
.art-figure img { width: 100%; height: auto; border-radius: .75rem; border: 1px solid var(--border); }

/* Standort-Box (B9) */
.standort-box { display: grid; gap: 1.75rem; grid-template-columns: 1fr; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); padding: 2rem; }
@media (min-width: 820px) { .standort-box { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; } }
.standort-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.25rem; }
.standort-areas li { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 500; color: var(--brand); }
.standort-areas .icon-sm { color: var(--accent); flex-shrink: 0; }
.article .lead { font-size: 1.2rem; line-height: 1.7; color: var(--foreground); margin-bottom: 1rem; }
.article .lead p { margin: 0 0 1rem; }
.art-block { margin-top: 2.75rem; }
.art-block > h2 { position: relative; font-size: 1.6rem; line-height: 1.25; color: var(--brand); margin: 0 0 1.1rem; padding-top: 1.1rem; }
.art-block > h2::before { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 3px; background: var(--accent); border-radius: 2px; }
.article h3 { font-size: 1.15rem; color: var(--brand); margin: 1.75rem 0 .5rem; }
.article p { margin: 0 0 1rem; line-height: 1.75; color: var(--foreground); }
.article ul, .article ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.article li { margin: .4rem 0; line-height: 1.7; }
.article ul li::marker { color: var(--accent); }
.article a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: var(--brand); }
.article strong { color: var(--brand); font-weight: 600; }
.article table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.5rem; font-size: .95rem; }
.article th, .article td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.article th { background: var(--secondary); color: var(--brand); font-weight: 600; }
.article tr:nth-child(even) td { background: color-mix(in oklch, var(--surface) 60%, white); }

/* ---------- FAQ (details/summary) ---------- */
.faq-section { background: var(--surface); }
.faq-list { max-width: 45rem; display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.faq-item > summary { list-style: none; cursor: pointer; padding: 1rem 1.1rem; font-weight: 600; color: var(--brand); display: flex; justify-content: space-between; gap: 1rem; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; color: var(--accent-deep); font-weight: 700; }
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item[open] > summary { border-bottom: 1px solid var(--border); }
.faq-a { padding: .9rem 1.1rem; color: var(--muted-foreground); }
.faq-a p { margin: 0; }

/* ---------- Related (interne Verlinkung) ---------- */
.related-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 1rem 1.1rem; font-weight: 600; color: var(--brand); transition: border-color .15s; }
.related-card:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Kontaktformular ---------- */
.form-wrap { max-width: 44rem; }
.ba-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--brand); }
.ba-form input, .ba-form select, .ba-form textarea {
  width: 100%; font: inherit; color: var(--foreground); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .65rem .8rem;
}
.ba-form input:focus, .ba-form select:focus, .ba-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 25%, transparent);
}
.ba-form textarea { resize: vertical; min-height: 8rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted-foreground); line-height: 1.5; }
.consent input { width: auto; margin-top: .2rem; flex-shrink: 0; }
.consent a { color: var(--accent-deep); text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .25rem; }
.form-msg { font-size: .9rem; font-weight: 500; }
.form-msg.ok { color: var(--accent-deep); }
.form-msg.err { color: var(--destructive); }
.hp { display: none !important; } /* Honeypot: display:none meidet Browser-Autofill (off-screen wurde autofilled) */

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: var(--brand-foreground); margin-top: 6rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
/* Footer-Logo: Farb-Logo per Filter weiss faerben (identisch zu jobs.baconnect.de) */
.footer-logo { height: 3.5rem; width: auto; object-fit: contain; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-addr { font-size: .9rem; opacity: .8; margin-top: .75rem; }
.footer-addr a { display: inline-block; padding-block: 4px; } /* groessere Touch-Targets (WCAG 2.5.8) */
.footer-addr a:hover { color: var(--accent); }
.footer-h { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; opacity: .9; margin-bottom: .75rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; opacity: .85; }
.footer-list a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .75rem; opacity: .7; }
