/* ==========================================================================
   Mindspectra – Stylesheet
   Entspricht dem bisherigen Design, ergänzt um eine Darstellung für
   Tablets und Smartphones.
   ========================================================================== */

:root {
    --c-brand: #86041e;        /* Dunkelrot: Überschriften, Links */
    --c-header: #4c0c0a;       /* Hintergrund Kopfbereich */
    --c-text: #000;
    --c-dark: #444;            /* Navigation, Zwischenüberschriften */
    --c-line: #e6e6e6;         /* Linien, ausgewählter Menüpunkt */
    --c-soft: #fafafa;         /* Hintergrund Rubrik-Überschriften */
    --c-hover: #fcf8d5;        /* Menü-Hover */
    --c-muted: #888;
    --c-error: #a70c0c;
    --font-base: Verdana, Arial, Helvetica, sans-serif;
    --font-nav: Arial, Helvetica, sans-serif;
    --font-heading: "Gill Sans", "Gill Sans MT", Calibri, "Segoe UI", "Trebuchet MS", sans-serif;
    --frame-width: 1160px;
}

/* --- Grundlagen ---------------------------------------------------------- */

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

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

body {
    margin: 0 0 20px;
    padding: 0;
    background: #fff;
    color: var(--c-text);
    font-family: var(--font-base);
    font-size: 13px;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
    border: 0;
    vertical-align: middle;
}

input,
button,
textarea,
select {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 2px;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 100;
    padding: 6px 12px;
    background: #fff;
    color: var(--c-brand);
    font-weight: bold;
}

.skip-link:focus {
    top: 10px;
}

/* --- Kopf: Logo und Textversion ------------------------------------------ */

.site-header {
    position: relative;
    height: 82px;
    background: var(--c-header) url(../../images/plogo.gif) no-repeat left top;
    background-size: auto 82px;
}

.site-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    height: 82px;
}

.site-logo span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* --- Hauptnavigation ----------------------------------------------------- */

.mainnav {
    margin: 0;
    padding: 1px 0 2px;
    background: #f9f9f9 url(../../images/pmtp.gif) repeat-x;
    background-size: 1px 100%;
    min-height: 38px;
}

