/* ============================================================
   Chris Abraham – Autor | Haupt-Stylesheet
   Design: Original (grauer Header, weißer Hintergrund)
   Farbpalette:
     --ca-bg-deep:    #6c7a85  (Header/Footer)
     --ca-bg-dark:    #ffffff  (Haupthintergrund)
     --ca-bg-mid:     #fafafa  (Wechselsektionen)
     --ca-bg-lift:    #ffffff  (Karten)
     --ca-border:     #f0f0f0  (Trennlinien)
     --ca-text:       #333333  (Haupttext)
     --ca-text-muted: #666666  (Nebentext)
     --ca-text-nav:   #ffffff  (Navigationlinks)
     --ca-accent:     #000000  (Akzent/Buttons)
     --ca-accent-dim: #333333  (Akzent gedimmt)
   ============================================================ */


/* ------------------------------------------------------------
   CSS-Variablen
   ------------------------------------------------------------ */
:root {
    --ca-bg-deep:    #6c7a85;
    --ca-bg-dark:    #ffffff;
    --ca-bg-mid:     #fafafa;
    --ca-bg-lift:    #ffffff;
    --ca-border:     #f0f0f0;
    --ca-text:       #333333;
    --ca-text-muted: #666666;
    --ca-text-nav:   #ffffff;
    --ca-accent:     #000000;
    --ca-accent-dim: #333333;
}


/* ------------------------------------------------------------
   Fonts (lokal gehostet, DSGVO-konform)
   ------------------------------------------------------------ */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 75% 100%;
    font-style: italic;
    font-display: swap;
}


/* ------------------------------------------------------------
   Reset & Basis
   ------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--ca-text);
    background-image: url('../images/blackwater_Desktop.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

@media (max-width: 1024px) {
    body {
        background-image: url('../images/blackwater_Tablet.jpg');
    }
}

@media (max-width: 520px) {
    body {
        background-image: url('../images/blackwater_Mobile.jpg');
    }
}


/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.site-container {
    max-width: 1200px;
    margin: 140px auto 40px auto;
    background: var(--ca-bg-dark);
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.7);
    min-height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ------------------------------------------------------------
   Header & Navigation
   ------------------------------------------------------------ */
header {
    background: var(--ca-bg-deep);
    border-bottom: 1px solid #5a6770;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transition: transform 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--ca-text-nav);
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ca-accent);
}


/* ------------------------------------------------------------
   Barrierefreiheit - Fokus-Indikatoren
   ------------------------------------------------------------ */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.mobile-menu:focus {
    outline: 2px solid var(--ca-accent);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--ca-accent);
    outline-offset: 2px;
}


/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--ca-text);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: 1px solid var(--ca-text);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--ca-text);
    border: 1px solid var(--ca-text);
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--ca-accent);
    border: 1px solid var(--ca-accent);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--ca-accent-dim);
    color: #ffffff;
}


/* ------------------------------------------------------------
   Mobile Menu (Burger)
   ------------------------------------------------------------ */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    margin: 4px 0;
    transition: 0.3s;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--ca-accent);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--ca-accent);
}


/* ------------------------------------------------------------
   Mobile Navigation Overlay
   ------------------------------------------------------------ */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 122, 133, 0.98);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-overlay ul {
    list-style: none;
    text-align: center;
}

.mobile-nav-overlay ul li {
    margin: 2rem 0;
}

.mobile-nav-overlay ul li a {
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-overlay ul li a:hover {
    color: var(--ca-accent);
}


/* ------------------------------------------------------------
   Main Content
   ------------------------------------------------------------ */
main {
    background: var(--ca-bg-dark);
}


/* ------------------------------------------------------------
   Page Title
   ------------------------------------------------------------ */
.page-title {
    background: #2c2c2c;
    color: #ffffff;
    padding: 1.5rem 20px;
    text-align: left;
    border-bottom: 1px solid #404040;
}

.page-title-text {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
}


/* ------------------------------------------------------------
   Section Title
   ------------------------------------------------------------ */
.section-title {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--ca-text);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--ca-accent);
    margin-top: 0.75rem;
}


/* ------------------------------------------------------------
   Cookie Banner
   ------------------------------------------------------------ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ca-bg-deep);
    color: #ffffff;
    padding: 1.2rem 20px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    line-height: 1.5;
    border-top: 1px solid #5a6770;
}

#cookie-banner.hidden {
    display: none;
}

#cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

#cookie-banner a {
    color: #ffffff;
    text-decoration: underline;
}

#cookie-banner a:hover {
    color: #dddddd;
}

#cookie-banner-btn {
    background: #ffffff;
    color: #333333;
    border: none;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

#cookie-banner-btn:hover {
    background: #dddddd;
}

#cookie-banner-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}


/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
    background: #000000;
    color: #cccccc;
    padding: 3rem 20px 2rem 20px;
    text-align: center;
    border-top: none;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    margin: 0 1.5rem;
    transition: color 0.3s ease;
    font-weight: 300;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}


/* ------------------------------------------------------------
   Responsive Design
   ------------------------------------------------------------ */
@media (max-width: 1240px) {
    .site-container {
        margin: 120px 20px 20px 20px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 520px) {
    .site-container {
        margin: 100px 20px 20px 20px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 520px) {
    header {
        position: fixed;
    }

    .site-container {
        margin: 100px 0 0 0;
        box-shadow: none;
        border-radius: 0;
        min-height: 100vh;
        width: 100%;
    }

    body {
        background: #ffffff;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }
}

@media (max-width: 480px) {
    .page-title-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
