/* 5. Komponenten - Article (Post-Page)
   ------------------------------------------------------------ */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: var(--sp-7);
    align-items: start;
}

.post {
    max-width: var(--max-content);
}

.post-header {
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border);
}

.post-taxonomy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: var(--sp-3);
    color: var(--fg-faint);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.post-back:hover {
    color: var(--accent);
}

.post-categories {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.post-categories a {
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cat-color, var(--accent));
    text-decoration: none;
    font-weight: 600;
}

.post-categories a + a::before {
    content: "·";
    margin-right: var(--sp-2);
    color: var(--fg-faint);
    font-size: 1.5em;
    font-weight: 700;
    line-height: 0;
    vertical-align: -0.05em;
}

.post-title {
    font-size: var(--fs-3xl);
    line-height: 1.15;
    margin: 0 0 var(--sp-4);
    color: var(--fg);
    letter-spacing: -0.015em;
}

.post-abstract {
    font-size: var(--fs-md);
    color: var(--fg-muted);
    line-height: 1.55;
    margin: 0 0 var(--sp-4);
}

/* 5. Komponenten - Article-Meta
   ------------------------------------------------------------ */
.article-meta {
    font-size: var(--fs-sm);
    color: var(--fg-faint);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.article-meta span + span::before {
    content: "·";
    margin-right: var(--sp-3);
    color: var(--border-strong);
}

.article-meta time {
    font-variant-numeric: tabular-nums;
}

/* 5. Komponenten - TLDR
   ------------------------------------------------------------ */
.tldr {
    background: var(--accent-faint);
    border-left: 3px solid var(--accent);
    padding: var(--sp-4) var(--sp-5);
    margin: 0 0 var(--sp-6);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.tldr-title {
    margin: 0 0 var(--sp-2);
    font-size: var(--fs-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.tldr ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tldr li {
    margin-bottom: var(--sp-2);
    line-height: 1.55;
}

.tldr li:last-child { margin-bottom: 0; }

/* 5. Komponenten - Post-Body (Long-Read-Typografie)
   ------------------------------------------------------------ */
.post-body {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--fg);
}

.post-body h2 {
    font-size: var(--fs-xl);
    margin: var(--sp-7) 0 var(--sp-4);
    scroll-margin-top: calc(var(--header-height) + var(--sp-2));
}

.post-body h2:first-child {
    margin-top: var(--sp-2);
}

.post-body h3 {
    font-size: var(--fs-lg);
    margin: var(--sp-6) 0 var(--sp-3);
    scroll-margin-top: calc(var(--header-height) + var(--sp-2));
}

.post-body h4 {
    font-size: var(--fs-base);
    margin: var(--sp-5) 0 var(--sp-2);
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body table {
    margin: 0 0 var(--sp-4);
}

.post-body ul,
.post-body ol {
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: var(--sp-2);
}

.post-body li:last-child { margin-bottom: 0; }

.post-body strong { font-weight: 600; }

.post-body a {
    color: var(--accent);
    text-underline-offset: 2px;
}

.table-scroll {
    overflow-x: auto;
    margin-bottom: var(--sp-5);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

@media (max-width: 720px) {
    .post-body table {
        font-size: 0.85rem;
    }
}

.post-body th,
.post-body td {
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.post-body th {
    background: var(--bg-card);
    font-weight: 600;
    border-bottom-color: var(--border-strong);
}

.post-body blockquote {
    margin: var(--sp-5) 0;
    padding: var(--sp-2) var(--sp-4);
    border-left: 3px solid var(--fg-faint);
    color: var(--fg-muted);
    font-style: italic;
}

.post-body code {
    background: var(--bg-card);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.post-body pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: var(--sp-3) var(--sp-4);
    overflow-x: auto;
    margin: 0 0 var(--sp-5);
}

.post-body pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
}

.post-body hr {
    margin: var(--sp-6) 0;
    border: 0;
    border-top: 1px solid var(--border);
}

/* 5. Komponenten - Artikel-Anhaenge (Definitionen, Quellen, Weiterfuehrendes)
   ------------------------------------------------------------ */
.post-appendix {
    margin-top: var(--sp-7);
    font-size: 0.9rem;
    color: var(--fg-muted);
}

.appendix-title {
    font-size: var(--fs-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 var(--sp-3);
    font-weight: 700;
}

.post-appendix ul {
    padding-left: 1.25rem;
    margin: 0;
}

.post-appendix li {
    margin-bottom: var(--sp-2);
    line-height: 1.55;
}

.post-appendix li:last-child {
    margin-bottom: 0;
}

.post-sources a {
    overflow-wrap: anywhere;
}

.post-appendix a {
    color: var(--accent);
    text-decoration: none;
}

.post-appendix a:hover {
    text-decoration: underline;
}

/* Der Begriff steht im Markdown als **Fettung** am Zeilenanfang. */
.post-definitions strong {
    color: var(--fg);
    font-weight: 700;
}

/* 5. Komponenten - Sticky TOC
   ------------------------------------------------------------ */
.toc {
    position: sticky;
    top: calc(var(--header-height) + var(--sp-4));
    font-size: var(--fs-sm);
    max-height: calc(100vh - var(--header-height) - var(--sp-6));
    overflow-y: auto;
    margin-top: 2rem;
}

.toc-title {
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-faint);
    margin-bottom: var(--sp-3);
    font-weight: 600;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--border);
}

.toc-item {
    padding-left: var(--sp-3);
    margin-bottom: var(--sp-2);
    line-height: 1.35;
}

.toc-level-h3 {
    padding-left: var(--sp-5);
    font-size: var(--fs-xs);
}

.toc-list a {
    text-decoration: none;
    color: var(--fg-muted);
    display: inline-block;
}

.toc-list a:hover,
.toc-list a.is-active {
    color: var(--accent);
}

.toc-list a.is-active {
    font-weight: 600;
}

/* 5. Komponenten - Author-Block
   ------------------------------------------------------------ */
.author-block {
    display: flex;
    gap: var(--sp-4);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    margin: var(--sp-7) 0 0;
}

.author-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ui-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info {
    flex-grow: 1;
    min-width: 0;
}

.author-name {
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.15rem;
}

.author-role {
    font-size: var(--fs-sm);
    color: var(--fg-faint);
    margin-bottom: var(--sp-2);
}

.author-bio {
    font-size: 0.92rem;
    color: var(--fg-muted);
    margin: 0;
    line-height: 1.55;
}

/* Die Biografie kommt als Markdown-Body und bringt ihr eigenes <p> mit. */
.author-bio p {
    margin: 0;
}

/* Sitzt auf dem Namen: Groesse und Gewicht kommen daher von .author-name. */
.author-link {
    color: inherit;
    text-decoration: none;
}

.author-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* 5. Komponenten - LP-Promo
   ------------------------------------------------------------ */
.lp-promo {
    margin-top: var(--sp-6);
    padding: var(--sp-4) var(--sp-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-sm);
}

.lp-promo-label {
    display: inline-block;
    font-size: var(--fs-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 700;
    margin-bottom: var(--sp-1);
}

.lp-promo-text { margin: 0; line-height: 1.5; }

.lp-promo-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.lp-promo-link:hover { text-decoration: underline; }


/* 6. Listenseiten
   ------------------------------------------------------------ */
.listing-header {
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-5);
}

.listing-back {
    font-size: var(--fs-sm);
    color: var(--fg-faint);
    text-decoration: none;
    margin-bottom: var(--sp-3);
    display: inline-block;
}

.listing-back:hover { color: var(--accent); }

.listing-header h1 {
    font-size: var(--fs-2xl);
    margin: 0 0 var(--sp-3);
    letter-spacing: -0.01em;
}

.listing-desc {
    color: var(--fg-muted);
    margin: 0 0 var(--sp-2);
    font-size: var(--fs-md);
    line-height: 1.55;
}

/* Terminzahl links, Sprung zum naechsten Termin rechts - eine Zeile, gemeinsame
   Grundlinie. Baseline statt center, damit die beiden verschieden grossen Schriften
   nicht gegeneinander versetzt stehen. */
.listing-count-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-4);
}

.listing-jump {
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.listing-jump:hover {
    text-decoration: underline;
}

.listing-count {
    color: var(--fg-faint);
    font-size: var(--fs-sm);
    margin: 0;
}

/* Einstiegstext einer Collection-Uebersicht (siehe getCollectionIntro()). Schmaler als
   das Kartenraster darunter: Fliesstext ueber die volle Breite eines Wide-Layouts
   waere nicht mehr lesbar. */
.listing-intro {
    max-width: var(--max-content);
    /* Oben kein Margin: der Abstand zum Listenkopf gehoert diesem, sonst summieren
       sich zwei Luecken. */
    margin: 0 0 var(--sp-6);
}

.listing-intro p {
    margin: 0 0 var(--sp-3);
    line-height: 1.65;
}

.listing-intro p:last-child {
    margin-bottom: 0;
}

/* Einstieg der Themenuebersicht als Panel. Kartenwerte wie .about-copy-block auf
   /ueber/ - Hintergrund, Rahmen, Radius, Schatten, Innenabstand, Zeilenabstand und
   Textfarbe sind dieselben. Abweichend: volle Breite statt Rasterspalte und eine
   Icon-Spalte davor. */
.listing-intro-panel {
    max-width: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--sp-5);
    align-items: start;
    padding: var(--sp-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--ui-shadow-soft);
}

.listing-intro-panel > i {
    color: var(--accent);
    font-size: 3rem;
    line-height: 1.15;
}

.listing-intro-text {
    display: grid;
    gap: var(--sp-3);
}

.listing-intro-panel p {
    margin: 0;
    color: var(--fg-muted);
    line-height: 1.62;
}

/* 6. Listenseiten - Article-Cards
   ------------------------------------------------------------ */


.article-cards {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
}

.article-grid .article-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.article-grid .card-meta { margin-top: auto; }

.article-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--ui-shadow-soft);
    padding: var(--sp-5);
    margin-bottom: var(--sp-4);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--ui-shadow-medium);
}

