:root {
    --kontakter-max-width: 680px;
    --kontakter-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --kontakter-color-text: #1f2933;
    --kontakter-color-muted: #52606d;
    --kontakter-color-border: #d8dee4;
    --kontakter-color-border-strong: #94a3b8;
    --kontakter-color-bg: #ffffff;
    --kontakter-color-surface: #ffffff;
    --kontakter-color-accent: #0f172a;
    --kontakter-color-accent-contrast: #ffffff;
    --kontakter-color-error: #b42318;
    --kontakter-color-error-bg: #fef3f2;
    --kontakter-color-success: #027a48;
    --kontakter-color-success-bg: #ecfdf3;
    --kontakter-radius: 14px;
    --kontakter-spacing-field: 1rem;
    --kontakter-input-padding: 0.95rem 1rem;
    --kontakter-title-size: 1.9rem;
    --kontakter-button-min-width: 200px;
    --kontakter-transition: 0.24s ease;
    --kontakter-focus-ring: #ffbf47;
}

.kontakter-screen-reader-text,
.kontakter-wrapper .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.kontakter-wrapper {
    max-width: var(--kontakter-max-width);
    margin: 0 auto;
    font-family: var(--kontakter-font-family);
    color: var(--kontakter-color-text);
}

.kontakter-title {
    margin: 0 0 1.4rem;
    font-size: var(--kontakter-title-size);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--kontakter-color-text);
}

.kontakter-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.kontakter-form-group {
    margin-bottom: var(--kontakter-spacing-field);
}

.kontakter-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kontakter-color-muted);
}

.kontakter-input,
.kontakter-textarea {
    width: 100%;
    padding: var(--kontakter-input-padding);
    border: 1px solid var(--kontakter-color-border);
    border-radius: var(--kontakter-radius);
    background: var(--kontakter-color-bg);
    color: var(--kontakter-color-text);
    font-size: 1rem;
    line-height: 1.6;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color var(--kontakter-transition), background-color var(--kontakter-transition), box-shadow var(--kontakter-transition), transform var(--kontakter-transition);
}

.kontakter-textarea {
    min-height: 150px;
    resize: vertical;
}

.kontakter-input:focus,
.kontakter-textarea:focus {
    outline: 3px solid var(--kontakter-focus-ring);
    outline-offset: 3px;
    border-color: var(--kontakter-color-border-strong);
    background: var(--kontakter-color-surface);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12);
}

.kontakter-input::placeholder,
.kontakter-textarea::placeholder {
    color: rgba(82, 96, 109, 0.78);
    opacity: 1;
}

.kontakter-checkbox-group {
    margin: 0.2rem 0 1.25rem;
}

.kontakter-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--kontakter-color-muted);
    cursor: pointer;
}

.kontakter-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0.15rem 0 0;
    accent-color: var(--kontakter-color-accent);
    cursor: pointer;
}

.kontakter-checkbox-label a {
    color: var(--kontakter-color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kontakter-checkbox-label input[type="checkbox"]:focus-visible,
.kontakter-checkbox-label a:focus-visible {
    outline: 3px solid var(--kontakter-focus-ring);
    outline-offset: 3px;
}

.kontakter-checkbox-label a:hover,
.kontakter-checkbox-label a:focus-visible {
    text-decoration-thickness: 2px;
}

.kontakter-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--kontakter-button-min-width);
    min-height: 3.35rem;
    padding: 0.9rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--kontakter-color-accent);
    color: var(--kontakter-color-accent-contrast);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: background-color var(--kontakter-transition), border-color var(--kontakter-transition), box-shadow var(--kontakter-transition), transform var(--kontakter-transition);
}

.kontakter-submit:hover,
.kontakter-submit:focus-visible {
    transform: translateY(-1px);
}

.kontakter-submit:focus-visible {
    outline: 3px solid var(--kontakter-focus-ring);
    outline-offset: 4px;
}

.kontakter-submit:disabled {
    cursor: not-allowed;
    transform: none;
    opacity: 0.72;
}

