/* =====================================================================
   Atem-Sprache-Stimme — Custom Grav Theme  (v4)
   ===================================================================== */

/* Lokale Schriften */
@font-face { font-family: 'Gentium Book Basic'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/gentium-book-basic-v16-latin-ext_latin-regular.woff2') format('woff2'),
         url('../fonts/gentium-book-basic-v16-latin-ext_latin-regular.woff') format('woff'); }
@font-face { font-family: 'Gentium Book Basic'; font-style: italic; font-weight: 400; font-display: swap;
    src: url('../fonts/gentium-book-basic-v16-latin-ext_latin-italic.woff2') format('woff2'),
         url('../fonts/gentium-book-basic-v16-latin-ext_latin-italic.woff') format('woff'); }
@font-face { font-family: 'Gentium Book Basic'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/gentium-book-basic-v16-latin-ext_latin-700.woff2') format('woff2'),
         url('../fonts/gentium-book-basic-v16-latin-ext_latin-700.woff') format('woff'); }
@font-face { font-family: 'Gentium Book Basic'; font-style: italic; font-weight: 700; font-display: swap;
    src: url('../fonts/gentium-book-basic-v16-latin-ext_latin-700italic.woff2') format('woff2'),
         url('../fonts/gentium-book-basic-v16-latin-ext_latin-700italic.woff') format('woff'); }

