/* =====================================================================
   BeckenbodenRatgeber.de – Stylesheet
   Angelehnt an das bisherige WordPress-Theme „beckenboden“
   (Magenta-Menüleiste, Türkis-Fußzeile, gerahmte Inhaltskästen),
   modernisiert für Handy & Tablet. Nur Systemschriften – nichts Externes.
   ===================================================================== */

:root {
    --magenta: #b21292;
    --magenta-dunkel: #8c0e73;
    --magenta-hell: #fbeef8;
    --tuerkis: #09b2ac;
    --tuerkis-dunkel: #067f7b;
    --gruen: #669900;
    --text: #222;
    --grau: #666;
    --linie: #e3c6dd;
    --hintergrund: #cccccc;
    --radius: 6px;
    --schrift: Verdana, "DejaVu Sans", Geneva, Helvetica, Arial, sans-serif;
    --schrift-titel: Geneva, "Segoe UI", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    color: var(--text);
    background: var(--hintergrund);
    font-family: var(--schrift);
    font-size: 1rem;
    line-height: 1.65;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--magenta); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--magenta-dunkel); }
:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 2px; }

h1, h2, h3, h4 {
    font-family: var(--schrift-titel);
    color: var(--magenta);
    font-weight: bold;
    letter-spacing: .03em;
    line-height: 1.3;
    margin: 1.2em 0 .5em;
}
h1 { font-size: 1.45rem; margin-top: .2em; }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 1rem; }

.sr {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.sprungmarke {
    position: absolute; left: -999px; top: 0;
    background: #fff; padding: .5em 1em; z-index: 100;
}
.sprungmarke:focus { left: 1em; }

/* ---------- Rahmen ---------- */

#wrap {
    background: #fff;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 3%;
    min-height: 100vh;
}

/* ---------- Kopf ---------- */

#kopf {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .6rem 0;
}
#kopf .logo { display: block; line-height: 0; flex: 0 0 auto; }
#kopf .claim {
    margin: 0;
    color: var(--grau);
    font-size: .9rem;
    font-style: italic;
}
.menue-knopf { display: none; }

/* ---------- Hauptmenü (pinke Leiste) ---------- */

#stirn {
    background: var(--magenta);
    border-bottom: 3px solid var(--gruen);
    border-radius: var(--radius) var(--radius) 0 0;
}
#stirn ul {
    list-style: none;
    margin: 0;
    padding: 0 .4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#stirn li { margin: 0; }
#stirn a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: .65rem .55rem;
    font-size: .88rem;
    white-space: nowrap;
}
#stirn a:hover, #stirn a:focus, #stirn .aktiv > a {
    background: var(--magenta-dunkel);
    text-decoration: underline;
}

/* ---------- Brotkrumen ---------- */

#breadcrumbs {
    padding: .5rem 0 0;
    color: var(--grau);
    font-size: .8rem;
}
#breadcrumbs a { color: var(--grau); }
#breadcrumbs span[aria-hidden] { margin: 0 .25rem; }

/* ---------- Spalten ---------- */

#spalten {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.2rem;
    padding: 1rem 0 2rem;
}

/* ---------- Kästen / Beiträge ---------- */

.p_intro {
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--magenta);
    border-radius: var(--radius);
    margin-bottom: 1.6rem;
    background: #fff;
}
.p_intro::after { content: ""; display: block; clear: both; }

.teaser h2 { font-size: 1.1rem; margin: 0 0 .4rem; }
.teaser h2 a { text-decoration: none; }
.teaser h2 a:hover { text-decoration: underline; }
.teaser p { margin: 0; }
.teaser-bild {
    float: left;
    margin: .2rem 1rem .4rem 0;
    border-radius: 4px;
    width: 100px; height: 100px;
    object-fit: cover;
}
.weiterlesen { white-space: nowrap; font-weight: bold; }

