/* Version 10.2 - Über mich: Abstand zwischen Einführungsbox und erster Info-Box angeglichen (margin-top: spacing-md) */
/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Farbschema basierend auf dem Logo */
    --primary-color: #4FA8A0; /* Türkis */
    --primary-light: #7FCFC7; /* Helles Türkis */
    --primary-dark: #3B8680; /* Dunkles Türkis */
    --accent-color: #85D4C9; /* Mint */
    --text-dark: #2C3E50;
    --text-light: #555555;
    --background: #FFFFFF;
    --background-light: #F0F8F7;
    --border-color: #D4E9E7;
    --shadow: rgba(79, 168, 160, 0.1);
    
    /* Typografie */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 18px;
    --line-height-base: 1.6;
    
    /* Abstände */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* Barrierefreiheit */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    font-weight: 600;
    z-index: 100;
}

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

/* Basis-Typografie */
html {
    font-size: var(--font-size-base);
    scroll-behavior: auto; /* Instant scroll statt smooth */
    scroll-padding-top: 0px;
}

body {
    font-family: var(--font-main);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    background-attachment: fixed;
    padding-top: 120px;
}

/* Fokus-Styles für Tastaturnavigation */
a:focus,
button:focus,
summary:focus,
details:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    font-weight: 700;
}

h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.15rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header und Navigation */
header {
    background-color: var(--background);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    padding: var(--spacing-sm) 0 0.25rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
}

.logo-text-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
    top: 0.5rem;
}

.logo-text-center .logo-text {
    font-family: 'Segoe Print', 'Comic Sans MS', cursive, sans-serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

/* Links in logo-text-center sollen genauso aussehen */
.logo-text-center a {
    color: inherit;
    text-decoration: none;
}

.mobile-break {
    display: none;
}

.logo-anchor {
    margin-left: auto;
    display: flex;
    align-items: center;
    z-index: 2;
    margin-top: -0.5rem;
    margin-right: -7rem;
}

.logo-anchor img {
    height: 130px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-main);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 5rem;
    margin-bottom: 0.5rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
    }
    
    body {
        padding-top: 140px;
    }
    
    .nav-toggle {
        display: flex;
        position: absolute;
        left: var(--spacing-sm);
        top: 50%;
        transform: translateY(-50%);
    }
    
    .logo-text,
    .logo-text-center .logo-text {
        font-family: var(--font-main);
        white-space: nowrap;
        line-height: 1.15;
        font-size: 1.0rem;
        display: inline;
        font-weight: 600;
    }
    
    .mobile-break {
        display: block;
    }
    
    .logo-text-center {
        padding: 0 90px 0 55px;
        position: relative;
        z-index: 1;
        text-align: center;
    }
    
    .logo-anchor {
        position: absolute;
        right: 8px;
        top: 5px;
        z-index: 100;
    }
    
    .logo-anchor img {
        height: 60px;
    }
    
    /* Spezielle Anker-Position für Barrierefreiheit-Seite */
    .barrierefreiheit-page .logo-anchor {
        right: 10px;
    }
    
    /* Silbentrennung für lange Überschrift auf Barrierefreiheit-Seite */
    .barrierefreiheit-page h1 {
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        word-wrap: break-word;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: var(--spacing-md) 0;
        gap: var(--spacing-sm);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm);
    }
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
    scroll-margin-top: 0px;
    background: transparent;
}

/* JavaScript übernimmt jetzt das Scroll-Handling */
#willkommen, #ueber-mich, #ablauf, #kosten, #vorbereitung, #kontakt, #faq {
    scroll-margin-top: 0px;
}

#kontakt {
    padding-top: var(--spacing-md);
}

#main-content {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
}

.section-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.section > .container > h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-xl) 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero .container {
    max-width: 1600px;
}

#vorbereitung .container {
    max-width: 1600px;
}

