/* ============================================================================
   Digital Hub GmbH — Visuelle Identität
   Executive-editorial: tiefes Navy aus dem Logo, leuchtendes Azur als Akzent,
   kühles Papierweiß. Serifen-Display (Fraunces) + Manrope + Mono-Labels.
   Signatur: Punkt-Matrix, abgeleitet aus der Rasterstruktur der Logo-Lettern.
   ========================================================================== */

/* ----- Design-Tokens ----------------------------------------------------- */
:root {
    --ink:      #0a1a2f;   /* tiefstes Navy — Text & dunkle Flächen        */
    --navy:     #143a5c;   /* mittleres Navy                               */
    --azure:    #2e7db8;   /* Akzent (das gerasterte Blau aus „Hub")       */
    --azure-dk: #256298;
    --sky:      #7db4de;   /* helle Akzente / Hover auf Dunkel             */
    --paper:    #f5f7fa;   /* kühles Papierweiß (bewusst nicht creme)      */
    --white:    #ffffff;
    --line:     #e3e8ef;   /* Haarlinien                                   */
    --line-dk:  #24425f;   /* Linien auf dunklem Grund                     */
    --muted:    #55647c;   /* gedämpfter Fließtext                         */
    --muted-lt: #9fb2c9;   /* gedämpft auf Dunkel                          */

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

    --wrap: 1180px;
    --radius: 4px;
    --shadow-sm: 0 1px 2px rgba(10,26,47,.06), 0 4px 16px rgba(10,26,47,.06);
    --shadow-md: 0 8px 30px rgba(10,26,47,.10);
    --ease: cubic-bezier(.22,.61,.36,1);

    /* Signatur-Punktraster als wiederverwendbares Hintergrundmuster */
    --dot: radial-gradient(circle at center, rgba(46,125,184,.22) 1.4px, transparent 1.6px);
    --dot-light: radial-gradient(circle at center, rgba(255,255,255,.14) 1.4px, transparent 1.6px);
    --dot-size: 22px 22px;
}

