/******************************************************************************
 * Projekt : THOR Websystem
 * Datei   : gemeinsam.css
 * Version : 1.1
 * Datum   : 21.07.2026
 *
 * Gemeinsame Regeln für Navigation, Unterseiten, Kontakt und Footer.
 * Korrekturen:
 * - fehlerhafte CSS-Zeile im Navigationsbereich entfernt
 * - unerwünschten grünen Streifen über dem Footer entfernt
 ******************************************************************************/

@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap");

:root {
    --page-bg: #e4f0ed;
    --page-background: #e4f0ed;
    --white: #ffffff;
    --blue: #1094df;
    --nav-blue: #1094df;
    --dark-blue: #273451;
    --nav-dark-blue: #273451;
    --turquoise: #0b7475;
    --dark-turquoise: #0b7475;
    --nav-dark-turquoise: #0b7475;
    --link: #159a9c;
    --muted: #506063;
    --nav-page-background: #e4f0ed;
    --nav-border: rgba(11, 116, 117, 0.16);
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: #152326;
    font-family: "Raleway", Arial, sans-serif;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */


.topbar,
.landing-header,
.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 70px;
    background: var(--nav-blue);
}

.landing-header {
    position: fixed;
    right: 0;
    left: 0;
    background: transparent;
    transition: background-color 220ms ease, box-shadow 220ms ease;
}

.landing-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 5px 18px rgba(29, 55, 58, 0.12);
}