.kontakter-message {
    display: none;
    margin-top: 1.1rem;
    padding: 0.95rem 1.05rem;
    border-radius: 1rem;
    font-size: 0.92rem;
    line-height: 1.7;
}

.kontakter-message p {
    margin: 0;
}

.kontakter-message.success {
    display: block;
    color: var(--kontakter-color-success);
    background: var(--kontakter-color-success-bg);
    border: 1px solid rgba(2, 122, 72, 0.12);
}

.kontakter-message.error {
    display: block;
    color: var(--kontakter-color-error);
    background: var(--kontakter-color-error-bg);
    border: 1px solid rgba(180, 35, 24, 0.12);
}

.field-error {
    display: block;
    margin-top: 0.5rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--kontakter-color-error);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--kontakter-color-error);
}

.kontakter-checkbox-label.error {
    color: var(--kontakter-color-error);
}

.kontakter-input.error,
.kontakter-textarea.error,
.kontakter-input[aria-invalid="true"],
.kontakter-textarea[aria-invalid="true"] {
    border-color: rgba(180, 35, 24, 0.44);
    background: var(--kontakter-color-error-bg);
}

.kontakter-submit.loading .kontakter-submit__label {
    color: transparent !important;
}

.kontakter-submit.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -9px;
    border: 2px solid var(--kontakter-color-accent-contrast);
    border-top-color: transparent;
    border-radius: 50%;
    animation: kontakter-spinner 0.6s linear infinite;
}

.kontakter-style-modern {
    --kontakter-color-text: #14213d;
    --kontakter-color-muted: #4b5563;
    --kontakter-color-border: #d6dde6;
    --kontakter-color-border-strong: #2563eb;
    --kontakter-color-bg: #ffffff;
    --kontakter-color-surface: #ffffff;
    --kontakter-color-accent: #14213d;
    --kontakter-color-accent-contrast: #ffffff;
}

.kontakter-style-modern .kontakter-submit {
    box-shadow: 0 12px 24px rgba(20, 33, 61, 0.1);
}

.kontakter-style-modern .kontakter-submit:hover,
.kontakter-style-modern .kontakter-submit:focus-visible {
    background: #2563eb;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.16);
}

.kontakter-style-classic {
    --kontakter-color-text: #3d342f;
    --kontakter-color-muted: #6b5b52;
    --kontakter-color-border: #ddd3ca;
    --kontakter-color-border-strong: #9a7b68;
    --kontakter-color-bg: #fffdf9;
    --kontakter-color-surface: #ffffff;
    --kontakter-color-accent: #7d5f4f;
    --kontakter-color-accent-contrast: #ffffff;
    --kontakter-radius: 10px;
}

.kontakter-style-classic .kontakter-title {
    font-weight: 500;
}

.kontakter-style-classic .kontakter-form label {
    letter-spacing: 0.05em;
}

.kontakter-style-classic .kontakter-submit {
    border-radius: 10px;
    letter-spacing: 0.06em;
    text-transform: none;
    box-shadow: 0 10px 22px rgba(125, 95, 79, 0.12);
}

.kontakter-style-classic .kontakter-submit:hover,
.kontakter-style-classic .kontakter-submit:focus-visible {
    background: #967564;
    box-shadow: 0 14px 28px rgba(125, 95, 79, 0.18);
}

.kontakter-style-theme-inherit {
    --kontakter-font-family: inherit;
    --kontakter-color-text: inherit;
    --kontakter-color-muted: inherit;
    --kontakter-color-border: currentColor;
    --kontakter-color-border-strong: currentColor;
    --kontakter-color-bg: transparent;
    --kontakter-color-surface: transparent;
    --kontakter-color-accent: currentColor;
    --kontakter-color-accent-contrast: inherit;
    --kontakter-color-success-bg: transparent;
    --kontakter-radius: 0;
    --kontakter-button-min-width: 0;
}

.kontakter-style-theme-inherit .kontakter-title {
    font: inherit;
    margin-bottom: 1.5rem;
    color: inherit;
}

.kontakter-style-theme-inherit .kontakter-form label {
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
    color: inherit;
}

