/* ============================================================
   raproos.de – site.css
   Ersetzt: style/template.css + style/menu.css + X5-Framework-CSS
   Hält das bestehende Design (Farben, Schriften, Header-Bild),
   fügt responsive Layout und barrierefreie Navigation hinzu.
   ============================================================ */

/* ----------------------------------------------------------
   Farb- und Schrift-Variablen
   ---------------------------------------------------------- */
:root {
    --color-primary:   #253A58;
    --color-link:      #253A58;
    --color-visited:   #567EB6;
    --color-muted:     #808080;
    --color-bg:        #FFFFFF;
    --font-body:       'Yu Gothic', 'Yu Gothic UI', Meiryo, sans-serif;
    --font-size-body:  11pt;
    --max-width:       960px;
}

/* ----------------------------------------------------------
   Basis
   ---------------------------------------------------------- */
html {
    background-color: var(--color-bg);
}

body {
    margin: 0;
    padding: 0;
    font: normal var(--font-size-body) var(--font-body);
    color: #000000;
    background-color: var(--color-bg);
}

/* ----------------------------------------------------------
   Skip-Link (Barrierefreiheit)
   ---------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 6px 12px;
    background: var(--color-primary);
    color: #fff;
    font: bold 11pt var(--font-body);
    z-index: 99999;
    text-decoration: none;
}

.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;
}

/* ----------------------------------------------------------
   Seiten-Wrapper
   ---------------------------------------------------------- */
.site-wrapper {
    max-width: var(--max-width);
    margin: 15px auto 0;
    position: relative;
}

/* ----------------------------------------------------------
   Header  (behält top.png als Hintergrundbild)
   ---------------------------------------------------------- */
.site-header {
    position: relative;
    height: 400px;
    background-image: url('top.png'); /* Fallback für ältere Browser */
    background-image: image-set(url('top.webp') type('image/webp'), url('top.png') type('image/png'));
    background-position: top left;
    background-repeat: no-repeat;
    background-size: auto;       /* Original-Pixelgröße beibehalten */
    margin-bottom: 0;
}

/* Logo-Link im Header – überlagert den Schriftzug im Bild */
.site-header .header-home-link {
    display: block;
    position: absolute;
    top: 101px;
    left: 679px;
    width: 271px;
    height: 75px;           /* deckt beide data-nav-Bereiche ab */
    text-indent: -9999px;   /* kein sichtbarer Text – Bild trägt den Inhalt */
}

/* Schwerpunkte-Link im Header – überlagert "Steuerstrafrecht • Zoll • Kindergeld" */
.site-header .header-topics-link {
    display: block;
    position: absolute;
    top: 8px;
    left: 0;
    width: 255px;
    height: 24px;
    text-indent: -9999px;   /* kein sichtbarer Text */
}

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */
.site-nav {
    position: absolute;
    top: 400px;
    left: 0;
    width: 960px;
    box-sizing: border-box;
    padding: 5px;
    background-color: transparent;
    z-index: 10000;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.site-nav ul li {
    display: inline-block;
}

.site-nav ul li a {
    display: block;
    width: 250px;
    height: 51px;
    line-height: 51px;
    text-align: center;
    font: normal 16pt var(--font-body);
    color: #000000;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.55);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: background-color 0.15s, color 0.15s;
}

.site-nav ul li a:hover,
.site-nav ul li a:focus,
.site-nav ul li a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--color-muted);
}

/* Hamburger-Button – nur auf kleinen Bildschirmen */
.nav-toggle {
    display: none;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 18pt;
    cursor: pointer;
    line-height: 1;
}
.nav-toggle[aria-expanded="true"] + ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ----------------------------------------------------------
   Haupt-Content-Bereich
   ---------------------------------------------------------- */
.site-content {
    position: relative;
    min-height: 350px;
    padding: 25px 5px 5px;
    background-color: var(--color-bg);
}