/* ----- Reset / Basis ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--azure-dk); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--azure); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.015em;
    color: var(--ink);
    margin: 0 0 .5em;
}
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ----- Bausteine: Eyebrow, Buttons -------------------------------------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--azure-dk);
    display: inline-flex;
    align-items: center;
    gap: .6em;
    margin: 0 0 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 1px;
    background: var(--azure);
    display: inline-block;
}
.eyebrow--light { color: var(--sky); }
.eyebrow--light::before { background: var(--sky); }

.btn {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    letter-spacing: .01em;
    padding: .85em 1.5em;
    background: var(--ink); color: #fff;
    border: 1px solid var(--ink); border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--accent { background: var(--azure); border-color: var(--azure); }
.btn--accent:hover { background: var(--azure-dk); border-color: var(--azure-dk); color:#fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--navy); transform: translateY(-2px); }
.btn--on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn--on-dark:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.btn--sm { padding: .6em 1.05em; font-size: .85rem; }

.arrow-link {
    font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em;
    font-weight: 500; display: inline-flex; align-items: center; gap: .5em;
}
.arrow-link::after { content: "→"; transition: transform .2s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ----- Header / Navigation ---------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 65px; width: auto; }
.brand-logo--light { display: none; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-link {
    display: inline-block; padding: .55em .85em;
    color: var(--ink); font-weight: 500; font-size: .95rem;
    position: relative; border-radius: var(--radius);
}
.nav-link::after {
    content: ""; position: absolute; left: .85em; right: .85em; bottom: .3em;
    height: 2px; background: var(--azure); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--azure-dk); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); }
.nav-cta-item { margin-left: 10px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .25s var(--ease); }

/* ----- Section-Grundgerüst ---------------------------------------------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: var(--muted-lt); }

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.section-head p { font-size: 1.12rem; color: var(--muted); margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lede { font-size: 1.22rem; line-height: 1.55; color: var(--navy); }

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
}
.hero::before {
    /* Signatur-Punktraster, dezent hinter dem Text */
    content: ""; position: absolute; inset: 0;
    background-image: var(--dot);
    background-size: var(--dot-size);
    -webkit-mask-image: radial-gradient(115% 90% at 82% 8%, #000 0%, transparent 62%);
    mask-image: radial-gradient(115% 90% at 82% 8%, #000 0%, transparent 62%);
    opacity: .9; pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
    padding: 104px 0 96px;
}
.hero h1 {
    font-size: clamp(2.5rem, 5.6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.04;
    margin-bottom: .55em;
}
.hero h1 em { font-style: italic; color: var(--azure-dk); }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 44ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-aside {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 30px;
}
.hero-aside::before {
    content: ""; position: absolute; top: -1px; left: 30px; right: 30px; height: 3px;
    background: linear-gradient(90deg, var(--azure), var(--sky));
    border-radius: 3px;
}
.hero-aside .eyebrow { margin-bottom: 1.3rem; }
.stat-row { display: flex; flex-direction: column; gap: 20px; }
.stat { border-left: 2px solid var(--azure); padding-left: 16px; }
.stat b {
    display: block; font-family: var(--font-display); font-weight: 500;
    font-size: 1.85rem; line-height: 1; color: var(--ink);
}
.stat span { font-size: .92rem; color: var(--muted); }

/* ----- Hero-Portrait (Geschäftsführung) --------------------------------- */
.hero-portrait { position: relative; justify-self: end; width: 100%; max-width: 420px; }
.hero-portrait::before {
    /* Signatur-Punktraster, versetzt hinter dem Foto */
    content: ""; position: absolute; left: -20px; bottom: -20px;
    width: 150px; height: 150px; z-index: 0;
    background-image: var(--dot); background-size: var(--dot-size);
}
.hero-portrait img {
    position: relative; z-index: 1; width: 100%;
    aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
    border-radius: 10px; border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}
.hero-portrait-cap {
    position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px;
    background: rgba(10, 26, 47, .74);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px; padding: 13px 16px;
}
.hero-portrait-cap .name {
    display: block; font-family: var(--font-display); font-weight: 500;
    font-size: 1.12rem; line-height: 1.15; color: #fff;
}
.hero-portrait-cap .role {
    display: block; font-family: var(--font-mono); font-size: .68rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-top: 4px;
}

/* ----- Pfeiler-/Feature-Raster ------------------------------------------ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pillar { background: #fff; padding: 30px 26px; transition: background .25s var(--ease); }
.pillar:hover { background: var(--paper); }
.pillar-num { font-family: var(--font-mono); font-size: .78rem; color: var(--azure); letter-spacing: .1em; }
.pillar h3 { font-size: 1.2rem; margin: .8rem 0 .5rem; }
.pillar p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ----- Leistungs-Karten -------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.svc-card {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: 8px; padding: 38px 34px; overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: var(--dot); background-size: var(--dot-size);
    opacity: 0; transition: opacity .3s var(--ease);
    -webkit-mask-image: linear-gradient(135deg, transparent 55%, #000 100%);
    mask-image: linear-gradient(135deg, transparent 55%, #000 100%);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3dde9; }
.svc-card:hover::after { opacity: 1; }
.svc-card .tag { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--azure-dk); }
.svc-card h3 { font-size: 1.5rem; margin: .7rem 0 .6rem; }
.svc-card p { color: var(--muted); margin-bottom: 1.2rem; }
.svc-card ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.svc-card li { position: relative; padding-left: 20px; margin-bottom: .5rem; font-size: .96rem; color: var(--navy); }
.svc-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--azure); border-radius: 50%; }
.svc-card .arrow-link { position: relative; z-index: 1; }

/* ----- Magazin-Teaser ---------------------------------------------------- */
.mag-band { position: relative; overflow: hidden; }
.mag-band::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--dot-light); background-size: var(--dot-size);
    -webkit-mask-image: radial-gradient(90% 120% at 90% 10%, #000, transparent 60%);
    mask-image: radial-gradient(90% 120% at 90% 10%, #000, transparent 60%);
    opacity: .8; pointer-events: none;
}
.mag-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mag-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.mag-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
    font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
    color: var(--sky); border: 1px solid var(--line-dk); border-radius: 999px;
    padding: .45em 1em;
}
.mag-mock {
    aspect-ratio: 4/3; border-radius: 10px; border: 1px solid var(--line-dk);
    background:
        linear-gradient(180deg, rgba(46,125,184,.14), rgba(10,26,47,.0)),
        var(--navy);
    position: relative; overflow: hidden; box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 34px;
}
.mag-mock .kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.mag-mock .head { font-family: var(--font-display); font-size: clamp(1.4rem,2.6vw,2rem); color: #fff; line-height: 1.1; margin-top: .4em; }
.mag-mock::after {
    content: ""; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px;
    background-image: var(--dot-light); background-size: 18px 18px; opacity: .5;
}

/* ----- Founder ----------------------------------------------------------- */
.founder-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.founder-photo { position: relative; }
.founder-photo img { border-radius: 10px; box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.founder-photo::before {
    content: ""; position: absolute; left: -18px; bottom: -18px; width: 130px; height: 130px;
    background-image: var(--dot); background-size: var(--dot-size); z-index: -1;
}
.founder-copy .name { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .1em; }
.founder-copy .role { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azure-dk); margin-bottom: 1.4rem; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.creds li { font-family: var(--font-mono); font-size: .78rem; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .45em .8em; }

/* ----- News-Vorschau ----------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 8px; overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-thumb { aspect-ratio: 16/10; background: var(--paper); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-thumb.is-empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); background-image: var(--dot-light); background-size: var(--dot-size);
}
.news-thumb.is-empty span { font-family: var(--font-display); color: rgba(255,255,255,.5); font-size: 1.4rem; }
.news-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; color: var(--azure-dk); margin-bottom: .7rem; }
.news-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.news-body p { font-size: .95rem; color: var(--muted); margin-bottom: 1.1rem; }
.news-body .arrow-link { margin-top: auto; }

.news-empty {
    text-align: center; border: 1px dashed var(--line); border-radius: 10px;
    padding: 70px 24px; color: var(--muted); background: var(--paper);
}

/* ----- CTA-Band ---------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--dot-light); background-size: 26px 26px; opacity: .55;
    -webkit-mask-image: radial-gradient(70% 120% at 50% 0%, #000, transparent 70%);
    mask-image: radial-gradient(70% 120% at 50% 0%, #000, transparent 70%);
}
.cta-band .inner { position: relative; max-width: 720px; margin-inline: auto; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.cta-band p { font-size: 1.15rem; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================================
   Artikel / Rechtstexte / generische Seiten
   ========================================================================== */
.page-hero {
    background: var(--ink); color: #fff; position: relative; overflow: hidden;
    padding: 88px 0 76px;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--dot-light); background-size: var(--dot-size);
    -webkit-mask-image: radial-gradient(90% 120% at 88% 12%, #000, transparent 60%);
    mask-image: radial-gradient(90% 120% at 88% 12%, #000, transparent 60%);
    opacity: .8;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 400; max-width: 20ch; }
.page-hero p { color: var(--muted-lt); font-size: 1.15rem; max-width: 60ch; margin-top: .6rem; margin-bottom: 0; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.22rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.legal-meta { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2.5rem; }

/* Zwei-Spalten-Layout mit Inhaltsverzeichnis für lange Rechtstexte */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc h2 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--azure-dk); margin-bottom: 1rem; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: .35em 0 .35em 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .9rem; }
.legal-toc a:hover { color: var(--ink); border-color: var(--azure); }

/* ============================================================================
   Formulare (Kontakt & Admin)
   ========================================================================== */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .5em; color: var(--ink); }
.field .req { color: var(--azure); }
.field input, .field textarea, .field select {
    width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
    padding: .8em .95em; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--azure); background: #fff;
    box-shadow: 0 0 0 3px rgba(46,125,184,.16);
}
.field textarea { resize: vertical; min-height: 150px; }
.field-hint { font-size: .82rem; color: var(--muted); margin-top: .4em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
/* Honeypot – für Menschen unsichtbar, Bots füllen es aus */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--navy); }
.checkbox input { width: auto; margin-top: .25em; }

