/* =========================================================================
   Design „schlicht" – Vorschau auf dev.somalu.eu (18.09.2026)
   Wird NACH main.css geladen und überschreibt Farben, Schrift und Ornamente.
   Leitlinien: eine Akzentfarbe, keine Verläufe, keine Schatten-Wolken,
   kleine Radien, klare Typografie, echte Produktbilder statt Emojis.
   ========================================================================= */

@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("../fonts/plex-serif-500.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root,
[data-theme="light"] {
    --bg:         #f6f5f2;
    --bg-elev:    #ffffff;
    --bg-soft:    #eeece7;
    --text:       #17191e;
    --text-muted: #5a5f6b;
    --border:     #e1ded7;
    --line:       #cfcbc2;
    --brand:      #1d3c6e;
    --brand-hover:#142c53;
    --brand-ink:  #ffffff;
    --brand-soft: #e8edf5;
    --accent:     #1d3c6e;
    --shadow:     none;
    --shadow-img: 0 1px 2px rgba(20, 22, 28, .06), 0 18px 40px -18px rgba(20, 22, 28, .28);
    --ok:     #2f6b3f;
    --warn:   #9a5a12;
    --info:   #1d3c6e;
    --danger: #a3302a;
    --serif: "Plex Serif", Georgia, "Times New Roman", serif;
    --sans:  "Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

[data-theme="dark"] {
    --bg:         #131417;
    --bg-elev:    #1a1c20;
    --bg-soft:    #202329;
    --text:       #e8e7e3;
    --text-muted: #a2a3a8;
    --border:     #2c2f36;
    --line:       #3a3e46;
    --brand:      #9db6e3;
    --brand-hover:#bccdee;
    --brand-ink:  #10141c;
    --brand-soft: #1f2735;
    --accent:     #9db6e3;
    --shadow:     none;
    --shadow-img: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 44px -18px rgba(0, 0, 0, .7);
    --ok:     #7fbf8e;
    --warn:   #d9a15b;
    --info:   #9db6e3;
    --danger: #e48b85;
}

/* ------------------------------------------------------------- Grundlagen */
body.d2 {
    background: var(--bg);
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.65;
    font-feature-settings: "kern";
}
.d2 .wrap { width: min(1160px, 100% - 3rem); }
.d2 h1, .d2 h2, .d2 h3 { font-weight: 600; letter-spacing: -.012em; }
.d2 h1, .d2 h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
.d2 a { color: var(--brand); }
.d2 a:hover { color: var(--brand-hover); }
.d2 h2.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.d2 h2.section-title::after { display: none; }
.d2 .section-lead { font-size: 1.05rem; max-width: 62ch; }
.d2 ::selection { background: var(--brand); color: var(--brand-ink); }

/* Leere Icon-Hüllen (Emojis werden auf der Vorschau ausgefiltert) */
.d2 .ico-chip:empty, .d2 .card-icon:empty, .d2 .cat-ico:empty, .d2 .feature-ic:empty,
.d2 .chip-ic:empty, .d2 .app-head-icon:empty { display: none; }
.d2 .ico-chip, .d2 .cat-ico, .d2 .app-head-icon { display: none; }

/* ----------------------------------------------------------------- Header */
.d2 .site-header {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}
.d2 .header-inner { height: 68px; }
.d2 .brand { font-weight: 600; letter-spacing: -.01em; }
.d2 .brand-logo { height: 36px; }
.d2 .site-nav { gap: 1.6rem; }
.d2 .site-nav a { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; }
.d2 .site-nav a:not(.btn):hover,
.d2 .site-nav a.active { color: var(--brand); }
.d2 .site-nav a.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 2px; background: var(--brand);
}
.d2 .site-nav .nav-cta { margin-left: 0 !important; }
.d2 .theme-toggle {
    width: 34px; height: 34px; border-radius: 6px; background: transparent; border: 1px solid var(--border);
    color: var(--text-muted);
}
.d2 .theme-toggle:hover { transform: none; color: var(--text); border-color: var(--line); }
.d2 .theme-icon { width: 17px; height: 17px; }
[data-theme="light"] .d2 .theme-icon-moon,
[data-theme="dark"] .d2 .theme-icon-sun { display: block; }

/* ---------------------------------------------------------------- Buttons */
.d2 .btn {
    border-radius: 6px; padding: .66rem 1.15rem; font-weight: 500; font-size: .95rem;
    background: var(--bg-elev); border: 1px solid var(--line); color: var(--text);
    transition: background .15s, border-color .15s, color .15s;
}
.d2 .btn:hover { transform: none; box-shadow: none; border-color: var(--text-muted); color: var(--text); }
.d2 .btn-primary,
.d2 .site-nav a.btn-primary {
    background: var(--brand) !important; border-color: var(--brand) !important; color: var(--brand-ink) !important;
}
.d2 .btn-primary:hover,
.d2 .site-nav a.btn-primary:hover { background: var(--brand-hover) !important; border-color: var(--brand-hover) !important; color: var(--brand-ink) !important; }
.d2 .btn-ghost { background: transparent; }
.d2 .btn-sm { padding: .38rem .75rem; font-size: .86rem; }
.d2 .btn-light { background: #fff; color: #17191e; border-color: #fff; }
.d2 .btn-light:hover { background: #ecebe7; color: #17191e; border-color: #ecebe7; }

/* ------------------------------------------- Bestehende Bausteine (Unterseiten) */
.d2 section.block { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.d2 .hero { background: none; }
.d2 .hero h1 { background: none; color: var(--text); -webkit-background-clip: initial; background-clip: initial; }
.d2 .hero-eyebrow { background: none; border: 0; padding: 0; border-radius: 0; color: var(--text-muted);
    letter-spacing: .08em; font-weight: 600; }

.d2 .card, .d2 .feature, .d2 .price-card, .d2 .form-card, .d2 .login-card {
    border-radius: 8px; box-shadow: none; border-color: var(--border);
}
.d2 .card::before { display: none; }
.d2 .card:hover, .d2 .feature:hover {
    transform: none; box-shadow: none; border-color: var(--line);
}
.d2 .card h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; }
.d2 .card h3 a:hover { color: var(--brand) !important; text-decoration: none; }
.d2 .grid { gap: 1rem; }

.d2 .cta-band { background: var(--bg-soft); }
.d2 .status { border-radius: 4px; border: 0; font-weight: 500; padding: .15rem .5rem; }
.d2 .status::before { width: 6px; height: 6px; }
.d2 .corner-ribbon { background: var(--ok); box-shadow: none; font-weight: 600; }
.d2 .corner-ribbon::before, .d2 .corner-ribbon::after { border-top-color: color-mix(in srgb, var(--ok) 70%, #000); }
.d2 .badge-pill, .d2 .chip { border-radius: 4px; }
.d2 .price-amount { font-weight: 600; }
.d2 .price-features li::before { content: ""; top: .95em; width: 8px; height: 2px; background: var(--brand); }
.d2 .subtabs a.on { color: var(--brand); border-bottom-color: var(--brand); }

/* Apps-Seite: Bereichsköpfe ruhiger */
.d2 .cat-head { border-bottom: 1px solid var(--line); }
.d2 .cat-head .cat-title { font-family: var(--serif); font-weight: 500; }
.d2 .cat-head .cat-count { background: none; color: var(--text-muted); font-weight: 500; padding: 0; }

/* ----------------------------------------------------------------- Footer */
.d2 .site-footer { background: var(--bg-elev); margin-top: 0; }
.d2 .footer-head { letter-spacing: .08em; font-weight: 600; color: var(--text); }
.d2 .footer-col a { color: var(--text-muted); font-weight: 400; }
.d2 .footer-col a:hover { color: var(--text); }

/* =========================================================================
   Neue Startseite (includes/home_schlicht.php)
   ========================================================================= */
.d2-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 0; border-bottom: 1px solid var(--border); }
.d2-hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.d2-kicker {
    margin: 0 0 1.1rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-muted);
}
.d2-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: 1.08; margin: 0 0 1.2rem; }
.d2-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 48ch; margin: 0; }
.d2-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.d2-note { margin: 1.4rem 0 0; font-size: .92rem; color: var(--text-muted); max-width: 52ch; }

.d2-facts {
    list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 1.4rem 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem;
    border-top: 1px solid var(--border); font-size: .93rem; color: var(--text-muted);
}
.d2-facts li { padding-left: 1rem; border-left: 2px solid var(--brand); line-height: 1.45; }
.d2-facts strong { color: var(--text); font-weight: 600; }

/* ----- Fenster-Rahmen (SSO-Abbildung) */
.d2-window {
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow-img); overflow: hidden; font-size: 12.5px; line-height: 1.4; color: var(--text);
}
.d2-bar {
    display: flex; align-items: center; height: 30px; padding: 0 12px;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.d2-bar span {
    font-size: 11px; color: var(--text-muted); background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: 4px; padding: 1px 10px; margin: 0 auto;
}


/* ----- Abschnitte */
.d2-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.d2-alt { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.d2-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.d2-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 .7rem; }
.d2-head p { margin: 0; color: var(--text-muted); font-size: 1.05rem; }
.d2-head-row { max-width: none; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.d2-more { font-weight: 500; white-space: nowrap; }
.d2-more::after { content: " \2192"; }

.d2-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.d2-points > div { border-top: 1px solid var(--line); padding-top: 1.4rem; }
/* Linien-Icons der Punkte – NICHT für die Deutschlandflagge (die hat eigene Flächenfarben;
   eine geerbte Kontur würde sie komplett zumalen, 19.09.2026). */
.d2-points svg:not(.de-flag) {
    width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem;
}
.d2-points .de-flag { stroke: none; fill: initial; height: 1.35rem; width: auto; }
.d2-points h3 { font-size: 1.05rem; margin: 0 0 .45rem; }
.d2-points p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ----- Module (Tabs) */
.d2-modules { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.d2-tablist { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.d2-tablist button {
    all: unset; box-sizing: border-box; cursor: pointer;
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .7rem 1rem; margin-left: -1px; border-left: 2px solid transparent;
    color: var(--text-muted); font-weight: 500; font-size: .98rem;
}
.d2-tablist button span { font-size: .85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.d2-tablist button:hover { color: var(--text); }
.d2-tablist button[aria-selected="true"] { color: var(--text); border-left-color: var(--brand); }
.d2-tablist button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.d2-pane-title { display: none; }
.d2-pane ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
.d2-pane li { position: relative; border-bottom: 1px solid var(--border); }
.d2-pane li a { display: block; padding: .95rem 0; color: var(--text); }
.d2-pane li a:hover { text-decoration: none; }
.d2-pane li a:hover b { color: var(--brand); }
.d2-pane li b { display: block; font-weight: 600; }
.d2-pane li span { display: block; color: var(--text-muted); font-size: .92rem; line-height: 1.45; margin-top: .15rem; }
.d2-pane li em { position: absolute; top: 1rem; right: 0; font-style: normal; font-size: .75rem; color: var(--warn); }
/* ohne JavaScript: alle Bereiche untereinander */
.d2-modules:not(.is-ready) { grid-template-columns: 1fr; }
.d2-modules:not(.is-ready) .d2-tablist { display: none; }
.d2-modules:not(.is-ready) .d2-pane-title { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 2rem 0 .5rem; }
.d2-modules.is-ready .d2-pane[hidden] { display: none; }
.d2-modules.is-ready .d2-pane { animation: d2-fade .25s ease; }
@keyframes d2-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ----- Split: SSO */
.d2-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.d2-split-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 1rem; }
.d2-split-text p { color: var(--text-muted); font-size: 1.05rem; margin: 0 0 1.4rem; }
.d2-check { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.d2-check li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--border); }
.d2-check li:last-child { border-bottom: 1px solid var(--border); }
.d2-check li::before {
    content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 5px;
    border-left: 1.6px solid var(--brand); border-bottom: 1.6px solid var(--brand); transform: rotate(-45deg);
}
.d2-launch { padding: 18px; }
.d2-launch p { margin: 0 0 12px; font-weight: 600; }
.d2-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d2-tiles div {
    display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px;
    border: 1px solid var(--border); border-radius: 6px; text-align: center;
}
.d2-tiles i {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px;
    background: var(--brand-soft); color: var(--brand); font-style: normal; font-weight: 600; font-size: 12px;
}
.d2-tiles span { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ----- Karten „Ausgewählte Anwendungen" */
.d2-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.d2-card {
    display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem 1.4rem 1.3rem;
    border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
    color: var(--text); transition: background .15s;
}
.d2-card:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.d2-card:hover .d2-arrow { color: var(--brand); }
.d2-card-cat { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.d2-card b { font-size: 1.12rem; font-weight: 600; }
.d2-card-tag { color: var(--text-muted); font-size: .93rem; line-height: 1.45; }
.d2-card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: .6rem; margin-top: auto; padding-top: 1.1rem; font-size: .9rem; }
.d2-price { font-weight: 600; }
.d2-price .price-vat, .d2-price .price-note { display: none; }
.d2-price .price-basis { font-size: .72rem; font-weight: 500; color: var(--text-muted); }
.d2-arrow { color: var(--text-muted); white-space: nowrap; }
.d2-arrow::after { content: " \2192"; }

/* ----- Abschluss */
.d2-cta { background: #17191e; color: #f1f0ec; padding: clamp(3rem, 7vw, 4.5rem) 0; }
[data-theme="dark"] .d2-cta { background: #0d0e10; border-top: 1px solid var(--border); }
.d2-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.d2-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .5rem; }
.d2-cta p { color: #b9bac0; margin: 0; max-width: 56ch; }

/* ----- Einblenden beim Scrollen (dezent, nur mit JS, respektiert „weniger Bewegung") */
.d2-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.d2-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .d2-reveal { opacity: 1; transform: none; transition: none; }
    .d2-modules.is-ready .d2-pane { animation: none; }
}

/* ----- Responsiv */
@media (max-width: 980px) {
    .d2-hero-grid, .d2-split { grid-template-columns: 1fr; }
    .d2-split .d2-visual-sso { order: 2; }
    .d2-points { grid-template-columns: repeat(2, 1fr); }
    .d2-cards { grid-template-columns: repeat(2, 1fr); }
    .d2-facts { grid-template-columns: repeat(2, 1fr); }
    .d2-modules { grid-template-columns: 1fr; gap: 1.5rem; }
    .d2-tablist { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--border); }
    .d2-tablist button { white-space: nowrap; margin: 0 0 -1px; border-left: 0; border-bottom: 2px solid transparent; }
    .d2-tablist button[aria-selected="true"] { border-bottom-color: var(--brand); }
}
@media (max-width: 760px) {
    .d2 .site-nav a.active::after { display: none; }
}
@media (max-width: 620px) {
    .d2-points, .d2-cards, .d2-facts, .d2-pane ul { grid-template-columns: 1fr; }
}

/* =========================================================================
   19.09.2026 – Vektor-Logo + Hintergrund (Höhenlinien-Karte)
   ========================================================================= */
:root, [data-theme="light"] { --lm-a: #b3913f; --lm-b: #5d7f8b; --lm-c: #2f4a56; }
[data-theme="dark"]          { --lm-a: #c9a653; --lm-b: #86a6b1; --lm-c: #5f7e8a; }

.d2 .brand { gap: .7rem; }
.d2-mark { width: 44px; height: auto; flex: none; display: block; }
.d2-mark .lm-a { fill: var(--lm-a); }
.d2-mark .lm-b { fill: var(--lm-b); }
.d2-mark .lm-c { fill: var(--lm-c); }
.d2-word { display: flex; flex-direction: column; line-height: 1.05; }
.d2-word-name { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; letter-spacing: -.01em; color: var(--text); }
.d2-word-legal { font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-top: .22rem; }
.d2 .brand:hover .d2-word-name { color: var(--text); }
.d2-brand-foot { gap: .6rem; }
.d2-brand-foot .d2-mark { width: 38px; }

@media (max-width: 520px) {
    .d2-mark { width: 38px; }
    .d2-word-name { font-size: 1.15rem; }
    .d2-word-legal { font-size: .58rem; }
}

/* =========================================================================
   19.09.2026 – Hero mit Hintergrundbild (Panorama vom Betreiber, entschieden 19.09.)
   ========================================================================= */
.d2-hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 0; }
.d2-hero-grid { padding-bottom: clamp(4rem, 9vw, 7.5rem); }
.d2-facts-band { position: relative; background: var(--bg-elev); border-top: 1px solid var(--line); }
.d2-facts-band .d2-facts { margin: 0; border-top: 0; padding: 1.5rem 0; }

/* Hero-Bild (19.09.2026, Stadtansicht vom Betreiber, Farben entsättigt: -modulate 106,50 / -18 Kontrast):
   Bild sitzt in den rechten zwei Dritteln (::after), links ruhiger Grund für den Text; der Verlauf (::before)
   blendet nur die linke Bildkante weich ein – die Bildmitte (Kirche) bleibt frei. Farben folgen Hell/Dunkel. */
.d2-hero[data-bg="bild"] { background: var(--bg); }
.d2-hero[data-bg="bild"]::after {
    content: ""; position: absolute; z-index: -2; top: 0; bottom: 0; left: 34%; right: 0;
    background: url("../img/hero-stadt.webp") 45% center / cover no-repeat;
}
.d2-hero[data-bg="bild"]::before {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background: linear-gradient(90deg,
        var(--bg) 0%, var(--bg) 34%,
        color-mix(in srgb, var(--bg) 72%, transparent) 42%,
        color-mix(in srgb, var(--bg) 35%, transparent) 50%,
        transparent 58%);
}
[data-theme="dark"] .d2-hero[data-bg="bild"]::after { filter: brightness(.72); }
.d2-hero[data-bg="bild"] .d2-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: clamp(460px, 46vw, 620px); align-items: center; }
.d2-hero[data-bg="bild"] .d2-hero-text { max-width: 540px; }
@media (max-width: 900px) {
    .d2-hero[data-bg="bild"]::after { left: 0; top: 45%; background-image: url("../img/hero-stadt-1000.webp"); }
    .d2-hero[data-bg="bild"]::before {
        background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 45%,
            color-mix(in srgb, var(--bg) 60%, transparent) 55%, transparent 70%);
    }
    .d2-hero[data-bg="bild"] .d2-hero-grid { min-height: 0; align-items: start; padding-bottom: clamp(14rem, 55vw, 20rem); }
    .d2-hero[data-bg="bild"] .d2-hero-text { max-width: none; }
}

/* 19.09.2026 – nur heller Modus + Schrift im Hero deckender (Betreiber-Wunsch) */
:root { color-scheme: light; }
.d2-hero[data-bg="bild"] h1 { color: #0f1115; font-weight: 600; }
.d2-hero[data-bg="bild"] .d2-kicker { color: #2b2f38; }
.d2-hero[data-bg="bild"] .d2-lead { color: #22262e; font-weight: 500; }
.d2-hero[data-bg="bild"] .d2-note { color: #2b2f38; }
/* heller Schein um die Schrift, falls Zeilen ins Bild ragen */
.d2-hero[data-bg="bild"] .d2-hero-text h1,
.d2-hero[data-bg="bild"] .d2-hero-text p {
    text-shadow: 0 0 2px rgba(246,245,242,.95), 0 0 10px rgba(246,245,242,.9), 0 0 22px rgba(246,245,242,.75);
}
.d2-hero[data-bg="bild"] .btn-ghost { background: #fff; border-color: #bdb8ae; color: #17191e; }
@media (min-width: 901px) {
    .d2-hero[data-bg="bild"]::before {
        background: linear-gradient(90deg,
            #f6f5f2 0%, #f6f5f2 38%,
            rgba(246,245,242,.88) 45%,
            rgba(246,245,242,.5) 52%,
            rgba(246,245,242,0) 60%);
    }
}

/* 19.09.2026 – linke Leerfläche verkleinern: Bild beginnt direkt hinter der Textspalte (an .wrap ausgerichtet),
   Übergang nur ~140 px breit, Textspalte schmaler. */
@media (min-width: 901px) {
    .d2-hero[data-bg="bild"] { --img-left: calc(max(1.5rem, (100% - 1160px) / 2) + 400px); }
    .d2-hero[data-bg="bild"]::after { left: var(--img-left); }
    .d2-hero[data-bg="bild"]::before {
        background: linear-gradient(90deg,
            #f6f5f2 0%, #f6f5f2 var(--img-left),
            rgba(246,245,242,.85) calc(var(--img-left) + 45px),
            rgba(246,245,242,.4) calc(var(--img-left) + 95px),
            rgba(246,245,242,0) calc(var(--img-left) + 150px));
    }
    .d2-hero[data-bg="bild"] .d2-hero-text { max-width: 470px; }
    .d2-hero[data-bg="bild"] h1 { font-size: clamp(2.1rem, 3.4vw, 2.9rem); }
}

/* 19.09.2026 – Seitenrand auf der ganzen Seite etwa halbiert (Betreiber-Wunsch): statt der festen 1160-px-Spalte
   mit (Breite − 1160)/2 Rand je Seite jetzt nur noch die Hälfte davon, mindestens 1,5 rem.
   Gilt für alle .wrap (Kopf, Hero, Abschnitte, Footer) → alles bleibt bündig. */
.d2 { --edge: max(1.5rem, calc((100% - 1160px) / 4)); }
.d2 .wrap { width: auto; margin-inline: var(--edge); }
@media (min-width: 901px) {
    .d2-hero[data-bg="bild"] { --img-left: calc(var(--edge) + 470px + 60px); }
}

/* 19.09.2026 – Textspalte breiter (Schrift nicht so gedrängt) + längerer Verlauf (~500 px, Betreiber-Wunsch) */
@media (min-width: 901px) {
    .d2-hero[data-bg="bild"] .d2-hero-text { max-width: 600px; }
    .d2-hero[data-bg="bild"]::before {
        background: linear-gradient(90deg,
            #f6f5f2 0%, #f6f5f2 calc(var(--img-left) + 70px),
            rgba(246,245,242,.9) calc(var(--img-left) + 150px),
            rgba(246,245,242,.72) calc(var(--img-left) + 250px),
            rgba(246,245,242,.48) calc(var(--img-left) + 350px),
            rgba(246,245,242,.24) calc(var(--img-left) + 450px),
            rgba(246,245,242,.08) calc(var(--img-left) + 530px),
            rgba(246,245,242,0) calc(var(--img-left) + 580px));
    }
}

/* 19.09.2026 – Kennzahlen-Zeilen (.hero-stats, z. B. bau-liegenschaften.php): wo vorher ein Emoji stand,
   ist <strong> nach dem Emoji-Filter leer → Schloss-Symbol als Linien-Icon, gleiche Höhe wie die Zahlen. */
.d2 .hero-stats strong { display: flex; align-items: flex-end; min-height: 1.7rem; font-weight: 600; }
.d2 .hero-stats strong:empty::before {
    content: ""; display: block; width: 1.45rem; height: 1.45rem; background: var(--brand);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10.5' rx='1.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3Cpath d='M12 15v2.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10.5' rx='1.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3Cpath d='M12 15v2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.d2 .hero-stats .de-flag { height: 1.15rem !important; box-shadow: none !important; border-radius: 1px !important; }
.d2 .hero-stats span { font-size: .85rem; }

/* 19.09.2026 – Menü mit „IT-Dienstleistungen" ist länger: Abstände auf mittleren Breiten enger, kein Umbruch */
.d2 .site-nav a { white-space: nowrap; }
@media (max-width: 1360px) {
    .d2 .site-nav { gap: 1.1rem; }
    .d2 .site-nav a { font-size: .9rem; }
    .d2 .site-nav .btn { padding: .5rem .8rem; }
}
@media (max-width: 1120px) {
    .d2 .d2-word-legal { display: none; }
    .d2 .site-nav { gap: .8rem; }
}

/* 19.09.2026 – Handy-Menü: main.css blendet unter 760 px alle Menüpunkte aus (ohne Ersatz) → Menü-Knopf + Klappmenü */
.d2-menu-btn { display: none; }
@media (max-width: 760px) {
    .d2 .site-header { position: sticky; }
    .d2 .header-inner { position: relative; }
    .d2-menu-btn {
        display: inline-flex; align-items: center; gap: .45rem; margin-left: auto;
        background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: .45rem .75rem;
        color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
    }
    .d2-menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
    .d2-menu-btn svg path { transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
    .d2-menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
    .d2-menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
    .d2-menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
    .d2-menu-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

    .d2 .site-nav {
        display: none; position: absolute; z-index: 60; top: calc(100% + 1px); left: calc(-1 * var(--edge, 1.5rem)); right: calc(-1 * var(--edge, 1.5rem));
        flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--edge, 1.5rem) 1.2rem;
        background: var(--bg-elev); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(20,22,28,.35);
    }
    .d2 .site-nav.is-open { display: flex; }
    .d2 .site-nav a { display: block !important; padding: .85rem .2rem; font-size: 1.02rem; border-bottom: 1px solid var(--border); }
    .d2 .site-nav a.active::after { display: none; }
    .d2 .site-nav a.active { color: var(--brand); font-weight: 600; }
    .d2 .site-nav a.btn { border-bottom: 1px solid var(--line); margin-top: .8rem; text-align: center; justify-content: center; padding: .75rem 1rem; }
    .d2 .site-nav a.btn + a.btn { margin-top: .5rem; }
}

/* =========================================================================
   19.09.2026 – Aktion „Kirchengemeinden starten kostenlos" (Texte: includes/aktion_gemeinden.php)
   Balken unter der Kopfzeile + hervorgehobene Kästen auf den Leistungsseiten und im Anfrageformular.
   ========================================================================= */
.d2-promo {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem;
    padding: .7rem var(--edge, 1.5rem); background: #1d3c6e; color: #fff;
    font-size: .93rem; line-height: 1.45; text-align: center;
}
/* Wichtig: „.d2 a" ist stärker gewichtet als „.d2-promo" – Farbe daher mit .d2 davor setzen,
   sonst steht der Text in Markenblau auf blauem Grund (unlesbar, 19.09.2026). */
.d2 a.d2-promo, .d2 a.d2-promo:visited { color: #fff; }
.d2 a.d2-promo:hover { text-decoration: none; color: #fff; }
.d2 a.d2-promo span { color: #fff; }
.d2 a.d2-promo .d2-promo-tag { color: #16181d; }
.d2-promo-tag {
    font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    background: var(--lm-a, #b3913f); color: #16181d; border-radius: 4px; padding: .2rem .55rem; white-space: nowrap;
}
.d2-promo-more { font-weight: 600; white-space: nowrap; text-decoration: underline; }

.it-aktion, .ia-aktion {
    background: color-mix(in srgb, var(--lm-a, #b3913f) 14%, var(--bg-elev));
    border: 1px solid color-mix(in srgb, var(--lm-a, #b3913f) 45%, transparent);
    border-radius: 8px; padding: 1.1rem 1.3rem; margin: 0 0 1.6rem;
}
.it-aktion b, .ia-aktion b { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.it-aktion p, .ia-aktion p { margin: 0; font-size: .95rem; line-height: 1.55; }
.ia-aktion { margin: 0; }
.ia-aktion p { font-size: .9rem; color: var(--text-muted); }

/* Rechner: Aktionspreis groß, regulärer Preis klein darunter */
.it-calc .it-free { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--ok); font-weight: 500; }
.it-calc .it-free-note { display: block; font-size: .9rem; color: var(--text); margin: .25rem 0 .8rem; font-weight: 500; }
.it-calc .it-later { display: block; font-size: .92rem; color: var(--text-muted); padding-top: .8rem; border-top: 1px solid var(--border); }
.it-calc .it-later b { font-size: 1.05rem; color: var(--text); }
.it-calc .it-later span { display: block; font-size: .85rem; }

@media (max-width: 760px) {
    .d2-promo { font-size: .88rem; padding: .6rem 1rem; }
    .d2-promo-more { display: none; }
}

/* Deutschlandflagge statt Linien-Icon beim Punkt „Hosting in Deutschland" (19.09.2026) */
.d2-points .d2-flag-ic { display: block; margin-bottom: 1rem; }
.d2-points .d2-flag-ic .de-flag { display: block; }
.d2-facts .de-flag, .ia-trust .de-flag { vertical-align: -.1em; margin-right: .15rem; }
.ia-trust li:has(.de-flag)::before { display: none; }
.ia-trust li:has(.de-flag) { padding-left: 0; }