/* Content-Bereich liegt direkt unter der Nav (400 + 61 px) */
.site-content-wrapper {
    position: relative;
    background-color: var(--color-bg);
    padding-top: 61px;       /* Höhe der Nav-Leiste */
}

/* ----------------------------------------------------------
   Text-Inhalte (aus X5 übernommene Klassen, weiterhin gültig)
   ---------------------------------------------------------- */
.site-content a,
.site-content a:link,
.imCssLink,
.imCssLink:link {
    color: var(--color-link);
    text-decoration: none;
    background-color: transparent;
}
.site-content a:visited,
.imCssLink:visited {
    color: var(--color-visited);
}
.site-content a:hover,
.site-content a:active,
.imCssLink:hover,
.imCssLink:active {
    color: var(--color-link);
    text-decoration: underline;
}

.site-content h1 { font-size: 16pt; font-weight: bold; color: var(--color-primary); margin: 32px 0 8px; }
.site-content h1:first-child { margin-top: 4px; }
.site-content h2 { font-size: 13pt; font-weight: bold; color: var(--color-primary); margin: 10px 0 4px; }
.site-content p + h2,
.site-content ul + h2,
.site-content ol + h2 { margin-top: 20px; }  /* deutlicher Abstand nach Fließtext */
.site-content h3 { font-size: 11pt; font-weight: bold; margin: 8px 0 3px; }
.site-content p + h3,
.site-content ul + h3,
.site-content ol + h3 { margin-top: 14px; }
.site-content h4 { font-size: 11pt; font-weight: bold; font-style: italic; margin: 6px 0 3px; }
.site-content p  { margin: 0 0 8px; line-height: 1.5; }
.site-content ul { margin: 0 0 8px 20px; padding: 0; }
.site-content li { margin-bottom: 4px; line-height: 1.5; }
/* Aufzählungszeichen "–" für alle ul-Listen im Content-Bereich */
.site-content ul:not(.imSiteMap) > li { padding-left: 1.4em; position: relative; }
.site-content ul:not(.imSiteMap) > li::before { content: "–"; position: absolute; left: 0; }
.site-content blockquote { margin: 0 20px; padding: 8px 0; }

/* Utility-Klassen die X5 verwendet hat */
.fs11 { font-size: 11pt; }
.fs14 { font-size: 14pt; }
.fs15 { font-size: 15pt; }
.fs19 { font-size: 19pt; }
.fs21 { font-size: 21pt; }
.ff1  { font-family: 'Yu Gothic', sans-serif; }
.cf1  { color: var(--color-muted); }

/* ----------------------------------------------------------
   Über-mich: Foto + Text nebeneinander
   ---------------------------------------------------------- */
.about-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.about-layout img {
    width: 408px;
    height: auto;
    flex-shrink: 0;
}
.about-text {
    flex: 1;
}

/* ----------------------------------------------------------
   Schwerpunkte: Navigations-Buttons
   ---------------------------------------------------------- */
.topic-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.topic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 50px;
    padding: 10px 16px;
    background-color: var(--color-primary);
    color: #FFFFFF;
    font: normal 13pt var(--font-body);
    text-decoration: none;
    border-radius: 3px;
    text-align: center;
    transition: background-color 0.15s, transform 0.1s;
}
.topic-btn:hover,
.topic-btn:focus {
    background-color: #1a2d45;
    color: #FFFFFF;
    text-decoration: none;
    transform: scale(0.97);
    outline: 2px solid var(--color-primary);
}

/* ----------------------------------------------------------
   Sitemap-Liste
   ---------------------------------------------------------- */
.imSiteMap {
    list-style: none;
    padding: 0;
    margin: 0 0 0 16px;
}
.imSiteMap li {
    padding: 5px 0 5px 4px;
}
.imSiteMap img {
    vertical-align: text-bottom;
}

/* ----------------------------------------------------------
   Kontaktformular-Hinweise (alert-Klassen, aus style.css)
   ---------------------------------------------------------- */
