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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000080;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #FF9933;
    outline-offset: 2px;
}

/* Focus Indicators für alle interaktiven Elemente */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.gallery-item:focus {
    outline: 3px solid #FF9933;
    outline-offset: 2px;
}

/* Sichtbarer Focus für Navigation */
nav a:focus {
    outline: 3px solid #FF9933;
    outline-offset: -3px;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-image {
    position: relative;
    display: flex;
    align-items: center;
}

/* Logo-Höhe entspricht dem Textblock rechts daneben */
.logo-image img {
    height: 100px;
    width: auto;
}

.logo-accent {
    display: none;
}

.header-info {
    flex: 1;
}

.praxis-label {
    color: #666;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.header-info h1 {
    color: #000080;
    font-size: 34px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 1.15;
}

.header-contact {
    display: flex;
    gap: 30px;
    font-size: 12px;
    color: #666;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 20px;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF9933"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.contact-item:last-child::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF9933"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}

/* Navigation */
nav {
    background-color: #000080;
    border-top: 3px solid #FF9933;
}

nav ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: #FF9933;
    color: #ffffff;
}

/* Visueller Indikator für aktiven Link (nicht nur Farbe) */
nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #ffffff;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

/* Shared Section Styles */
.welcome-section,
.team-section,
.praxis-section,
.therapy-section,
.contact-section,
.jobs-section,
.content-section {
    background-color: #ffffff;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.welcome-section::before,
.team-section::before,
.praxis-section::before,
.therapy-section::before,
.contact-section::before,
.jobs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000080 0%, #FF9933 50%, #000080 100%);
}

.accent-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #FF9933 50%, transparent 100%);
    margin: 40px auto;
}

/* Welcome Section (Start) */
.welcome-section {
    padding: 80px 60px;
    text-align: center;
}

.welcome-section h2 {
    color: #000080;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
}

.welcome-text {
    color: #333;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Team Section */
.intro {
    text-align: center;
    margin-bottom: 50px;
}

.intro h2 {
    color: #0066FF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

.intro p {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

.team-image-container {
    text-align: center;
    margin-bottom: 50px;
}

.team-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.team-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.member {
    padding: 0;
}

.member h3 {
    color: #0066FF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.member p {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Praxis Section - Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 30px;
    margin-top: 50px;
    align-items: start;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: fit-content;
    cursor: pointer;
}

.gallery-item:focus {
    outline: 3px solid #FF9933;
    outline-offset: 2px;
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Therapy Section */
.therapy-section .intro {
    text-align: center;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.services-list li {
    color: #333;
    font-size: 16px;
    text-align: left;
    margin-bottom: 0;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    list-style-type: none;
}

/* Contact Form */
.contact-form-container {
    text-align: center;
    margin: 50px 0;
}

.contact-form-container h2 {
    color: #0066FF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066FF;
}

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

.checkbox-group label {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
    padding-left: 30px;
    position: relative;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    position: absolute;
    left: 0;
    top: 4px;
    cursor: pointer;
}

.checkbox-group a {
    color: #0066FF;
    text-decoration: underline;
    font-size: 13px;
    font-weight: normal;
}

.checkbox-group a:hover {
    color: #FF9933;
}

.submit-button {
    background-color: #000080;
    color: #ffffff;
    padding: 14px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #FF9933;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}

.form-note {
    color: #666;
    font-size: 12px;
    margin-top: 15px;
    font-style: italic;
}

/* Contact Section */
.contact-info {
    text-align: center;
    margin-bottom: 50px;
}

.contact-info h2 {
    color: #0066FF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-info p {
    color: #333;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 10px;
}

.contact-info .highlight {
    text-decoration: underline;
    margin-top: 20px;
}

.map-container {
    margin-top: 50px;
    text-align: center;
}

.map-container h2 {
    color: #0066FF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.map-container iframe {
    width: 100%;
    max-width: 900px;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Jobs Section */
.jobs-section {
    padding: 80px 60px;
    text-align: center;
}

.jobs-content {
    color: #333;
    font-size: 16px;
    line-height: 2;
    max-width: 700px;
    margin: 0 auto;
}

.jobs-content a {
    color: #0066FF;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.jobs-content a:hover {
    color: #FF9933;
}

/* Content Section (Impressum) */
.content-section {
    background-color: #ffffff;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000080 0%, #FF9933 50%, #000080 100%);
}

.content-section h1 {
    color: #000080;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
}

.content-section h2 {
    color: #000080;
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-section h3 {
    color: #0066FF;
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section p {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-section a {
    color: #0066FF;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: #FF9933;
}

.content-section strong {
    color: #000080;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #000080;
    color: #ffffff;
    padding: 50px 40px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #FF9933;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.9;
}

footer a {
    color: #FF9933;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header nicht sticky auf Mobile */
    header {
        position: relative;
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .logo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Logo kleiner auf Mobile */
    .logo-image img {
        height: 60px;
    }

    .header-info h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .praxis-label {
        font-size: 9px;
        margin-bottom: 5px;
    }

    .header-contact {
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
        align-items: center;
    }
    
    /* Symbole auf Mobile beibehalten, aber zentriert */
    .contact-item {
        padding-left: 20px;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 20px;
        font-size: 13px;
    }

    main {
        padding: 0 20px;
        margin: 40px auto;
    }

    .welcome-section,
    .team-section,
    .praxis-section,
    .therapy-section,
    .contact-section,
    .jobs-section {
        padding: 40px 30px;
    }

    .content-section {
        padding: 30px 20px;
    }

    .welcome-section h2 {
        font-size: 24px;
    }

    .welcome-text {
        font-size: 16px;
    }

    .team-members {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .submit-button {
        width: 100%;
    }

    .therapy-section .intro,
    .contact-info,
    .map-container {
        text-align: center;
    }

    .services-list {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .team-members {
        text-align: center;
    }

    .map-container iframe {
        width: 100%;
        height: 300px;
    }

    .jobs-content {
        font-size: 16px;
    }

    .content-section h1 {
        font-size: 28px;
        text-align: center;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}