/* --- LOCAL FONTS (DSGVO COMPLIANT) --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../assets/fonts/Outfit-Variable.woff2') format('woff2');
}

/* --- CUSTOM VARIABLES --- */
:root {
    --primary-color: #0f172a;       /* Slate 900 */
    --primary-hover: #1e293b;       /* Slate 800 */
    --accent-color: #105B3C;        /* Company Green */
    --accent-hover: #0c472f;        /* Darker Green */
    --accent-light: #f0f7f4;        /* Soft Green Background */
    --text-color: #1e293b;          /* Body Text */
    --text-muted: #64748b;          /* Secondary Muted Text */
    --bg-light: #f8fafc;            /* Clean light grey */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

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

/* --- STRUCTURE --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 5rem 0;
}

.section-grey {
    background-color: #f1f5f9;
}

/* --- GLASSMORPHIC NAVIGATION BAR --- */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.header-wrapper.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.header-wrapper.scrolled header {
    padding: 0.8rem 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    /* CSS Filter to convert white logo to corporate green #105B3C */
    filter: brightness(0) invert(27%) sepia(51%) saturate(545%) hue-rotate(113deg) brightness(91%) contrast(92%);
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    /* Hover filter to convert to darker green #0c472f */
    filter: brightness(0) invert(19%) sepia(50%) saturate(620%) hue-rotate(115deg) brightness(92%) contrast(95%);
}

/* NAV LINKS */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

/* MOBILE TOGGLE */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, rgba(16, 91, 60, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%), 
                url('../assets/img/bild43_0.jpg') center/cover no-repeat;
    color: var(--bg-white);
    padding: 9rem 0 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-tag {
    background-color: rgba(16, 91, 60, 0.2);
    color: #a7f3d0;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 91, 60, 0.3);
}

.hero h1 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* BUTTONS */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
    box-shadow: 0 4px 14px 0 rgba(16, 91, 60, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 91, 60, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* --- PAGE HERO (Subpages) --- */
.page-hero {
    background: linear-gradient(135deg, rgba(16, 91, 60, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    color: var(--bg-white);
    padding: 8rem 0 4rem 0;
    position: relative;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.page-hero h1 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.page-hero p {
    color: #94a3b8;
    font-size: 1.15rem;
}

.page-hero-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.1);
    max-height: 250px;
}

.page-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-img.logo-banner {
    border: none;
    box-shadow: none;
    background: transparent;
    max-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-hero-img.logo-banner img {
    object-fit: contain;
    max-height: 180px;
    width: auto;
}

/* --- GRID SYSTEM & CARDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 91, 60, 0.2);
}

.card-img-wrapper {
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    overflow: hidden;
    height: 200px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-list {
    margin-bottom: 1.5rem;
}

.card-list li {
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* --- SPECIFIC FEATURES --- */
/* Certifications Badge in Footer or sidebar */
.cert-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.cert-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.cert-logo {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pdf-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--accent-light);
    color: var(--accent-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(16, 91, 60, 0.1);
}

.pdf-link-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.pdf-link-btn svg {
    fill: currentColor;
    width: 18px;
    height: 18px;
}

/* --- TELEPHONE DIRECTORY --- */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f1f5f9;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: var(--bg-light);
}

/* Contact Badges */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info-panel {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.contact-info-panel h3 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.contact-item-value {
    font-size: 1.15rem;
    font-weight: 500;
}

.contact-item-value a {
    color: var(--bg-white);
}

.contact-item-value a:hover {
    color: #86efac;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding: 5rem 0 2rem 0;
    border-top: 4px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #94a3b8;
}

.footer-bottom-links a:hover {
    color: var(--bg-white);
}

/* --- DSGVO CONFORMITY BANNER / PRIVACY STATEMENT --- */
.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* --- KEY ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* --- RESPONSIVE DESIGNS --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.25rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    .page-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .page-hero-img {
        max-width: 450px;
        order: -1;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* MOBILE NAVIGATION */
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        height: 100vh;
        z-index: 1000;
        justify-content: center;
        transition: 0.4s;
        box-shadow: var(--shadow-lg);
        gap: 2.5rem;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        font-size: 1.25rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