.alert { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; font-size: .96rem; border: 1px solid; }
.alert--ok  { background: #eef7f0; border-color: #bfe0c8; color: #1e5a34; }
.alert--err { background: #fdeeee; border-color: #f2c4c4; color: #8f2a2a; }
.alert ul { margin: .4em 0 0; padding-left: 1.2em; }

.contact-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-aside .info-block { margin-bottom: 28px; }
.contact-aside h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.contact-aside address { font-style: normal; color: var(--muted); line-height: 1.7; }
.contact-aside .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azure-dk); margin-bottom: .5rem; }

/* ----- Admin ------------------------------------------------------------- */
.admin-bar { background: var(--ink); color: #fff; }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.admin-bar a { color: var(--sky); font-family: var(--font-mono); font-size: .85rem; }
.admin-title { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-lt); }
.admin-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: #fff; }
.admin-list img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius); background: var(--paper); }
.admin-list .no-img { width: 72px; height: 54px; border-radius: var(--radius); background: var(--ink); background-image: var(--dot-light); background-size: 12px 12px; }
.admin-list .meta { flex: 1; min-width: 0; }
.admin-list .meta b { display: block; font-family: var(--font-body); font-weight: 600; font-size: .98rem; }
.admin-list .meta span { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.btn-danger { background: #fff; color: #a12b2b; border: 1px solid #e6b9b9; border-radius: var(--radius); padding: .5em .9em; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.btn-danger:hover { background: #fdeeee; }
.login-wrap { max-width: 420px; margin: 80px auto; }

/* ----- Einzelner News-Beitrag ------------------------------------------- */
.article { max-width: 760px; margin-inline: auto; }
.article .article-img { border-radius: 10px; margin: 0 0 2rem; box-shadow: var(--shadow-sm); width: 100%; }
.article .article-date { font-family: var(--font-mono); font-size: .8rem; color: var(--azure-dk); letter-spacing: .06em; }
.article h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin: .4rem 0 1.4rem; }
.article .body { font-size: 1.12rem; color: var(--navy); }
.article .body p { margin-bottom: 1.3rem; }
.back-link { display: inline-block; margin-bottom: 2rem; font-family: var(--font-mono); font-size: .82rem; }

/* ============================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--muted-lt); padding-top: 68px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height: 40px; margin-bottom: 18px; }
.footer-tag { font-size: .95rem; line-height: 1.6; color: var(--muted-lt); max-width: 30ch; }
.footer-head { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55em; }
.footer-links a { color: var(--muted-lt); font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-contact address { font-style: normal; font-size: .95rem; line-height: 1.7; color: var(--muted-lt); }
.footer-contact a { color: var(--sky); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-dk); padding: 22px 0 30px; }
.footer-bottom p { margin: 0; font-size: .82rem; color: var(--muted-lt); }
.footer-fn { font-family: var(--font-mono); }

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 64px; }
    .hero-aside { max-width: 460px; }
    .hero-portrait { justify-self: start; max-width: 360px; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .mag-grid, .founder-grid, .contact-split, .admin-layout, .legal-layout { grid-template-columns: 1fr; gap: 36px; }
    .founder-grid .founder-photo { max-width: 420px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .legal-toc { position: static; }
    .legal-toc ul { display: flex; flex-wrap: wrap; gap: 4px 18px; border-left: 0; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: 74px 0 auto 0; background: #fff;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
        max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
    }
    .primary-nav.is-open { max-height: 80vh; }
    .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; }
    .nav-link { padding: .8em 1em; }
    .nav-link::after { display: none; }
    .nav-cta-item { margin: 8px 0 4px; }
    .nav-cta-item .btn { width: 100%; justify-content: center; }

    .section { padding: 64px 0; }
    .card-grid, .field-row { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-card { padding: 26px; }
}

@media (max-width: 460px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ----- Bewegung reduzieren ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Scroll-Reveal (per JS aktiviert) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================================
   WYSIWYG-Editor (Admin) + Bearbeiten-Ansicht
   ========================================================================== */
.wysiwyg-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.wysiwyg-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    padding: 8px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.wysiwyg-btn {
    min-width: 34px; height: 32px; padding: 0 9px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-body); font-size: .9rem; line-height: 1; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 5px; cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease);
}
.wysiwyg-btn:hover { background: var(--paper); border-color: var(--azure); color: var(--azure-dk); }
.wysiwyg-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.wysiwyg {
    min-height: 210px; padding: 14px 16px; font-family: var(--font-body);
    font-size: 1rem; line-height: 1.6; color: var(--ink); outline: none;
}
.wysiwyg:focus { box-shadow: inset 0 0 0 2px rgba(46,125,184,.16); }
.wysiwyg p { margin: 0 0 .8em; }
.wysiwyg h2 { font-family: var(--font-display); font-size: 1.4rem; margin: .3em 0 .4em; }
.wysiwyg h3 { font-family: var(--font-display); font-size: 1.15rem; margin: .3em 0 .4em; }
.wysiwyg ul, .wysiwyg ol { margin: 0 0 .8em; padding-left: 1.4em; }
.wysiwyg li { margin-bottom: .3em; }
.wysiwyg blockquote {
    margin: 0 0 .8em; padding: .3em 0 .3em 16px;
    border-left: 3px solid var(--azure); color: var(--navy); font-style: italic;
}
.wysiwyg a { color: var(--azure-dk); text-decoration: underline; }
.wysiwyg:empty::before { content: "Text hier eingeben …"; color: var(--muted); }