.kontakter-style-theme-inherit .kontakter-input,
.kontakter-style-theme-inherit .kontakter-textarea {
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: inherit;
    box-shadow: none;
}

.kontakter-style-theme-inherit .kontakter-input::placeholder,
.kontakter-style-theme-inherit .kontakter-textarea::placeholder {
    color: inherit;
    opacity: 0.65;
}

.kontakter-style-theme-inherit .kontakter-submit {
    min-width: 0;
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: none;
}

.kontakter-style-theme-inherit .kontakter-submit:hover,
.kontakter-style-theme-inherit .kontakter-submit:focus-visible {
    background: rgba(0, 0, 0, 0.04);
}

.kontakter-style-theme-inherit .kontakter-checkbox-label,
.kontakter-style-theme-inherit .kontakter-checkbox-label a,
.kontakter-style-theme-inherit .kontakter-message.success {
    color: inherit;
}

.kontakter-style-theme-inherit .kontakter-message {
    background: transparent;
    border-color: currentColor;
}

.kontakter-style-soft {
    --kontakter-max-width: 100%;
    --kontakter-font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
    --kontakter-color-text: #15313a;
    --kontakter-color-muted: rgba(2, 54, 70, 0.72);
    --kontakter-color-border: rgba(2, 54, 70, 0.14);
    --kontakter-color-border-strong: rgba(31, 139, 173, 0.58);
    --kontakter-color-bg: rgba(255, 255, 255, 0.5);
    --kontakter-color-surface: rgba(255, 255, 255, 0.74);
    --kontakter-color-accent: #023646;
    --kontakter-color-accent-contrast: #ffffff;
    --kontakter-color-error: #7a2f27;
    --kontakter-color-error-bg: rgba(250, 225, 221, 0.72);
    --kontakter-color-success: #184739;
    --kontakter-color-success-bg: rgba(213, 234, 224, 0.82);
    --kontakter-radius: 18px;
    --kontakter-spacing-field: 1.1rem;
    --kontakter-input-padding: 1rem 1.05rem;
    --kontakter-title-size: 2rem;
    --kontakter-button-min-width: 0;
}

.kontakter-style-soft .kontakter-title {
    margin-bottom: 1.3rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #023646;
}

.kontakter-soft-embed .kontakter-title {
    display: none;
}

.kontakter-style-soft .kontakter-soft-note {
    margin: 0 0 1.25rem;
    max-width: 44rem;
    font-size: 0.93rem;
    line-height: 1.8;
    color: rgba(2, 54, 70, 0.72);
}

.kontakter-style-soft .kontakter-soft-note::before {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
    margin-bottom: 0.85rem;
    background: rgba(2, 54, 70, 0.16);
}

.kontakter-style-soft .kontakter-form label {
    margin-bottom: 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #023646;
}

.kontakter-style-soft .kontakter-input,
.kontakter-style-soft .kontakter-textarea {
    border-radius: 1.15rem;
}

.kontakter-style-soft .kontakter-textarea {
    min-height: 170px;
}

.kontakter-style-soft .kontakter-input:focus,
.kontakter-style-soft .kontakter-textarea:focus {
    box-shadow: 0 0 0 4px rgba(31, 139, 173, 0.08);
}

.kontakter-style-soft .kontakter-checkbox-group {
    margin: 0.35rem 0 1.4rem;
}

.kontakter-style-soft .kontakter-checkbox-label {
    font-size: 0.88rem;
    color: rgba(21, 49, 58, 0.78);
}

.kontakter-style-soft .kontakter-submit {
    box-shadow: 0 14px 28px rgba(2, 54, 70, 0.08);
}

.kontakter-style-soft .kontakter-submit:hover,
.kontakter-style-soft .kontakter-submit:focus-visible {
    background: #1f8bad;
    box-shadow: 0 18px 36px rgba(2, 54, 70, 0.12);
}

.kontakter-style-soft .kontakter-submit.loading::after {
    border-color: #ffffff;
    border-top-color: transparent;
}

