* {
    box-sizing: border-box;
}

:root {
    --bg: #f3f5f9;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --surface-tint: #eef2ff;
    --text: #0f172a;
    --text-soft: #64748b;
    --border: #dbe3ef;
    --primary: #1f2937;
    --primary-hover: #334155;
    --button-text: #ffffff;
    --accent: #475569;
    --sidebar-bg: #f8fafc;
    --sidebar-text: #475569;
    --sidebar-hover-bg: #ffffff;
    --sidebar-active-text: #ffffff;
    --header-bg: #f3f5f9;
    --header-text: #0f172a;
    --header-surface: #ffffff;
    --success: #1f2937;
    --success-bg: #eef2ff;
    --danger: #475569;
    --danger-bg: #f8fafc;
    --neutral: #64748b;
    --neutral-bg: #f8fafc;
    --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.09);
    --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --sidebar-width: 296px;
    --sidebar-collapsed-width: 88px;
    --page-max-width: 1380px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

svg {
    width: 1em;
    height: 1em;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    transition: grid-template-columns 0.2s ease;
    background: linear-gradient(180deg, color-mix(in oklab, var(--bg), #ffffff 14%) 0%, var(--bg) 100%);
}

.app-shell.is-sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.sidebar-backdrop {
    display: none;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    padding: 22px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    box-shadow: inset -1px 0 0 color-mix(in oklab, var(--border), transparent 20%);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
}

.sidebar-brand {
    display: grid;
    gap: 12px;
    padding: 0 4px 6px;
}

.sidebar-brand-media {
    width: 100%;
    min-height: 78px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.sidebar-logo-main {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78px;
    object-fit: contain;
    object-position: left center;
}

.sidebar-logo-compact {
    display: none;
    width: 34px;
    height: 34px;
    min-height: 34px;
    margin: 0 auto;
    object-fit: contain;
}

.sidebar-brand-fallback {
    min-height: 78px;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--sidebar-text);
    background: transparent;
}

.sidebar-brand-copy {
    display: grid;
    gap: 4px;
}

.sidebar-brand-copy strong {
    font-size: 16px;
    line-height: 1.2;
    color: var(--text);
}

.sidebar-brand-copy small {
    color: var(--text-soft);
    font-size: 13px;
}

.sidebar-collapse-toggle {
    margin-top: auto;
    width: 100%;
    justify-content: flex-start;
    background: transparent;
    border-color: var(--border);
    color: var(--sidebar-text);
    box-shadow: none;
}

.sidebar-collapse-toggle:hover {
    background: var(--sidebar-hover-bg);
    color: var(--text);
}

.sidebar-collapse-toggle-expanded {
    display: inline;
}

.sidebar-collapse-toggle-collapsed {
    display: none;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
    padding: 6px 2px 2px;
}

.sidebar-nav-divider {
    height: 1px;
    margin: 8px 4px;
    background: color-mix(in oklab, var(--border), transparent 22%);
}

.nav-link {
    min-height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: var(--sidebar-text);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    font-size: 14px;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.nav-link:hover {
    background: color-mix(in oklab, var(--sidebar-hover-bg), #ffffff 30%);
    color: var(--text);
    transform: translateX(2px);
    border-color: color-mix(in oklab, var(--border), transparent 35%);
}

.nav-link:focus {
    outline: none;
}

.nav-link:focus-visible {
    outline: none;
    border-color: color-mix(in oklab, var(--primary), transparent 62%);
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary), transparent 82%);
}

.nav-link.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--sidebar-active-text);
    box-shadow: var(--shadow-card);
}

.nav-link-icon {
    flex: 0 0 22px;
    font-size: 20px;
    color: inherit;
    display: grid;
    place-items: center;
}

.nav-link-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-shell {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 24px 10px;
    background: color-mix(in oklab, var(--header-bg), #ffffff 8%);
    color: var(--header-text);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-title h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.1;
    color: var(--header-text);
}

.topbar-title p {
    margin: 4px 0 0;
    color: var(--header-text);
    opacity: 0.78;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--header-surface);
    color: var(--header-text);
    padding: 0;
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 999px;
}

.page-shell {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 22px 28px 40px;
}

.page-shell > * + * {
    margin-top: var(--space-6);
}

.page-header,
.module-header {
    display: grid;
    gap: 0;
    margin-bottom: 0;
}

