/* Physical Media Shop – Design (Kind-Theme zu Aeonblog)
   Heller Kopf mit dem schwarzen Logo, dunkles Startband, Orange als Akzent, Oswald für Überschriften. */

:root {
    --pms-dunkel: #17181c;
    --pms-dunkel-2: #24262c;
    --pms-orange: #f39a1e;
    --pms-orange-dunkel: #d9800a;
    --pms-link: #9a5700;
    --pms-creme: #faf7f2;
    --pms-grund: #f2efea;
    --pms-text: #1d1d1f;
    --pms-leise: #66666b;
    --pms-linie: #e4ded4;
    --pms-plakat: 'Oswald', 'Arial Narrow', Impact, sans-serif;
    --pms-breite: 1200px;
}

body { background: var(--pms-grund); color: var(--pms-text); }
a { color: var(--pms-link); }
a:hover, a:focus { color: var(--pms-orange-dunkel); }

h1, h2, h3, h4, .page-title, .entry-title, .widget h2, .wp-block-heading {
    font-family: var(--pms-plakat);
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--pms-text);
}
/* Titel so, wie sie geschrieben sind – nicht jedes Wort groß */
.entry-title, .page-title, .entry-title a { text-transform: none !important; }

/* ── Kopf ───────────────────────────────────────────────────────────── */
#masthead.site-header {
    background: var(--pms-creme);
    border-bottom: 3px solid var(--pms-orange);
    padding: 10px max(20px, calc((100% - var(--pms-breite)) / 2));
}
#masthead .site-branding { text-align: left; padding: 0; margin: 0; }
/* 11.11.2026: Logo feste Höhe, darf im Kopf nicht mehr zusammengedrückt werden */
#masthead .custom-logo { height: 64px !important; max-height: 84px; width: auto !important; max-width: none !important; flex-shrink: 0; }
#masthead .custom-logo-link { display: block; flex-shrink: 0; line-height: 0; }
#masthead .site-title { white-space: nowrap; }   /* Handy; am PC gestapelt (unten) */
#masthead .site-title { margin: 0; font-size: 26px; line-height: 1.1; }
#masthead .site-title a {
    font-family: var(--pms-plakat); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    color: var(--pms-text); text-decoration: none;
}
#masthead .site-description {
    margin: 2px 0 0; font-size: 13px; color: var(--pms-leise); letter-spacing: .08em; text-transform: uppercase;
}
#site-navigation.main-navigation { background: transparent; border: 0; box-shadow: none; }
#main-menu a {
    font-family: var(--pms-plakat); font-weight: 500; font-size: 16px; letter-spacing: .06em;
    text-transform: uppercase; color: var(--pms-text);
}
#main-menu a:hover, #main-menu .current-menu-item > a { color: var(--pms-orange-dunkel); }
#main-menu a[href*="ebay."] { background: var(--pms-orange); color: var(--pms-dunkel); border-radius: 4px; padding: 8px 16px; }
#mobile-menu-toggle {
    background: var(--pms-dunkel); color: #fff; border: 0; border-radius: 4px;
    font-family: var(--pms-plakat); letter-spacing: .08em;
}
@media (min-width: 992px) {
    #masthead.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    #masthead .site-branding { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; width: auto !important; max-width: none; }   /* Theme gibt dem Block volle Breite – sonst schiebt er das Menü aus dem Bild */
    #site-navigation.main-navigation { margin: 0; width: auto; }
    #main-menu { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; justify-content: flex-end; }
    #main-menu > li > a { padding: 8px 11px; font-size: 15px; white-space: nowrap; }
}
/* 11.11.2026: Untertitel steht schon im Logo – immer aus. Unter 1500 px auch der Schriftzug (steht ebenfalls im Logo),
   dann bleibt links nur das Logo und das Menü hat in einer Zeile Platz. */
#masthead .site-description { display: none; }
/* Der Kopf ist so breit wie der Inhalt (--pms-breite) – Logo + Schriftzug + Menü passen dort nie nebeneinander.
   Der Schriftzug steht im Logo, also am PC weg: links das Logo, daneben das Menü in einer Zeile. */