:root {
    --green: #0d854d;
    --green-dark: #085732;
    --green-light: #d8e9dd;        /* Menü-Band */
    --green-pale: #e7f1e9;          /* Karten-Band */
    --green-band: #c7e0d0;          /* Deko-Band unter Navigation */
    --orange: #e88a3b;
    --orange-dark: #cc6f1e;
    --text: #222;
    --muted: #555;
    --bg-overlay: #fff;
    --border: #d8dcd6;
    --max-w: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Gentium Book Basic', Georgia, serif;
    font-size: 1.05em;
    line-height: 1.55;
    color: var(--text);
    background: #f4f4f1;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover, a:focus { color: var(--green-dark); text-decoration: underline; }

h1,h2,h3,h4,h5,h6 {
    font-family: 'Gentium Book Basic', Georgia, serif;
    color: var(--green-dark);
    line-height: 1.25;
    margin: 1.4em 0 0.5em;
    font-weight: 700;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 0.9em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.3em; }

/* Body-BG mit Forst-Foto, fixiert */
.body-bg {
    position: fixed; inset: 0; z-index: -1;
    background: url('../images/DSC02060_n3.jpg') center top / cover no-repeat fixed;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Topbar (grün) ---------- */
.topbar {
    background: var(--green);
    color: #fff;
    font-size: 0.92em;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4em 1.25rem;
    flex-wrap: wrap; gap: 0.4em;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-contact .sep { margin: 0 0.5em; opacity: 0.7; }

/* ---------- Header (Logo + Name) – einheitlich auf allen Seiten ---------- */
.site-header {
    background: #fff;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 2em;
    padding: 1.25em 1.25rem;
    max-width: var(--max-w);
    margin: 0 auto;
}
.brand { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo {
    width: 220px;
    height: auto;
    max-width: 100%;
}
.brand-text {
    flex: 1 1 auto;
    color: var(--orange);
    text-align: left;
}
.brand-name {
    font-size: 2.1rem;
    font-weight: 400;
    color: var(--orange);
    line-height: 1.1;
    letter-spacing: 0.01em;
}
.brand-sub {
    font-size: 1.05rem;
    color: var(--orange);
    margin-top: 0.25em;
    font-style: normal;
}

/* ---------- Menü (hellgrünes Band) ---------- */
.nav-wrap {
    background: var(--green-light);
    border-top: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.primary-nav .nav-root {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 0;
    justify-content: center;
}
.primary-nav .nav-item { position: relative; margin: 0; }
.primary-nav .nav-item > a {
    display: block;
    padding: 0.85em 1.4em;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.primary-nav .nav-item.has-children > a::after {
    content: ' \25BE';
    font-size: 0.85em;
    margin-left: 0.3em;
    color: var(--green);
}
.primary-nav .nav-item.is-active > a,
.primary-nav .nav-item > a:hover,
.primary-nav .nav-item > a:focus {
    color: var(--green);
    border-bottom-color: var(--green);
}

.primary-nav .nav-sub {
    list-style: none; margin: 0; padding: 0.4em 0;
    position: absolute; top: 100%; left: 0;
    min-width: 260px;
    background: #fff;
    border-top: 3px solid var(--green);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 50;
    text-align: left;
}
.primary-nav .nav-item.has-children:hover .nav-sub,
.primary-nav .nav-item.has-children:focus-within .nav-sub {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-nav .nav-sub li { margin: 0; }
.primary-nav .nav-sub a {
    display: block; padding: 0.55em 1em;
    color: var(--text); font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    font-weight: 400;
}
.primary-nav .nav-sub a:hover, .primary-nav .nav-sub li.is-active a {
    background: var(--green); color: #fff;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55em;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.45em 0.7em;
    cursor: pointer;
    color: var(--green-dark);
    font-family: inherit;
    line-height: 1;
}
.nav-toggle-bars { display: block; }
.nav-toggle-bars span {
    display: block; width: 26px; height: 3px;
    background: var(--green-dark); margin: 5px 0;
    border-radius: 1px;
}
.nav-toggle-label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.nav-toggle:hover { border-color: var(--green); }
.nav-toggle:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.nav-toggle.is-open { background: var(--green-light); border-color: var(--green); }

/* ---------- Grüne Dekorationszeile unter Navigation (alle Seiten außer Home) ---------- */
.deco-band {
    height: 36px;
    background: url('../images/DSC02060_n3.jpg') center 60% / cover no-repeat;
    background-color: var(--green-band);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: inset 0 0 30px rgba(13,133,77,0.18);
}

/* ---------- Hero (stimmig sein) – nur auf Home ---------- */
.hero {
    background: url('../images/DSC02060_n3.jpg') center / cover no-repeat;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.hero-inner { padding: 2em 1.25rem; }
.hero-title {
    font-size: 6rem;
    color: #fff;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 2.2rem;
    color: #fff;
    margin: 0.3em 0 0;
    font-weight: 400;
}

/* ---------- Main ---------- */
.site-main {
    background: #fff;
    padding: 2em 0 3em;
}

/* Standard-Seite */
.page { max-width: 880px; margin: 0 auto; }
.page-title {
    color: #fff;
    background: var(--green);
    margin: 0 0 1.5em;
    padding: 0.8em 1.3em;
    font-size: 1.7rem;
    border-radius: 3px;
}
.page-content > :first-child { margin-top: 0; }
.page-content img { border-radius: 3px; margin: 0.6em 0; }
.page-content blockquote {
    border-left: 4px solid var(--green);
    margin: 1.2em 0; padding: 0.4em 1em;
    background: #f6f9f6; color: #333;
    font-style: italic;
}
.page-content table {
    border-collapse: collapse; width: 100%;
    margin: 1em 0;
}
.page-content th, .page-content td {
    border: 1px solid var(--border);
    padding: 0.5em 0.75em; text-align: left;
}
.page-content th { background: #f1f6f3; }

/* Audio-Player (wirkt sowohl auf Home, in Sidebars, in Inner-Sidebars) */
audio {
    width: 100%;
    max-width: 360px;
    margin: 0.4em 0 0.8em;
    display: block;
}

/* ---------- Home: 3-Spalten-Layout ---------- */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 2em;
    align-items: start;
}
.home-col { min-width: 0; }
.home-col-left { color: var(--text); }
.bio-photo { border-radius: 3px; margin-bottom: 1em; }
.bio-name {
    color: var(--green-dark);
    margin: 0 0 0.5em;
    font-size: 1.15rem;
}
.bio-text { font-size: 0.95rem; line-height: 1.5; }
.home-col-center .page-content > h2,
.home-col-center .page-content > h3 {
    color: var(--green-dark);
}
.home-col-center .page-content > h3:first-child { margin-top: 0; }
.home-col-right .sidebar-box {
    background: var(--green-pale);
    padding: 1.2em 1.4em;
    margin-bottom: 1.5em;
    border-radius: 3px;
}
.sidebar-title {
    color: var(--orange);
    margin: 0 0 0.6em;
    font-size: 1.3rem;
    font-weight: 700;
}
.sidebar-box h3 {
    color: var(--green-dark);
    margin-top: 1em;
    font-size: 1rem;
}
.sidebar-box p { margin: 0 0 0.7em; font-size: 0.94rem; }
.sidebar-box a { color: var(--green); }
.sidebar-box audio {
    width: 100%;
    margin-top: 0.4em;
    margin-bottom: 0.6em;
}

/* ---------- Karte (OSM-Embed) ---------- */
.map-embed { margin: 1.5em 0; }
.map-embed iframe {
    width: 100%; max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 3px;
    display: block;
}
.map-links { margin: 0.5em 0 0; }

/* ---------- Linkliste ---------- */
.linklist { margin-top: 0.5em; }
.linkgroup { margin-bottom: 2em; scroll-margin-top: 1em; }
.linkgroup-title {
    font-size: 1.28rem;
    color: var(--orange-dark);
    margin: 0 0 0.7em;
    padding-bottom: 0.25em;
    border-bottom: 1px solid var(--border);
}
.linkgroup-intro {
    font-size: 0.95rem;
    color: var(--muted);
    margin: -0.3em 0 0.9em;
}
.linkgroup-items {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.9em 1.6em;
}
.linkitem { display: flex; flex-direction: column; }
.linkitem-name {
    font-weight: 700;
    color: var(--green-dark);
    text-decoration: none;
    line-height: 1.35;
}
.linkitem-name:hover, .linkitem-name:focus-visible { text-decoration: underline; }
.linkitem-name--plain { font-weight: 400; color: var(--text); }
.linkitem-ext::after {
    content: '\2197';
    font-size: 0.8em;
    margin-left: 0.25em;
    color: var(--muted);
}
.linkitem-note {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.4;
    margin-top: 0.1em;
}
.linkitem-host {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.15em;
    word-break: break-word;
}

/* Sprungnavigation in der linken Spalte */
.linknav { margin-bottom: 1.5em; }
.linknav-title {
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 0.4em;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.linknav ul { list-style: none; margin: 0; padding: 0; }
.linknav li { margin-bottom: 0.35em; }
.linknav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.35;
    display: block;
    border-left: 3px solid var(--border);
    padding-left: 0.6em;
}
.linknav a:hover, .linknav a:focus-visible {
    border-left-color: var(--orange);
    color: var(--green-dark);
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--green);
    color: #fff;
    padding: 0.8em 0;
    font-size: 0.92em;
}
.footer-row {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 0.4em;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Innenseiten: 3-Spalten-Layout ---------- */
.inner-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 2.2em;
    align-items: start;
}
.inner-col { min-width: 0; }
.inner-col-left .inner-title {
    color: var(--text);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 0 1em;
}
.inner-image {
    border-radius: 3px;
    margin-bottom: 1em;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Bild mit Bildunterschrift */
.inner-figure {
    margin: 0 0 1em;
}
.inner-figure .inner-image {
    margin-bottom: 0.5em;
}
.inner-image-caption {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted);
}
.inner-col-center .page-content > h2 {
    color: var(--green-dark);
    font-size: 1.45rem;
    margin-top: 0;
}
.inner-col-center .page-content > h3:first-of-type {
    color: var(--green-dark);
    font-weight: 700;
    margin-top: 0.2em;
}
.inner-col-center .page-content > :first-child { margin-top: 0; }
.inner-sidebar {
    color: var(--text);
    font-size: 0.96rem;
}
.inner-sidebar h3 {
    color: var(--orange);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 0.6em;
}
.inner-sidebar h3:not(:first-child) { margin-top: 1.4em; }
.inner-sidebar ul {
    padding-left: 1.2em;
    margin: 0;
}
.inner-sidebar li {
    margin-bottom: 0.35em;
    line-height: 1.45;
}
.inner-sidebar p {
    margin: 0 0 0.7em;
    line-height: 1.5;
}
.inner-sidebar a { color: var(--green); }
.inner-sidebar audio {
    width: 100%;
    max-width: 100%;
    margin-top: 0.4em;
    margin-bottom: 0.8em;
}

/* ---------- Layout-Variante: 2-Spalten ---------- */
.inner-grid.two-col {
    grid-template-columns: 1fr 2.4fr;
    gap: 2.5em;
}
.inner-col-main { min-width: 0; }
.inner-col-main .page-content > h2 {
    color: var(--green-dark);
    font-size: 1.45rem;
    margin-top: 0;
}
.inner-col-main .page-content > h3:first-of-type { margin-top: 0.2em; }
.inner-col-main .page-content > :first-child { margin-top: 0; }
.inner-left-text {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--text);
    margin-top: 0.4em;
}
.inner-left-text h3 {
    color: var(--green-dark);
    font-size: 1.1rem;
    margin: 0.6em 0 0.3em;
}
.inner-left-text p { margin: 0 0 0.7em; }

/* ---------- Layout-Variante: Single (volle Breite, ohne Titelband) ---------- */
.page-single {
    max-width: 880px;
    margin: 0 auto;
}
.page-single .page-content > h1:first-child,
.page-single .page-content > h2:first-child {
    margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .home-grid { grid-template-columns: 1fr; gap: 1.5em; }
    .hero { min-height: 220px; }
    .hero-title { font-size: 3.6rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .inner-grid { grid-template-columns: 1fr; gap: 1.5em; }
    .inner-grid.two-col { grid-template-columns: 1fr; gap: 1.5em; }
    .inner-col-left { display: flex; flex-direction: column; align-items: flex-start; }
    .inner-image { max-width: 320px; margin: 0.5em auto; }
    .inner-figure { max-width: 320px; margin: 0.5em auto; align-self: center; }
    .inner-figure .inner-image { margin: 0 0 0.5em; }
    .inner-left-text { align-self: stretch; }
    .deco-band { height: 24px; }
}
@media (max-width: 760px) {
    .topbar-inner { font-size: 0.84em; flex-direction: column; align-items: center; gap: 0.2em; text-align: center; }

    /* Logo links, Menü-Button rechts außen, Name darunter über die volle Breite */
    .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.6em;
        padding: 0.9em 1.25rem;
    }
    .brand { order: 1; }
    .nav-toggle { order: 2; display: inline-flex; }
    .brand-text { order: 3; flex: 1 0 100%; text-align: left; }

    .brand-logo { width: 150px; }
    .brand-name { font-size: 1.7rem; }
    .brand-sub { font-size: 0.95rem; }

    /* Menüband trägt mobil nur noch die aufgeklappte Navigation */
    .nav-wrap { border-top: 0; }
    .nav-inner { display: block; padding: 0; }
    .primary-nav { display: none; padding: 0.4em 0; }
    .primary-nav.is-open { display: block; }
    .primary-nav .nav-root { flex-direction: column; align-items: stretch; }
    .primary-nav .nav-item > a {
        padding: 0.65em 1.25rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0;
    }
    .primary-nav .nav-sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        background: #f6f9f6; box-shadow: none; border-top: 0;
    }
    .primary-nav .nav-sub a { padding-left: 2em; }
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .page-title { font-size: 1.3rem; padding: 0.6em 1em; }
}

@media print {
    .body-bg, .topbar, .nav-wrap, .deco-band, .hero, .site-footer, .nav-toggle { display: none !important; }
    body { background: #fff; }
    .home-grid { grid-template-columns: 1fr; }
    .home-col-left, .home-col-right { display: none; }
    .page-title { color: #000; background: none; padding: 0; margin: 0 0 1em; }
}