.topbar-inner,
.landing-header-inner,
.page-header-inner {
    width: min(1420px, calc(100% - 48px));
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav,
.nav-menu {
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 24px 0 10px;
    border-bottom: 2px solid transparent;
    color: #061116;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, border-color 160ms ease;
}

.nav-item > a:hover,
.nav-item > a:focus,
.nav-item-dropdown:hover > a,
.nav-item-dropdown:focus-within > a {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.landing-header:not(.is-scrolled) .nav-item > a {
    color: var(--nav-dark-blue);
}

.landing-header:not(.is-scrolled) .nav-item > a:hover,
.landing-header:not(.is-scrolled) .nav-item > a:focus,
.landing-header:not(.is-scrolled) .nav-item-dropdown:hover > a,
.landing-header:not(.is-scrolled) .nav-item-dropdown:focus-within > a {
    color: var(--nav-dark-turquoise);
    border-bottom-color: var(--nav-dark-turquoise);
}

.landing-header.is-scrolled .nav-item > a {
    color: var(--nav-dark-blue);
}

.landing-header.is-scrolled .nav-item > a:hover,
.landing-header.is-scrolled .nav-item > a:focus,
.landing-header.is-scrolled .nav-item-dropdown:hover > a,
.landing-header.is-scrolled .nav-item-dropdown:focus-within > a {
    color: var(--nav-dark-turquoise);
    border-bottom-color: var(--nav-dark-turquoise);
}

.nav-arrow {
    font-size: 12px;
    line-height: 1;
}

.nav-submenu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    z-index: 120;
    min-width: 235px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border: 1px solid var(--nav-border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 14px 34px rgba(29, 55, 58, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.nav-item-dropdown:hover .nav-submenu,
.nav-item-dropdown:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-submenu a {
    display: block;
    padding: 11px 18px;
    color: var(--nav-dark-blue);
    font-family: "Raleway", Arial, sans-serif;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a:focus {
    background: var(--nav-page-background);
    color: var(--nav-dark-turquoise);
}

@media (max-width: 760px) {
    .topbar,
    .page-header,
    .landing-header {
        position: relative;
        min-height: auto;
        background: var(--nav-blue);
    }

    .topbar-inner,
    .page-header-inner,
    .landing-header-inner {
        width: min(100% - 28px, 1420px);
        min-height: auto;
        padding: 11px 0;
        justify-content: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 18px;
    }

    .nav-item > a,
    .landing-header:not(.is-scrolled) .nav-item > a {
        padding: 7px 0;
        color: #061116;
    }

    .nav-item > a:hover,
    .nav-item > a:focus,
    .landing-header:not(.is-scrolled) .nav-item > a:hover,
    .landing-header:not(.is-scrolled) .nav-item > a:focus {
        color: #ffffff;
        border-bottom-color: #ffffff;
    }
}

@media (max-width: 520px) {
    .nav-submenu {
        position: fixed;
        top: auto;
        right: 15px;
        left: 15px;
        width: auto;
        min-width: 0;
        transform: translateY(8px);
    }

    .nav-item-dropdown:hover .nav-submenu,
    .nav-item-dropdown:focus-within .nav-submenu {
        transform: translateY(0);
    }
}

/* ==========================================================================
   UNTERSEITEN UND KONTAKT
   ========================================================================== */

.page-main {
    min-height: 65vh;
}

.page-section {
    width: min(var(--content-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 82px 0;
}

.page-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--turquoise);
    font-size: 24px;
    font-weight: 600;
}

.page-title {
    margin: 0 0 32px;
    color: var(--turquoise);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 6vw, 72px);
    font-weight: 400;
    line-height: 1.05;
}

.page-subtitle {
    margin: 0 0 24px;
    color: var(--turquoise);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 50px);
    font-weight: 400;
    line-height: 1.12;
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    align-items: start;
    gap: 86px;
}

.about-intro-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.about-copy {
    font-size: 18px;
}

.about-copy p {
    margin: 0 0 28px;
}

.history-title {
    margin: 38px 0 16px;
    font-size: 18px;
}

.history-list {
    margin: 0;
    padding-left: 26px;
}

.location-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
    padding-top: 18px;
}

.location-gallery img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.standard-page {
    max-width: 920px;
}

.standard-page p,
.standard-page li {
    font-size: 18px;
}

.standard-page a,
.contact-data a {
    color: var(--link);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    gap: 90px;
    align-items: start;
}

.contact-data {
    padding-top: 76px;
    font-size: 18px;
}

.contact-data p {
    margin: 0 0 14px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    font-size: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #b8c7c5;
    background: rgba(174, 184, 185, 0.76);
    padding: 12px;
    font: inherit;
}

.contact-form textarea {
    min-height: 250px;
    resize: vertical;
}

.contact-form button {
    min-height: 44px;
    border: 0;
    border-radius: 4px;
    background: var(--dark-blue);
    color: var(--white);
    font: inherit;
    cursor: pointer;
}

.form-message {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 5px;
    background: var(--white);
}

.form-message.success { border-left: 6px solid #398b52; }
.form-message.error { border-left: 6px solid #b83333; }

.honeypot {
    position: absolute;
    left: -9999px;
}

@media (max-width: 850px) {
    .about-intro,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .contact-data {
        padding-top: 0;
    }

    .location-gallery {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .location-gallery img {
        height: auto;
    }
}

@media (max-width: 650px) {
    .page-section {
        width: min(100% - 30px, var(--content-width));
        padding: 54px 0;
    }
}


/* OpenStreetMap auf der Kontaktseite */
.contact-map-section {
    margin-top: 68px;
}

.contact-map-section h2 {
    margin: 0 0 22px;
    color: var(--turquoise);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.15;
}

.contact-map-frame {
    overflow: hidden;
    border-radius: 10px;
    background: #d7e4e2;
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

.contact-map-address {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.contact-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid var(--dark-blue);
    border-radius: 5px;
    background: var(--dark-blue);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.map-button:hover,
.map-button:focus {
    background: var(--turquoise);
    border-color: var(--turquoise);
    color: var(--white);
}

.map-button-secondary {
    background: transparent;
    color: var(--dark-blue);
}

.map-button-secondary:hover,
.map-button-secondary:focus {
    color: var(--white);
}

@media (max-width: 650px) {
    .contact-map-section {
        margin-top: 48px;
    }

    .contact-map-frame iframe {
        height: 340px;
    }

    .contact-map-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .map-button {
        width: 100%;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    margin-top: 0;
    color: #ffffff;
}

.site-footer-info {
    background: #456789;
}

.site-footer-inner {
    width: min(1180px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px;
    padding: 70px 0 58px;
    text-align: center;
}

.site-footer-column h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.site-footer-column p {
    margin: 0;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.55;
}

.site-footer-column a {
    color: #16d8d8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-column a:hover,
.site-footer-column a:focus {
    color: #ffffff;
}

.site-footer-legal {
    min-height: 166px;
    padding: 47px 24px 43px;
    border-bottom: 1px solid #8d9797;
    background: #050606;
    text-align: center;
}

.site-footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 18px;
    font-size: 18px;
}

.site-footer-legal-links a {
    color: #0ea4a6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-legal-links a:hover,
.site-footer-legal-links a:focus {
    color: #ffffff;
}

.site-footer-copyright {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
}

@media (max-width: 780px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 56px;
        padding-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .site-footer-inner {
        width: min(100% - 30px, 1180px);
    }

    .site-footer-column p,
    .site-footer-legal-links,
    .site-footer-copyright {
        font-size: 16px;
    }

    .site-footer-legal {
        min-height: auto;
        padding-top: 38px;
        padding-bottom: 38px;
    }
}
