/**
 * Planung Screen CSS
 * Hochwertiges Layout analog Link-Building-Workshop (Gradient-Hero, Meta-Kacheln, FAQ-Cards).
 */

@keyframes planung-rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.planung-page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 0;
    background-color: var(--color-background);
    box-sizing: border-box;
}

.planung-page-container h1,
.planung-page-container h2,
.planung-page-container h3,
.planung-page-container h4,
.planung-page-container h5,
.planung-page-container h6 {
    color: var(--color-text);
    hyphens: none;
    word-break: normal;
}

/* Hero */
.planung-hero-section {
    text-align: center;
    padding: 100px 60px;
    margin-bottom: 80px;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-background) 100%);
    border-radius: 25px;
    border: 2px solid var(--color-border-light-mode);
    background-image:
        linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-background) 100%),
        linear-gradient(135deg, rgba(243, 147, 36, 0.08) 0%, rgba(28, 122, 126, 0.08) 50%, rgba(243, 147, 36, 0.08) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 20px var(--color-shadow-light);
    position: relative;
    overflow: hidden;
}

.planung-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(243, 147, 36, 0.06) 0%,
        transparent 70%
    );
    animation: planung-rotate-gradient 12s linear infinite;
    pointer-events: none;
}

.planung-hero-section .base-headline-h1,
.planung-hero-section .base-headline-h1 h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.planung-hero-subtitle-wrap .base-subtitle,
.planung-hero-subtitle {
    font-family: var(--font-family-primary);
    font-size: 1.6rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0 auto;
    font-weight: 500;
    max-width: 820px;
    position: relative;
    z-index: 1;
}

/* Meta-Kacheln */
.planung-meta-section {
    margin-bottom: 80px;
}

.planung-meta-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.planung-meta-tile {
    position: relative;
    margin-bottom: 0;
    padding: 16px 18px;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    border: 1.5px solid var(--glass-border-edge);
    border-left-width: 4px;
    border-left-color: var(--color-teal);
    border-radius: 16px;
    overflow: visible;
    background: var(--glass-surface-bg);
    backdrop-filter: blur(var(--glass-blur-surface));
    -webkit-backdrop-filter: blur(var(--glass-blur-surface));
    box-shadow: var(--surface-shadow-glass), inset 0 1px 0 var(--glass-border-highlight);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.planung-meta-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--surface-shadow-glass-hover);
    border-color: rgba(243, 147, 36, 0.22);
}

.planung-meta-tile-date {
    border-left-color: var(--color-orange);
}

.planung-meta-tile-location {
    border-left-color: rgba(28, 122, 126, 0.55);
}

.planung-meta-tile-einlass {
    border-left-color: var(--color-teal);
}

.planung-meta-tile-parking {
    border-left-color: var(--color-orange);
    background: linear-gradient(
        135deg,
        var(--glass-surface-bg) 0%,
        rgba(243, 147, 36, 0.1) 100%
    );
}

.planung-meta-label {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px 0;
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
}

.planung-meta-value {
    font-family: var(--font-family-primary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.planung-meta-tile-parking .planung-meta-value {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--color-orange);
}

/* ExpertDAY */
.planung-expertday-section {
    margin-bottom: 80px;
    padding: 60px;
    background: var(--color-white);
    border-radius: 25px;
    border: 1.5px solid var(--glass-border-edge);
    box-shadow: var(--surface-shadow-glass), inset 0 1px 0 var(--glass-border-highlight);
    box-sizing: border-box;
}

.planung-expertday-section .base-headline-h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--color-text-dark);
}

.planung-expertday-intro {
    font-family: var(--font-family-primary);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.planung-expertday-rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

.planung-expertday-rule-card,
.planung-expertday-rule-card-one,
.planung-expertday-rule-card-two,
.planung-expertday-rule-card-three {
    margin-bottom: 0;
    padding: 18px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    background: var(--color-white);
    border: 1.5px solid var(--glass-border-edge);
    border-left: 3px solid var(--color-teal);
    border-radius: 12px;
    box-shadow: var(--surface-shadow-glass), inset 0 1px 0 var(--glass-border-highlight);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.planung-expertday-rule-card-one {
    border-left-color: var(--color-orange);
}

.planung-expertday-rule-card-two {
    border-left-color: var(--color-teal);
}

.planung-expertday-rule-card-three {
    border-left-color: var(--color-orange);
    background: linear-gradient(
        135deg,
        var(--color-white) 0%,
        rgba(243, 147, 36, 0.08) 100%
    );
}

.planung-expertday-rule-card:hover,
.planung-expertday-rule-card-one:hover,
.planung-expertday-rule-card-two:hover,
.planung-expertday-rule-card-three:hover {
    transform: translateY(-2px);
    box-shadow: var(--surface-shadow-glass-hover), inset 0 1px 0 var(--glass-border-highlight);
    border-color: rgba(243, 147, 36, 0.22);
    border-left-color: var(--color-orange);
}

.planung-expertday-rule-card .base-headline-h3-planung-expertday-rule,
.planung-expertday-rule-card-one .base-headline-h3-planung-expertday-rule,
.planung-expertday-rule-card-two .base-headline-h3-planung-expertday-rule,
.planung-expertday-rule-card-three .base-headline-h3-planung-expertday-rule {
    display: block;
    margin: 0;
    width: 100%;
}

.planung-expertday-rule-card .base-headline-h3-planung-expertday-rule h3,
.planung-expertday-rule-card-one .base-headline-h3-planung-expertday-rule h3,
.planung-expertday-rule-card-two .base-headline-h3-planung-expertday-rule h3,
.planung-expertday-rule-card-three .base-headline-h3-planung-expertday-rule h3 {
    font-family: var(--font-family-primary);
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.35;
    text-transform: none;
    text-shadow: none;
    position: static;
    display: block;
    width: 100%;
    letter-spacing: -0.01em;
}

.planung-expertday-rule-card .base-headline-h3-planung-expertday-rule h3::after,
.planung-expertday-rule-card-one .base-headline-h3-planung-expertday-rule h3::after,
.planung-expertday-rule-card-two .base-headline-h3-planung-expertday-rule h3::after,
.planung-expertday-rule-card-three .base-headline-h3-planung-expertday-rule h3::after {
    display: none;
}

.planung-expertday-rule-card-three .base-headline-h3-planung-expertday-rule h3 {
    color: var(--color-orange);
}

.planung-expertday-rule-text {
    font-family: var(--font-family-primary);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0;
    width: 100%;
}

.planung-expertday-more-info {
    text-align: center;
    margin: 0;
}

/* FAQ */
.planung-faq-section {
    margin: 0;
    padding: 60px;
    background: var(--color-bg-light);
    border-radius: 25px;
    border: 2px solid var(--color-border-light-mode);
    box-shadow: 0 2px 12px var(--color-shadow-light);
    box-sizing: border-box;
}

.planung-faq-section .base-headline-h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-text-dark);
}

