
.kontakt-hero {
    background:
        linear-gradient(135deg, rgba(19,41,75, 0.96), rgba(58, 48, 102, 0.92)),
        radial-gradient(circle at top right, rgba(201,162,77, 0.16), transparent 30%);
    color: #fff;
    padding: 72px 0 56px;
}

.kontakt-shell {
    padding: 42px 0 64px;
}

/* Keep the introduction readable against the dark hero in both themes. */
html .kontakt-hero h1,
html .kontakt-hero .kontakt-intro {
    color: #fff !important;
}

.kontakt-intro {
    max-width: 760px;
    font-size: 1.2rem;
    line-height: 1.7;
}

.kontakt-legung-callout {
    margin-top: 28px;
    padding: 24px;
    border: 2px solid #C9A24D;
    border-radius: 20px;
    background: #fff6df;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

html .kontakt-hero .kontakt-legung-callout h2,
html .kontakt-hero .kontakt-legung-callout p {
    color: #13294B !important;
}

.kontakt-legung-callout h2 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.kontakt-legung-callout p {
    max-width: 650px;
    font-size: 1.08rem;
    line-height: 1.6;
    margin: 0;
}

.kontakt-legung-button {
    flex-shrink: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 14px 22px;
    border: 2px solid #13294B;
    border-radius: 12px;
    background: #13294B;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.kontakt-legung-button:hover,
.kontakt-legung-button:focus-visible {
    background: #43376e;
    color: #fff;
    text-decoration: underline;
}

.kontakt-legung-button:focus-visible {
    outline: 3px solid #13294B;
    outline-offset: 4px;
}

.kontakt-form-notice {
    padding: 16px 18px;
    border-left: 4px solid #C9A24D;
    border-radius: 8px;
    background: #f8f5ee;
}

.kontakt-form-notice a {
    color: #13294B;
    font-weight: 700;
    text-decoration: underline;
}

html[data-theme="dark"] .kontakt-form-notice {
    background: #29233c;
}

html[data-theme="dark"] .kontakt-form-notice a {
    color: #f1d994;
}

.kontakt-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 28px;
}

.kontakt-panel {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(19,41,75, 0.10);
    box-shadow: 0 18px 42px rgba(19,41,75, 0.08);
    border-radius: 24px;
}

.kontakt-side {
    padding: 26px;
}

.kontakt-info-block {
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8f5ee;
    border: 1px solid rgba(19,41,75, 0.08);
    margin-bottom: 16px;
}

.kontakt-info-block h2 {
    font-size: 1.02rem;
    margin-bottom: 10px;
    color: #13294B;
}

.kontakt-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #453d5d;
}

.kontakt-info-item i {
    width: 18px;
    margin-top: 3px;
    color: #C9A24D;
}

.kontakt-info-item a {
    color: #453d5d;
}

.kontakt-forms {
    display: grid;
    gap: 20px;
}

.kontakt-form-card {
    padding: 28px;
}

.kontakt-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(201,162,77, 0.14);
    color: #866f2f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.kontakt-form-card h2 {
    color: #13294B;
    margin: 16px 0 10px;
    font-size: 1.45rem;
}

.kontakt-form-card p {
    color: #6d6684;
    margin-bottom: 18px;
}

.kontakt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kontakt-form-grid .full {
    grid-column: 1 / -1;
}

.kontakt-label {
    display: block;
    margin-bottom: 8px;
    color: #13294B;
    font-weight: 600;
}

.kontakt-input,
.kontakt-select,
.kontakt-textarea {
    width: 100%;
    border: 1px solid rgba(19,41,75, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #2f2a43;
    padding: 12px 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.kontakt-input,
.kontakt-select {
    min-height: 48px;
}

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

.kontakt-input:focus,
.kontakt-select:focus,
.kontakt-textarea:focus {
    outline: none;
    border-color: rgba(201,162,77, 0.92);
    box-shadow: 0 0 0 0.2rem rgba(201,162,77, 0.16);
}

.kontakt-counter {
    display: block;
    margin-top: 8px;
    color: #7a7390;
    font-size: 0.86rem;
    text-align: right;
}

.kontakt-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 4px;
}

.kontakt-check input {
    margin-top: 5px;
}

.kontakt-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
    margin-top: 4px;
}

.kontakt-note {
    color: #6d6684;
    margin: 0;
}

.kontakt-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
}

.kontakt-alert.is-success {
    background: rgba(47, 125, 75, 0.12);
    border: 1px solid rgba(47, 125, 75, 0.18);
    color: #2f7d4b;
}

.kontakt-alert.is-error {
    background: rgba(156, 59, 59, 0.10);
    border: 1px solid rgba(156, 59, 59, 0.16);
    color: #9c3b3b;
}

html[data-theme="dark"] .kontakt-shell {
    background: linear-gradient(180deg, #120f22, #171327);
}

html[data-theme="dark"] .kontakt-panel,
html[data-theme="dark"] .kontakt-info-block,
html[data-theme="dark"] .kontakt-form-card {
    background: linear-gradient(180deg, rgba(24, 21, 44, 0.98), rgba(16, 14, 31, 0.98));
    border-color: rgba(201,162,77, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
}

html[data-theme="dark"] .kontakt-info-block h2,
html[data-theme="dark"] .kontakt-form-card h2,
html[data-theme="dark"] .kontakt-label {
    color: #f7f1ff;
}

html[data-theme="dark"] .kontakt-info-item,
html[data-theme="dark"] .kontakt-info-item a,
html[data-theme="dark"] .kontakt-form-card p,
html[data-theme="dark"] .kontakt-note,
html[data-theme="dark"] .kontakt-counter {
    color: #cbc3de;
}

html[data-theme="dark"] .kontakt-card-kicker {
    background: rgba(201,162,77, 0.12);
    color: #e2c67f;
}

html[data-theme="dark"] .kontakt-input,
html[data-theme="dark"] .kontakt-select,
html[data-theme="dark"] .kontakt-textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(201,162,77, 0.16);
    color: #f3ebff;
}

html[data-theme="dark"] .kontakt-input::placeholder,
html[data-theme="dark"] .kontakt-textarea::placeholder {
    color: #aaa2bf;
}

html[data-theme="dark"] .kontakt-alert.is-success {
    background: rgba(47, 125, 75, 0.18);
    border-color: rgba(99, 188, 130, 0.24);
    color: #94ddb0;
}

html[data-theme="dark"] .kontakt-alert.is-error {
    background: rgba(156, 59, 59, 0.16);
    border-color: rgba(201, 101, 101, 0.22);
    color: #e2aaaa;
}

@media (max-width: 991.98px) {
    .kontakt-legung-callout {
        flex-direction: column;
        align-items: stretch;
    }

    .kontakt-layout,
    .kontakt-form-grid {
        grid-template-columns: 1fr;
    }
}