.mainnav ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mainnav a {
    display: block;
    height: 35px;
    margin: 0;
    padding: 10px 19px 0;
    border-right: 1px solid #dedede;
    border-left: 1px solid #fdfdfd;
    color: var(--c-dark);
    font-family: var(--font-nav);
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

.mainnav a:hover {
    background-color: var(--c-hover);
}

.mainnav a.is-selected {
    background-color: var(--c-line);
    color: var(--c-brand);
}

.mainnav a.is-forum {
    color: #f00;
}

.mainnav-toggle {
    display: none;
}

/* --- Seitenraster -------------------------------------------------------- */

.frame {
    display: grid;
    grid-template-columns: 236px minmax(0, 640px) 180px;
    grid-template-areas:
        "topic content sidebar"
        ".     footer  .";
    column-gap: 36px;
    align-items: start;
    width: 100%;
    max-width: var(--frame-width);
    padding: 30px 0 0 24px;
}

@media (min-width: 1180px) {
    .frame.no-sidebar {
        grid-template-columns: 236px minmax(0, 640px);
        grid-template-areas:
            "topic content"
            ".     footer";
    }
}

.content { grid-area: content; overflow-wrap: anywhere; }
.topic   { grid-area: topic; }
.sidebar { grid-area: sidebar; }
.site-footer { grid-area: footer; }

/* --- Linke Spalte: Rubriken und Suche ------------------------------------ */

.topic h2 {
    margin: 20px 0 0;
    padding: 5px 12px;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    background-color: var(--c-soft);
    color: var(--c-brand);
    font-size: 100%;
    font-weight: bold;
    text-transform: uppercase;
}

.topic h2:first-child {
    margin-top: 0;
}

.topic ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.topic li {
    margin: 0;
    padding: 5px 12px;
    border-bottom: 1px solid var(--c-line);
    line-height: normal;
}

.topic a {
    color: var(--c-dark);
    text-decoration: none;
}

.topic li.is-parent a {
    font-weight: bold;
}

.topic a:hover,
.topic a[aria-current="page"] {
    color: var(--c-brand);
    text-decoration: underline;
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 0;
}

.search input {
    width: 195px;
    margin: 0;
    padding: 3px;
    border: 1px solid #ccc;
    border-right-color: #eee;
    border-bottom-color: #eee;
    border-radius: 0;
    background-color: #fcfcfc;
    color: var(--c-brand);
    -webkit-appearance: none;
    appearance: none;
}

.search button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

/* --- Inhalt -------------------------------------------------------------- */

.content h1 {
    min-height: 36px;
    margin: 0 0 5px;
    padding: 0;
    color: var(--c-brand);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
}

.content h2,
.sidebar h2 {
    margin: 0;
    color: var(--c-dark);
    font-size: 100%;
    font-weight: bold;
    text-transform: uppercase;
}

.content h2 {
    padding: 6px 0 2px;
}

.sidebar h2 {
    padding: 2px 0;
}

.content h3 {
    margin: 0;
    padding: 2px 0;
    color: var(--c-dark);
    font-size: 100%;
    font-weight: bold;
}

.content p,
.sidebar p,
.sidebar figcaption {
    margin: 0;
    padding: 2px 0 10px;
    line-height: 170%;
}

.content p.justify {
    text-align: justify;
}

.content p.center {
    text-align: center;
}

.content a,
.sidebar a {
    color: var(--c-brand);
    font-weight: bold;
    text-decoration: none;
}

.content a:hover,
.sidebar a:hover {
    text-decoration: underline;
}

.content ul,
.sidebar ul {
    margin: 6px 0 6px 10px;
    padding: 0;
    list-style: none;
}

.content li,
.sidebar li {
    padding: 2px 0 2px 16px;
    background: url(../../images/pbull.gif) no-repeat left top;
    line-height: 170%;
}

.content .sidepicture {
    float: right;
    width: 190px;
    margin: 0 0 10px 10px;
    padding: 4px 0 0 10px;
}

.content .clearer {
    clear: both;
}

.content p.right {
    text-align: right;
}

/* Rechtsbündige Weiter-/Zurück-Links unter dem Text */
.content .more {
    padding: 20px 0 0;
    text-align: right;
    line-height: 1.6;
}

/* Vorschau-Kästen ("Erweiterter INDEX") */
.content .teaser {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 0;
    padding: 2px 0;
}

.content .teaserelement {
    flex: 1 1 250px;
    max-width: 310px;
    width: auto !important;
}

.content .teaserpicture {
    float: right;
    margin: 4px 0 10px 10px;
}

/* RSS-Hinweis */
.content .rss-link img {
    vertical-align: middle;
}

.content > img,
.content > a > img {
    display: block;
    margin: 0 0 10px;
}

/* Bilder-Tabellen (z. B. Spendenaktion) */
.content table.cells {
    width: 100%;
    margin: 0 0 10px;
    border: 1px solid #ccc;
    border-spacing: 2px;
}

.content table.cells td {
    padding: 1px;
    background-color: var(--c-soft);
    text-align: left;
    vertical-align: top;
}

/* Fußzeile */
.site-footer {
    padding: 40px 0 20px;
    color: var(--c-muted);
    font-size: 12px;
    text-align: center;
}

/* --- Rechte Spalte ------------------------------------------------------- */

.sidebar figure {
    margin: 0 0 25px;
}

.sidebar figure img {
    display: block;
}

.sidebar > h2:first-child,
.sidebar > *:first-child {
    margin-top: 0;
}

.audio-player audio,
.sidebar audio {
    display: block;
    width: 100%;
    max-width: 260px;
    height: 32px;
}

.audio-player figcaption {
    padding-top: 4px;
    color: var(--c-dark);
}

.content .audio-player {
    margin: 10px 0 20px;
    max-width: 300px;
}

/* --- YouTube mit Zwei-Klick-Lösung --------------------------------------- */

.video-embed {
    position: relative;
    width: clamp(180px, calc(100vw - 990px), 280px);
    margin: 0 0 25px;
}

.video-embed-play {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    aspect-ratio: 26 / 17;
    border: 0;
    background: linear-gradient(135deg, var(--c-header), var(--c-brand));
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.video-embed-play:hover .video-embed-icon {
    background-color: #f00;
}

.video-embed-icon {
    position: relative;
    width: 48px;
    height: 34px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, .65);
}

.video-embed-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -5px;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
}

