/*
  Layout 3_fsao_neu (web48CMS) – moderne Fassung von 1_fsao
  Stand: 23.11.2026

  Farben und Grafiken wie im Original:
    Rot (Kopf, aktiv)      #fe0000
    Dunkelrot (Text)       #b30000 / #be0000, Hover #be5900
    Schwarz (Leisten)      #131313
    Seitenhintergrund      #ecebea
    Inhaltsfläche          #fcfbfa
    Grafiken: kopf.png, kopf_slideshow/*, navi.png, navi_fuss.png

  Responsive Stufen stehen in mobile.css.
*/

:root {
    --rot: #fe0000;
    --rot-dunkel: #b30000;
    --link: #be0000;
    --link-hover: #be5900;
    --schwarz: #131313;
    --grau-hg: #ecebea;
    --flaeche: #fcfbfa;
    --flaeche-2: #f3f2f1;
    --linie: #e2e0de;
    --text: #222;
    --text-leise: #6b6b6b;
    --radius: 10px;
    --schrift: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

body {
    margin: 0;
    background: var(--grau-hg);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 16px;
    line-height: 1.6;
}

img {
    border: 0;
}

.hidden {
    display: none;
}

.sprunglink {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--schwarz);
    color: #fff;
    border-radius: 6px;
}
.sprunglink:focus {
    left: 8px;
}

:focus-visible {
    outline: 2px solid var(--rot);
    outline-offset: 2px;
}

/* ---------- Service-Leiste oben ---------- */

#pre-header {
    background: var(--schwarz);
    color: #fcfbfa;
}
#pre-header .innen {
    max-width: 1000px;
    margin: 0 auto;
}
#pre-header ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
}
#pre-header li {
    margin: 0;
    padding: 0;
}
#pre-header a {
    display: block;
    padding: 3px 12px;
    border-radius: 999px;
    color: #fcfbfa;
    font-size: 13px;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
#pre-header a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
#pre-header li.aktiv a,
#pre-header li.pfadaktiv a {
    color: #d1dee8;
}

/* ---------- Seitenrahmen ---------- */

#page_margins {
    max-width: 1000px;
    margin: 24px auto 32px;
}

#page {
    background: var(--flaeche);
    border-radius: var(--radius);
    overflow: clip;                  /* runde Ecken, Sticky-Menü bleibt möglich */
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 40px rgba(0, 0, 0, .12);
}

/* ---------- Kopf: kopf.png liegt über der Diashow ---------- */

#header {
    position: relative;
    height: 309px;                   /* 59 px rote Leiste + 250 px Diashow */
    margin: 0;
}

#header h1 {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 1000px;
    height: 120px;
    margin: 0;
    background: transparent url(../images/kopf.png) top left no-repeat;
    pointer-events: none;
}
#header h1 span {
    display: none;
}

#header #slideshow {
    position: absolute;
    z-index: 1;
    top: 59px;
    left: 0;
    width: 1000px;
    height: 250px;
    overflow: hidden;
    background: var(--schwarz);
}
#header #slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}
/* leichter Verlauf unten, damit das Menü sauber anschließt */
#header #slideshow::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .18));
    pointer-events: none;
}

/* ---------- Hauptmenü: Reiter auf der Unterkante der Diashow ---------- */

#nav-schalter {
    display: none;
}

#menu {
    position: sticky;                /* bleibt beim Scrollen oben stehen */
    top: 0;
    z-index: 5;
    margin-top: -42px;               /* Reiter ragen in die Diashow */
    padding: 0 20px 3px;
    background: transparent url(../images/navi.png) bottom left repeat-x;   /* rote Linie */
    transition: background-color .2s, box-shadow .2s, padding .2s;
}
#menu > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#menu li {
    margin: 0;
    padding: 0;
}
#menu > ul > li > a {
    display: block;
    padding: 8px 22px 7px;
    border: 3px solid var(--rot-dunkel);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: var(--grau-hg);
    color: var(--schwarz);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .12);
    transition: background-color .15s, color .15s, padding .15s;
}
#menu > ul > li > a:hover {
    background: var(--flaeche);
    color: var(--rot-dunkel);
    padding-top: 10px;               /* Reiter hebt sich leicht an */
    margin-top: -2px;
}
/* aktiver Reiter: verdeckt die rote Linie und geht in die Inhaltsfläche über */
#menu > ul > li.aktiv > a,
#menu > ul > li.pfadaktiv > a {
    position: relative;
    margin-bottom: -3px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-color: var(--rot);
    background: var(--flaeche);
    color: var(--schwarz);
    font-weight: 700;
}
#menu > ul > li.aktiv > a:hover,
#menu > ul > li.pfadaktiv > a:hover {
    margin-top: 0;
    color: var(--rot-dunkel);
}
/* Angeheftet (js/menu.js setzt .angeheftet, sobald das Menü oben ansteht):
   kompakte Reiter auf heller Leiste. Gesamthöhe bleibt gleich (42 px),
   damit die Seite beim Umschalten nicht springt. */