.page-header h1,
.module-header h1,
.module-header h2,
.module-header h3 {
    margin: 0;
}

.page-subtitle {
    display: none !important;
}

.grid {
    display: grid;
    gap: 18px;
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.metric-card {
    padding: 20px;
}

.metric-label {
    display: block;
    color: var(--text-soft);
    margin-bottom: 14px;
}

.metric-value {
    font-size: 34px;
}

.card {
    padding: 20px;
}

.ui-panel {
    padding: 20px;
}

.card-header,
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.card-body {
    display: grid;
    gap: 14px;
}

.ui-collapsible {
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.ui-collapsible:hover {
    border-color: color-mix(in oklab, var(--border), var(--primary) 12%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.ui-panel__header,
.ui-collapsible__header,
.section-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
}

.ui-collapsible__header {
    padding: 16px 20px;
    min-height: 68px;
}

.ui-collapsible.is-open .ui-collapsible__header {
    padding-bottom: 14px;
}

.ui-collapsible:not(.is-open) .ui-collapsible__header {
    padding-bottom: 16px;
}

.ui-collapsible__header .section-head {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.ui-panel__header-right,
.ui-collapsible__summary-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
    min-height: 36px;
    width: 100%;
    flex: 0 0 auto;
}

.ui-panel__header-right > *,
.ui-collapsible__summary-right > * {
    flex: 0 0 auto;
}

.ui-collapsible__meta,
.ui-collapsible__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ui-panel__toggle,
.ui-collapsible__toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    line-height: 1;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface-muted), #ffffff 30%);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ui-panel__toggle:hover,
.ui-collapsible__toggle:hover {
    border-color: color-mix(in oklab, var(--border), var(--primary) 20%);
    background: color-mix(in oklab, var(--surface-tint), #ffffff 10%);
    color: var(--text);
}

.ui-panel__toggle:focus-visible,
.ui-collapsible__toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.ui-panel__toggle:active,
.ui-collapsible__toggle:active {
    transform: scale(0.98);
}

.ui-panel__toggle .btn-icon,
.ui-collapsible__toggle .btn-icon,
.ui-collapsible__toggle-icon {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ui-collapsible.is-open .ui-collapsible__toggle .btn-icon,
.ui-collapsible.is-open .ui-collapsible__toggle-icon {
    transform: rotate(180deg);
}

.ui-collapsible__body {
    padding: 0 20px 20px;
}

.ui-collapsible:not(.is-open) .ui-collapsible__body {
    display: none;
}

.ui-collapsible:not(.is-open) {
    overflow: visible;
}

.ui-collapsible.is-open .ui-collapsible__body {
    display: block;
    animation: collapsibleReveal 0.2s ease;
}

@keyframes collapsibleReveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-head {
    margin-bottom: 18px;
}

.section-head > :first-child {
    min-width: 0;
}

.section-head h3 {
    margin: 2px 0 0;
    font-size: 20px;
    line-height: 1.25;
}

.section-head p {
    margin: 0;
}

.section-head > :first-child > p,
.section-head > .ui-panel__header-main > p,
.ui-collapsible__header .section-head > :first-child > p,
.ui-collapsible__header .section-head > .ui-panel__header-main > p,
.ui-modal__header p {
    display: none !important;
}

.auth-card-head p {
    display: none !important;
}

.heading-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-sync-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.summary-sync-btn .btn-icon {
    font-size: 14px;
}

.summary-sync-btn.btn-icon-only {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
}

.ui-panel__header-right .badge,
.ui-collapsible__summary-right .badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
}

.ui-panel__header-right .btn,
.ui-collapsible__summary-right .btn {
    min-height: 36px;
}

.ui-panel__header-right .dropdown,
.ui-collapsible__summary-right .dropdown {
    display: inline-flex;
    align-items: center;
}

.ui-panel__header-right .ui-panel__toggle,
.ui-panel__header-right .ui-collapsible__toggle,
.ui-collapsible__summary-right .ui-collapsible__toggle {
    order: 99;
    margin-left: auto;
}

@media (min-width: 861px) {
    .ui-panel__header,
    .ui-collapsible__header,
    .section-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .section-head > :first-child {
        flex: 1 1 auto;
    }

    .ui-panel__header-right,
    .ui-collapsible__summary-right {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        margin-left: auto;
    }
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.muted {
    color: var(--text-soft);
    line-height: 1.6;
}

.list-card {
    display: grid;
    gap: 10px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: color-mix(in oklab, var(--surface-tint), #ffffff 35%);
    border: 1px solid var(--border);
}

.table-wrap {
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: inset 0 1px 0 color-mix(in oklab, #ffffff, transparent 14%);
}

.table-wrapper {
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: inset 0 1px 0 color-mix(in oklab, #ffffff, transparent 14%);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.ui-table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 13px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table th {
    color: color-mix(in oklab, var(--text-soft), #334155 18%);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: color-mix(in oklab, var(--surface-muted), #ffffff 45%);
}

.table-empty {
    text-align: center;
    color: var(--text-soft);
    padding: 24px;
}

.empty-state,
.table-empty.empty-state {
    text-align: center;
    color: var(--text-soft);
    padding: 24px 18px;
    border: 1px dashed color-mix(in oklab, var(--border), transparent 20%);
    border-radius: var(--radius-sm);
    background: color-mix(in oklab, var(--surface-muted), #ffffff 35%);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 0 color-mix(in oklab, var(--border), transparent 40%);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.btn:focus-visible,
.input:focus-visible,
.dropdown-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(180deg, var(--primary), var(--primary-hover));
    color: var(--button-text);
    border-color: color-mix(in oklab, var(--primary), #000000 15%);
    box-shadow: 0 6px 18px color-mix(in oklab, var(--primary), transparent 78%);
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--primary-hover), var(--primary));
}

.btn-secondary {
    background: var(--header-surface);
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: color-mix(in oklab, var(--surface-tint), #ffffff 26%);
}

.btn-danger {
    background: color-mix(in oklab, var(--danger-bg), #ffffff 30%);
    border-color: color-mix(in oklab, var(--danger), transparent 68%);
    color: var(--danger);
}

.btn-danger:hover {
    background: color-mix(in oklab, var(--danger-bg), #ffffff 12%);
    border-color: color-mix(in oklab, var(--danger), transparent 56%);
    color: color-mix(in oklab, var(--danger), #991b1b 20%);
}

.btn-soft {
    background: color-mix(in oklab, var(--surface-tint), #ffffff 20%);
    border-color: var(--border);
    color: var(--text);
}

.btn-soft:hover {
    background: var(--surface-muted);
}

.btn-sm {
    min-height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-xs);
    font-size: 12px;
}

.btn-icon {
    font-size: 18px;
    display: grid;
    place-items: center;
}

.btn-icon-only {
    width: 44px;
    min-width: 44px;
    padding: 0;
}

.dropdown {
    position: relative;
}

.dropdown-actions {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--header-surface);
    box-shadow: var(--shadow-soft);
    display: none;
    z-index: 120;
}

.dropdown.is-open .dropdown-menu {
    display: grid;
    gap: 4px;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-xs);
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--surface-tint);
}

.dropdown-item-button {
    text-align: left;
    font-weight: 400;
    font-family: inherit;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
}

.dropdown-item-icon {
    font-size: 18px;
    color: var(--accent);
}

body.has-open-modal {
    overflow: hidden;
}

.ui-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}

.ui-modal.is-open {
    display: block;
}

.ui-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.ui-modal__dialog {
    position: relative;
    width: min(1200px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}

.modal.is-open {
    display: block;
}

.ui-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface-muted), #ffffff 45%);
}

.ui-modal__header h3 {
    margin: 0;
    font-size: 18px;
}

.ui-modal__body {
    overflow: auto;
    padding: 18px;
}

.internetx-modal-divider {
    height: 1px;
    margin: 12px 0 10px;
    background: color-mix(in oklab, var(--sidebar-text), transparent 72%);
}

#kunden-create-modal .ui-modal__dialog {
    width: min(1040px, calc(100vw - 40px));
    max-height: calc(100vh - 56px);
    margin: 28px auto;
}

#kunden-create-modal .ui-modal__header {
    padding: 16px 22px;
}

#kunden-create-modal .ui-modal__body {
    padding: 22px;
}

#kunden-create-modal .stack-lg {
    gap: 16px;
}

#kunden-create-modal .form-grid.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.card-in-modal {
    margin: 0;
}

.user-chip {
    min-height: 42px;
    border-radius: var(--radius-sm);
    padding: 0 12px;
}

.user-chip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--button-text);
    font-weight: 700;
    flex: 0 0 32px;
}