.kontakter-style-offer {
    --kontakter-max-width: 100%;
    --kontakter-font-family: inherit;
    --kontakter-color-text: #17351f;
    --kontakter-color-muted: #65785e;
    --kontakter-color-border: #cdddbd;
    --kontakter-color-border-strong: #2f6f3e;
    --kontakter-color-bg: #ffffff;
    --kontakter-color-surface: #ffffff;
    --kontakter-color-accent: #2f6f3e;
    --kontakter-color-accent-contrast: #ffffff;
    --kontakter-color-error: #9b2c20;
    --kontakter-color-error-bg: #fff1ed;
    --kontakter-color-success: #184739;
    --kontakter-color-success-bg: #edf8ef;
    --kontakter-radius: 0.95rem;
    --kontakter-spacing-field: 1rem;
    --kontakter-input-padding: 0.9rem 1rem;
    --kontakter-title-size: clamp(1.35rem, 2.5vw, 1.75rem);
    --kontakter-button-min-width: 0;
}

.kontakter-style-offer .kontakter-title {
    margin-bottom: 0.65rem;
    color: #17351f;
    font-weight: 850;
}

.kontakter-style-offer .kontakter-offer-note {
    margin: 0 0 1.25rem;
    color: var(--kontakter-color-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.kontakter-style-offer .kontakter-form label {
    color: #17351f;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.kontakter-account-identity {
    display: grid;
    gap: 0.18rem;
    margin-bottom: 1.15rem;
    padding: 0.9rem 1rem;
    color: var(--kontakter-color-text);
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.82) 0%, #ffffff 100%);
    border: 1px solid var(--kontakter-color-border);
    border-radius: var(--kontakter-radius);
}

.kontakter-account-identity__label {
    color: var(--kontakter-color-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kontakter-account-identity__name {
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.35;
}

.kontakter-account-identity__email {
    color: var(--kontakter-color-muted);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.kontakter-style-offer .kontakter-account-identity {
    display: grid;
    gap: 0.18rem;
    margin-bottom: 1.15rem;
    padding: 0.9rem 1rem;
    color: #17351f;
    background: linear-gradient(135deg, #f4faed 0%, #ffffff 100%);
    border: 1px solid var(--kontakter-color-border);
    border-radius: var(--kontakter-radius);
}

.kontakter-style-offer .kontakter-input,
.kontakter-style-offer .kontakter-textarea {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.kontakter-style-offer .kontakter-textarea {
    min-height: 145px;
}

.kontakter-style-offer .kontakter-input:focus,
.kontakter-style-offer .kontakter-textarea:focus {
    outline-color: #ffcf5a;
    border-color: var(--kontakter-color-border-strong);
    box-shadow: 0 0 0 4px rgba(47, 111, 62, 0.12);
}

.kontakter-style-offer .kontakter-checkbox-label {
    gap: 0.6rem;
    color: var(--kontakter-color-muted);
    font-size: 0.9rem;
}

.kontakter-style-offer .kontakter-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--kontakter-color-accent);
}

.kontakter-style-offer .kontakter-submit {
    min-height: 3.2rem;
    padding-inline: 1.35rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    box-shadow: 0 0.85rem 1.6rem rgba(47, 111, 62, 0.16);
}

.kontakter-style-offer .kontakter-submit:hover,
.kontakter-style-offer .kontakter-submit:focus-visible {
    background: #1f4d2a;
    box-shadow: 0 1rem 2rem rgba(31, 77, 42, 0.2);
}

@media (max-width: 768px) {
    .kontakter-wrapper {
        max-width: 100%;
    }

    .kontakter-input,
    .kontakter-textarea {
        padding: 0.85rem 0.8rem;
    }

    .kontakter-submit {
        width: 100%;
        min-width: 0;
    }

    .kontakter-title {
        font-size: 1.55rem;
    }

    .kontakter-style-soft .kontakter-soft-note {
        margin-bottom: 1.1rem;
        font-size: 0.9rem;
    }

    .kontakter-style-soft .kontakter-textarea {
        min-height: 150px;
    }
}

@keyframes kontakter-spinner {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kontakter-input,
    .kontakter-textarea,
    .kontakter-submit {
        transition: none !important;
    }

    .kontakter-submit.loading::after {
        animation: none !important;
    }
}