.article-card::before {
    content: var(--cat-mark, "GMP");
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: var(--cat-color, var(--accent));
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    opacity: 0.08;
    pointer-events: none;
}

/* Stretched Link: der Anker sitzt im Titel, seine Klickflaeche liegt ueber der ganzen
   Karte. Bewusst NICHT position:relative am Anker - sonst waere er selbst der Bezug des
   Overlays und die Flaeche endete am Titel. Bezug ist .article-card (position:relative).
   z-index 2, weil Anriss und Meta auf der Startseite auf Ebene 1 liegen und den Klick
   sonst abfangen. Vorher umschloss der Anker die gesamte Karte, siehe article-card.php. */
.article-card .card-link {
    color: inherit;
    text-decoration: none;
}

.article-card .card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.article-card.is-featured {
    padding: var(--sp-6);
}

.article-card.is-featured .card-title {
    font-size: var(--fs-2xl);
    letter-spacing: -0.01em;
}

.article-card.is-featured .card-excerpt {
    font-size: var(--fs-md);
    max-width: 46em;
}

.card-more {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-left: var(--sp-3);
}

.card-more:hover { text-decoration: underline; }

.card-cats {
    margin-bottom: var(--sp-2);
}

.card-cats a,
.card-cats span {
    display: inline-flex;
    align-items: baseline;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cat-color, var(--accent));
    text-decoration: none;
    font-weight: 600;
    margin-right: var(--sp-2);
}