.video-embed-note {
    color: var(--c-muted);
    font-size: 11px;
}

.sidebar .video-embed-note {
    padding: 4px 0 0;
    line-height: 1.4;
}

.video-embed iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 26 / 17;
    border: 0;
}

/* --- Bildershow (Startseite) --------------------------------------------- */

.slideshow {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 540 / 405;
    margin: 10px 0 20px;
    overflow: hidden;
    background: #fff;
}

.slideshow.is-dark {
    background: #000;
}

.slideshow > img,
.slideshow > figure {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow > img {
    width: 100%;
    margin: auto;
}

.slideshow > figure img {
    position: absolute;
    inset: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
}

.slideshow > .is-active {
    opacity: 1;
    z-index: 1;
}

.slideshow figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 6px 10px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    line-height: 1.4;
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 48px;
    margin-top: -24px;
    border: 0;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    cursor: pointer;
    opacity: .7;
}

.slideshow-prev:hover,
.slideshow-next:hover,
.slideshow-prev:focus-visible,
.slideshow-next:focus-visible {
    opacity: 1;
}

.slideshow-prev { left: 0; }
.slideshow-next { right: 0; }

.slideshow-prev::before,
.slideshow-next::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: rotate(-45deg);
    margin-left: 4px;
}

.slideshow-next::before {
    transform: rotate(135deg);
    margin-left: -4px;
}

html:not(.js) .slideshow-prev,
html:not(.js) .slideshow-next {
    display: none;
}

/* --- Bildergalerie mit Vorschaubildern ------------------------------------ */

.gallery {
    max-width: 540px;
    margin: 10px 0 20px;
}

.gallery-main {
    display: block;
    margin: 0 auto 8px;
}

.content .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
}

.content .gallery-thumbs li {
    padding: 0;
    background: none;
}

.gallery-thumbs a {
    display: block;
    border: 2px solid transparent;
}

.gallery-thumbs a[aria-current="true"] {
    border-color: var(--c-brand);
}

.gallery-thumbs img {
    display: block;
    width: 100%;
}

/* --- Schlagwortwolke -------------------------------------------------------- */

.sidebar .tagcloud {
    line-height: 1.5;
}

.sidebar .tagcloud a:hover {
    font-size: 16px !important;
    text-decoration: none;
}

/* --- Sitemap ------------------------------------------------------------- */

.content .sitemap {
    margin: 10px 0;
}

.content .sitemap > li {
    padding-bottom: 4px;
}

.content .sitemap > li > a {
    font-size: 140%;
}

.content .sitemap ul {
    margin: 2px 0 4px 6px;
}

/* --- Suchergebnisse ------------------------------------------------------ */

.search-summary {
    color: var(--c-dark);
}

.content .search-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.content .search-list li {
    margin: 0 0 12px;
    padding: 0;
    background: none;
}

.search-list mark {
    background-color: var(--c-hover);
    color: inherit;
}

.search-pages {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    padding: 10px 0;
}

.search-pages span:last-child {
    text-align: right;
}

/* --- Kontaktformular ----------------------------------------------------- */

.contact-form {
    margin: 10px 0;
}

.contact-form .contact-intro {
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 4px 10px;
    align-items: start;
    margin: 0 0 10px;
}

.form-row label {
    padding-top: 4px;
    line-height: 1.6;
}

.form-row input,
.form-row textarea {
    width: 100%;
    max-width: 380px;
    margin: 0;
    padding: 5px;
    border: 1px solid #ccc;
    border-right-color: #eee;
    border-bottom-color: #eee;
    border-radius: 0;
    background-color: #fcfcfc;
    color: var(--c-brand);
}

.form-row textarea {
    max-width: none;
    height: 200px;
    resize: vertical;
}

.form-row.has-error input,
.form-row.has-error textarea {
    border-color: var(--c-error);
    background-color: #f5e5e5;
}

