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

:root {
    --primary-color: #2c7a7b;
    --secondary-color: #38b2ac;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --grey: #718096;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background-color: var(--light-bg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Content Section */
.content {
    padding: 3rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.content-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.content-text h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.content-text ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 0.75rem;
    background-color: var(--light-bg);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

/* Contact Box */
.contact-box {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.contact-box h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-box p {
    margin-bottom: 1.5rem;
}

.contact-box a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Team Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    background-color: var(--light-bg);
}

.team-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-card .role {
    color: var(--grey);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* File Input Styling */
input[type="file"] {
    padding: 0.5rem !important;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    background-color: var(--light-bg);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background-color 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #e2e8f0;
}

/* Form Messages */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.form-message.success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 2px solid #48bb78;
}

.form-message.error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 2px solid #f56565;
}

/* Button */
.btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #234e52;
}

.btn:disabled {
    background-color: var(--grey);
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer a {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

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

    .hero .lead {
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-box {
        position: static;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 40px;
    }

    .logo h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .btn {
        width: 100%;
    }
}


/* Basis-Link ohne Unterstreichung */
.team-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

/* Entferne Unterstreichung auch bei Hover */
.team-link:hover,
.team-link:focus,
.team-link:active,
.team-link:visited {
    text-decoration: none;
}

/* Hover-Effekt: Leicht transparent */
.team-link:hover {
    opacity: 0.85;
}

/* Alle Textelemente im Link */
.team-link h3,
.team-link .role {
    text-decoration: none;
    transition: color 0.3s;
}

/* Name wird beim Hover farbig */
.team-link:hover h3 {
    color: var(--primary-color);
}

/* Bild bekommt Cursor-Pointer */
.team-link img {
    cursor: pointer;
    transition: transform 0.3s;
}

/* Optional: Bild hebt sich beim Hover leicht */
.team-link:hover img {
    transform: scale(1.05);
}


/* ============================================
   GOOGLE MAPS SECTION
   ============================================ */

   .map-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.map-section .lead {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Kontakt-Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-info-item p {
    margin: 0;
    color: #666;
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-item a:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