.alert { padding: 5px 7px; margin: 5px 0 10px; border-radius: 5px; border: 1px solid; font: inherit; }
.alert-red   { color: #ff6565; border-color: #ff6565; background-color: #fcc; }
.alert-green { color: #46543b; border-color: #8da876; background-color: #d5ffb3; }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 80px;
    padding: 16px 8px 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    font: normal var(--font-size-body) var(--font-body);
    color: #000000;
}
.footer-left {
    text-align: left;
}
.footer-left a,
.footer-left a:visited,
.footer-left a:hover {
    color: #000000;
    text-decoration: none;
}
.footer-left div:last-child a,
.footer-left div:last-child a:visited,
.footer-left div:last-child a:hover {
    color: #666666;
}
.footer-links {
    text-align: right;
}
.footer-links a,
.footer-links a:visited {
    color: #000000;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-links .footer-sep {
    color: #000000;
}

/* ----------------------------------------------------------
   Responsive: Tablet (max 960px)
   ---------------------------------------------------------- */
@media (max-width: 960px) {
    .site-wrapper {
        width: 100%;
        margin-top: 0;
    }

    .site-header {
        height: 0;
        padding-bottom: 41.67%;   /* 400/960 = 41.67% für Aspektverhältnis */
        background-size: cover;
        background-position: top center;
    }

    .site-header .header-home-link {
        /* Positionierung relativ zum skalierten Header */
        top: 25%;
        left: 70%;
        width: 29%;
        height: 20%;
    }

    .site-nav {
        position: static;
        width: 100%;
        background-color: var(--color-bg);
    }

    .site-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav ul li a {
        width: auto;
        min-width: 120px;
        padding: 0 16px;
        background-image: none;
        border-bottom: 2px solid transparent;
    }

    .site-nav ul li a:hover,
    .site-nav ul li a:focus,
    .site-nav ul li a[aria-current="page"] {
        background-image: none;
        border-bottom-color: var(--color-primary);
        color: var(--color-primary);
    }

    .site-content-wrapper {
        padding-top: 0;
    }

    .about-layout {
        flex-direction: column;
    }
    .about-layout img {
        max-width: 160px;
    }
}

/* ----------------------------------------------------------
   Responsive: Mobil (max 600px)
   ---------------------------------------------------------- */
@media (max-width: 600px) {
    .nav-toggle {
        display: block;
        width: 100%;
        text-align: left;
    }

    .site-nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav ul.is-open {
        display: flex;
    }

    .site-nav ul li a {
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 12px 16px;
        height: auto;
        line-height: 1.4;
        border-bottom: 1px solid #eee;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-links {
        text-align: left;
    }
}

/* ----------------------------------------------------------
   Schwerpunkte: 2-Spalten-Layout (Text links, Buttons rechts)
   ---------------------------------------------------------- */
.schwerpunkte-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.schwerpunkte-main {
    flex: 1;
}
.schwerpunkte-sidebar {
    flex: 0 0 220px;
}

/* ----------------------------------------------------------
   Kontakt: Adresse + Karte oben, Formular unten
   ---------------------------------------------------------- */
.kontakt-top {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.kontakt-address {
    flex: 0 0 auto;
}
.kontakt-address .fs19 {
    white-space: nowrap;
}
.kontakt-map {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}
.kontakt-map .map-consent {
    max-width: none;
    width: 100%;
    flex: 0 0 250px;  /* feste Höhe – Consent-Wall und iframe referenzieren dieselbe Höhe */
    min-height: 250px;
}
.kontakt-form-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

/* ----------------------------------------------------------
   Quellenangabe am Seitenende (Impressum / DSE)
   ---------------------------------------------------------- */
.source-credit {
    margin-top: 2.5em;
    text-align: left;
    font-style: normal;
}

@media (max-width: 960px) {
    .schwerpunkte-layout {
        flex-direction: column;
    }
    .schwerpunkte-sidebar {
        flex: none;
        width: 100%;
    }
    .about-layout img {
        width: 100%;
        max-width: 408px;
    }
}