.contact-form .form-note {
    padding: 2px 0 10px;
    color: var(--c-dark);
}

.form-errors {
    margin: 0 0 15px;
    padding: 8px 12px;
    border-left: 4px solid var(--c-error);
    background: #f5e5e5;
    color: var(--c-error);
}

.form-errors p,
.form-errors ul {
    margin: 0;
    padding: 0;
}

.content .form-errors li {
    background: none;
    padding-left: 0;
}

.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form button {
    padding: 5px 18px;
    border: 1px solid var(--c-brand);
    background: var(--c-brand);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    background: var(--c-dark);
}

/* ==========================================================================
   Tablets: zwei Spalten, rechte Spalte unter den Inhalt
   ========================================================================== */

@media (max-width: 1179px) {
    .mainnav a {
        padding-right: 12px;
        padding-left: 12px;
    }

    .frame {
        grid-template-columns: 236px minmax(0, 1fr);
        grid-template-areas:
            "topic content"
            "topic sidebar"
            "topic footer";
        padding-right: 24px;
        max-width: none;
    }

    .content {
        max-width: 760px;
    }

    .sidebar {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0 25px;
        padding-top: 30px;
        border-top: 1px solid var(--c-line);
        margin-top: 20px;
    }

    .sidebar > h2,
    .sidebar > p {
        flex-basis: 100%;
    }

    .video-embed {
        width: 260px;
    }
}

/* ==========================================================================
   Smartphones: eine Spalte, Menü zum Aufklappen
   ========================================================================== */

@media (max-width: 699px) {
    body {
        font-size: 15px;
    }

    .site-header {
        height: 60px;
        background-size: auto 60px;
    }

    .site-logo {
        height: 60px;
        width: 190px;
    }

    .js .mainnav-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 40px;
        padding: 0 16px;
        border: 0;
        background: transparent;
        color: var(--c-dark);
        font-family: var(--font-nav);
        font-size: 15px;
        font-weight: bold;
        text-transform: uppercase;
        cursor: pointer;
    }

    .mainnav-toggle-bars,
    .mainnav-toggle-bars::before,
    .mainnav-toggle-bars::after {
        display: block;
        width: 18px;
        height: 2px;
        background: currentColor;
    }

    .mainnav-toggle-bars {
        position: relative;
    }

    .mainnav-toggle-bars::before,
    .mainnav-toggle-bars::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .mainnav-toggle-bars::before { top: -6px; }
    .mainnav-toggle-bars::after  { top: 6px; }

    .mainnav {
        padding: 0;
        background-size: 1px 100%;
    }

    .mainnav ul {
        flex-direction: column;
        background: #fff;
    }

    .js .mainnav ul {
        display: none;
    }

    .js .mainnav.is-open ul {
        display: flex;
    }

    .mainnav a {
        height: auto;
        padding: 12px 16px;
        border: 0;
        border-top: 1px solid var(--c-line);
        font-size: 15px;
    }

    .frame {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "content"
            "sidebar"
            "topic"
            "footer";
        padding: 20px 16px 0;
    }

    .content {
        max-width: none;
    }

    .content h1 {
        font-size: 25px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .content p.justify {
        text-align: left;
        -webkit-hyphens: auto;
        hyphens: auto;
    }

    .content .sidepicture {
        width: 40%;
        max-width: 160px;
    }

    .topic {
        margin-top: 30px;
    }

    .topic li {
        padding: 8px 10px;
    }

    .search input {
        flex: 1;
        width: auto;
        padding: 6px;
    }

    .sidebar {
        gap: 0 16px;
    }

    .sidebar figure {
        flex: 0 1 calc(50% - 8px);
    }

    .sidebar figure img {
        width: 100%;
    }

    .video-embed {
        width: 100%;
        max-width: 400px;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-row input {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slideshow img {
        transition: none;
    }
}

@media print {
    .site-header,
    .mainnav,
    .topic,
    .sidebar,
    .skip-link {
        display: none !important;
    }

    .frame {
        display: block;
        padding: 0;
    }

    .content p.justify {
        text-align: left;
    }
}
