/* ============================================================
   digenda theme - screen styles
   Direction: brutal editorial. One teal on black. Roboto Black
   in oversize display. No cards, no rounding, no shadows. The
   One typographic voice: Roboto throughout. Härte is the message.
   Fonts self-hosted (sovereign - no third-party font CDN); drop
   Roboto woff2 into assets/fonts/ to replace the system fallback.
   ============================================================ */

:root {
    --accent: #34C2C6;              /* digenda brand teal (gradient end), overridden by Ghost brand setting */
    --accent-deep: #0E6E73;         /* gradient start, used sparingly */
    --black: #0a0a0a;
    --paper: #0a0a0a;
    --ink: #f4f4f2;
    --dim: #6f7f7d;
    --hair: #232626;               /* hairline rules */
    --wrap: 1200px;
    --wrap-narrow: 760px;
    /* Honour Ghost custom-font brand settings, fall back to Roboto / system */
    --sans: var(--gh-font-body, "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif);
    --display: var(--gh-font-heading, "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--black);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.0; margin: 0 0 0.4em; letter-spacing: -0.02em; text-transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

/* ---- Buttons: hard rectangles, no radius ---- */
.btn {
    display: inline-block; font-family: var(--display); font-weight: 900;
    font-size: 15px; letter-spacing: 0.01em; line-height: 1;
    padding: 18px 30px; border: 2px solid var(--accent); border-radius: 0;
    transition: background .12s ease, color .12s ease;
}
.btn:hover { text-decoration: none; }
.btn--accent { background: var(--accent); color: var(--black); }
.btn--accent:hover { background: transparent; color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--black); }
.btn--lg { padding: 22px 40px; font-size: 18px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid var(--hair); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
/* Wordmark: dark-background variant of the original logo (ink swapped to white,
   teal untouched) sits directly on the black ground - no plate. */
.brand__logo { display: block; height: 38px; width: auto; }
.brand__logo--sm { height: 30px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 15px; letter-spacing: 0.02em; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav__cta { color: var(--black) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle__bar { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; }

/* ---- gehört wem? stamp ---- */
.stamp {
    position: absolute; top: 40px; right: 32px;
    font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--accent);
    border: 2px solid var(--accent); padding: 8px 14px;
    transform: rotate(-7deg); opacity: 0.9; pointer-events: none;
}

/* ---- Sections ---- */
.section { padding: 88px 0; border-top: 1px solid var(--hair); }
.section__title {
    font-size: clamp(13px, 1.4vw, 15px); text-transform: uppercase; letter-spacing: 0.22em;
    color: var(--dim); font-weight: 700; font-family: var(--sans); margin-bottom: 44px;
}

/* ---- Hero ---- */
.hero { position: relative; padding: 130px 0 118px; border-top: 0; }
.hero__kicker { text-transform: uppercase; letter-spacing: 0.24em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 30px; }
.hero__headline { font-size: clamp(48px, 10vw, 132px); max-width: 15ch; margin-bottom: 34px; letter-spacing: -0.035em; }
.hero__accent { color: var(--accent); display: block; }
.hero__lead { font-size: 20px; line-height: 1.5; color: var(--dim); max-width: 50ch; margin: 0 0 44px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---- Manifest: editorial letter, not a slab ----
   Structure the CMS entry gives us: first <p><strong> = address line,
   body <p>s = the letter, <blockquote> = pull-line, last <p> = the appeal. */
.manifest { border-top: 1px solid var(--hair); }
.manifest__inner { font-family: var(--sans); font-weight: 400; font-size: 19px; line-height: 1.65; color: var(--ink); }
.manifest__inner p { margin: 0 0 1.3em; max-width: 58ch; }
.manifest__inner strong { font-family: var(--display); font-weight: 900; }
.manifest__inner p:first-child { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.1em; max-width: none; }
.manifest__inner blockquote { border: 0; margin: 1.6em 0; padding: 0; font-family: var(--display); font-weight: 900; font-style: normal; font-size: clamp(24px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; color: var(--accent); }
.manifest__inner blockquote p { margin: 0; max-width: none; font: inherit; color: inherit; }
.manifest__inner p:last-child { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.03em; color: var(--accent); margin-top: 0.6em; max-width: none; }

/* ---- Motive: numbered statements in a centered measure ---- */
.motive .wrap { max-width: 920px; }
.motive__grid { counter-reset: motiv; display: block; }
.motiv {
    counter-increment: motiv; position: relative;
    padding: 40px 0 40px 76px; border-top: 1px solid var(--hair);
}
.motiv:first-child { border-top: 0; }
.motiv::before {
    content: counter(motiv, decimal-leading-zero);
    position: absolute; left: 0; top: 46px;
    font-family: var(--display); font-weight: 900; font-size: 17px; color: var(--accent);
}
.motiv__line { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
.motiv__accent { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1; margin: 5px 0 0; letter-spacing: -0.02em; color: var(--accent); }

/* ---- Branchen: stark list, hairline dividers, no chrome ---- */
.branchen__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.branche { padding: 36px 40px 36px 0; border-bottom: 1px solid var(--hair); }
.branche:nth-child(odd) { padding-right: 56px; }
.branche:nth-child(even) { padding-left: 56px; border-left: 1px solid var(--hair); }
.branche__icon { width: 34px; height: 34px; object-fit: contain; margin-bottom: 16px; filter: grayscale(1) brightness(2); }
.branche__title { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; color: var(--ink); letter-spacing: -0.02em; }
.branche__text { margin: 0; color: var(--dim); font-size: 17px; }

/* ---- Leistungen: four hard blocks, big index ---- */
.leistungen__grid { counter-reset: leistung; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.leistung { counter-increment: leistung; padding: 40px 28px 40px 0; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; }
.leistung + .leistung { border-left: 1px solid var(--hair); padding-left: 28px; }
.leistung::before { content: counter(leistung, decimal-leading-zero); font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--accent); margin-bottom: 18px; }
.leistung__title { font-size: clamp(20px, 2vw, 26px); margin-bottom: 10px; color: var(--ink); letter-spacing: -0.02em; }
.leistung__text { margin: 0 0 20px; color: var(--dim); font-size: 16px; flex: 1; }
.leistung__link { font-family: var(--display); font-weight: 900; font-size: 14px; color: var(--accent); }

/* ---- Wand der Unabhängigen: the number as a weapon, relentless name run ---- */
.wand { text-align: left; }
.wand__count { font-family: var(--display); font-weight: 900; font-size: clamp(96px, 22vw, 300px); line-height: 0.86; margin: 0; letter-spacing: -0.05em; color: var(--ink); }
.wand__title { font-size: clamp(28px, 3.4vw, 44px); margin: 20px 0 8px; letter-spacing: -0.025em; }
.wand__intro { color: var(--dim); font-size: 19px; margin: 0 0 44px; max-width: 44ch; }
.wand__list { list-style: none; margin: 0; padding: 40px 0 0; border-top: 1px solid var(--hair); display: block; font-size: 0; }
.wand__name { display: inline; color: var(--dim); font-size: 16px; font-family: var(--sans); }
.wand__name::after { content: "  \00B7  "; color: var(--accent); }
.wand__name:last-child::after { content: ""; }

/* ---- CTA band ---- */
.cta-band { background: var(--accent); color: var(--black); border-top: 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band__text { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.6vw, 46px); margin: 0; letter-spacing: -0.03em; max-width: 20ch; }
.cta-band .btn--accent { background: var(--black); color: var(--accent); border-color: var(--black); }
.cta-band .btn--accent:hover { background: transparent; color: var(--black); border-color: var(--black); }

/* ---- Post / page ---- */
.page-head { padding: 90px 0 16px; }
.page-head__title { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; }
.post-head { padding: 96px 0 24px; }
.post-head__meta { display: flex; gap: 14px; align-items: center; color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px; }
.post-head__title { font-size: clamp(36px, 6vw, 68px); letter-spacing: -0.03em; }
.post-head__excerpt { font-size: 22px; color: var(--dim); }
.post-image { margin: 36px 0; }
.post-content { padding-bottom: 90px; font-size: 19px; }
.gh-content > * { margin: 0 0 1.4rem; }
.gh-content h2 { font-size: 32px; margin-top: 2.2rem; letter-spacing: -0.02em; }
.gh-content h3 { font-size: 24px; margin-top: 1.6rem; }
.gh-content a { text-decoration: underline; }
.gh-content blockquote { border-left: 3px solid var(--accent); margin: 1.6rem 0; padding: 0.2rem 0 0.2rem 1.3rem; color: var(--dim); font-style: italic; font-size: 20px; }
.gh-content figure { margin: 1.8rem 0; }
.gh-content figcaption { text-align: center; font-size: 14px; color: var(--dim); margin-top: 8px; }
.gh-content .kg-width-wide { position: relative; left: 50%; transform: translateX(-50%); width: 90vw; max-width: 1100px; }
.gh-content .kg-width-full { position: relative; left: 50%; transform: translateX(-50%); width: 100vw; max-width: 100vw; }
.gh-content .kg-width-full img { width: 100%; }
.kg-align-center { text-align: center; }

/* ---- Blog feed ---- */
.post-feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.card { border-bottom: 1px solid var(--hair); background: transparent; }
.card:nth-child(even) { border-left: 1px solid var(--hair); }
.card__link { color: inherit; display: block; padding: 40px; }
.card__link:hover { text-decoration: none; background: #101312; }
.card__image { margin-bottom: 20px; }
.card__image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card__meta { display: flex; gap: 12px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.card__title { font-size: 26px; margin-bottom: 10px; color: var(--ink); letter-spacing: -0.02em; }
.card__excerpt { margin: 0; color: var(--dim); font-size: 16px; }

/* ---- Footer ---- */
.site-footer { background: var(--black); color: var(--dim); padding: 64px 0; border-top: 1px solid var(--hair); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.site-footer__tagline { margin: 16px 0 0; max-width: 34ch; }
.site-footer a { color: var(--ink); }
.site-footer__nav ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0 0 14px; }
.site-footer__copy { font-size: 13px; margin: 14px 0 0; letter-spacing: 0.02em; }
.site-footer__address { margin: 6px 0; font-size: 14px; }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 22px; padding: 40px 0 90px; }
.pagination a { font-family: var(--display); font-weight: 900; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .leistungen__grid { grid-template-columns: repeat(2, 1fr); }
    .leistung:nth-child(3) { border-left: 0; padding-left: 0; }
    .leistung + .leistung { padding-left: 28px; }
    .post-feed { grid-template-columns: 1fr; }
    .card:nth-child(even) { border-left: 0; }
}
@media (max-width: 680px) {
    body { font-size: 17px; }
    .section { padding: 72px 0; }
    .hero { padding: 84px 0 72px; }
    .stamp { top: 20px; right: 20px; font-size: 12px; }
    .nav-toggle { display: block; }
    .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--black); border-bottom: 1px solid var(--hair); padding: 18px 32px; display: none; }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 8px; }
    .motiv { padding: 26px 0 26px 52px; }
    .motiv::before { top: 31px; }
    .branchen__grid, .leistungen__grid { grid-template-columns: 1fr; }
    .branche:nth-child(even) { padding-left: 0; border-left: 0; }
    .branche:nth-child(odd) { padding-right: 0; }
    .leistung + .leistung { border-left: 0; padding-left: 0; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
