/* mein-biss 2026 – Ergänzungen zum Child-Theme (Farben, Schriften, Abstände stehen in theme.json) */
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.skip-link:focus { position: fixed; left: 10px; top: 10px; z-index: 100000; background: #ffbf47; color: #000; padding: 10px 16px; clip: auto; width: auto; height: auto; }

/* Kopf: oben weiß mit Original-Logo, darunter Menüleiste */
.mb-kopf { position: relative; z-index: 50; background: #fff; }   /* nicht mitlaufend: die Billboard-Anzeige gehört zum Kopf und darf nicht am Bildschirm kleben */
.mb-kopf-oben { padding-top: 8px; padding-bottom: 8px; }
.mb-kopf-zeile { gap: 16px; }
.mb-logo { display: block; flex: 1; min-width: 0; }
.mb-logo img { display: block; width: 100%; max-width: 1170px; height: auto; }
.mb-kopf-nav { padding-top: 4px; padding-bottom: 4px; }
.mb-kopf-nav .wp-block-navigation a { padding: 10px 12px; border-radius: 6px; text-decoration: none; }
.mb-kopf-nav .wp-block-navigation a:hover { background: rgba(255,255,255,.16); }
.mb-kopf-nav .wp-block-navigation .wp-block-navigation__submenu-container { background: #0d3b56; color: #fff; border: 0; padding: 6px; }
.mb-kopf-nav .wp-block-navigation__responsive-container-open { color: #fff; }
@media (max-width: 680px) {
  .mb-logo img { height: 56px; width: 100%; object-fit: cover; object-position: right center; max-width: none; }
}

/* Anzeigen (Platzhalter nur für Redakteure, solange kein Code hinterlegt ist) */
.mb-anzeige { position: relative; margin: 26px auto; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mb-anzeige::before { content: "Anzeige"; position: absolute; top: 0; left: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6b6b6b; line-height: 1; }
.mb-anzeige > * { margin-top: 14px; }
.mb-anzeige-platzhalter { background: repeating-linear-gradient(45deg, #f7f7f7, #f7f7f7 10px, #f0f0f0 10px, #f0f0f0 20px); border: 1px dashed #c4c4c4; color: #666; font-size: 13px; text-align: center; padding: 0 10px; }
.mb-anzeige-leaderboard { max-width: 970px; min-height: 104px; }
.mb-anzeige-rectangle { width: 300px; min-height: 264px; }
.mb-anzeige-halfpage { width: 300px; min-height: 614px; }
.mb-anzeige-infeed, .mb-anzeige-inarticle { width: 100%; min-height: 174px; }
@media (max-width: 760px) { .mb-anzeige-leaderboard { max-width: 336px; min-height: 114px; } .mb-anzeige-halfpage { display: none; } }

/* Startseite: Aufmacher */
.mb-aufmacher { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; margin-top: 16px; }
.mb-aufmacher .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.mb-aufmacher-stapel .wp-block-post-template { display: grid; grid-template-rows: repeat(3, 1fr); gap: 20px; height: 100%; }
.mb-aufmacher-stapel .wp-block-post-template > li, .mb-aufmacher-stapel .mb-karte { height: 100%; margin: 0; }
.mb-karte-gross, .mb-karte { border-radius: 4px; overflow: hidden; }
.mb-karte-gross .wp-block-cover__inner-container, .mb-karte .wp-block-cover__inner-container { background: linear-gradient(transparent, rgba(0,0,0,.85)); padding: 18px 20px 14px; margin: 0 -1em -1em; width: calc(100% + 2em); }
.mb-karte-gross .wp-block-cover__image-background, .mb-karte .wp-block-cover__image-background { transition: transform .3s; }
.mb-karte-gross:hover .wp-block-cover__image-background, .mb-karte:hover .wp-block-cover__image-background { transform: scale(1.03); }
.mb-karte-gross .wp-block-post-title, .mb-karte .wp-block-post-title { margin: 4px 0; }
.mb-karte-gross .wp-block-post-title a, .mb-karte .wp-block-post-title a { color: #fff; text-decoration: none; }
.mb-karte-gross .wp-block-post-title a::after, .mb-karte .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.mb-karte-gross .wp-block-post-excerpt { color: #fff; margin: 0; }
.mb-karte-gross .wp-block-post-excerpt__more-link { display: none; }
.mb-marke { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mb-marke a { display: inline-block; background: #c2410c; color: #fff !important; padding: 3px 8px; border-radius: 4px; text-decoration: none; margin: 0 4px 4px 0; position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .mb-karte-gross .wp-block-cover__image-background, .mb-karte .wp-block-cover__image-background { transition: none; } }

/* Abschnitte */
.mb-abschnitt { margin-top: 44px; }
.mb-abschnitt-kopf { border-bottom: 2px solid #dde3e8; margin-bottom: 18px; }
.mb-abschnitt-kopf h2, .mb-abschnitt-kopf p { margin: 0 0 6px; }
.mb-abschnitt .wp-block-post-template.is-layout-grid { gap: 22px; }
.mb-abschnitt .wp-block-post-title { margin-top: 10px; }
.mb-abschnitt .wp-block-post-title a { text-decoration: none; }
.mb-abschnitt .wp-block-post-title a:hover { text-decoration: underline; }
.mb-rg-karte { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.mb-rg-karte img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 10px; background: #f4f7f9; }
.mb-rg-karte.ohne-bild { padding: 12px 0; border-top: 3px solid #0f7a63; }
.mb-rg-titel { font-weight: 700; font-size: 1.15rem; color: #0d3b56; line-height: 1.25; }
.mb-rg-karte:hover .mb-rg-titel { text-decoration: underline; }
.mb-rg-text { color: #4f5b64; font-size: .95rem; margin-top: 4px; }
/* wischbare Reihe */
.mb-reihe { position: relative; }
.mb-reihe-knoepfe { position: absolute; top: -58px; right: 130px; display: flex; gap: 8px; }
.mb-reihe-knoepfe button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #0d3b56; background: #fff; color: #0d3b56; font-size: 24px; line-height: 1; cursor: pointer; }
.mb-reihe-knoepfe button:disabled { opacity: .35; cursor: default; }
.mb-reihe-liste { list-style: none; margin: 0; padding: 4px 2px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 2px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.mb-reihe-liste > li { scroll-snap-align: start; }
.mb-rg-alle { display: flex; height: 100%; min-height: 200px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 4px; background: #0d3b56; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.mb-rg-alle span:last-child { font-size: 1.8rem; }
/* Übersichtsseite /ratgeber/ */
.mb-rg-sprung, .mb-rg-thema { max-width: var(--wp--style--global--wide-size, 1200px) !important; }
.mb-rg-weitere { margin: 16px 0 0; line-height: 1.9; }
.mb-rg-weitere span { color: #9aa6ae; }
.mb-rg-sprung ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mb-rg-sprung a { display: inline-block; padding: 4px 0; margin-right: 18px; font-weight: 600; text-decoration: none; border-bottom: 2px solid #0d3b56; }
.mb-rg-sprung a span { color: #4f5b64; }
.mb-rg-thema { margin-top: 36px; scroll-margin-top: 16px; }
.mb-rg-thema h2 { border-bottom: 2px solid #dde3e8; padding-bottom: 6px; }
.mb-rg-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }

/* Artikel */
.mb-artikel-raster { gap: 40px; margin-top: 24px; }
.mb-pfad a { color: #4f5b64; }
.mb-artikel .wp-block-post-content p, .mb-artikel .wp-block-post-content li { max-width: 72ch; }
.mb-artikel .wp-block-post-content img { height: auto; }
.mb-seitenleiste { display: flex; flex-direction: column; gap: 24px; }
.mb-klebend { position: sticky; top: 24px; }
.admin-bar .mb-klebend { top: 56px; }
.mb-kasten { border-top: 3px solid #0d3b56; padding: 12px 0 0; }
.mb-kasten h2 { font-size: 1.15rem; margin: 0 0 8px; }
.mb-kasten ul { margin: 0; padding-left: 18px; }
.mb-melden { border-top: 1px solid #dde3e8; border-bottom: 1px solid #dde3e8; padding: 14px 0; margin-top: 24px; }
.mb-melden summary { cursor: pointer; list-style: none; }
.mb-melden summary::-webkit-details-marker { display: none; }
.mb-melden-link { color: #145a80; text-decoration: underline; text-underline-offset: 3px; }
.mb-melden[open] summary { margin-bottom: 12px; }
.mb-schlagwoerter { color: #4f5b64; }

/* Fuß */
.mb-fuss a { color: #fff; }
.mb-fuss-liste { list-style: none; padding: 0; line-height: 2; }

@media (max-width: 960px) {
  .mb-aufmacher { grid-template-columns: 1fr; }
  .mb-aufmacher-stapel .wp-block-post-template { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .mb-aufmacher-stapel .mb-karte { min-height: 170px !important; }
  .mb-reihe-liste { grid-auto-columns: calc((100% - 2 * 18px) / 2.6); }
  .mb-klebend { position: static; }
}
@media (max-width: 680px) {
  .mb-aufmacher-gross .mb-karte-gross { min-height: 320px !important; }
  .mb-aufmacher-stapel .wp-block-post-template { grid-template-columns: 1fr; }
  .mb-reihe-liste { grid-auto-columns: 78%; }
  .mb-reihe-knoepfe { display: none; }
}

/* Vollbild-Suche */
.mb-suchknopf { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #ffbf47; color: #1c1c1c; cursor: pointer; }
.mb-suchknopf:hover { background: #f5a623; }
.mb-suche-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13, 59, 86, .97); color: #fff; }
.mb-suche-dialog::backdrop { background: rgba(0,0,0,.4); }
html.mb-suche-offen { overflow: hidden; }
.mb-suche-innen { position: relative; max-width: 860px; margin: 0 auto; padding: 14vh 24px 40px; }
.mb-suche-innen h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.4rem); margin: 0 0 20px; }
.mb-suche-innen form { display: flex; gap: 10px; }
.mb-suche-innen input[type=search] { flex: 1; min-width: 0; min-height: 64px; padding: 0 20px; border: 0; border-radius: 4px; font: inherit; font-size: clamp(1.1rem, 3vw, 1.5rem); color: #1c2329; }
.mb-suche-innen form button { min-height: 64px; padding: 0 24px; border: 0; border-radius: 4px; background: #ffbf47; color: #1c1c1c; font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.mb-suche-tipp { color: #d6e4ec; margin: 14px 0 26px; }
.mb-suche-tipp a, .mb-suche-schnell a { color: #fff; }
.mb-suche-schnell { display: flex; flex-wrap: wrap; gap: 10px; }
.mb-suche-schnell a { padding: 4px 0; margin-right: 14px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
.mb-suche-schnell a:hover { background: rgba(255,255,255,.14); }
.mb-suche-zu { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
@media (max-width: 680px) { .mb-suche-innen { padding-top: 80px; } .mb-suche-innen form { flex-direction: column; } }

/* Formulare (Änderung melden, Kontakt) */
.mb-form { max-width: 640px; }
.mb-form p { margin: 0 0 14px; }
.mb-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.mb-form input[type=text], .mb-form input[type=email], .mb-form select, .mb-form textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px; border: 1px solid #8a959c; border-radius: 3px; font: inherit; background: #fff; color: #1c2329; }
.mb-form textarea { min-height: 120px; resize: vertical; }
.mb-form button { min-height: 46px; padding: 0 20px; border: 0; border-radius: 3px; background: #0d3b56; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.mb-form button:hover { background: #145a80; }
.mb-pflicht { font-weight: 400; color: #4f5b64; font-size: .9em; }
.mb-form-hinweis { font-size: .9rem; color: #4f5b64; }
.mb-form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mb-form-meldung { padding: 10px 0; font-weight: 600; border-top: 3px solid; }
.mb-form-ok { border-color: #0f7a63; color: #0b5e4c; }
.mb-form-fehler { border-color: #b42318; color: #b42318; }
