/* CSS Custom Properties for Theming */
:root {
  /* Two-colour palette: dark charcoal + white */
  --color-primary:        oklch(20% 0.01 255deg);  /* dark charcoal — buttons, accents */
  --color-primary-light:  oklch(30% 0.01 255deg);  /* hover state — still dark */
  --color-primary-dark:   oklch(13% 0.01 255deg);  /* footer / deepest headings */
  --color-accent:         oklch(20% 0.01 255deg);  /* same as primary */
  --color-secondary:      oklch(20% 0.01 255deg);  /* same as primary */

  /* Surfaces */
  --color-surface:        oklch(100% 0 0);         /* white */
  --color-surface-alt:    oklch(97% 0 0);          /* barely-there off-white for section alternation */
  --color-surface-card:   oklch(100% 0 0);         /* white card */

  /* Text */
  --color-text:           oklch(14% 0.01 255deg);  /* near-black */
  --color-text-muted:     oklch(44% 0.01 255deg);  /* readable secondary grey */
  --color-text-subtle:    oklch(60% 0.01 255deg);  /* placeholder / captions */

  /* Legacy aliases */
  --primary-color:   var(--color-primary);
  --primary-light:   var(--color-primary-light);
  --primary-dark:    var(--color-primary-dark);
  --accent-color:    var(--color-accent);
  --gradient-start:  var(--color-primary);
  --gradient-end:    var(--color-primary-dark);
  --section-bg:      var(--color-surface-alt);
}

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

*:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background-color: var(--primary-light);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-light);
    color: white;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-surface);
    overflow-x: hidden;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(var(--primary-color-rgb, 74, 85, 104), 0.4), rgba(var(--primary-dark-rgb, 45, 55, 72), 0.4)), url('startpicture.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        oklch(0% 0 0 / 0.15) 0%,
        oklch(0% 0 0 / 0.35) 50%,
        oklch(0% 0 0 / 0.55) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 1.125rem 2.75rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.125rem);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--primary-dark);
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--color-primary);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
    overflow: hidden;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    background: var(--color-surface-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

.about-images {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInLeft 1s ease-out;
}

.main-image {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 8px rgba(0, 0, 0, 0.05);
    border: 6px solid white;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.main-image:hover {
    transform: scale(1.03);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.2),
        0 0 0 8px rgba(0, 0, 0, 0.08);
}

.image-decoration {
    display: none;
}

.about-text {
    animation: fadeInRight 1s ease-out 0.2s both;
}

.about-text p {
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.about-text p:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.about-text p:first-child::first-letter {
    float: left;
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.5rem;
    margin-top: 0.1rem;
}

.about-text p:nth-child(1) { animation-delay: 0.4s; }
.about-text p:nth-child(2) { animation-delay: 0.6s; }
.about-text p:nth-child(3) { animation-delay: 0.8s; }
.about-text p:nth-child(4) { animation-delay: 1s; }
.about-text p:nth-child(5) { animation-delay: 1.2s; }

/* Services Section */
.services {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: linear-gradient(180deg, var(--section-bg) 0%, rgba(248, 249, 250, 0.5) 100%);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "jung  famil  social"
        "featured featured featured";
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Assign cards to areas by source order */
.service-card:nth-child(1) { grid-area: jung; }
.service-card:nth-child(2) { grid-area: famil; }
.service-card:nth-child(3) { grid-area: social; }
.service-card:nth-child(4) { grid-area: featured; }

/* Privatstunde — full-width horizontal banner */
.service-card:nth-child(4) {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    background: var(--color-surface-card);
}
.service-card:nth-child(4) > div:first-child {
    flex: 1;
}
.service-card:nth-child(4) .service-card-footer {
    flex: 0 0 auto;
    min-width: 180px;
    text-align: center;
    margin-top: 0;
}
.service-card:nth-child(4)::before {
    height: 6px;
    background: var(--color-primary);
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: left;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    border-radius: 24px 24px 0 0;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.service-card:hover::after {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.service-card.featured {
    border: 3px solid var(--primary-light);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.service-card > div:first-child {
    flex: 1;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.55;
    font-size: 0.95rem;
}

.service-card p:last-of-type {
    margin-bottom: 0.5rem;
}

.mitbringen-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 0;
    text-align: left;
}

.mitbringen-list li {
    padding: 0.25rem 0;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.45;
    font-size: 0.9rem;
}

.mitbringen-list li::before {
    content: '\2022';
    position: absolute;
    left: 0.3rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-card-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.service-trainingszeiten {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.service-price-abo {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
}

.service-button:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    color: white;
}

/* Contact mailto button */
.contact-mailto-btn {
    margin-top: 2rem;
    width: 100%;
}

/* Gallery Carousel Section */
.gallery-carousel {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: var(--color-primary-dark);
    position: relative;
    overflow: hidden;
}

.gallery-carousel .container {
    position: relative;
    z-index: 2;
}

.gallery-carousel .section-title {
    color: white;
}

.gallery-carousel .section-title::after {
    background: white;
}

.carousel-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    padding: 0 80px;
    perspective: 1500px;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 30px;
}

.carousel-track {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    scroll-snap-align: start;
}

.carousel-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    cursor: pointer;
}

.carousel-image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.4),
        0 15px 30px rgba(0, 0, 0, 0.3);
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 2rem 2rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.carousel-image-wrapper:hover .carousel-caption {
    transform: translateY(0);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

/* Calendar Section */
.calendar-section {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
}

.calendar-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-surface-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-nav {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.calendar-month {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.available {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.25));
    color: #2e7d32;
    font-weight: 600;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.available {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.25));
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* FAQ Section */
.faq {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: linear-gradient(180deg, var(--section-bg) 0%, #ffffff 100%);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin-bottom: 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.faq-item:hover {
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.3s ease;
    list-style: none;
}

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

.faq-question::marker {
    display: none;
    content: '';
}

.faq-question:hover {
    background: var(--color-surface-alt);
}

.faq-question h3 {
    color: var(--color-text);
    font-weight: 600;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Schedule Section */
.schedule {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.schedule-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03);
}

.schedule-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.06);
}

.schedule-card.highlight {
    background: var(--color-primary);
    color: white;
    border: none;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.schedule-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.schedule-card.highlight h3 {
    color: white;
}

.schedule-time {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.schedule-icon {
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.schedule-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0.5rem auto 1rem;
}

.day {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-light);
}

.schedule-card.highlight .day {
    color: #f7fafc;
}

.time {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.schedule-info p {
    color: var(--color-text-muted);
    margin: 0.5rem 0;
}

.schedule-card.highlight .schedule-info p {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: linear-gradient(180deg, var(--section-bg) 0%, #ffffff 100%);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-map {
    width: 100%;
    margin-top: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(0, 0, 0, 0.1),
        0 24px 48px rgba(0, 0, 0, 0.15);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--color-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.map-header h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

.map-control-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    .map-control-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

.map-control-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.4);
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 0 0 20px 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* Fullscreen map styles */
.map-container:fullscreen { background: white; }
.map-container:fullscreen iframe { width: 100vw; height: 100vh; }
.map-container:-webkit-full-screen { background: white; }
.map-container:-webkit-full-screen iframe { width: 100vw; height: 100vh; }

.contact-info h3 {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.contact-item strong {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--color-text-muted);
    margin: 0;
}

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

.contact-item a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 { margin-bottom: 1rem; color: #f7fafc; }
.footer-section h4 { margin-bottom: 1rem; color: #e3f2fd; }
.footer-section p { color: #b3c5d7; line-height: 1.7; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }

.footer-section ul li a {
    color: #b3c5d7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f7fafc;
}

.footer-placeholder {
    color: #6b839e;
    font-style: italic;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-color);
    color: #b3c5d7;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Focus Styles */
.nav-link:focus,
.service-button:focus,
.cta-button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.calendar-day:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-areas: unset;
    }

    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(4) {
        grid-area: unset;
    }

    /* Privatstunde first on mobile, back to vertical */
    .service-card:nth-child(4) {
        order: -1;
        flex-direction: column;
        align-items: stretch;
    }
    .service-card:nth-child(4) .service-card-footer {
        min-width: unset;
        text-align: center;
        margin-top: 0;
    }

    .service-button {
        width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 1.5rem;
    }

    .about-images {
        order: -1;
    }

    .main-image-wrapper {
        max-width: 100%;
    }

    .about-text p {
        text-align: left;
    }

    .carousel-container {
        padding: 0 50px;
    }

    .carousel-slide {
        padding: 20px;
    }

    .carousel-slide img {
        max-height: 350px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .carousel-caption {
        font-size: 1rem;
        padding: 1.5rem 1rem 1rem;
    }

    .hero-video {
        display: block;
        min-height: 120%;
        min-width: 120%;
        transform: translateX(-50%) translateY(-55%) scale(0.85);
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-description { font-size: 1rem; }
    .section-title { font-size: 2rem; }

    .service-card.featured {
        transform: none;
    }

    .contact-wrapper {
        max-width: 100%;
    }

    .contact-grid {
        gap: 2rem;
    }

    .contact-map {
        border-radius: 15px;
    }

    .map-container {
        height: 350px;
    }

    .map-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .map-header h4 { font-size: 1rem; }

    .map-control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        min-width: 44px;
        min-height: 44px;
    }

    .map-controls { gap: 0.75rem; }

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

    .calendar-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .calendar-legend { gap: 1rem; }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-content img { max-height: 80vh; }

    .carousel-image-wrapper::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .services { padding: 4rem 0; }
    .service-card { padding: 2rem; }
    .calendar-container { padding: 1rem; }
    .calendar-day { font-size: 0.9rem; }
    .weekday { font-size: 0.9rem; }
}

/* Print Styles */
@media print {
    .navbar,
    .hero {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }

    .section-title {
        color: #000;
        page-break-after: avoid;
    }

    .service-card,
    .schedule-card,
    .faq-item {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.carousel-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    pointer-events: none;
}

.carousel-image-wrapper:hover::after {
    background: rgba(0, 0, 0, 0.15);
}


/* ============================================================
   CSS Scroll-Driven Animations
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; translate: 0 40px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  .service-card,
  .schedule-card,
  .faq-item {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }
}

/* ============================================================
   View Transitions API
   ============================================================ */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: 280ms ease both fade-out;
}
::view-transition-new(root) {
  animation: 280ms ease both fade-in;
}

@keyframes fade-out {
  to { opacity: 0; translate: 0 -8px; }
}
@keyframes fade-in {
  from { opacity: 0; translate: 0 8px; }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
