/* schmidbauer.io / schmidbauer.jetzt – Corporate Design
   Farben: Apricot #F6B48F · Ziegelrot #E8836B · Kohle #2E2A28 · Creme #FBF4EC · Link #A0502C
   Schriften: Space Grotesk (Überschriften), Atkinson Hyperlegible (Text), JetBrains Mono (Code)
   Flächig und ruhig: keine Verläufe, keine Schatten. */

:root {
    --brand-apricot: #F6B48F;
    --brand-ziegel: #E8836B;
    --brand-kohle: #2E2A28;
    --brand-creme: #FBF4EC;
    --brand-link: #A0502C;

    --font-sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: "Space Grotesk", "Atkinson Hyperlegible", system-ui, sans-serif;

    --ghost-accent-color: #A0502C !important;
    --color-darker-gray: #2E2A28;
    --color-primary-text: #2E2A28;
    --color-secondary-text: rgb(46 42 40 / 0.72);
    --color-border: rgb(46 42 40 / 0.14);
    --color-dark-border: rgb(46 42 40 / 0.55);
}

/* !important, weil Source die Titelschrift mit sehr spezifischen Selektoren setzt.
   Ghosts Design-Einstellung "Typografie" (--gh-font-heading) bleibt weiterhin wirksam. */
:is(h1, h2, h3, h4, h5, h6, .is-title, .gh-content :is(h2, h3)) {
    font-family: var(--gh-font-heading, var(--font-heading)) !important;
}

::selection {
    background: var(--brand-apricot);
    color: var(--brand-kohle);
}

.gh-content :not(pre) > code {
    background: rgb(246 180 143 / 0.35);
    color: var(--brand-kohle);
    border-radius: 4px;
    padding: 0.1em 0.35em;
}

.gh-content blockquote:not([class]) {
    border-left: 3px solid var(--brand-ziegel);
}

/* Wortmarke (inline SVG, Punkt bleibt Ziegelrot) */
.gh-wortmarke {
    display: block;
    height: 2.4rem;
    width: auto;
    color: var(--brand-kohle);
}

.gh-footer .gh-wortmarke {
    height: 2.2rem;
}

@media (max-width: 767px) {
    .gh-wortmarke { height: 2.1rem; }
}

/* Fußzeile: Text darf umbrechen, ruhig und klein */
.gh-footer-copyright {
    white-space: normal;
    max-width: 100%;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-secondary-text);
}

.gh-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 2.4rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.gh-footer-links a {
    text-decoration: underline;
    text-decoration-color: var(--brand-ziegel);
    text-underline-offset: 0.3em;
    text-decoration-thickness: 2px;
}

.gh-footer-links a:hover {
    text-decoration-color: var(--brand-link);
}

/* Formeln: KaTeX in Fließtextgröße, lange Formeln scrollen statt zu sprengen */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0;
}

.gh-footer-links {
    margin-bottom: 2.4rem;
}


/* ===== Farbwelt: flächig, mehrfarbig, ohne Verläufe und Schatten ===== */
:root {
    --brand-pfirsich: #FDE3D0;
    --brand-rose: #F6CFC6;
    --brand-sand: #F1E1CF;
    --brand-apricot-hell: #FAD2B8;
    --card-bg: var(--brand-pfirsich);
    --card-fg: #2E2A28;
}

/* Startseiten-Kopf */
.gh-hero {
    background: var(--brand-apricot);
    color: var(--brand-kohle);
}

.gh-hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-block: clamp(4rem, 8vw, 8rem);
}

.gh-hero-kicker {
    margin: 0 0 1.6rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gh-hero-title {
    margin: 0;
    font-size: clamp(4.4rem, 9vw, 8.8rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--brand-kohle);
}

.gh-hero-lead {
    max-width: 52ch;
    margin: 2.4rem 0 0;
    font-size: 1.9rem;
    line-height: 1.5;
}

.gh-hero-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
}

.gh-hero-pillars a {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-kohle);
    background: var(--brand-creme);
    border-radius: 999px;
    text-decoration: none;
}

.gh-hero-pillars li:nth-child(2n) a { background: var(--brand-rose); }
.gh-hero-pillars li:nth-child(3n) a { background: var(--brand-kohle); color: var(--brand-creme); }
.gh-hero-pillars a:hover { background: var(--brand-ziegel); color: var(--brand-kohle); }

