/* ── Hero ── */
.section-kontakt-hero {
    height: 400px;
    position: relative;
    /*overflow: hidden;*/
    margin-top: 60px;
    align-items: flex-start;
    padding-top: 60px;
}

.section-kontakt-hero::before,
.section-kontakt-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at center, #226DFB42, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.section-kontakt-hero::before {
    width: 300px;
    height: 96%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.section-kontakt-hero::after {
    margin-top: 60px;
    width: 100%;
    height: 250px;
    left: 0;
    top: 0;
}

.kontakt-hero-dots {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image:
        radial-gradient(ellipse 300px 300px at 50% 50%, black 0%, transparent 70%),
        radial-gradient(ellipse 50% 175px at 50% 30%, black 0%, transparent 70%);
    mask-image:
        radial-gradient(ellipse 300px 300px at 50% 50%, black 0%, transparent 70%),
        radial-gradient(ellipse 50% 175px at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
    pointer-events: none;
    z-index: 1;
}

.sec-kontakt-hero {
    text-align: center;
    position: relative;
    z-index: 2;
    gap: 20px;
}

/* Pille */
.kontakt-pille {
    background-color: var(--background-color-pille);
    border: 1px solid #001C51;
    border-radius: 100px;
    padding: 8px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: fit-content;
}
.kontakt-pille-circel {
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: #226DFB;
}
.kontakt-pille-text {
    text-transform: uppercase;
    color: #226DFB;
    font-size: 16px;
}

.kontakt-hero-header {
    font-size: var(--font-size-hero);
    color: #FFFFFF;
    font-weight: 600;
    line-height: 125%;
}

.kontakt-hero-text {
    color: var(--font-color-text);
    font-size: var(--font-size-lg);
    max-width: 600px;
    line-height: 1.6;
}


/* ── Kontakt Main Section ── */
.section-kontakt-main {
    padding: 80px 0 120px;
    padding-top: 0px;
}

.sec-kontakt-main {
    flex-direction: column;
    gap: 40px;
}

/* Reuse location-kontakt styles from index.css */
.location-kontakt-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
}
.location-kontakt-wrapper .location-kontakt-con {
    flex: 1;
}
.location-kontakt-con {
    border-radius: 16px;
    border: 1px solid #FFFFFF0F;
    background-color: #FFFFFF0A;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    justify-items: center;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    box-sizing: border-box;
}
.location-kontakt-icon {
    width: 48px;
}
.location-kontakt-textbox {
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}
.location-kontakt-header {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
}
.location-kontakt-subline {
    color: #B2B4BB;
    font-size: 18px;
}
.location-kontakt-link {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.location-kontakt-link:hover {
    border-color: #226DFB;
}
.location-kontakt-map {
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.location-kontakt-map:hover {
    border-color: #226DFB;
}


.kontakt-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.kontakt-form-row {
    width: 100%;
    display: flex;
    gap: 20px;
}

.kontakt-form-row .kontakt-input {
    flex: 1;
}

.kontakt-input,
.kontakt-textarea {
    width: 100%;
    background: #FFFFFF0A;
    border: 1px solid #FFFFFF0F;
    border-radius: 16px;
    padding: 16px 20px;
    color: #FFFFFF;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    outline: none;
    transition: border-color 0.3s ease;
}

.kontakt-input::placeholder,
.kontakt-textarea::placeholder {
    color: #6B6D75;
}

.kontakt-input:focus,
.kontakt-textarea:focus {
    border-color: var(--primary-color);
}

.kontakt-textarea {
    resize: vertical;
    min-height: 160px;
}

.kontakt-submit {
    width: auto;
    padding: 0 32px;
}


/* ── Map Overlay (reuse from index) ── */
.map-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 3, 18, 0);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: background-color 0.4s ease;
}
.map-overlay.map-active {
    background-color: rgba(0, 3, 18, 0.85);
    pointer-events: all;
}
.map-overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.map-overlay.map-active .map-overlay-close {
    opacity: 1;
}
.map-overlay-close:hover {
    color: #226DFB;
}
.map-iframe {
    width: min(1200px, 90vw);
    height: min(700px, 80vh);
    border: none;
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.map-overlay.map-active .map-iframe {
    opacity: 1;
    transform: scale(1);
}

/* ── Kontakt Meldungen ── */
.kontakt-msg {
    width: 100%;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: var(--font-size-base);
    box-sizing: border-box;
}
.kontakt-msg-success {
    background-color: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #5cb85c;
}
.kontakt-msg-error {
    background-color: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #e04f5f;
}

/* ── Mobile ── */
@media (max-width: 1550px) {
    .kontakt-hero-header {
        font-size: 40px;
    }
}
@media (max-width: 1100px) {
    .kontakt-hero-header {
        font-size: 36px;
    }
    .location-kontakt-wrapper {
        flex-direction: column;
    }
}
@media (max-width: 850px) {
    
}
@media (max-width: 600px) {
    .section-kontakt-hero {
        padding-top: 40px;
        height: auto;
        padding-bottom: 60px;
    }
    .kontakt-hero-dots {
        -webkit-mask-image: radial-gradient(ellipse 200px 200px at 50% 50%, black 0%, transparent 70%);
        mask-image: radial-gradient(ellipse 200px 200px at 50% 50%, black 0%, transparent 70%);
    }
    .kontakt-hero-header {
        font-size: 28px;
    }
    .kontakt-hero-text {
        font-size: var(--font-size-text-handy);
    }
    .location-kontakt-header {
        font-size: var(--font-size-base);
    }
    .location-kontakt-subline {
        font-size: var(--font-size-text-handy);
    }
    .location-kontakt-con {
        padding: 14px 18px;
    }
    .location-kontakt-icon {
        width: 36px;
    }
    .kontakt-form-row {
        flex-direction: column;
    }
    .map-iframe {
        height: min(500px, 65vh);
    }
    .map-overlay-close {
        top: 16px;
        right: 16px;
    }
}