@media screen and (min-width: 761px) {
    #menu.angeheftet {
        padding-top: 6px;
        background-color: var(--flaeche);
        box-shadow: 0 6px 16px rgba(0, 0, 0, .10);
    }
    #menu.angeheftet > ul > li > a {
        padding-top: 5px;
        padding-bottom: 4px;
        box-shadow: none;
    }
    #menu.angeheftet > ul > li > a:hover {
        padding-top: 7px;
    }
    #menu.angeheftet > ul > li.aktiv > a,
    #menu.angeheftet > ul > li.pfadaktiv > a {
        padding-top: 7px;
        padding-bottom: 7px;
    }
}

/* Unterpunkte im Hauptmenü gibt es am Desktop nicht (Kopie für Smartphone) */
#menu ul ul {
    display: none;
}

/* ---------- Hauptbereich: Unternavigation links, Inhalt rechts ---------- */

#main {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-areas: "links inhalt";
    column-gap: 36px;
    padding: 32px 32px 48px 24px;
    min-height: 320px;
}
#centerframe { grid-area: inhalt; min-width: 0; }
#leftframe   { grid-area: links; }

/* Seiten ohne Unternavigation: Inhalt über die volle Breite */
body.ohne-navi #main,
#main:not(:has(#leftframe_content li)) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "inhalt";
    padding-left: 32px;
}
body.ohne-navi #leftframe,
#main:not(:has(#leftframe_content li)) #leftframe {
    display: none;
}

/* ---------- Unternavigation (linke Spalte) ---------- */

#leftframe_content {
    position: sticky;
    top: 64px;                       /* unter dem angehefteten Menü */
}
#leftframe ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
#leftframe li {
    margin: 0;
    padding: 0;
    background: none;
}

/* Hauptpunkte: Text mit roter Auslauflinie (navi_fuss.png) */
#leftframe_content > ul > li {
    margin: 0 0 2px;
    padding: 0 0 7px;
    background: transparent url(../images/navi_fuss.png) bottom left no-repeat;
}
#leftframe_content > ul > li > a {
    display: block;
    padding: 8px 10px 4px 2px;
    color: var(--schwarz);
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
    transition: color .15s, padding-left .15s;
}
#leftframe_content > ul > li > a:hover {
    color: var(--rot-dunkel);
    padding-left: 6px;
}

/* geöffneter Bereich: Hauptpunkt fett (auch wenn das CMS ihn wegen
   gleicher Zielseite ebenfalls als "aktiv" markiert) */
#leftframe_content > ul > li.pfadaktiv > a,
#leftframe_content > ul > li.aktiv:has(li.aktiv) > a {
    color: var(--schwarz);
    font-weight: 700;
}
/* Hauptpunkt ist selbst die aktuelle Seite */
#leftframe_content > ul > li.aktiv:not(:has(li.aktiv)) > a {
    color: var(--rot);
    font-weight: 700;
}

/* Unterpunkte: heller Kasten mit feiner Führungslinie links */
#leftframe li ul {
    margin: 6px 0 4px;
    padding: 6px 0;
    border-radius: 8px;
    background: var(--flaeche-2);
}
#leftframe li ul li a {
    display: block;
    margin-left: 12px;
    padding: 5px 10px 5px 12px;
    border-left: 2px solid var(--linie);
    color: #444;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
#leftframe li ul li a:hover {
    color: var(--rot-dunkel);
    border-left-color: var(--rot-dunkel);
}
#leftframe li ul li.aktiv > a {
    color: var(--rot);
    font-weight: 700;
    border-left-color: var(--rot);
}
#leftframe li ul li.pfadaktiv > a {
    color: var(--schwarz);
    font-weight: 600;
}
/* dritte Ebene */
#leftframe li ul ul {
    margin: 0;
    padding: 0;
    background: none;
}
#leftframe li ul ul li a {
    margin-left: 12px;
    padding-left: 24px;
    font-size: 13px;
}

