/* PAGE HERO */
.page-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16rem 2rem 4rem;
    overflow: hidden;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-glow);
    box-shadow: 0 0 8px var(--blue-glow);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1
    }
    50% {
        opacity: .3
    }
}

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

.loading-spinner {
    animation: spin 1s linear infinite;
}

.page-hero h1 {
    font-family: var(--ff-qx);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
    max-width: 100%;
    margin-bottom: 1.25rem;
    animation: up .7s .1s ease both;
    text-transform: uppercase;
}

.page-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--blue-bright), var(--blue-glow), var(--blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(56, 182, 255, .35));
}

.page-hero p {
    font-size: calc((1.1rem) * var(--responsive-font-scale, 1));
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    max-width: 60%;
    margin: 0 auto;
}

/* MAIN LAYOUT */
.contact-section {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem 6rem;
}

.contact-grid {
    max-width: 60%;
    margin: 0 auto;
}

/* Info-Panel */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-card {
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.5rem;
    backdrop-filter: blur(14px);
    transition: border-color .3s;
    margin-bottom: 30px;
}

.info-card:hover {
    border-color: var(--glass-border-hi);
}

.info-card-label {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-glow);
    margin-bottom: .6rem;
}

.info-card-title {
    font-family: var(--ff-h);
    font-size: calc((1rem) * var(--responsive-font-scale, 1));
    font-weight: 600;
    color: var(--white);
    margin-bottom: .4rem;
}

.info-card-body {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    font-weight: 300;
    color: var(--muted);
    line-height: 1.65;
}

.info-card-body a {
    color: var(--blue-light);
    text-decoration: none;
}

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

/* Response time bar */
.resp-bar {
    margin-top: .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.resp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: blink 2s infinite;
    flex-shrink: 0;
}

.resp-text {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    font-weight: 300;
    color: #34d399;
}

/* Topics chips */
.topics {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .75rem;
}

.topic {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    color: var(--blue-light);
    background: rgba(56, 182, 255, .07);
    border: 1px solid rgba(56, 182, 255, .17);
    padding: .22rem .65rem;
    border-radius: 100px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.topic:hover, .topic.selected {
    background: rgba(56, 182, 255, .16);
    border-color: rgba(56, 182, 255, .4);
    color: var(--white);
}

/* RIGHT: Formular */
.form-panel {
    background: linear-gradient(135deg, rgba(14, 110, 253, .07), rgba(4, 15, 36, .92));
    border: 1px solid rgba(56, 182, 255, .18);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 182, 255, .45), transparent);
}

.form-title {
    font-family: var(--ff-h);
    font-size: calc((1.3rem) * var(--responsive-font-scale, 1));
    font-weight: 700;
    color: var(--white);
    margin-bottom: .4rem;
}

.form-sub {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Beratungstyp-Auswahl */
.consult-request-wrapper {
    margin-bottom: 1rem;
}

.consult-request-label {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    font-weight: 500;
    color: var(--muted);
    margin-bottom: .6rem;
    letter-spacing: .04em;
}

.consult-types {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: .7rem;
    margin-bottom: 1.75rem;
}

.ctype {
    background: rgba(56, 182, 255, .04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: .85rem .75rem;
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}

.ctype:hover {
    border-color: rgba(56, 182, 255, .3);
}

.ctype.selected {
    background: rgba(56, 182, 255, .1);
    border-color: rgba(56, 182, 255, .4);
}

.ctype-ico {
    color: var(--blue-glow);
}

.ctype-label {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    font-weight: 500;
    color: var(--muted);
    line-height: 1.3;
}

.ctype.selected .ctype-label {
    color: var(--blue-light);
}

/* Form fields */
.field-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1rem;
}

.field label {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .04em;
}

.field label .req,
.gdpr-asterisk {
    color: var(--blue-glow);
}

.form-error {
    display: none;
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    color: #f87171;
    margin-bottom: 1rem;
    padding: .6rem 1rem;
    background: rgba(248, 113, 113, .08);
    border: 1px solid rgba(248, 113, 113, .2);
    border-radius: 8px;
}

.field input, .field select, .field textarea {
    font-family: var(--ff-b);
    font-size: calc((0.95rem) * var(--responsive-font-scale, 1));
    font-weight: 300;
    color: var(--white);
    background: rgba(2, 10, 24, .7);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: .75rem 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    width: 100%;
}

.field input::placeholder, .field textarea::placeholder {
    color: rgba(107, 143, 173, .5);
}

.field input:focus, .field select:focus, .field textarea:focus {
    border-color: rgba(56, 182, 255, .45);
    box-shadow: 0 0 0 3px rgba(56, 182, 255, .08);
}

.field select option {
    background: #040f24;
    color: var(--white);
}

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

.field-hint {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    color: rgba(107, 143, 173, .6);
    margin-top: .2rem;
}

/* GDPR */
.gdpr-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.75rem;
    margin-top: .5rem;
}