.gh-hero-art {
    width: 100%;
    max-width: 38rem;
    justify-self: center;
}

@media (max-width: 800px) {
    .gh-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .gh-hero-art { max-width: 22rem; justify-self: start; }
}

/* Karten: je Themensäule eine Fläche, Rest wechselt durch */
.gh-container.is-grid .gh-card {
    background: var(--card-bg);
    color: var(--card-fg);
    border-radius: 16px;
    padding: 2.4rem;
}

.gh-container.is-grid .gh-card::before,
.gh-container.is-grid .gh-card::after { display: none; }

.gh-container.is-grid .gh-feed { overflow: visible; column-gap: 2.4rem; row-gap: 2.4rem; }

.gh-container.is-grid .gh-card-link,
.gh-container.is-grid .gh-card-title-link,
.gh-container.is-grid .gh-card-excerpt,
.gh-container.is-grid .gh-card-meta { color: var(--card-fg); }

.gh-container.is-grid .gh-card-excerpt { opacity: 0.85; }

.gh-container.is-grid .gh-card-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--brand-kohle);
    background: var(--brand-creme);
    border-radius: 999px;
}

.gh-container.is-grid .gh-card-image img { border-radius: 10px; }

.gh-container.is-grid .gh-card:nth-child(4n+2) { --card-bg: var(--brand-rose); }
.gh-container.is-grid .gh-card:nth-child(4n+3) { --card-bg: var(--brand-sand); }
.gh-container.is-grid .gh-card:nth-child(4n+4) { --card-bg: var(--brand-apricot-hell); }

.gh-container.is-grid .gh-card.tag-physik-und-mathe { --card-bg: var(--brand-pfirsich); }
.gh-container.is-grid .gh-card.tag-maker-und-elektronik { --card-bg: var(--brand-apricot); }
.gh-container.is-grid .gh-card.tag-selfhosting-und-ki { --card-bg: var(--brand-rose); }
.gh-container.is-grid .gh-card.tag-latex { --card-bg: var(--brand-sand); }
.gh-container.is-grid .gh-card.tag-elektrotechnik-und-technik { --card-bg: var(--brand-kohle); --card-fg: var(--brand-creme); }
.gh-container.is-grid .gh-card.tag-elektrotechnik-und-technik .gh-card-tag { background: var(--brand-apricot); }

.gh-container-title { border-bottom-color: var(--brand-kohle); border-bottom-width: 2px; }

/* Buttons */
.gh-button {
    background: var(--brand-apricot);
    color: var(--brand-kohle);
}
.gh-button:hover { background: var(--brand-ziegel); opacity: 1; }

/* Artikel */
.gh-article-tag {
    display: inline-block;
    padding: 0.3rem 1.1rem;
    color: var(--brand-kohle);
    background: var(--brand-apricot);
    border-radius: 999px;
}

.gh-content pre {
    background: var(--brand-kohle);
    color: var(--brand-creme);
    border-radius: 12px;
}
.gh-content pre code { background: transparent; color: inherit; }

.gh-content blockquote:not([class]) {
    background: var(--brand-rose);
    border-left: 5px solid var(--brand-ziegel);
    padding: 1.2rem 2rem;
    border-radius: 0 12px 12px 0;
}

.gh-content a:not([class]) {
    text-decoration-color: var(--brand-ziegel);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

/* Fußzeile dunkel */
.gh-footer {
    margin-top: 12rem;
    padding-top: 5rem;
    padding-bottom: 3rem;
    background: var(--brand-kohle);
    color: var(--brand-creme);
}
.gh-footer .gh-wortmarke { color: var(--brand-creme); }
.gh-footer-copyright { color: rgb(251 244 236 / 0.78); }
.gh-footer-bar { border-block-color: rgb(251 244 236 / 0.25); margin-bottom: 0; }
.gh-footer-links a { color: var(--brand-apricot); }
.gh-footer-links a:hover { color: var(--brand-creme); }
.gh-footer-links { margin-bottom: 3.2rem; }
.gh-footer a:not(.gh-button):hover { color: var(--brand-apricot); }

/* Navigation: farbiger Akzent unten */
.gh-navigation { border-bottom: 4px solid var(--brand-apricot); }