@media (min-width: 992px) {
    /* Schriftzug gestapelt neben dem Logo (PHYSICAL / MEDIA / SHOP) – braucht so nur ca. 120 px */
    #masthead .site-title { white-space: normal; max-width: 120px; font-size: 22px; line-height: 1.05; }
}
@media (min-width: 992px) and (max-width: 1600px) { #main-menu > li > a { padding: 8px 7px; font-size: 14px; } }
@media (min-width: 992px) and (max-width: 1150px) { .pms-suche input[type="search"] { width: 110px; } }

/* Suchfeld im Menü */
#main-menu .pms-suche-punkt { display: flex; align-items: center; margin-left: 10px; }
.pms-suche { display: flex; align-items: stretch; margin: 0; }
.pms-suche input[type="search"] {
    width: 150px; height: 36px; padding: 0 10px; margin: 0; border: 1px solid var(--pms-linie); border-right: 0;
    border-radius: 4px 0 0 4px; background: #fff; font-size: 15px; color: var(--pms-text); box-shadow: none;
}
.pms-suche input[type="search"]:focus { outline: none; border-color: var(--pms-orange); }
.pms-suche button {
    width: 40px; height: 36px; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 0 4px 4px 0 !important; background: var(--pms-dunkel); color: #fff !important;
}
.pms-suche button:hover { background: var(--pms-orange); color: var(--pms-dunkel) !important; }
@media (min-width: 992px) and (max-width: 1240px) {
    .pms-suche input[type="search"] { width: 110px; }
    #masthead .site-title { font-size: 22px; }
}
@media (max-width: 991px) {
    #main-menu .pms-suche-punkt { margin: 10px 0; padding: 0 16px; }
    .pms-suche { width: 100%; }
    .pms-suche input[type="search"] { flex: 1; width: auto; }
}

/* ── Inhalt, Seitenleiste, Knöpfe ──────────────────────────────────── */
.post-wrapper, .secondary .widget {
    background: #fff; border: 1px solid var(--pms-linie); border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.wp-block-button__link, .wp-element-button, button, input[type="submit"], .more-link {
    background: var(--pms-orange); color: var(--pms-dunkel) !important; border: 0; border-radius: 4px;
    font-family: var(--pms-plakat); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
}
.more-link { display: inline-block; padding: 8px 18px; }
.wp-block-button__link { display: inline-block; padding: 10px 22px; text-decoration: none !important; }
.is-style-outline .wp-block-button__link {
    background: transparent !important; color: var(--pms-link) !important; box-shadow: inset 0 0 0 2px var(--pms-orange);
}
/* Standard-Blöcke, die niemand braucht */
.secondary .widget:has(.wp-block-latest-comments),
.secondary .widget:has(.wp-block-archives) { display: none; }

/* ── Blog, Beiträge, Seiten (wie die Startseite: dunkle Akzente, keine Theme-Farben) ── */
/* Brotkrumen: schmales dunkles Band statt Mint */
.breadcrumb { background: var(--pms-dunkel) !important; border: 0; padding: 10px max(20px, calc((100% - var(--pms-breite)) / 2)); }
.breadcrumb, .breadcrumb .trail-items li, .breadcrumb .trail-items li::after { color: #b9b7b2; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumb { padding-top: 10px !important; padding-bottom: 10px !important; min-height: 0 !important; height: auto !important; }
.breadcrumb .breadcrumb-trail, .breadcrumb .trail-items { padding: 0 !important; margin: 0 !important; }
.breadcrumb a { color: var(--pms-orange) !important; text-decoration: none; }
.breadcrumb a:hover { color: #fff !important; }

/* Beitragstitel dunkel, ohne Unterstreichung */
.entry-title a, .entry-title a:visited { color: var(--pms-text) !important; text-decoration: none !important; }
.entry-title a:hover { color: var(--pms-orange-dunkel) !important; }
.post-wrapper { border-top: 4px solid var(--pms-orange); }
body.home .post-wrapper { border-top: 0; }

/* Einzelbeitrag: das Beitragsbild steht schon als erstes Bild im Text (setzt CSS Tools beim Senden) – nicht doppelt zeigen */
body.single-post .post-thumbnail { display: none; }

/* Datum, Kommentare, Kategorie */
.entry-meta, .entry-meta a { color: var(--pms-leise) !important; text-decoration: none !important; font-size: 14px; }
.entry-meta .posted-in a {
    display: inline-block; background: var(--pms-dunkel) !important; color: var(--pms-orange) !important; border-radius: 3px;
    padding: 3px 10px; font-family: var(--pms-plakat); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 13px;
}
.entry-meta .posted-in a:hover { color: #fff !important; }
.entry-meta .post-comments { display: none; }

/* Weiterlesen */
.more-link { padding: 10px 22px; font-size: 15px; }
.more-link:hover { background: var(--pms-orange-dunkel); }

/* Seitenleiste: Kästen mit Innenabstand, Überschrift in normaler Größe */
.secondary .widget { padding: 20px 22px; }
.secondary .widget h2, .secondary .widget .wp-block-heading, .secondary .widget-title {
    font-size: 20px !important; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px;
    border-left: 4px solid var(--pms-orange); padding-left: 10px;
}
.secondary .widget ul { margin: 0; padding: 0; list-style: none; }
.secondary .widget li { margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--pms-linie); line-height: 1.4; }
.secondary .widget li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.secondary .widget li a { color: var(--pms-text); text-decoration: none; font-size: 15px; }
.secondary .widget li a:hover { color: var(--pms-orange-dunkel); }
.secondary .wp-block-search__label { font-family: var(--pms-plakat); text-transform: uppercase; letter-spacing: .05em; }
.secondary .wp-block-search__input { border: 1px solid var(--pms-linie); border-radius: 4px; }
/* Kategorien erst zeigen, wenn es mehr als eine gibt */
.secondary .widget:has(.wp-block-categories li:only-child) { display: none; }

/* Blätterleiste */
.aeonblog-pagination a, .aeonblog-pagination span { border-radius: 4px; }
.aeonblog-pagination .current { background: var(--pms-orange); color: var(--pms-dunkel); }

/* ── Ohne Seitenleiste auf allen Seiten (wie die Startseite) ───────── */
.secondary { display: none !important; }
#primary { width: 100% !important; max-width: 100% !important; flex: 1 1 100% !important; float: none !important; }

/* Blog-Übersicht, Kategorien, Suche: Beiträge als Kacheln in zwei Spalten */
body.blog #primary > .theiaStickySidebar, body.blog #primary:not(:has(.theiaStickySidebar)),
body.archive #primary > .theiaStickySidebar, body.archive #primary:not(:has(.theiaStickySidebar)),
body.search #primary > .theiaStickySidebar, body.search #primary:not(:has(.theiaStickySidebar)) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start;
}
body.blog #primary .theiaStickySidebar > :not(article),
body.archive #primary .theiaStickySidebar > :not(article),
body.search #primary .theiaStickySidebar > :not(article) { grid-column: 1 / -1; }
body.blog .post-wrapper, body.archive .post-wrapper, body.search .post-wrapper { margin: 0 !important; height: 100%; }
body.blog .entry-title, body.archive .entry-title, body.search .entry-title { font-size: clamp(22px, 2vw, 28px) !important; line-height: 1.2; }

/* Einzelbeitrag und normale Seiten: lesbare Spaltenbreite in der Mitte */
body.single-post .post-wrapper,
body.page:not(.home):not(.pms-voll) .post-wrapper,
body.page:not(.home):not(.pms-voll) .page-header {
    max-width: 880px; margin-left: auto !important; margin-right: auto !important;
}
@media (max-width: 782px) {
    body.blog #primary > .theiaStickySidebar, body.archive #primary > .theiaStickySidebar, body.search #primary > .theiaStickySidebar,
    body.blog #primary, body.archive #primary, body.search #primary { grid-template-columns: 1fr; }
}

/* ── Volle Breite für das Kommittenten-Portal und den Login (Klasse pms-voll aus functions.php) ── */
body.pms-voll .secondary { display: none !important; }
body.pms-voll #primary { width: 100% !important; max-width: 100% !important; flex: 1 1 100% !important; float: none !important; }
body.pms-voll .post-wrapper { overflow: visible !important; padding-left: 0; padding-right: 0; }
body.pms-voll .entry-content, body.pms-voll #primary, body.pms-voll #primary .theiaStickySidebar { max-width: none; overflow: visible !important; }
/* Das Portal bricht sonst selbst aus der Spalte aus (volle Fensterbreite) und wird links/rechts abgeschnitten –
   in der breiten Spalte soll es genau die Spaltenbreite nehmen */
body.pms-voll .entry-content > [class*="csskp"] {
    width: auto !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important;
    left: auto !important; right: auto !important; transform: none !important; box-sizing: border-box;
}
@media (max-width: 600px) {
    body.pms-voll #primary { padding-left: 6px !important; padding-right: 6px !important; }
    body.pms-voll .post-wrapper { border-radius: 0; border-left: 0; border-right: 0; }
}

/* ── Startseite ─────────────────────────────────────────────────────── */
body.home .page-header,
body.home .post-thumbnail { display: none; }
body.home .secondary { display: none !important; }
body.home #primary { width: 100% !important; max-width: 100% !important; flex: 1 1 100% !important; float: none !important; }
body.home .post-wrapper { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* dunkles Band = erster Block der Startseite */
body.home .entry-content > .wp-block-group:first-child {
    background: radial-gradient(ellipse at top, var(--pms-dunkel-2) 0%, var(--pms-dunkel) 70%);
    color: #e9e7e3; border-radius: 10px; padding: 64px 32px 56px; margin: 0 0 40px; text-align: center;
    border-bottom: 4px solid var(--pms-orange);
}
body.home .entry-content > .wp-block-group:first-child h1 {
    color: #fff; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.12; text-transform: uppercase;
    letter-spacing: .02em; max-width: 900px; margin: 0 auto 18px;
}
body.home .entry-content > .wp-block-group:first-child p {
    color: #d4d2ce; max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.7;
}
.pms-knoepfe { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.pms-knopf {
    display: inline-block; background: var(--pms-orange); color: var(--pms-dunkel) !important;
    font-family: var(--pms-plakat); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
    text-decoration: none !important; padding: 14px 28px; border-radius: 5px;
}
.pms-knopf:hover { background: var(--pms-orange-dunkel); }
.pms-knopf-zweit { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px var(--pms-orange); }
.pms-knopf-zweit:hover { background: rgba(243,154,30,.15); }

/* Kacheln Kaufen / Verkaufen */
body.home .entry-content .wp-block-columns { gap: 28px; margin-bottom: 40px; }
body.home .entry-content .wp-block-column {
    background: #fff; border: 1px solid var(--pms-linie); border-top: 4px solid var(--pms-orange);
    border-radius: 8px; padding: 26px 26px 22px; box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
body.home .entry-content .wp-block-column img { border-radius: 6px; }
body.home .entry-content .wp-block-column h2 { text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; }
body.home .entry-content > .wp-block-group:not(:first-child) {
    background: #fff; border: 1px solid var(--pms-linie); border-radius: 8px; padding: 32px;
}

/* Neu im Blog */
.pms-neu { margin: 48px 0 8px; }
.pms-neu h2 { text-transform: uppercase; letter-spacing: .05em; border-left: 5px solid var(--pms-orange); padding-left: 12px; }
.pms-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.pms-karte {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pms-linie); border-radius: 8px;
    overflow: hidden; text-decoration: none !important; color: var(--pms-text) !important; transition: box-shadow .15s;
}
.pms-karte:hover { box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.pms-karte-bild { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--pms-dunkel); }
.pms-karte-text { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.pms-karte-datum { font-size: 13px; color: var(--pms-leise); }
.pms-karte-titel { font-family: var(--pms-plakat); font-weight: 600; font-size: 21px; line-height: 1.2; }
.pms-karte-auszug { font-size: 15px; line-height: 1.55; color: #3b3b40; }
.pms-alle { text-align: right; margin-top: 14px; }

/* ── Fuß ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--pms-dunkel); padding: 0; }
.site-footer .copyright, .site-footer .site-info { display: none; }
#toTop.go-to-top { background: var(--pms-orange); color: var(--pms-dunkel); }
.pms-fuss { background: var(--pms-dunkel); color: #cfcdc8; border-top: 3px solid var(--pms-orange); }
.pms-fuss-innen {
    max-width: var(--pms-breite); margin: 0 auto; padding: 32px 20px 26px;
    display: grid; grid-template-columns: 1fr 2fr; gap: 18px 32px; align-items: start;
}
.pms-fuss-name strong {
    display: block; font-family: var(--pms-plakat); font-size: 22px; letter-spacing: .05em; text-transform: uppercase; color: #fff;
}
.pms-fuss-name span { font-size: 14px; }
.pms-fuss-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.pms-fuss-links a { color: #e9e7e3; text-decoration: none; font-size: 15px; }
.pms-fuss-links a:hover { color: var(--pms-orange); }
.pms-fuss-klein { grid-column: 1 / -1; font-size: 13px; color: #8d8b87; border-top: 1px solid #2f3137; padding-top: 14px; }

/* ── Medien-Wiki (05.11.2026, CSS Tools) – kompakt, leere Bereiche klein ───── */
.wiki-root-lead, .wiki-cat-lead { font-size: 16px; line-height: 1.55; color: var(--pms-text); margin: 0 0 6px; }
.wiki-root-stat { display: inline-block; font-size: 13px; color: var(--pms-leise); margin: 0 0 14px; }
.wiki-breadcrumb { font-size: 13px; color: var(--pms-leise); margin: 0 0 10px; }
.wiki-breadcrumb a { color: var(--pms-leise); }
.wiki-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 14px 0 24px; align-items: start; }
.wiki-cat-card {
    background: #fff; border: 1px solid var(--pms-linie); border-top: 3px solid var(--pms-orange);
    border-radius: 6px; padding: 12px 16px 14px;
}
.wiki-cat-card > p { font-size: 14px; line-height: 1.45; color: var(--pms-leise); margin: 6px 0 10px; }
.wiki-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wiki-cat-head h2 { font-size: 20px; margin: 0; line-height: 1.2; }
.wiki-cat-head h2 a { color: var(--pms-text); text-decoration: none; }
.wiki-cat-head h2 a:hover { color: var(--pms-orange-dunkel); }
.wiki-cat-count { font-size: 12px; white-space: nowrap; color: var(--pms-leise); background: var(--pms-creme); border-radius: 999px; padding: 1px 9px; }
.wiki-cat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.wiki-cat-tags a {
    font-size: 13px; line-height: 1.3; text-decoration: none; color: var(--pms-text);
    background: var(--pms-creme); border: 1px solid var(--pms-linie); border-radius: 999px; padding: 3px 10px;
}
.wiki-cat-tags a:hover { border-color: var(--pms-orange); color: var(--pms-orange-dunkel); }
.wiki-cat-more { font-size: 13px; font-weight: 600; text-decoration: none; }
/* Bereiche ohne Einträge: ans Ende, klein, ohne Beschreibung */
.wiki-cat-card.leer { order: 2; border-top-color: var(--pms-linie); padding: 8px 14px; background: var(--pms-creme); }
.wiki-cat-card.leer .wiki-cat-head h2 { font-size: 16px; }
.wiki-cat-card.leer .wiki-cat-head h2 a { color: var(--pms-leise); }
.wiki-cat-card.leer > p { display: none; }
.wiki-cat-card.leer > p.wiki-cat-leer { display: block; font-size: 12px; margin: 2px 0 0; color: var(--pms-leise); }
/* Rubrik-Seite: Buchstaben-Register in Spalten */
.entry-content h2[id^="buchstabe-"] { font-size: 18px; margin: 18px 0 6px; padding-bottom: 2px; border-bottom: 1px solid var(--pms-linie); }
.wiki-hub-liste { columns: 3 220px; column-gap: 28px; list-style: none; margin: 0 0 10px; padding: 0; }
.wiki-hub-liste li { break-inside: avoid; margin: 0 0 4px; font-size: 15px; }
.wiki-hub-liste a { text-decoration: none; }
.wiki-hub-kategorien { margin-top: 18px; font-size: 14px; }
/* Suche */
.wiki-search { position: relative; max-width: 460px; margin: 0 0 14px; }
.wiki-search input { width: 100%; padding: 8px 12px; border: 1px solid var(--pms-linie); border-radius: 6px; font-size: 15px; background: #fff; }
.wiki-search [hidden] { display: none; }
.wiki-search > div { position: absolute; z-index: 20; left: 0; right: 0; background: #fff; border: 1px solid var(--pms-linie); border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.wiki-search > div a { display: block; padding: 6px 12px; text-decoration: none; color: var(--pms-text); }
.wiki-search > div a:hover { background: var(--pms-creme); }
.wiki-search-kat { font-size: 12px; color: var(--pms-leise); margin-left: 6px; }
/* Einzelner Eintrag */
.wiki-entry { font-size: 16px; line-height: 1.6; }
.wiki-entry h2 { font-size: 22px; margin: 26px 0 8px; padding-bottom: 3px; border-bottom: 2px solid var(--pms-linie); }
.wiki-entry h3 { font-size: 18px; margin: 18px 0 6px; }
.wiki-entry p { margin: 0 0 12px; }
.wiki-entry ul { margin: 0 0 12px 1.2em; }
.wiki-entry table { border-collapse: collapse; width: 100%; margin: 6px 0 16px; font-size: 14px; background: #fff; }
.wiki-entry th { background: var(--pms-dunkel); color: #fff; text-align: left; font-weight: 600; }
.wiki-entry th, .wiki-entry td { border: 1px solid var(--pms-linie); padding: 6px 9px; vertical-align: top; }
.wiki-entry tr:nth-child(even) td { background: var(--pms-creme); }
.wiki-alias { color: var(--pms-leise); font-size: 14px; }
.wiki-cover-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.wiki-lightbox:target { display: flex !important; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); align-items: center; justify-content: center; }
.wiki-lightbox:target img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }
.wiki-faq h3 { font-size: 17px; margin: 14px 0 4px; }
.wiki-cta { background: var(--pms-creme); border: 1px solid var(--pms-linie); border-left: 4px solid var(--pms-orange); border-radius: 6px; padding: 10px 14px; margin: 18px 0 10px; }
.wiki-quellen { font-size: 13px; color: var(--pms-leise); border-top: 1px solid var(--pms-linie); margin-top: 20px; padding-top: 8px; }
.wiki-nachbarn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--pms-linie); }
.wiki-nachbarn a { text-decoration: none; }
@media (max-width: 600px) {
    .wiki-cat-grid { grid-template-columns: 1fr; }
    .wiki-entry table { display: block; overflow-x: auto; }
}

/* ── Blog-Bilder (07.11.2026, CSS Tools) ──────────────────────────────────── */
/* Übersicht: Bild klein links, der Text fließt drumherum (Aeonblog: .featured-wrapper + .blog-content) */
body.blog article.post-wrapper, body.archive article.post-wrapper, body.search article.post-wrapper { display: block !important; }
body.blog .featured-wrapper, body.archive .featured-wrapper, body.search .featured-wrapper {
    float: left !important; width: 40% !important; max-width: 190px; margin: 4px 16px 8px 0 !important; padding: 0 !important;
}
body.blog .featured-wrapper .post-thumbnail, body.archive .featured-wrapper .post-thumbnail, body.search .featured-wrapper .post-thumbnail {
    float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; text-align: left;
}
body.blog .featured-wrapper img, body.archive .featured-wrapper img, body.search .featured-wrapper img {
    display: block; width: 100% !important; height: auto !important; max-height: none !important; border-radius: 4px;
}
body.blog .blog-content, body.archive .blog-content, body.search .blog-content { float: none !important; width: auto !important; display: block !important; margin: 0 !important; }
body.blog .entry-footer, body.archive .entry-footer, body.search .entry-footer { clear: both; }

/* Beitrag: Bilder im Text begrenzt, Klick öffnet groß (Skript in functions.php) */
body.single-post .entry-content img:not(.emoji):not(.wp-smiley) { width: auto !important; max-width: 100%; max-height: 360px; height: auto !important; cursor: zoom-in; }
/* Emojis (👉 usw.) macht WordPress zu Bildern – die bleiben textgroß */
body.single-post .entry-content img.emoji, body.single-post .entry-content img.wp-smiley { width: 1em !important; height: 1em !important; max-height: 1em; display: inline !important; vertical-align: -0.1em; cursor: auto; }
body.single-post .entry-content figure, body.single-post .entry-content p:has(> img:only-child), body.single-post .entry-content p:has(> a:only-child > img) { text-align: center; }
body.single-post .entry-content figure img { display: inline-block; }
.pms-zoom { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.pms-zoom img { max-width: 94vw; max-height: 94vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* ── Handy und Tablet ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pms-karten { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    body.home .entry-content > .wp-block-group:first-child { padding: 40px 18px 36px; }
    body.home .entry-content > .wp-block-group:first-child p { font-size: 16px; }
    .pms-knopf { width: 100%; text-align: center; }
    .pms-karten { grid-template-columns: 1fr; }
    .pms-fuss-innen { grid-template-columns: 1fr; }
    .pms-fuss-links { justify-content: flex-start; }
}
