/* ==========================================================================
   Grossantenne Dresden – Shared Stylesheet
   ========================================================================== */

/* Fonts – self-hosted Merriweather Sans (variable weight 300–700)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Merriweather Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/merriweather-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                   U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                   U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Merriweather Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/merriweather-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
}

/* Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base
   -------------------------------------------------------------------------- */
body {
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 300;
    color: #333;
    line-height: 1.7;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #007052;
    color: #fff;
    padding: 10px 20px;
    z-index: 200;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #007052;
    outline-offset: 3px;
}

/* Header
   -------------------------------------------------------------------------- */
.header {
    background: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007052;
    letter-spacing: -0.5px;
}

.logo a {
    color: #007052;
}

/* Header – index.html variant (contact + nav list) */
.header-contact {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.9rem;
}

.header-contact a {
    color: #007052;
    font-weight: 400;
    transition: color 0.3s;
}

.header-contact a:hover {
    color: #00b07f;
}

.header-contact .phone::before {
    content: "\260E";
    margin-right: 5px;
}

.header-contact .email::before {
    content: "\2709";
    margin-right: 5px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: #007052;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00b07f;
}

/* Header – subpage variant (simple nav row) */
.header-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-nav a {
    color: #007052;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #00b07f;
}

/* NOTE: .nav-links a and .header-nav a share styles intentionally —
   .nav-links is inside a <ul> on index, .header-nav is flat <a> on subpages.
   Merging would require HTML changes across all pages. */

/* Hero – index.html
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-color: #3a5a4a;
    overflow: hidden;
}

.hero picture,
.hero picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(1, 39, 27, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    padding: 40px 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(191, 43, 26, 0.8);
    color: #fff;
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    border-radius: 2px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Page Hero – subpages
   -------------------------------------------------------------------------- */
.page-hero {
    background: linear-gradient(156deg, #007052 0%, #00b07f 100%);
    color: #fff;
    padding: 60px 40px 50px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Sections
   -------------------------------------------------------------------------- */
.section {
    padding: 80px 40px;
    max-width: 960px;
    margin: 0 auto;
}

.section-twocol {
    padding-top: 0;
    padding-bottom: 0;
}

.section-green {
    background: linear-gradient(156deg, rgba(0, 112, 82, 1) 0%, rgba(0, 176, 127, 1) 100%);
    color: #fff;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #007052;
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-green h2,
.section-green p {
    color: #fff;
}

.section p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: #444;
}

.section-green p {
    color: rgba(255, 255, 255, 0.9);
}

.divider {
    text-align: center;
    font-size: 1.5rem;
    color: #00b07f;
    letter-spacing: 8px;
    margin: 15px 0;
}

/* Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    background: #007052;
    color: #fff;
    padding: 12px 35px;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 3px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background: #00b07f;
}

/* Two Column Layout
   -------------------------------------------------------------------------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.two-col .col h2 {
    font-size: 1.8rem;
}

/* Partners
   -------------------------------------------------------------------------- */
.partners {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.partner-badge {
    background: #e8e8e8;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

/* Job Section
   -------------------------------------------------------------------------- */
.job-section {
    padding: 80px 40px;
}

.job-section .inner {
    max-width: 960px;
    margin: 0 auto;
}

.job-section h2 {
    color: #007052;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.job-section p {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

/* Content – subpages (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.content {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #007052;
    margin: 35px 0 12px;
    padding-top: 10px;
}

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

.content p {
    margin-bottom: 12px;
    color: #444;
    font-size: 1rem;
}

.content address {
    font-style: normal;
    margin-bottom: 12px;
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
}

.content ul {
    margin: 0 0 12px 20px;
    color: #444;
    font-size: 1rem;
}

.content li {
    margin-bottom: 4px;
}

/* Footer
   -------------------------------------------------------------------------- */
.footer {
    background: linear-gradient(156deg, rgba(0, 112, 82, 1) 0%, rgba(0, 176, 127, 1) 100%);
    color: #fff;
    padding: 50px 40px 30px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-links a {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Scroll to top
   -------------------------------------------------------------------------- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #007052;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 50;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    background: #00b07f;
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }

    .header-contact {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 12px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        min-height: 60vh;
    }

    .section {
        padding: 50px 20px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .job-section {
        padding: 50px 20px;
    }

    .page-hero {
        padding: 40px 20px 30px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .content {
        padding: 40px 20px 60px;
    }
}