.planung-faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}

.planung-faq-card {
    margin-bottom: 0;
    padding: 18px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    background: var(--color-white);
    border: 1.5px solid var(--glass-border-edge);
    border-left: 3px solid var(--color-teal);
    border-radius: 12px;
    box-shadow: var(--surface-shadow-glass), inset 0 1px 0 var(--glass-border-highlight);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.planung-faq-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--surface-shadow-glass-hover), inset 0 1px 0 var(--glass-border-highlight);
    border-color: rgba(243, 147, 36, 0.22);
    border-left-color: var(--color-orange);
}

.planung-faq-card .base-headline-h3-planung-faq {
    display: block;
    margin: 0;
    width: 100%;
    min-width: 0;
}

.planung-faq-card .base-headline-h3-planung-faq h3 {
    --planung-faq-question-font-size: 1.05rem;
    --planung-faq-question-line-height: 1.35;
    --planung-faq-question-line-count: 2;
    --planung-faq-question-block-height: calc(
        var(--planung-faq-question-font-size) * var(--planung-faq-question-line-height) * var(--planung-faq-question-line-count)
    );
    font-family: var(--font-family-primary);
    font-size: var(--planung-faq-question-font-size);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin: 0;
    padding: 0;
    line-height: var(--planung-faq-question-line-height);
    letter-spacing: -0.01em;
    text-transform: none;
    text-shadow: none;
    position: static;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: var(--planung-faq-question-block-height);
    max-height: var(--planung-faq-question-block-height);
    box-sizing: border-box;
    word-break: break-word;
    hyphens: auto;
}

.planung-faq-card .base-headline-h3-planung-faq h3::after {
    display: none;
}

.planung-faq-answer {
    font-family: var(--font-family-primary);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0;
    width: 100%;
}

.planung-faq-answer a {
    color: var(--color-link);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.planung-faq-answer a:hover {
    color: var(--color-link-hover);
}

.schema-data-hidden {
    display: none;
}

@media (min-width: 600px) and (max-width: 1023px) {
    .planung-meta-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .planung-expertday-rules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .planung-expertday-rule-card-three {
        grid-column: 1 / -1;
    }

    .planung-faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .planung-meta-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .planung-expertday-rules-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .planung-faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (min-width: 1440px) {
    .planung-meta-tiles {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .planung-expertday-rules-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .planung-faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1023px) {
    .planung-page-container {
        padding: 40px 0;
    }

    .planung-hero-section {
        padding: 50px 25px;
        margin-bottom: 50px;
    }

    .planung-hero-subtitle {
        font-size: 1.2rem;
    }

    .planung-meta-tiles {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .planung-meta-tile {
        padding: 14px 16px;
    }

    .planung-expertday-section {
        padding: 40px 24px;
        margin-bottom: 50px;
    }

    .planung-faq-section {
        padding: 40px 24px;
    }
}

@media (max-width: 575px) {
    .planung-page-container {
        padding: 30px 0;
    }

    .planung-hero-section {
        padding: 40px 20px;
        margin-bottom: 40px;
        border-radius: 18px;
    }

    .planung-hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .planung-meta-label {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .planung-meta-value {
        font-size: 0.95rem;
    }

    .planung-expertday-section {
        padding: 25px 20px;
        margin-bottom: 40px;
        border-radius: 18px;
    }

    .planung-expertday-intro {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .planung-faq-section {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .planung-faq-section .base-headline-h2 {
        margin-bottom: 28px;
    }

    .planung-faq-card {
        padding: 14px 16px;
    }

    .planung-faq-card .base-headline-h3-planung-faq h3 {
        --planung-faq-question-font-size: 1rem;
    }

    .planung-faq-answer {
        font-size: 0.875rem;
    }
}
