/* =============================================
   BLOC NO LIMIT - UNTERSEITEN
   ============================================= */

/* E-Mail Schutz */
.protected-email {
    color: var(--brand-orange-text, #c47a1a);
    text-decoration: none;
    cursor: pointer;
}

.protected-email .email-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(244, 155, 49, 0.1);
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s;
}

.protected-email:hover .email-placeholder {
    background: rgba(244, 155, 49, 0.2);
}

.email-revealed,
.email-revealed:visited {
    color: var(--brand-orange-text, #c47a1a);
    text-decoration: none;
}

.email-revealed .email-placeholder.revealed {
    background: transparent;
    padding: 0;
}

/* =============================================
   HAUPT-CONTENT CONTAINER
   ============================================= */
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

/* =============================================
   PAGE HERO - KOMPAKT
   ============================================= */
.page-hero {
    padding: clamp(12px, 2vh, 20px) 0;
    background: var(--bg-primary);
    text-align: center;
    flex-shrink: 0;
}

.page-hero .hero-label {
    color: var(--brand-orange-text);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.page-title {
    font-family: var(--font-headline);
    font-size: clamp(28px, 5vw, 44px);
    color: var(--text-primary);
    line-height: 1;
    margin: 0 0 6px;
    letter-spacing: 2px;
}

.page-intro {
    font-size: clamp(12px, 1.5vw, 15px);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.4;
}

/* =============================================
   SECTIONS - FLEX FILL
   ============================================= */
.section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(10px, 2vh, 20px) 0;
    overflow: hidden;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-highlight {
    background: var(--brand-orange);
    color: white;
}

.section-highlight h2 {
    color: white;
}

.section h2 {
    font-family: var(--font-headline);
    font-size: clamp(18px, 2.5vw, 26px);
    color: var(--text-primary);
    margin: 0 0 10px;
    letter-spacing: 1px;
    text-align: center;
}

.section p {
    font-size: clamp(12px, 1.3vw, 14px);
    text-align: center;
    margin: 0 0 12px;
}

/* =============================================
   STATS GRID - HORIZONTAL KOMPAKT
   ============================================= */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 2vw, 16px);
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: clamp(10px, 1.5vh, 16px) clamp(14px, 2vw, 24px);
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-card);
    min-width: 100px;
}

.stat-card .stat-value {
    font-family: var(--font-headline);
    font-size: clamp(20px, 3vw, 28px);
    color: var(--brand-orange-text);
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================
   FEATURE GRID - KOMPAKT
   ============================================= */
.feature-grid {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 12px);
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    flex: 1 1 140px;
    max-width: 180px;
    text-align: center;
}

.feature-card h3 {
    font-family: var(--font-headline);
    font-size: 14px;
    color: var(--brand-orange-text);
    margin: 0 0 3px;
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
}

/* =============================================
   CTA SECTION - KOMPAKT
   ============================================= */
.cta-section {
    background: var(--brand-orange);
    color: white;
    text-align: center;
    padding: clamp(12px, 2vh, 20px) 0;
    flex-shrink: 0;
}

.cta-section h2 {
    color: white;
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 4px;
}

.cta-section p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   BUTTONS - KOMPAKT
   ============================================= */
.btn-primary {
    display: inline-block;
    background: var(--brand-orange);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-1px);
    color: #1a1a1a;
}

.cta-section .btn-primary {
    background: white;
    color: var(--brand-orange-text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--brand-orange-text);
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    border: 2px solid var(--brand-orange);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--brand-orange);
    color: #1a1a1a;
}

.cta-section .btn-secondary {
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: var(--brand-orange-text);
}

/* =============================================
   SEKTOREN-ÜBERSICHT
   ============================================= */
.section-sektoren {
    flex: 1;
    padding: clamp(10px, 2vh, 20px) 0;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sektoren-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.sektoren-map-placeholder {
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-content {
    padding: 16px;
}

.placeholder-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}

.placeholder-content h3 {
    font-family: var(--font-headline);
    font-size: 18px;
    margin-bottom: 4px;
}

.placeholder-content p {
    color: var(--text-muted);
    font-size: 11px;
    margin: 0;
}

.sektoren-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding-right: 4px;
}

.sektor-item {
    background: white;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    flex-shrink: 0;
}

.sektor-item:hover {
    transform: translateX(2px);
}

.sektor-nummer {
    font-family: var(--font-headline);
    font-size: 16px;
    color: var(--brand-orange-text);
    min-width: 28px;
}

.sektor-info {
    flex: 1;
}

.sektor-info h4 {
    font-family: var(--font-headline);
    font-size: 13px;
    margin-bottom: 0;
}

