#kontakt {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0;
}

/* H2 Überschrift mit schwarzem Unterstrich */
#kontakt .section-header {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 40px auto;
    padding: 0;
    box-sizing: border-box;
}

#kontakt .section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000;
    text-align: left;
    margin: 0 0 40px 0;
    position: relative;
    padding-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#kontakt .section-header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 6px;
    background-color: #000;
}

.kontakt-intro {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 900px;
}

.kontakt-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

/* FORMULAR */
.kontakt-form-wrapper {
    background: transparent;
    padding: 0;
}

.success-message {
    display: none;
    background: #000;
    color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border-radius: 4px;
}

.contact-mail-note {
    position: relative;
    background: #6cb8e8;
    color: #1a1a1a;
    padding: 22px 20px 24px;
    border-radius: 3px;
    text-align: center;
    line-height: 1.5;
    margin: 0 0 18px;
}

.contact-mail-note p {
    margin: 18px 0 0;
    font-size: 1rem;
}

.contact-mail-icon {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #1a1a1a;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-mail-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.form-input,
.form-textarea,
select {
    width: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 1rem;
    background: #fafafa;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.form-input-prefix {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #d0d0d0;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f2f2f2;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.form-input-group .form-input {
    border-radius: 0 8px 8px 0;
}

.form-input-group .form-input:focus {
    border-left-color: #1a1a1a;
}

.flag-de {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    background: linear-gradient(
        to bottom,
        #000 0%,
        #000 33.33%,
        #dd0000 33.33%,
        #dd0000 66.66%,
        #ffce00 66.66%,
        #ffce00 100%
    );
}

.form-input:hover,
.form-textarea:hover,
select:hover {
    border-color: #a0a0a0;
    background: white;
}

.form-input:focus,
.form-textarea:focus,
select:focus {
    outline: none;
    border-color: #1a1a1a;
    background: white;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.day-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.05rem;
    user-select: none;
    -webkit-user-select: none;
}

.checkbox-wrapper input {
    display: none;
}

.checkbox-wrapper input:disabled + .custom-checkbox {
    border-color: #bdbdbd;
    background: #f3f3f3;
    cursor: not-allowed;
}

.checkbox-wrapper input:disabled + .custom-checkbox + span {
    color: #7a7a7a;
    cursor: not-allowed;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #1a1a1a;
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: 0.2s;
}

.checkbox-wrapper input:checked + .custom-checkbox {
    background: #1a1a1a;
}

.checkbox-wrapper input:checked + .custom-checkbox::after {
    transform: rotate(45deg) scale(1);
}

.submit-btn {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #333;
}

.mailto-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #4b5563;
}

/* INFO BOXEN RECHTS */
.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-box {
    background: transparent;
    border: none;
    padding: 0 0 32px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-box-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-box-icon {
    width: 24px;
    height: 24px;
    stroke: #1a1a1a;
    stroke-width: 2;
    fill: none;
}

.info-content {
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 0.95rem;
}

.info-content p {
    margin-bottom: 8px;
}

.info-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.info-content a {
    color: #1a1a1a;
    text-decoration: none;
}

.info-content a:visited {
    color: #1a1a1a;
}

.info-content a:active,
.info-content a:focus {
    color: #1a1a1a;
    text-decoration: none;
}

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

/* MAP + COOKIE BANNER */
.kontakt-map-block {
    width: 100%;
    max-width: 100%;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #d6e4fb;
    box-sizing: border-box;
}

.kontakt-map-frame-wrap {
    width: 100%;
    max-width: 100%;
    border: 1px solid #bdd2f4;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
    box-shadow: none;
}

.kontakt-map-frame-wrap iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.map-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    width: min(420px, calc(100% - 12px));
    background: linear-gradient(
        155deg,
        rgba(247, 250, 255, 0.96) 0%,
        rgba(238, 244, 252, 0.95) 62%,
        rgba(232, 240, 251, 0.94) 100%
    );
    border: none;
    border-radius: 4px;
    padding: 12px 12px 10px;
    box-shadow: 0 14px 34px rgba(17, 39, 73, 0.22);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 13000;
}

.map-cookie-banner[hidden] {
    display: none !important;
}