.card-cats a::before,
.card-cats span::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--cat-color, var(--accent));
    border-radius: 50%;
    flex: 0 0 auto;
}

.card-title {
    font-size: var(--fs-lg);
    line-height: 1.3;
    margin: 0 0 var(--sp-2);
}

.card-title a,
.card-title span {
    text-decoration: none;
    color: var(--fg);
}

.card-title a:hover { color: var(--accent); }

.card-excerpt {
    color: var(--fg-muted);
    margin: 0 0 var(--sp-3);
    font-size: 0.95rem;
    line-height: 1.55;
}

.card-meta {
    color: var(--fg-faint);
    font-size: var(--fs-sm);
    font-variant-numeric: tabular-nums;
}

/* 6. Listenseiten - Collection-Grid (Themen-Übersicht)
   ------------------------------------------------------------ */
.collection-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--sp-4);
}

.collection-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--ui-shadow-soft);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.collection-card::before {
    content: var(--cat-mark, "GMP");
    position: absolute;
    right: 16px;
    bottom: 12px;
    color: var(--cat-color, var(--accent));
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    opacity: 0.08;
    pointer-events: none;
}

.collection-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--ui-shadow-medium);
}

.collection-card a {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 100%;
    padding: var(--sp-5);
    text-decoration: none;
    color: var(--fg);
}