.listen-titel { margin: .2rem 0 1rem; }
.kategorie-intro { margin-top: 0; color: #444; }

.beitrag h1 { margin-bottom: .8rem; }
.eintrag > :first-child { margin-top: 0; }
.eintrag ul, .eintrag ol { padding-left: 1.4rem; }
.eintrag li { margin: .25rem 0; }
.eintrag li h3 { margin: .2rem 0; font-size: 1rem; }
.eintrag table { border-collapse: collapse; width: 100%; }
.eintrag td, .eintrag th { border: 1px solid var(--linie); padding: .4rem .6rem; vertical-align: top; }

figure.bild { margin: 1rem 0 1.4rem; }
figure.bild img { display: block; border-radius: 4px; }
figcaption, .wp-caption-text { font-style: italic; font-size: .85rem; color: var(--grau); margin-top: .3rem; }

.alignleft  { float: left;  margin: .3rem 1.5rem .8rem 0; }
.alignright { float: right; margin: .3rem 0 .8rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignnone { float: none; }

.hinweis-box, .tipp {
    background: var(--magenta-hell);
    border-left: 4px solid var(--magenta);
    padding: .8rem 1rem;
    margin: 1.2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.hinweis-box > :first-child, .tipp > :first-child { margin-top: 0; }
.hinweis-box > :last-child, .tipp > :last-child { margin-bottom: 0; }
.warnhinweis {
    background: #fff7e6;
    border-left: 4px solid #e0a000;
    padding: .8rem 1rem;
    margin: 1.2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.anz {
    text-align: right;
    color: var(--grau);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 .5rem;
}

.inhaltsverzeichnis {
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: var(--radius);
    padding: .8rem 1.2rem;
    margin: 1rem 0 1.4rem;
    font-size: .92rem;
}
.inhaltsverzeichnis strong { color: var(--magenta); }
.inhaltsverzeichnis ol { margin: .4rem 0 0; }

.vergleich { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1rem 0 1.4rem; }
.vergleich th { background: var(--magenta); color: #fff; text-align: left; }
.vergleich th, .vergleich td { padding: .5rem .6rem; border: 1px solid var(--linie); vertical-align: top; }
.vergleich tr:nth-child(even) td { background: #fdf6fb; }
.tabelle-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.schlagwoerter { font-size: .85rem; margin: 1.6rem 0 0; }
.schlagwoerter span { color: var(--grau); margin-right: .3rem; }
.schlagwoerter a {
    display: inline-block;
    margin: .15rem .2rem .15rem 0;
    padding: .1rem .55rem;
    border: 1px solid var(--linie);
    border-radius: 999px;
    text-decoration: none;
}
.schlagwoerter a:hover { background: var(--magenta-hell); }

/* Vor / zurück innerhalb einer Kategorie (z. B. Übung 1 → Übung 2) */
.artikel-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--linie);
}
.artikel-nav a {
    flex: 1 1 50%;
    text-decoration: none;
    font-size: .9rem;
    padding: .6rem .8rem;
    border: 1px solid var(--linie);
    border-radius: var(--radius);
}
.artikel-nav a:hover { background: var(--magenta-hell); }
.artikel-nav span { display: block; font-size: .78rem; color: var(--grau); text-transform: uppercase; letter-spacing: .05em; }
.artikel-nav .weiter { text-align: right; margin-left: auto; }

/* „Neues im Ratgeber“ / verwandte Beiträge */
.new_article_box { font-size: .9rem; line-height: 1.45; }
.new_article_box h2 { margin-top: 0; font-size: 1.05rem; }
.new_article_box ul { list-style: none; margin: 0; padding: 0; }
.new_article_box li { padding: .55rem 0; border-top: 1px dashed var(--linie); }
.new_article_box li:first-child { border-top: 0; }
.new_article_box li a { font-weight: bold; }
.new_article_box li img { float: left; margin: .15rem .7rem 0 0; border-radius: 3px; }
.new_article_box li::after { content: ""; display: block; clear: both; }

/* Blättern */
.blaettern { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 2rem; }
.blaettern a, .blaettern span {
    min-width: 2.4rem;
    text-align: center;
    padding: .35rem .7rem;
    border: 1px solid var(--magenta);
    border-radius: var(--radius);
    text-decoration: none;
}
.blaettern .aktiv { background: var(--magenta); color: #fff; }

/* ---------- Startseite ---------- */

.start-intro {
    background: linear-gradient(135deg, var(--magenta-hell), #e9f8f7);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem .6rem;
    margin-bottom: 1.8rem;
}
.start-intro h1 { margin-top: 0; font-size: 1.5rem; }
.start-kacheln {
    list-style: none;
    margin: 1.2rem 0 .8rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
}
.start-kacheln a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .15rem;
    height: 100%;
    padding: .9rem .5rem;
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, transform .15s;
}
.start-kacheln a:hover, .start-kacheln a:focus { border-color: var(--magenta); transform: translateY(-2px); }
.start-kacheln .icon { width: 36px; height: 36px; color: var(--magenta); margin-bottom: .2rem; }
.start-kacheln strong { color: var(--magenta); font-size: .95rem; overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }
.start-kacheln span { font-size: .78rem; color: var(--grau); }

/* ---------- Amazon-Anzeigenbox (nur Links, keine externen Inhalte) ---------- */

.amazon-box {
    margin: 2rem 0 .5rem;
    padding: 1rem 1.2rem 1.1rem;
    border: 1px solid #f0d7a8;
    background: #fffaf0;
    border-radius: var(--radius);
}
.amazon-box .anz { margin: 0; }
.amazon-titel { margin: .1rem 0 .8rem; font-size: 1.05rem; color: #7a4b00; }
.produkte { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.produkt {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #f3e3c3;
    border-radius: var(--radius);
    padding: .8rem;
}
.produkt-icon {
    flex: 0 0 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--magenta-hell);
    color: var(--magenta);
}
.produkt-icon .icon { width: 30px; height: 30px; }
.produkt-text { flex: 1; min-width: 0; }
.produkt h3 { margin: 0 0 .2rem; font-size: .98rem; }
.produkt h3 a { text-decoration: none; }
.produkt p { margin: 0 0 .5rem; font-size: .88rem; line-height: 1.5; }
.knopf {
    display: inline-block;
    background: #ff9900;
    color: #111;
    font-size: .85rem;
    font-weight: bold;
    text-decoration: none;
    padding: .4rem .9rem;
    border-radius: 999px;
}
.knopf:hover, .knopf:focus { background: #f08800; color: #111; }

/* Produktvorstellungen in Hilfsmittel-Artikeln */
.produkt-karte {
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
}
.produkt-karte h3 { margin-top: 0; }
.pro-contra { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .9rem; }
.pro-contra ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.pro-contra .pro strong { color: #2f7d32; }
.pro-contra .contra strong { color: #b23b12; }

/* Literaturliste */
.literatur .buch {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid var(--linie);
}
.literatur .buch:first-child { border-top: 0; }
.literatur .buch h2 { margin-top: 0; font-size: 1.05rem; }
.literatur .buch p { margin: .3rem 0; }
.buch-icon {
    flex: 0 0 90px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--magenta-hell);
    color: var(--magenta);
    border-radius: 4px;
}
.buch-icon .icon { width: 44px; height: 44px; }
.buch-bild { flex: 0 0 90px; width: 90px; border-radius: 4px; }

/* Schlagwortwolke */
.schlagwortwolke { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.schlagwortwolke a {
    display: inline-block;
    padding: .25rem .7rem;
    border: 1px solid var(--linie);
    border-radius: 999px;
    text-decoration: none;
    font-size: .9rem;
}
.schlagwortwolke a:hover { background: var(--magenta-hell); }
.schlagwortwolke span { color: var(--grau); font-size: .8em; }

/* ---------- Seitenleiste ---------- */

#navigation { font-size: .9rem; }
#navigation .kasten {
    border: 1px solid #e6e6e6;
    border-top: 3px solid var(--tuerkis);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    margin-bottom: 1.2rem;
}
#navigation h2 { font-size: 1rem; margin: 0 0 .5rem; color: var(--tuerkis-dunkel); }
#navigation ul { margin: 0; padding-left: 1.1rem; list-style: square; color: var(--tuerkis); }
#navigation li { margin: .3rem 0; }
#navigation .themen > li > a { font-weight: bold; }
#navigation .themen ul { margin: .3rem 0 .5rem; font-size: .85rem; }
#navigation [aria-current] { color: var(--text); font-weight: bold; text-decoration: none; }
#navigation p { margin: 0 0 .5rem; }
.kasten-hilfsmittel { background: var(--magenta-hell); }

.suche { margin-bottom: 1.2rem; }
.suche label { display: block; font-weight: bold; margin-bottom: .3rem; color: var(--tuerkis-dunkel); }
.suche-zeile { display: flex; }
.suche input {
    flex: 1;
    min-width: 0;
    font: inherit;
    padding: .5rem .7rem;
    border: 1px solid #bbb;
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
}
.suche button {
    border: 0;
    background: var(--tuerkis);
    color: #fff;
    padding: 0 .9rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}
.suche button:hover { background: var(--tuerkis-dunkel); }
.suche .icon { width: 18px; height: 18px; display: block; }
.suche-gross { max-width: 520px; }
.suche-anzahl { color: var(--grau); }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fußzeile ---------- */

#footer {
    clear: both;
    background: var(--tuerkis);
    color: #f5f5f5;
    font-size: .8rem;
    padding: .8rem 3%;
    margin: 0 -3.2%;
    line-height: 1.5;
}
#footer a { color: #fff; }
#footer p { margin: .4rem 0; }
.fusslinks span { margin: 0 .4rem; }

/* =====================================================================
   Tablet & Handy
   ===================================================================== */

@media (max-width: 900px) {
    #spalten { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    #navigation { border-top: 3px solid var(--magenta); padding-top: 1rem; }
    #stirn ul { padding: 0 .2rem; }
    #stirn a { padding: .6rem .25rem; font-size: .76rem; }
}

@media (max-width: 700px) {
    body { font-size: .98rem; }
    #wrap { padding: 0 14px; }
    #footer { margin: 0 -14px; padding: .8rem 14px; }
    #kopf { justify-content: space-between; }
    #kopf .claim { display: none; }
    #kopf .logo img { width: 120px; height: auto; }

    .js .menue-knopf {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        font: inherit;
        font-weight: bold;
        color: #fff;
        background: var(--magenta);
        border: 0;
        border-radius: var(--radius);
        padding: .55rem .9rem;
        cursor: pointer;
    }
    .menue-strich, .menue-strich::before, .menue-strich::after {
        display: block;
        width: 18px;
        height: 2px;
        background: #fff;
        position: relative;
        transition: transform .2s;
    }
    .menue-strich::before, .menue-strich::after { content: ""; position: absolute; left: 0; }
    .menue-strich::before { top: -6px; }
    .menue-strich::after { top: 6px; }
    .menue-offen .menue-strich { background: transparent; }
    .menue-offen .menue-strich::before { transform: translateY(6px) rotate(45deg); }
    .menue-offen .menue-strich::after { transform: translateY(-6px) rotate(-45deg); }

    #stirn { border-radius: var(--radius); }
    #stirn ul { flex-direction: column; padding: .3rem 0; }
    #stirn a { padding: .7rem 1rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 1rem; }
    #stirn li:first-child a { border-top: 0; }
    .js #stirn { display: none; }
    .js .menue-offen #stirn, .js body.menue-offen #stirn { display: block; }

    .p_intro { padding: 1rem; }
    h1 { font-size: 1.3rem; }
    .start-intro { padding: 1rem 1rem .4rem; }
    .start-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .start-kacheln strong { font-size: .86rem; }
    .alignleft, .alignright { float: none; display: block; margin: .8rem auto; }
    .teaser-bild { width: 72px; height: 72px; }
    .pro-contra { grid-template-columns: 1fr; }
    .artikel-nav { flex-direction: column; }
    .artikel-nav .weiter { text-align: left; margin-left: 0; }
    .literatur .buch { gap: .8rem; }
    .buch-icon, .buch-bild { flex-basis: 64px; width: 64px; height: 86px; }
    .buch-bild { height: auto; }
}

@media print {
    body { background: #fff; }
    #stirn, #navigation, .menue-knopf, .amazon-box, .artikel-nav, .new_article_box, #breadcrumbs, .suche { display: none !important; }
    #spalten { display: block; }
    .p_intro { border: 0; padding: 0; }
    #footer { background: none; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