.sektor-info p {
    color: var(--text-muted);
    font-size: 10px;
    margin: 0;
    text-align: left;
}

.sektor-level {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.sektor-level--relaxed { background: #22c55e; color: white; }
.sektor-level--power { background: #ef4444; color: white; }
.sektor-level--mixed { background: var(--brand-orange); color: white; }
.sektor-level--outdoor { background: #3b82f6; color: white; }

.sektoren-legende {
    margin-top: 10px;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.sektoren-legende h3 {
    font-family: var(--font-headline);
    font-size: 14px;
    margin-bottom: 6px;
}

.legende-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legende-item span:last-child {
    font-size: 10px;
    color: var(--text-secondary);
}

.sektoren-hinweis {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(244, 155, 49, 0.1);
    border-left: 3px solid var(--brand-orange);
    border-radius: 0 6px 6px 0;
    font-size: 11px;
    flex-shrink: 0;
}

/* Difficulty Grid */
.difficulty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.difficulty-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 6px 12px;
    border-radius: 9999px;
    box-shadow: var(--shadow-card);
    border-left: 3px solid var(--grade-color);
}

.difficulty-grade {
    font-family: var(--font-headline);
    font-size: 16px;
    color: var(--grade-color);
    min-width: 24px;
    text-align: center;
}

.difficulty-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* =============================================
   IMAGE ROLL GALLERY - ENHANCED
   ============================================= */
.section-gallery {
    padding: clamp(16px, 3vh, 32px) 0;
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

/* Gallery Container with Navigation */
.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    padding: 0 clamp(40px, 5vw, 60px);
}

.gallery-roll {
    flex: 1;
    overflow: hidden;
    cursor: grab;
}

.gallery-roll:active {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    gap: 12px;
    width: max-content;
    transition: transform 0.4s ease;
    /* Animation disabled by JS, fallback for no-JS */
    animation: gallery-scroll 30s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes gallery-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-item {
    flex-shrink: 0;
    width: clamp(160px, 20vw, 240px);
    height: clamp(100px, 14vh, 160px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    transition: border-color 0.3s ease;
}

.gallery-item:hover .gallery-placeholder {
    border-color: var(--brand-orange);
}

.gallery-placeholder span {
    font-size: 32px;
    margin-bottom: 6px;
}

.gallery-placeholder p {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    margin: 0;
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.gallery-nav:hover {
    background: var(--brand-orange);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav-prev {
    left: 8px;
}

.gallery-nav-next {
    right: 8px;
}

.gallery-nav svg {
    width: 20px;
    height: 20px;
}

/* Progress Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 19px;
    background-clip: content-box;
}

.gallery-dot:hover {
    background: var(--text-muted);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: var(--brand-orange);
    transform: scale(1.2);
}

/* Gallery Controls (Autoplay Toggle) */
.gallery-controls {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.gallery-autoplay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.gallery-autoplay:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange-text);
}

.autoplay-icon {
    line-height: 1;
}

/* Mobile: Larger touch targets */
@media (max-width: 900px) {
    .gallery-container {
        padding: 0 12px;
    }

    .gallery-nav {
        min-width: 48px;
        min-height: 48px;
        width: 48px;
        height: 48px;
    }

    .gallery-nav svg {
        width: 16px;
        height: 16px;
    }

    .gallery-nav-prev {
        left: 4px;
    }

    .gallery-nav-next {
        right: 4px;
    }

    .gallery-item {
        width: clamp(140px, 40vw, 200px);
        height: clamp(90px, 25vw, 130px);
    }

    .gallery-dots {
        gap: 10px;
    }

    .gallery-dot {
        width: 12px;
        height: 12px;
    }

    /* Swipe hint on mobile */
    .gallery-roll::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, var(--bg-secondary));
        pointer-events: none;
    }
}

/* Hide arrows on very small screens - rely on swipe */
@media (max-width: 600px) {
    .gallery-nav {
        display: none;
    }

    .gallery-container {
        padding: 0;
    }

    .gallery-roll {
        padding: 0 16px;
    }
}

/* =============================================
   GUTSCHEINE SEITE
   ============================================= */
.gutschein-card {
    background: white;
    border-radius: 12px;
    padding: clamp(16px, 2vh, 24px);
    box-shadow: var(--shadow-card);
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.gutschein-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.gutschein-card h2 {
    font-family: var(--font-headline);
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 8px;
}

.gutschein-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.gutschein-optionen {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gutschein-option {
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
}

.gutschein-option strong {
    color: var(--brand-orange-text);
    font-family: var(--font-headline);
    font-size: 18px;
    display: block;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.info-card h4 {
    font-family: var(--font-headline);
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--brand-orange-text);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.info-card a {
    color: var(--brand-orange-text);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* =============================================
   PRICE TABLE
   ============================================= */
.price-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    max-width: 400px;
    margin: 0 auto;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.price-row:last-child {
    border-bottom: none;
}

.price-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

.price-value {
    font-family: var(--font-headline);
    font-size: 20px;
    color: var(--brand-orange-text);
}

/* =============================================
   HOURS TABLE
   ============================================= */
.hours-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    max-width: 350px;
    margin: 0 auto;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-note {
    color: var(--brand-orange-text);
    font-size: 14px;
    font-weight: 600;
}

/* =============================================
   TEXT UTILITIES
   ============================================= */
.text-center { text-align: center; }

/* =============================================
   RESPONSIVE - MOBILE
   ============================================= */
@media (max-width: 900px) {
    .sektoren-grid {
        grid-template-columns: 1fr;
    }

    .sektoren-map-placeholder {
        display: none;
    }
}

@media (max-width: 900px) {
    .page-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .section h2 {
        font-size: clamp(16px, 4vw, 22px);
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 8px 12px;
        min-width: 80px;
    }

    .stat-card .stat-value {
        font-size: clamp(18px, 5vw, 24px);
    }

    .feature-grid {
        gap: 8px;
    }

    .feature-card {
        padding: 8px 10px;
        flex: 1 1 120px;
    }

}

@media (max-height: 600px) {
    .page-hero {
        padding: 8px 0;
    }

    .page-title {
        font-size: clamp(22px, 5vw, 32px);
    }

    .page-intro {
        font-size: 11px;
    }

    .section {
        padding: 8px 0;
    }

    .section h2 {
        font-size: clamp(16px, 3vw, 20px);
        margin-bottom: 6px;
    }

    .cta-section {
        padding: 10px 0;
    }

    .cta-section h2 {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ============================================
   SEKTOREN-KARTE
   ============================================ */

/* Page Hero (wie andere Unterseiten) */
.page-sektoren .page-hero {
    text-align: center;
    padding: 100px 24px 40px;
}

.page-sektoren .section-label {
    color: #c47a1a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.page-hero-title {
    font-family: var(--font-headline);
    font-size: clamp(32px, 5vw, 48px);
    color: var(--text-primary);
    letter-spacing: 2px;
    margin: 0;
}

.page-hero-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 8px;
}

/* Karten-Container */
.sektoren-section {
    padding: 0 16px 24px;
}

.sektoren-map-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.sektoren-map {
    width: 100%;
    height: auto;
}

/* Sektor-Bereiche */
.sektor {
    cursor: pointer;
    outline: none;
}

.sektor:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
    border-radius: 8px;
}

.sektor-area {
    fill: rgba(244, 155, 49, 0.08);
    stroke: var(--brand-orange);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.sektor:hover .sektor-area,
.sektor:focus .sektor-area {
    fill: rgba(244, 155, 49, 0.18);
    stroke-width: 2.5;
}

.sektor.active .sektor-area {
    fill: rgba(244, 155, 49, 0.25);
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(244, 155, 49, 0.4));
}

.sektor-outdoor {
    stroke-dasharray: 6 3;
}

.sektor-label {
    font-family: var(--font-headline);
    font-size: 16px;
    fill: var(--text-primary);
    text-anchor: middle;
    pointer-events: none;
}

.sektor-count {
    font-family: var(--font-body);
    font-size: 11px;
    fill: var(--text-muted);
    text-anchor: middle;
    pointer-events: none;
}

/* Detail-Panel */
.sektor-detail {
    max-width: 800px;
    margin: 16px auto 0;
    padding: 20px 24px;
    background: var(--bg-card, #fff);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    position: relative;
    animation: fadeSlideUp 0.3s ease;
}

.sektor-detail[hidden] {
    display: none;
}

.sektor-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    min-width: 48px;
    min-height: 48px;
}

.sektor-detail-close:hover,
.sektor-detail-close:focus-visible {
    background: var(--brand-orange);
    color: white;
}

.sektor-detail-title {
    font-family: var(--font-headline);
    font-size: 24px;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin: 0 0 8px;
}

.sektor-detail-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.sektor-detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sektor-meta-item {
    background: var(--bg-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA unter der Karte */
.sektoren-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 0 16px 40px;
    flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 900px) {
    .page-sektoren .page-hero {
        padding: 80px 16px 24px;
    }

    .sektoren-section {
        padding: 0 8px 16px;
    }

    .sektor-label { font-size: 13px; }
    .sektor-count { font-size: 9px; }

    .sektor-detail {
        margin: 12px 8px 0;
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .sektor-label { font-size: 11px; }
    .sektor-count { display: none; }
}