.user-chip-copy {
    display: grid;
    text-align: left;
    gap: 2px;
}

.user-chip-copy strong,
.user-chip-copy small {
    display: block;
}

.user-chip-copy small {
    color: var(--text-soft);
    text-transform: capitalize;
}

.section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 4px;
    align-items: center;
}

.ui-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 4px;
    align-items: center;
}

.ui-tabs .btn {
    min-height: 36px;
    border-radius: var(--radius-xs);
    padding: 0 13px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-active {
    color: var(--success);
    background: var(--success-bg);
    border-color: color-mix(in oklab, var(--success), transparent 75%);
}

.badge-inactive {
    color: var(--danger);
    background: var(--danger-bg);
    border-color: color-mix(in oklab, var(--danger), transparent 75%);
}

.badge-neutral {
    color: var(--neutral);
    background: var(--neutral-bg);
    border-color: color-mix(in oklab, var(--neutral), transparent 72%);
}

.alert {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--border);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--border);
}

.stack-xl {
    display: grid;
    gap: 20px;
}

.stack-lg {
    display: grid;
    gap: 16px;
}

.form-card {
    max-width: 880px;
}

.settings-grid,
.form-row {
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: color-mix(in oklab, var(--text-soft), #334155 24%);
}

.input {
    width: 100%;
    min-height: 46px;
    height: 46px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input:hover {
    border-color: color-mix(in oklab, var(--border), #94a3b8 26%);
}

select.input,
input.input {
    line-height: 1.2;
}

select.input {
    padding-right: 36px;
}

.input-textarea {
    height: auto;
    min-height: 180px;
    padding: 10px 12px;
    resize: vertical;
}

.form-help {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.kv-static-fields .form-group {
    gap: 4px;
}

.kv-static-fields .form-label {
    font-size: 13px;
    font-weight: 600;
    color: color-mix(in oklab, var(--text-soft), #334155 24%);
}

.kv-static-value {
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
}

.kv-static-value--notes {
    min-height: 120px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 12px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    white-space: pre-wrap;
}

.kv-overview-readonly {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.kv-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 64px;
}

.kv-static-pair {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: start;
    gap: 8px 18px;
    min-width: 0;
}

.kv-static-pair .form-label {
    margin: 0;
}

.kv-static-pair .kv-static-value {
    min-height: 0;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
}

.kv-overview-notes {
    margin-top: 6px;
}

@media (max-width: 980px) {
    .kv-overview-grid {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.form-actions .btn-primary:last-child {
    margin-left: 0;
}

.actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.actions-inline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.sticky-actions {
    position: sticky;
    bottom: 16px;
}

.empty-state {
    max-width: 520px;
}

.auth-page {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-stage {
    width: min(520px, 100%);
}

.auth-card {
    background: var(--surface);
}

.auth-card-head {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-brand-mark {
    width: 100%;
    min-height: 88px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface-tint), #ffffff 28%);
    overflow: hidden;
}

.auth-brand-mark img {
    max-height: 64px;
    object-fit: contain;
    padding: 10px;
}

@media (max-width: 1100px) {
    .metrics-grid,
    .split-grid,
    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .app-shell,
    .app-shell.is-sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        width: min(312px, calc(100vw - 24px));
        min-width: min(312px, calc(100vw - 24px));
        max-width: min(312px, calc(100vw - 24px));
        z-index: 60;
        transition: transform 0.2s ease;
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .app-shell.sidebar-open .sidebar-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(15, 23, 42, 0.35);
        z-index: 50;
    }

    .sidebar-toggle {
        display: inline-block;
    }

    .sidebar-collapse-toggle {
        display: none;
    }

    .metrics-grid,
    .split-grid,
    .settings-grid,
    .two-cols {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 8px 12px;
    }

    .page-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .topbar-title h1 {
        font-size: 22px;
    }

    .ui-modal__dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
    }

    .ui-modal__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ui-modal__body {
        padding: 12px;
    }

    #kunden-create-modal .ui-modal__dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
    }

    #kunden-create-modal .ui-modal__header {
        padding: 12px 14px;
    }

    #kunden-create-modal .ui-modal__body {
        padding: 12px;
    }

    #kunden-create-modal .form-grid.two-cols {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .table th,
    .table td {
        padding: 11px 10px;
    }
}

@media (min-width: 861px) {
    .app-shell.is-sidebar-collapsed .sidebar {
        width: var(--sidebar-collapsed-width);
        min-width: var(--sidebar-collapsed-width);
        max-width: var(--sidebar-collapsed-width);
        padding-left: 14px;
        padding-right: 14px;
    }

    .app-shell.is-sidebar-collapsed .sidebar-brand {
        justify-items: center;
    }

    .app-shell.is-sidebar-collapsed .sidebar-brand-copy,
    .app-shell.is-sidebar-collapsed .nav-link-label {
        display: none;
    }

    .app-shell.is-sidebar-collapsed .sidebar-brand-media {
        width: 100%;
        min-height: 34px;
        justify-content: center;
    }

    .app-shell.is-sidebar-collapsed .sidebar-logo-main {
        display: none;
    }

    .app-shell.is-sidebar-collapsed .sidebar-logo-compact {
        display: block;
    }

    .app-shell.is-sidebar-collapsed .sidebar-brand-fallback {
        min-height: 34px;
        font-size: 22px;
    }

    .app-shell.is-sidebar-collapsed .nav-link {
        justify-content: center;
        padding: 0;
    }

    .app-shell.is-sidebar-collapsed .nav-link:hover {
        transform: none;
    }

    .app-shell.is-sidebar-collapsed .sidebar-collapse-toggle {
        width: 44px;
        min-width: 44px;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .app-shell.is-sidebar-collapsed .sidebar-collapse-toggle-expanded {
        display: none;
    }

    .app-shell.is-sidebar-collapsed .sidebar-collapse-toggle-collapsed {
        display: inline;
    }
}

/* SaaS Design System Refinement (CSS-only, non-breaking overrides) */
:root {
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 48px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.05);
    --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.08);
    --success: #166534;
    --success-bg: #ecfdf3;
    --danger: #b42318;
    --danger-bg: #fff1f1;
    --neutral: #475467;
    --neutral-bg: #f2f4f7;
    --warning: #b54708;
    --warning-bg: #fffaeb;
}

body {
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.topbar-title h1,
.page-header h1,
.module-header h1,
.module-header h2,
.module-header h3 {
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.page-subtitle {
    color: color-mix(in oklab, var(--text-soft), #667085 18%);
    line-height: 1.5;
}

.content {
    gap: var(--space-6);
}

.card {
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in oklab, var(--border), #ffffff 8%);
    box-shadow: var(--shadow-card);
    transition: transform 180ms ease, box-shadow 200ms ease, border-color 180ms ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: color-mix(in oklab, var(--border), var(--primary) 10%);
}

.card-header,
.card-body {
    padding: var(--space-6);
}

.card-header + .card-body {
    padding-top: var(--space-5);
}

.btn,
button.btn,
button {
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    transition: transform 140ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
    background: linear-gradient(180deg, color-mix(in oklab, var(--primary), #ffffff 8%), var(--primary));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 6px 16px color-mix(in oklab, var(--primary), transparent 80%);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 10px 20px color-mix(in oklab, var(--primary), transparent 76%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 4px 10px color-mix(in oklab, var(--primary), transparent 82%);
}

.btn-secondary {
    border-color: color-mix(in oklab, var(--border), #cbd5e1 26%);
    background: color-mix(in oklab, var(--surface), #f8fafc 34%);
}

.btn-secondary:hover {
    border-color: color-mix(in oklab, var(--border), var(--primary) 20%);
    background: color-mix(in oklab, var(--surface), var(--surface-tint) 22%);
}

.btn-soft {
    border-color: transparent;
    background: transparent;
    color: color-mix(in oklab, var(--text), var(--text-soft) 22%);
}

.btn-soft:hover {
    background: color-mix(in oklab, var(--surface-tint), #ffffff 14%);
    color: var(--text);
}

.table-wrap,
.table-wrapper {
    border-radius: var(--radius-md);
    border-color: color-mix(in oklab, var(--border), #ffffff 8%);
}

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.table th {
    font-weight: 650;
    letter-spacing: 0.02em;
    color: color-mix(in oklab, var(--text-soft), #344054 22%);
    background: color-mix(in oklab, var(--surface-muted), #ffffff 50%);
    border-bottom: 1px solid color-mix(in oklab, var(--border), #ffffff 6%);
}

.table tbody tr {
    transition: background-color 140ms ease;
}

.table tbody tr:hover {
    background: color-mix(in oklab, var(--surface-tint), #ffffff 35%);
}

.status-badge {
    border-radius: 999px;
    font-weight: 600;
    padding: 5px 10px;
    border: 1px solid transparent;
}

.status-badge.success {
    color: var(--success);
    background: var(--success-bg);
    border-color: color-mix(in oklab, var(--success), transparent 76%);
}

.status-badge.warning {
    color: var(--warning);
    background: var(--warning-bg);
    border-color: color-mix(in oklab, var(--warning), transparent 74%);
}

.status-badge.danger {
    color: var(--danger);
    background: var(--danger-bg);
    border-color: color-mix(in oklab, var(--danger), transparent 76%);
}

.status-badge.neutral {
    color: var(--neutral);
    background: var(--neutral-bg);
    border-color: color-mix(in oklab, var(--neutral), transparent 74%);
}

.sidebar {
    background: linear-gradient(180deg, color-mix(in oklab, var(--sidebar-bg), #ffffff 16%) 0%, var(--sidebar-bg) 100%);
}

.sidebar-nav {
    gap: 6px;
}

.nav-link {
    border-radius: var(--radius-sm);
    transition: transform 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 160ms ease, border-color 140ms ease;
}

.nav-link:hover {
    transform: translateX(1px);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
    box-shadow: 0 8px 16px color-mix(in oklab, var(--primary), transparent 83%);
}

.input,
select.input,
input.input,
.input-textarea {
    background: color-mix(in oklab, var(--surface), #f8fafc 24%);
    border-color: color-mix(in oklab, var(--border), #cbd5e1 20%);
}

.input:focus-visible,
select.input:focus-visible,
input.input:focus-visible,
.input-textarea:focus-visible {
    outline: none;
    border-color: color-mix(in oklab, var(--primary), #94a3b8 30%);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary), transparent 84%);
}

.form-grid,
.form-stack {
    gap: var(--space-4);
}

@media (max-width: 860px) {
    .card-header,
    .card-body {
        padding: var(--space-5);
    }

    .table th,
    .table td {
        padding: 12px 12px;
    }
}

/* Kunden Detail Single-Page (Masterdata + Hosting + InternetX) */
.kunden-detail-page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 22px 24px;
}

.kunden-detail-page .kv-customer-head {
    margin-bottom: 18px;
    padding: 16px 20px;
    position: relative;
    z-index: 30;
}

.kunden-detail-page > .card.ui-panel,
.kunden-detail-page > section.card.ui-panel {
    margin-bottom: 18px;
}

.kunden-detail-page > .card.ui-panel:last-child,
.kunden-detail-page > section.card.ui-panel:last-child {
    margin-bottom: 0;
}

.kunden-detail-page .kv-customer-head .card-header,
.kunden-detail-page .kv-customer-head__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    min-height: 56px;
    width: 100%;
}

.kunden-detail-page .kv-customer-head__main {
    display: grid;
    gap: 3px;
    min-width: 0;
    align-content: center;
}

.kunden-detail-page .kv-customer-head__title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kunden-detail-page .kv-customer-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.kunden-detail-page .eyebrow {
    color: var(--primary);
}

.kunden-detail-page .kv-customer-head__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
    align-self: center;
}

.kunden-detail-page .kv-customer-head__status-mobile {
    display: none;
}

.kunden-detail-page > .card.ui-panel:not(.ui-collapsible),
.kunden-detail-page > section.card.ui-panel:not(.ui-collapsible) {
    padding-left: 20px;
    padding-right: 20px;
}

.kunden-detail-page .section-head h3,
.kunden-detail-page .card-title {
    font-size: 18px;
    line-height: 1.25;
}

.kunden-detail-page .section-head {
    margin-bottom: 14px;
}

.kunden-detail-page .section-head > :first-child {
    min-width: 0;
}

.kunden-detail-page .btn {
    min-height: 38px;
    padding: 0 14px;
    gap: 8px;
    border-radius: 11px;
    font-size: 13px;
    letter-spacing: 0;
    box-shadow: none;
    transform: none;
}

.kunden-detail-page .btn:hover {
    transform: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.kunden-detail-page .btn-secondary {
    background: #fff;
    border-color: color-mix(in oklab, var(--border), #cbd5e1 22%);
    color: color-mix(in oklab, var(--text), #111827 16%);
}

.kunden-detail-page .btn-secondary:hover {
    background: color-mix(in oklab, #ffffff, var(--surface-muted) 60%);
    border-color: color-mix(in oklab, var(--border), #94a3b8 24%);
}

.kunden-detail-page .btn-danger {
    background: #fff;
    border-color: color-mix(in oklab, var(--danger), transparent 68%);
    color: var(--danger);
}

.kunden-detail-page .btn-danger:hover {
    background: color-mix(in oklab, var(--danger-bg), #ffffff 25%);
    border-color: color-mix(in oklab, var(--danger), transparent 52%);
    color: color-mix(in oklab, var(--danger), #991b1b 20%);
}

.kunden-detail-page .btn-primary {
    border-color: transparent;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 6px 14px color-mix(in oklab, var(--primary), transparent 84%);
}

.kunden-detail-page .btn-primary:hover {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 8px 16px color-mix(in oklab, var(--primary), transparent 82%);
}

.kunden-detail-page .btn-sm {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
}

.kunden-detail-page .btn-icon-only {
    width: 36px;
    min-width: 36px;
    padding: 0;
}

.kunden-detail-page .btn-icon {
    font-size: 14px;
}

.kunden-detail-page .dropdown {
    position: relative;
}

.kunden-detail-page .dropdown.is-open {
    z-index: 90;
}

.kunden-detail-page .dropdown-menu {
    z-index: 120;
}

.kunden-detail-page .ui-collapsible__summary-right .btn,
.kunden-detail-page .ui-panel__header-right .btn {
    min-height: 38px;
}

.kunden-detail-page .ui-collapsible__summary-right .btn-icon-only,
.kunden-detail-page .ui-panel__header-right .btn-icon-only {
    width: 38px;
    min-width: 38px;
    padding: 0;
}

.kunden-detail-page .action-row {
    gap: 8px;
}

.kunden-detail-page .kd-grid-domains .table th:nth-child(7),
.kunden-detail-page .kd-grid-domains .table td:nth-child(7) {
    text-align: left;
    vertical-align: top;
}

.kunden-detail-page .kd-grid-domains .domain-actions-cell {
    text-align: left;
}

.kunden-detail-page .kd-grid-domains .domain-actions-cell .action-row {
    justify-content: flex-start;
    align-items: center;
    margin-left: 0;
}

.kunden-detail-page .kd-grid-domains .domain-actions-mobile {
    display: none;
}

.kunden-detail-page .kd-grid-domains .domain-actions-mobile summary {
    list-style: none;
}

.kunden-detail-page .kd-grid-domains .domain-actions-mobile summary::-webkit-details-marker {
    display: none;
}

.kunden-detail-page .kd-grid-domains .domain-actions-mobile__menu {
    margin-top: 8px;
    display: grid;
    gap: 8px;
    justify-items: start;
}

.kunden-detail-page .kd-grid-domains .domain-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.kunden-detail-page .kd-grid-domains .domain-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
}

.kunden-detail-page .kd-grid-domains .domain-status-inline.is-active .domain-status-dot {
    background: #10b981;
}

.kunden-detail-page .kd-grid-domains .domain-status-inline.is-neutral .domain-status-dot {
    background: #60a5fa;
}

.kunden-detail-page .kd-grid-domains .domain-status-inline.is-warning .domain-status-dot {
    background: #f59e0b;
}

.kunden-detail-page .table-wrap {
    overflow: visible;
}

.kunden-detail-page .table-wrapper {
    overflow: visible;
}

.kunden-detail-page .ui-tabs,
.kunden-detail-page .section-tabs {
    display: none !important;
}

@media (max-width: 980px) {
    .table-wrap,
    .table-wrapper,
    .kunden-detail-page .table-wrap,
    .kunden-detail-page .table-wrapper {
        overflow-x: auto;
        overflow-y: visible;
    }

    .kunden-detail-page {
        padding-left: 0;
        padding-right: 0;
    }

    .kunden-detail-page .kv-customer-head .card-header,
    .kunden-detail-page .kv-customer-head__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .kunden-detail-page .kv-customer-head__title-wrap {
        width: 100%;
        flex-wrap: nowrap;
    }

    .kunden-detail-page .kv-customer-head h2 {
        font-size: 18px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .kunden-detail-page .kv-customer-head__title-wrap > .badge:not(.kv-customer-head__status-mobile) {
        display: none;
    }

    .kunden-detail-page .kv-customer-head__actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 6px;
        overflow: visible;
        padding-bottom: 0;
    }

    .kunden-detail-page .kv-customer-head__status-mobile {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .kunden-detail-page .kv-customer-head__actions .btn {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .kunden-detail-page .kd-grid-domains .domain-actions-desktop {
        display: none;
    }

    .kunden-detail-page .kd-grid-domains .domain-actions-mobile {
        display: inline-block;
    }
}

@media (max-width: 560px) {
    .kunden-detail-page {
        padding-left: 0;
        padding-right: 0;
    }

    .kunden-detail-page > .card.ui-panel:not(.ui-collapsible),
    .kunden-detail-page > section.card.ui-panel:not(.ui-collapsible) {
        padding-left: 14px;
        padding-right: 14px;
    }
}

.page-shell:has(.dl-suche-page) {
    max-width: none;
    padding: 0;
}

.page-shell:has(.dl-suche-page) > * + * {
    margin-top: 0;
}

.dl-suche-page {
    width: 100%;
    height: calc(100dvh - 65px);
    min-height: calc(100vh - 65px);
}

.dl-suche-page .dl-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.dl-suche-page .dl-iframe {
    width: 100%;
    height: calc(100% + 32px);
    margin-top: -32px;
    border: 0;
    display: block;
}

.dl-suche-page .dl-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    font-size: 14px;
    color: #666;
    z-index: 10;
}

@media (max-width: 980px) {
    .page-shell:has(.dl-suche-page) {
        padding: 0;
    }

    .dl-suche-page {
        height: calc(100dvh - 76px);
        min-height: calc(100vh - 76px);
    }

    .dl-suche-page .dl-iframe {
        height: calc(100% + 46px);
        margin-top: -46px;
    }
}

.page-shell:has(.anfragen-page) {
    max-width: none;
    padding: 0;
}

.page-shell:has(.anfragen-page) > * + * {
    margin-top: 0;
}

.anfragen-page {
    width: 100%;
    height: calc(100dvh - 65px);
    min-height: calc(100vh - 65px);
}

.anfragen-page .anfragen-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.anfragen-page .anfragen-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.anfragen-page .anfragen-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    font-size: 14px;
    color: #666;
    z-index: 10;
}

@media (max-width: 980px) {
    .page-shell:has(.anfragen-page) {
        padding: 0;
    }

    .anfragen-page {
        height: calc(100dvh - 76px);
        min-height: calc(100vh - 76px);
    }
}

.page-shell:has(.newsletter-page) {
    max-width: none;
    padding: 0;
}

.page-shell:has(.newsletter-page) > * + * {
    margin-top: 0;
}

.newsletter-page {
    width: 100%;
    height: calc(100dvh - 65px);
    min-height: calc(100vh - 65px);
}

.newsletter-page .newsletter-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.newsletter-page .newsletter-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.newsletter-page .newsletter-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    font-size: 14px;
    color: #666;
    z-index: 10;
}

@media (max-width: 980px) {
    .page-shell:has(.newsletter-page) {
        padding: 0;
    }

    .newsletter-page {
        height: calc(100dvh - 76px);
        min-height: calc(100vh - 76px);
    }
}

.page-shell:has(.hubspot-page) {
    max-width: none;
    padding: 0;
}

.page-shell:has(.hubspot-page) > * + * {
    margin-top: 0;
}

.hubspot-page {
    width: 100%;
    height: calc(100dvh - 65px);
    min-height: calc(100vh - 65px);
}

.hubspot-page .hubspot-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.hubspot-page .hubspot-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.hubspot-page .hubspot-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    font-size: 14px;
    color: #666;
    z-index: 10;
}

@media (max-width: 980px) {
    .page-shell:has(.hubspot-page) {
        padding: 0;
    }

    .hubspot-page {
        height: calc(100dvh - 76px);
        min-height: calc(100vh - 76px);
    }
}

.page-shell:has(.portal-page) {
    max-width: none;
    padding: 0;
}

.page-shell:has(.portal-page) > * + * {
    margin-top: 0;
}

.portal-page {
    width: 100%;
    height: calc(100dvh - 65px);
    min-height: calc(100vh - 65px);
}

.portal-page .portal-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.portal-page .portal-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.portal-page .portal-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    font-size: 14px;
    color: #666;
    z-index: 10;
}

@media (max-width: 980px) {
    .page-shell:has(.portal-page) {
        padding: 0;
    }

    .portal-page {
        height: calc(100dvh - 76px);
        min-height: calc(100vh - 76px);
    }
}