.map-cookie-banner.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.map-cookie-banner.is-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
}

.map-cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.map-cookie-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    box-sizing: border-box;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.map-cookie-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f3658;
}

.map-cookie-text {
    margin: 0 0 10px;
    font-size: 12.6px;
    line-height: 1.5;
    color: #3f5371;
}

.map-cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.map-cookie-accept,
.map-cookie-decline {
    width: 100%;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.25;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.map-cookie-decline {
    border: 1px solid #c2cfdf;
    background: #eef3fa;
    color: #3d4e67;
}

.map-cookie-decline:hover {
    background: #e5ecf6;
    border-color: #b4c3d8;
    color: #2d3f59;
}

.map-cookie-accept {
    border: 1px solid #19c7ff;
    background: #15b6e8;
    color: #04212d;
}

.map-cookie-accept:hover {
    background: #52d3ff;
    border-color: #8ae4ff;
    color: #0b2b3e;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    #kontakt .section-header {
        padding: 0;
        margin-bottom: 32px;
    }

    #kontakt .section-header h2 {
        font-size: 2rem;
        margin-bottom: 32px;
    }

    .kontakt-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .kontakt-info {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    #kontakt {
        padding: 0 20px;
        margin: 50px auto;
    }

    #kontakt .section-header {
        padding: 0;
        margin-bottom: 28px;
    }

    #kontakt .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 28px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #kontakt .section-header h2::after {
        left: 20px;
        width: 70px;
        height: 5px;
    }

    .kontakt-form-wrapper {
        padding: 0;
    }

    .kontakt-intro {
        margin-bottom: 22px;
    }

    .date-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-box {
        padding: 0 0 24px 0;
    }

    .kontakt-info {
        padding: 0 20px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .form-input,
    .form-textarea,
    select {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 6px;
    }

    .form-input-prefix {
        padding: 0 10px;
        font-size: 0.95rem;
    }

    .submit-btn {
        margin-top: 12px;
        padding: 14px;
        font-size: 0.95rem;
    }

    .mailto-hint {
        font-size: 0.85rem;
    }

    .kontakt-map-block {
        margin-top: 40px;
        padding-top: 24px;
    }

    .kontakt-map-frame-wrap iframe {
        height: 340px;
    }

    .map-cookie-banner {
        bottom: 10px;
        width: min(420px, calc(100% - 24px));
        padding: 12px;
    }

    .map-cookie-text {
        margin-bottom: 10px;
        font-size: 12.3px;
    }

    .map-cookie-actions {
        gap: 8px;
    }

    .map-cookie-accept,
    .map-cookie-decline {
        padding: 10px;
        font-size: 12.8px;
    }
}

@media (max-width: 480px) {
    #kontakt .section-header {
        padding: 0;
        margin-bottom: 24px;
    }

    #kontakt .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 24px;
        padding-bottom: 8px;
        padding-left: 15px;
        padding-right: 15px;
    }

    #kontakt .section-header h2::after {
        left: 15px;
        width: 65px;
        height: 4px;
    }

    #kontakt {
        margin: 40px auto;
    }

    .contact-mail-note {
        padding: 20px 16px 22px;
        margin-bottom: 14px;
    }

    .contact-mail-note p {
        margin-top: 16px;
        font-size: 0.95rem;
    }

    .contact-mail-icon {
        width: 44px;
        height: 44px;
        top: -20px;
    }

    .contact-mail-icon svg {
        width: 22px;
        height: 22px;
    }


    .form-textarea {
        min-height: 96px;
    }

    .kontakt-map-frame-wrap iframe {
        height: 280px;
    }

    .map-cookie-banner {
        width: calc(100% - 18px);
        bottom: 8px;
        padding: 10px;
    }

    .map-cookie-header {
        gap: 8px;
        margin-bottom: 8px;
    }

    .map-cookie-icon {
        width: 15px;
        height: 15px;
        padding: 0;
    }

    .map-cookie-title {
        font-size: 15px;
    }

    .map-cookie-text {
        font-size: 11.8px;
        margin-bottom: 8px;
    }

    .map-cookie-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .map-cookie-accept,
    .map-cookie-decline {
        padding: 9px;
        font-size: 12.4px;
    }
}