/* aktuelles Bild im Bearbeiten-Modus */
.current-image { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.current-image img {
    width: 120px; height: 84px; object-fit: cover; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--paper);
}

/* Admin-Liste: Aktionen */
.admin-actions { display: flex; align-items: center; gap: 14px; }
.admin-view { font-family: var(--font-mono); font-size: .8rem; color: var(--azure-dk); }
.admin-view:hover { color: var(--azure); }
.admin-list li.is-editing { border-color: var(--azure); box-shadow: 0 0 0 2px rgba(46,125,184,.16); }

@media (max-width: 720px) {
    .admin-list li { flex-wrap: wrap; }
    .admin-actions { width: 100%; justify-content: flex-start; padding-top: 8px; border-top: 1px dashed var(--line); }
}

/* ============================================================================
   Formatierter News-Text auf der Artikelseite
   ========================================================================== */
.article .body h2 { font-size: 1.6rem; margin: 1.8rem 0 .6rem; }
.article .body h3 { font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
.article .body ul, .article .body ol { margin: 0 0 1.3rem; padding-left: 1.4em; }
.article .body li { margin-bottom: .45em; }
.article .body blockquote {
    margin: 1.4rem 0; padding: .6rem 0 .6rem 20px;
    border-left: 3px solid var(--azure); color: var(--navy); font-style: italic; font-size: 1.15rem;
}
.article .body a { color: var(--azure-dk); text-decoration: underline; text-underline-offset: 2px; }
.article .body a:hover { color: var(--azure); }
