/* =====================================================================
   Bereichsseiten im „Aus einem Haus"-Gerüst — 24.08.2026
   Gehört zu leistungen/<slug>/index-haus.html (Entwürfe, nicht deployed).
   Tokens und Kartenbild wie index-haus.html: Navy, ein Akzent Orange,
   Sora (Überschriften) + Manrope (Text), Navy-Icon-Kacheln, ruhig.
   Beim Livegang: deploy.sh um diese Datei ergänzen und die index-haus.html
   der drei Ordner auf index.html legen.
   ===================================================================== */
:root {
  --bg: #fff; --bg-2: #f5f6f8; --card: #fff;
  --ink: #0D1B2A; --ink-2: #33415a; --muted: #65718a; --faint: #6f7a90;
  --line: #e6e9ef; --line-2: #d5dae3;
  --accent: #F5A623; --accent-2: #E09420; --accent-soft: #FDF3DF;
  --font: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-disp: "Sora", "Manrope", -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; } .skip:focus { left: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) 60px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; font-family: var(--font-disp); }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Kopfzeile wie Startseite: weißes TE auf dunkler Kachel + Firmierung */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .m { width: 40px; height: 40px; border-radius: 10px; background: radial-gradient(120% 90% at 30% 0%, #3a4d66 0%, #172a3f 38%, #0d1b2a 70%, #060f1a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1.5px 0 rgba(0,0,0,0.5); display: grid; place-items: center; flex: none; }
.brand .m i { display: block; width: 27px; height: 13px; background: #fff; -webkit-mask: url('/assets/te-mask.png') center / contain no-repeat; mask: url('/assets/te-mask.png') center / contain no-repeat; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5)); }
.brand .w { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand .bn { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; font-family: var(--font-disp); }
.brand .claim { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.brand .claim i { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.aktiv { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.nav .btn { padding: 9px 16px; font-size: 13.5px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; place-items: center; color: var(--ink); flex: none; }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .brand .claim { display: none; }
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; left: clamp(16px, 4vw, 40px); right: clamp(16px, 4vw, 40px); top: 70px; z-index: 60; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px -20px rgba(13,27,42,0.35); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 15px; color: var(--ink); border-radius: 10px; border-bottom: 0; }
  .nav a:hover { background: var(--bg-2); }
  .nav a.aktiv { border-bottom: 0; background: var(--accent-soft); }
  .nav .btn { margin: 6px; justify-content: center; }
  .wrap { position: relative; }
}

.btn { border: 0; cursor: pointer; border-radius: 12px; padding: 14px 22px; font-family: var(--font); font-weight: 700; font-size: 15px; transition: 0.15s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn-p { background: var(--accent); color: var(--ink); }
.btn-p:hover { background: var(--accent-2); }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Seitenkopf: ruhige Hero-Karte wie Startseite */
.hero { margin-top: 26px; background: linear-gradient(115deg, #f2f4f8 0%, #fff 56%); border: 1px solid var(--line); border-radius: 24px; padding: clamp(32px, 5vw, 52px) clamp(22px, 4vw, 52px); }
.hero > div { max-width: 720px; }
.krume { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.krume a { text-decoration: none; color: var(--muted); }
.krume a:hover { color: var(--ink); }
.krume .kf { color: var(--ink); font-weight: 600; }
.hero h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -0.03em; }
/* Headline durchgehend Navy wie auf der Startseite (Hero ruhig, 24.08.) */
.hero h1 em { font-style: normal; }
.hero p.sub { font-size: 15.5px; color: var(--ink-2); margin: 14px 0 0; max-width: 58ch; }
.hero p.sub b { color: var(--ink); }

/* Themen-Anker als ruhige Pillen */
.themen-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.themen-nav a { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 13px; background: #fff; transition: 0.15s; }
.themen-nav a:hover { border-color: var(--accent); color: var(--ink); }
/* Gruppen-Label in der Themenleiste (08.09.: Infrastruktur & Security in drei Gruppen) */
.themen-nav .tn-lab { flex-basis: 100%; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-top: 8px; }
.themen-nav .tn-lab:first-child { margin-top: 0; }
.sec.gruppe { scroll-margin-top: 90px; }
.anker-alias { display: block; height: 0; scroll-margin-top: 90px; }

/* Themen: Karten im Kern-Stil (Navy-Kachel, Tiefe) in grauer Ablage */
.sec { margin-top: 44px; }
.sec > h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 0 0 16px; font-family: var(--font); }
.themen { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Ungerade Anzahl: letzte Karte über volle Breite, nichts hängt einzeln (25.08.) */
.thema:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
.thema:last-of-type:nth-of-type(odd) p { max-width: 680px; }
.thema { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px 20px; box-shadow: 0 16px 32px -26px rgba(13,27,42,0.45); overflow: hidden; scroll-margin-top: 90px; }
.thema::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); opacity: 0; transition: 0.2s; }
.thema:hover::before, .thema:target::before { opacity: 1; }
.thema .ic { position: relative; isolation: isolate; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 12px;
  /* plastisch wie auf der Startseite (08.09.) */
  background: radial-gradient(120% 90% at 30% 0%, #3a4d66 0%, #172a3f 38%, var(--ink) 70%, #060f1a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1.5px 0 rgba(0,0,0,0.5), 0 3px 6px -2px rgba(13,27,42,0.25), 0 14px 22px -12px rgba(13,27,42,0.7); }
.thema .ic::before { content: ""; position: absolute; z-index: -1; inset: 1px 1px 50% 1px; border-radius: 11px 11px 5px 5px; background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0)); pointer-events: none; }
.thema .ic svg { width: 21px; height: 21px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5)); }
.thema h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; }
.thema p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.thema p + p { margin-top: 8px; }
.thema p b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .themen { grid-template-columns: 1fr; } }
/* Mobil-Test 24.08.: graue Ablage auflösen, Karten direkt auf Weiß */
@media (max-width: 640px) { .themen { background: transparent; border: 0; border-radius: 0; padding: 0; } }

/* Abschluss: CHECK-Leiste wie auf der Startseite */
.take { margin-top: 44px; display: flex; align-items: center; gap: 14px 18px; background: var(--card); border: 1px solid var(--line-2); border-left: 4px solid var(--accent); border-radius: 14px; padding: 16px 20px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); line-height: 1.55; flex-wrap: wrap; }
.take b { font-weight: 800; color: var(--ink); }
.take .btn { margin-left: auto; padding: 10px 16px; font-size: 13.5px; }
.take .nebenweg { font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.take .nebenweg:hover { color: var(--ink); }

/* Weiter zu: Tür im Portal-Stil */
.weiter { margin-top: 24px; }
.tuer { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: 0.16s; max-width: 420px; }
.tuer:hover { border-color: var(--accent); box-shadow: 0 14px 28px -22px rgba(13,27,42,0.5); }
.tuer > b { display: flex; align-items: center; gap: 7px; font-size: 15.5px; letter-spacing: -0.01em; }
.tuer .t-arr { margin-left: auto; color: var(--accent-2); font-weight: 800; }
.tuer .t-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* FAQ: ruhige Aufklapp-Karten */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 14px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-weight: 800; font-size: 16px; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
@media (max-width: 720px) { .faq { grid-template-columns: 1fr; } }

.foot { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