.collection-title {
    font-size: var(--fs-lg);
    margin: 0 0 var(--sp-2);
    color: var(--cat-color, var(--accent));
}

.collection-desc {
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin: 0 0 var(--sp-3);
    line-height: 1.45;
}

.collection-count {
    color: var(--fg-faint);
    font-size: var(--fs-sm);
    margin: 0;
}

.listing-section {
    margin-top: var(--sp-7);
}

.listing-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
}

.listing-section-head h2 {
    margin: 0;
    color: var(--fg);
    font-size: var(--fs-xl);
}

.listing-section-head a {
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.listing-section-head a:hover {
    text-decoration: underline;
}

/* 6. Listenseiten - Pagination
   ------------------------------------------------------------ */
.pagination {
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-4);
}

.pagination a {
    text-decoration: none;
    font-weight: 500;
}

.pagination-info {
    color: var(--fg-faint);
    font-size: 0.9rem;
}

/* 6. Listenseiten - Empty State
   ------------------------------------------------------------ */
.empty-state {
    text-align: center;
    color: var(--fg-faint);
    padding: var(--sp-7) var(--sp-4);
}

/* 6. Statische Seiten (page.php)
   ------------------------------------------------------------ */
.page-header {
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: var(--fs-2xl);
    margin: 0 0 var(--sp-2);
}

.page-body {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
}

.page-body h2 {
    font-size: var(--fs-xl);
    margin: var(--sp-6) 0 var(--sp-3);
}

.page-body h3 {
    font-size: var(--fs-lg);
    margin: var(--sp-5) 0 var(--sp-2);
}

.page-ueber {
    max-width: var(--max-wide);
}

.page-ueber .page-body {
    font-size: var(--fs-base);
}

.page-ueber .page-body > p:first-child {
    max-width: 820px;
    color: var(--fg-muted);
    font-size: 1.15rem;
    line-height: 1.65;
}

.about-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: var(--sp-4);
    align-items: start;
    margin-top: var(--sp-6);
}

.about-copy-block,
.about-side-panel,
.about-contact-panel {
    display: grid;
    gap: var(--sp-3);
    padding: var(--sp-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--ui-shadow-soft);
}

.about-copy-block {
    min-height: 100%;
}

.about-side-panel {
    border-color: var(--ui-line-blue);
}

.about-content-grid h2,
.about-contact-panel h2 {
    margin: 0;
    color: var(--accent);
    font-size: var(--fs-lg);
    line-height: 1.25;
    font-weight: 800;
}

.about-content-grid p,
.about-contact-panel p {
    margin: 0;
    color: var(--fg-muted);
    line-height: 1.62;
}

.about-content-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-content-grid li {
    position: relative;
    margin: 0;
    padding-left: 1.35rem;
    color: var(--fg);
    line-height: 1.55;
}

.about-content-grid li + li {
    margin-top: var(--sp-2);
}

.about-content-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

.about-check-list li::before {
    top: 0.34em;
    width: 0.82rem;
    height: 0.82rem;
    background: var(--accent-faint);
    border: 1px solid var(--ui-check-line);
}

.about-contact-panel {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    align-items: start;
    margin-top: var(--sp-4);
    border-color: var(--ui-line-blue);
}

.about-contact-intro {
    display: grid;
    gap: var(--sp-3);
    align-content: start;
}