.gdpr-cb {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: rgba(2, 10, 24, .7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: border-color .2s, background .2s;
}

.gdpr-cb.checked {
    background: rgba(56, 182, 255, .2);
    border-color: rgba(56, 182, 255, .5);
}

.gdpr-text {
    font-size: calc((0.95rem) * var(--responsive-font-scale, 1));
    font-weight: 300;
    color: var(--muted);
    line-height: 1.6;
}

.gdpr-text a {
    color: var(--blue-light);
    text-decoration: none;
}

.gdpr-text a:hover {
    text-decoration: underline;
}

/* Submit */
.btn-submit {
    width: 33%;
    font-family: var(--ff-b);
    font-size: calc((1rem) * var(--responsive-font-scale, 1));
    font-weight: 500;
    color: #020a18;
    background: linear-gradient(135deg, var(--blue-glow), var(--blue-bright));
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 28px rgba(56, 182, 255, .35);
    transition: transform .25s, box-shadow .25s, opacity .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin: 0 auto;
}

.btn-submit:hover {
    box-shadow: 0 6px 36px rgba(56, 182, 255, .45);
}

.btn-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit svg {
    transition: transform .25s;
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* Success State */
.success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    min-height: 400px;
}

.success-ico {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(52, 211, 153, .1);
    border: 2px solid rgba(52, 211, 153, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #34d399;
}

.success-title {
    font-family: var(--ff-h);
    font-size: calc((1.4rem) * var(--responsive-font-scale, 1));
    font-weight: 700;
    color: var(--white);
    margin-bottom: .6rem;
}

.success-body {
    font-size: calc((0.95rem) * var(--responsive-font-scale, 1));
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    max-width: 340px;
}

.success-link {
    color: var(--blue-light);
}

/* FAQ */
.faq-section {
    position: relative;
    z-index: 1;
    padding: 0 2rem 6rem;
}

.faq-inner {
    max-width: 780px;
    margin: 0 auto;
}

.faq-title {
    font-family: var(--ff-h);
    font-size: calc((1.5rem) * var(--responsive-font-scale, 1));
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    cursor: pointer;
    font-size: calc((.92rem) * var(--responsive-font-scale, 1));
    font-weight: 500;
    color: var(--white);
    transition: color .2s;
    user-select: none;
}

.faq-q:hover {
    color: var(--blue-light);
}

.faq-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--muted);
    transition: transform .3s;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-a {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease), padding .3s;
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding-bottom: 1.1rem;
}

footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2, 10, 24, .8);
    backdrop-filter: blur(16px);
}

.fl {
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
    color: var(--muted);
}

.fl a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.fl a:hover {
    color: var(--blue-light);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 960px) {
    nav {
        padding: 1.1rem 1.5rem;
    }

    nav ul {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    .consult-types {
        grid-template-columns:1fr 1fr 1fr;
    }

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

@media (max-width: 600px) {
    .consult-types {
        grid-template-columns:1fr;
    }

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