.hero h1 {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.hero .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

/* Welcome Sections */
.welcome-photos {
    display: flex;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.welcome-photo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.welcome-photo img {
    width: 75%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.welcome-boxes {
    display: flex;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.welcome-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.4rem;
}

.welcome-section p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.welcome-section p:last-child {
    margin-bottom: 0;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.about-text h3:first-of-type {
    margin-top: 0;
}

.about-text p {
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: var(--spacing-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    background-color: var(--background-light);
}

/* Timeline für Ablauf */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-left: 0;
}

.timeline-marker {
    position: absolute;
    left: var(--spacing-md);
    top: var(--spacing-md);
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--shadow);
    flex-shrink: 0;
}

.timeline-content {
    background: white;
    padding: var(--spacing-md);
    padding-left: calc(var(--spacing-md) + 45px + var(--spacing-md));
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Content Boxes */
.content-box {
    background: white;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.content-box h2 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.content-box h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

/* Checklist */
.checklist {
    max-width: 1600px;
    margin: 0 auto;
}

.checklist-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-left: 0;
}

.checklist-item > div {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    padding: var(--spacing-md);
    padding-left: calc(var(--spacing-md) + 40px + var(--spacing-md));
}

.checklist-item h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.checklist-item p,
.checklist-item ul {
    font-size: 1rem;
    line-height: 1.6;
}

.youth-hint {
    background: rgba(100, 180, 170, 0.12);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-top: 0.75rem;
}

.youth-hint-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.4rem !important;
    font-size: 0.95rem;
}

.youth-hint p {
    margin-bottom: 0.5rem;
}

.youth-hint p:last-child {
    margin-bottom: 0;
}

.checklist-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.checklist-links a {
    flex: 1;
    min-width: 200px;
}

.checkmark {
    position: absolute;
    left: var(--spacing-md);
    top: var(--spacing-md);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 2px 8px var(--shadow);
}

/* Über mich - Layout mit Foto-Platzhalter ohne Verschiebung */
/* HINWEIS: Platzhalter ist aktuell ausgeblendet (display: none) */
/* Foto bei "Über mich" - aktuell ausgeblendet */
/* Um ein Foto einzufügen: Ändern Sie "display: none;" zu "display: block;" */
/* und ersetzen Sie in index.html den Inhalt von .about-photo-placeholder mit: <img src="portrait.jpg" alt="Mona Martens, Kinder- und Jugendlichenpsychotherapeutin"> */

.about-content-with-photo {
    position: relative;
}

.about-photo-placeholder {
    position: absolute;
    top: 0;
    right: -15rem;
    width: 300px;
    display: none; /* Auf "block" ändern, um Foto anzuzeigen */
}

.about-photo-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    object-fit: cover;
}

/* Platzhalter-Box (nur sichtbar wenn kein Foto eingefügt) */
.photo-placeholder-box {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.photo-placeholder-box p {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Info Boxes für Über mich */
.info-boxes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.info-box {
    background: white;
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.info-box p,
.info-box ul {
    color: var(--text-light);
    line-height: 1.8;
}

.info-box p {
    margin-bottom: var(--spacing-sm);
}

.two-col-list {
    column-count: 2;
    column-gap: var(--spacing-lg);
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box ul {
    list-style-type: disc;
    padding-left: 0;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.info-box ul li {
    padding: 0.15rem 0;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info h3,
.map-container h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.contact-info h4,
.map-container h4 {
    color: var(--primary-dark);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.map-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: var(--spacing-md);
}

.map-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.map-photo p {
    padding: 0.6rem var(--spacing-md);
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
}

.map-photo p:first-of-type {
    font-size: 1rem;
    color: var(--text-dark);
    padding-top: var(--spacing-sm);
}

.map-photo p:last-of-type {
    padding-bottom: var(--spacing-sm);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    padding: var(--spacing-md);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--background-light);
    transition: background-color 0.3s ease;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item summary:hover {
    background-color: var(--primary-light);
}

.faq-item summary h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    flex: 1;
}

.faq-item p {
    padding: var(--spacing-md);
    padding-top: var(--spacing-md);
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-logo p {
    margin: 0;
    color: white;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.footer-nav a {
    color: white;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Responsive Typografie */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .timeline-item {
        padding-left: 0;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        left: var(--spacing-sm);
        top: var(--spacing-sm);
    }
    
    .timeline-content {
        padding: var(--spacing-sm);
    }
    
    .timeline-content h3 {
        padding-left: calc(40px + var(--spacing-sm));
        min-height: 40px;
        display: flex;
        align-items: center;
    }
    
    .checklist-item {
        padding-left: 0;
    }
    
    .checkmark {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        left: var(--spacing-sm);
        top: var(--spacing-sm);
    }
    
    .checklist-item > div {
        padding: var(--spacing-sm);
    }
    
    .checklist-item h3 {
        padding-left: calc(35px + var(--spacing-sm));
        min-height: 35px;
        display: flex;
        align-items: center;
    }
    
    .welcome-photos {
        flex-direction: column;
    }
    
    .welcome-boxes {
        flex-direction: column;
    }
    
    .about-photo-placeholder {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: var(--spacing-lg) auto 0;
    }
    
    .two-col-list {
        column-count: 1;
    }
}

/* Print Styles */
@media print {
    .skip-link,
    header,
    .nav-toggle,
    .cta-button,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 18pt;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Animationen */
@media (prefers-reduced-motion: no-preference) {
    .timeline-item,
    .content-box,
    .checklist-item,
    .faq-item {
        animation: fadeInUp 0.6s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Für Nutzer die Bewegung reduzieren möchten */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal:not([hidden]) {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-close:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background-color: var(--background-light);
    border-radius: 0 0 16px 16px;
    text-align: center;
}

.modal-footer .cta-button {
    margin: 0;
}

/* Button als Button-Element stylen */
button.cta-button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Responsive Styles für Header */
@media (max-width: 1200px) {
    .logo-text-center .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-anchor img {
        height: 110px;
    }
}

@media (max-width: 992px) {
    .logo-text-center {
        position: static;
        transform: none;
        margin-bottom: var(--spacing-sm);
        width: 100%;
        top: auto;
    }
    
    .navbar .container {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-anchor {
        position: absolute;
        right: 8px;
        top: -5px;
        margin-top: 0;
        margin-right: 0;
        z-index: 100;
    }
    
    .logo-anchor img {
        height: 60px;
    }
    
    /* JavaScript übernimmt jetzt das Scroll-Handling für alle Bildschirmgrößen */
    
    html {
        scroll-padding-top: 0px;
    }
    
    .nav-menu {
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .modal-container {
        width: 92%;
        max-width: 400px;
        max-height: 85vh;
        margin: 0 auto;
    }
    
    .modal-header {
        padding: var(--spacing-sm);
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: var(--spacing-sm);
    }
    
    .modal-body p {
        font-size: 0.95rem;
    }
    
    .content-box h2 {
        font-size: 1.1rem;
    }
}

/* Animationen bei reduced motion */
@media (prefers-reduced-motion: reduce) {
    .modal-container {
        animation: none;
    }
    
    .modal {
        transition: none;
    }
}

/* Sehr kleine Handys - Logo noch kleiner */
@media (max-width: 400px) {
    .logo-anchor img {
        height: 55px;
    }
    
    .logo-anchor {
        right: 8px;
        top: -5px;
        z-index: 100;
    }
    
    .logo-text,
    .logo-text-center .logo-text {
        font-size: 1.05rem;
        max-width: 280px;
    }
}

/* Zusätzlicher Abstand für Section-Überschriften um Header-Überlappung zu vermeiden */
.section .container > h2:first-child {
    padding-top: 1rem;
}