.about-contact-actions {
    display: grid;
    gap: var(--sp-2);
}

.about-contact-actions a {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    color: var(--accent);
    background: var(--ui-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-weight: 800;
    text-decoration: none;
}

.about-contact-actions a:hover,
.about-contact-actions a:focus-visible {
    color: var(--accent-hover);
    border-color: var(--ui-line-strong);
    box-shadow: 0 8px 20px rgba(20, 33, 43, 0.08);
}

/* 6. Error-Page
   ------------------------------------------------------------ */
.error-page {
    text-align: center;
    padding: var(--sp-8) var(--sp-4);
}

.error-page .code {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
    line-height: 1;
}

.error-page h1 {
    font-size: var(--fs-xl);
    margin: var(--sp-2) 0 var(--sp-4);
}

.error-page p {
    color: var(--fg-muted);
    margin: 0 0 var(--sp-4);
}

/* 7. Lead-Formular - seitenunabhaengiger Teil
   ------------------------------------------------------------ */

.form-message {
    display: flex;
    gap: var(--sp-3);
    /* Zentriert statt flex-start: Bei einzeiligen Meldungen - dem Regelfall - hing das
       Icon sonst sichtbar oben. Bei mehrzeiligen bleibt es mittig zum Textblock. */
    align-items: center;
    margin: 0 0 var(--sp-5);
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid;
    border-left-width: 3px;
    border-radius: var(--r-sm);
    color: var(--fg);
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-message i {
    /* Der globale .fa-solid-Default nimmt die Groesse zurueck - hier ueberschrieben,
       damit das Icon neben dem Text Gewicht hat. flex-shrink verhindert, dass es bei
       langen Meldungen gestaucht wird. */
    font-size: 1.35rem;
    flex-shrink: 0;
}

.form-message.is-success span {
    font-weight: 700;
}

.form-message.is-error {
    background: rgba(192, 57, 43, 0.06);
    border-color: rgba(192, 57, 43, 0.35);
    border-left-color: var(--ui-error);
}

.form-message.is-error i {
    color: var(--ui-error);
}

.form-message.is-success {
    background: rgba(26, 127, 90, 0.07);
    border-color: rgba(26, 127, 90, 0.32);
    border-left-color: #1a7f5a;
}

.form-message.is-success i {
    color: #1a7f5a;
}

.form-section-title {
    margin: 0 0 var(--sp-3);
    font-size: var(--fs-2xl);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* 7. Kontaktseite
   ------------------------------------------------------------ */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: var(--sp-5);
    align-items: start;
}

.page-kontakt .listing-desc p {
    margin: 0;
}

.contact-form-col {
    position: relative;   /* Bezugsrahmen fuer die Erledigt-Deckschicht */
    scroll-margin-top: calc(var(--header-height) + var(--sp-4));
}

.form-done {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* Flex statt Grid: Icon und Meldung stehen untereinander, beide zentriert.
       place-items zentrierte vorher nur das eine Kind. */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    text-align: center;
    background: rgba(255, 255, 255, 0.78);
    border-radius: var(--r-md);
}

.form-done i {
    /* Der globale Icon-Default (.fa-solid) nimmt Groesse und Deckkraft zurueck. */
    font-size: 3.4rem;
    opacity: 1;
    color: #1a7f5a;
    filter: drop-shadow(0 6px 14px rgba(20, 33, 43, 0.16));
}

.form-done-message {
    margin: 0;
    max-width: 34ch;   /* haelt die Zeile lesbar, statt sie ueber die volle Spalte zu ziehen */
    font-weight: 700;
    color: #1a7f5a;    /* dasselbe Gruen wie das Icon */
    line-height: 1.4;
}

.contact-info {
    display: grid;
    gap: var(--sp-4);
    padding: var(--sp-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--ui-shadow-soft);
}

.contact-info h2 {
    margin: 0 0 var(--sp-2);
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-info p {
    margin: 0 0 var(--sp-2);
    color: var(--fg-muted);
    line-height: 1.6;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info a {
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info i {
    margin-right: 0.4rem;
}