#leftframe h2,
#leftframe p {
    margin: 0 0 12px;
    font-size: 14px;
}

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

#centerframe_content {
    font-size: 16px;
    overflow-wrap: break-word;
}
#centerframe_content > :first-child {
    margin-top: 0;
}

#centerframe h2,
#centerframe h3,
#centerframe h4,
#centerframe h5,
#centerframe h6 {
    font-family: var(--schrift);
    line-height: 1.25;
    clear: both;
}

#centerframe h2 {
    margin: 8px 0 22px;
    padding-bottom: 10px;
    color: var(--rot-dunkel);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.01em;
    border-bottom: 1px solid var(--linie);
    position: relative;
}
#centerframe h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--rot);
}

#centerframe h3 {
    margin: 28px 0 10px;
    color: var(--rot-dunkel);
    font-size: 21px;
    font-weight: 700;
}

#centerframe h4 {
    margin: 24px 0 12px;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--rot-dunkel);
    color: #f6f6f6;
    font-size: 17px;
    font-weight: 600;
}

#centerframe h5 {
    margin: 18px 0 8px;
    color: var(--schwarz);
    font-size: 16px;
    font-weight: 700;
}

#centerframe h6 {
    margin: 16px 0 6px;
    font-size: 15px;
    font-weight: 700;
}

#centerframe p {
    margin: 0 0 1em;
}

#centerframe address {
    margin-bottom: 1em;
    font-style: italic;
}

#centerframe hr {
    height: 0;
    margin: 24px 0;
    border: 0;
    border-top: 2px solid var(--rot-dunkel);
    opacity: .6;
}

#centerframe ul,
#centerframe ol {
    margin: 10px 0 16px;
    padding-left: 24px;
}
#centerframe li {
    margin: 4px 0;
    padding-left: 4px;
}
#centerframe ul li {
    list-style-type: square;
}
#centerframe ol li {
    list-style-type: decimal;
}
#centerframe li::marker {
    color: var(--link);
}
#centerframe li p {
    color: var(--text);
}
#centerframe li img {
    margin: 10px 0;
}

#centerframe a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .15s;
}
#centerframe a:hover {
    color: var(--link-hover);
    text-decoration-thickness: 2px;
}

#centerframe_content img,
#centerframe_content iframe,
#centerframe_content video,
#centerframe_content object,
#centerframe_content embed {
    max-width: 100%;
}
#centerframe_content img {
    height: auto;
}
#centerframe_content iframe[src*="youtube"],
#centerframe_content iframe[src*="vimeo"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}
#centerframe_content .fb-page,
#centerframe_content .fb-page span,
#centerframe_content .fb-page iframe {
    max-width: 100% !important;
}

#centerframe table {
    border-collapse: collapse;
    margin: 12px 0 18px;
    max-width: 100%;
}
#centerframe th,
#centerframe td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--linie);
    text-align: left;
    vertical-align: top;
}
#centerframe th {
    font-weight: 700;
}

abbr {
    border-bottom: 1px dotted currentColor;
    text-decoration: none;
}
strong, b {
    font-weight: 700;
}
em {
    font-style: italic;
}

.rightfloat {
    float: right;
    margin: 0 0 8px 16px;
}
.leftfloat {
    float: left;
    margin: 0 16px 8px 0;
}
.leftfloat *:first-child,
.rightfloat *:first-child {
    margin-top: 0 !important;
}
.clearfix {
    clear: both;
}

/* Werbespalte aus dem alten Layout wird nicht mehr genutzt */
.rightframe {
    display: none;
}

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

#footer {
    background: var(--schwarz);
    border-top: 3px solid var(--rot);
    color: #9a9a9a;
    font-size: 13px;
}
#footer p {
    margin: 0;
    padding: 18px 24px;
    text-align: center;
}
#footer a {
    color: #c8c8c8;
    text-decoration: none;
}
#footer a:hover {
    text-decoration: underline;
}

/* ---------- Druck ---------- */

@media print {
    body { background: #fff; }
    #pre-header, #menu, #nav-schalter, #leftframe, #slideshow, .sprunglink { display: none !important; }
    #page { box-shadow: none; border-radius: 0; }
    #header { height: 120px; }
    #main { display: block; padding: 0; }
}
