body {
            font-family: 'Inter', Arial, sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            background-color: var(--body-bg);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        img {
            max-width: 100%;
            height: auto;
        }

        .skip-link {
            position: fixed;
            top: 0.5rem;
            left: 0.5rem;
            z-index: 10000;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            background: #fff;
            color: #111827;
            font-weight: 700;
            text-decoration: none;
            transform: translateY(-150%);
        }

        .skip-link:focus {
            transform: translateY(0);
        }

        :where(a, button, input, select, textarea, [tabindex]):focus-visible {
            outline: 3px solid #f59e0b;
            outline-offset: 3px;
        }

        /* ===== HEADER ===== */
        .site-header {
            background: #fff;
            border-bottom: 1px solid #e5e7eb;
            padding: 0.75rem 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
        }

        .site-header .header-inner {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }

        .site-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            flex-shrink: 0;
            min-width: 0;
            max-width: calc(100% - 60px);
        }

        .site-logo img {
            width: auto;
            height: 40px;
            max-height: 40px;
            max-width: 160px;
            object-fit: contain;
        }

        .site-logo .logo-name {
            font-size: 1.1rem;
            font-weight: 700;
            color: #1f2937;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .site-logo .logo-icon {
            color: var(--primary);
            font-size: 1.75rem;
        }

        .site-navigation {
            display: block;
            min-width: 0;
            position: relative;
        }

        .nav-layout {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.75rem;
        }

        .nav-layout > * {
            flex-shrink: 0;
        }

        .nav-primary:empty,
        .nav-actions:empty,
        .nav-overflow:empty {
            display: none;
        }

        .site-nav.nav-actions {
            gap: 0.75rem;
        }

        .nav-toggle {
            display: none;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            flex-shrink: 0;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            background: #fff;
            color: #1f2937;
            font-size: 1.4rem;
        }

        .site-nav {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            list-style: none;
            margin: 0;
            padding: 0;
            flex-wrap: nowrap;
        }

        .site-nav li a {
            display: inline-flex;
            align-items: center;
            min-height: 44px;
            color: #4b5563;
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            padding: 0.4rem 0.75rem;
            border-radius: 6px;
            transition: color 0.15s, background 0.15s;
            white-space: nowrap;
        }

        .site-nav li a:hover {
            color: var(--primary);
            background: #f3f4f6;
        }

        .site-nav li a.nav-btn {
            background: #f3f4f6;
            color: #1f2937;
            font-weight: 600;
        }

        .site-nav li a.nav-btn:hover {
            background: #e5e7eb;
            color: #111827;
        }

        /* Logout is a POST form (Django LogoutView rejects GET) — style the
           submit button exactly like the .nav-btn links above. */
        .site-nav .logout-form {
            margin: 0;
        }

        .site-nav .logout-form .nav-btn {
            display: inline-flex;
            align-items: center;
            min-height: 44px;
            border: 0;
            cursor: pointer;
            font: inherit;
            font-size: 0.875rem;
            font-weight: 600;
            padding: 0.4rem 0.75rem;
            border-radius: 6px;
            background: #f3f4f6;
            color: #1f2937;
            transition: color 0.15s, background 0.15s;
            white-space: nowrap;
        }

        .site-nav .logout-form .nav-btn:hover {
            background: #e5e7eb;
            color: #111827;
        }

        .site-nav li a.nav-backend {
            color: #d97706;
            font-weight: 600;
        }

        .site-nav li a.nav-backend:hover {
            color: #b45309;
            background: #fffbeb;
        }

        /* Permanent header CTA (P11) */
        .site-nav li a.nav-cta {
            background: var(--primary);
            color: #fff;
            font-weight: 600;
        }

        .site-nav li a.nav-cta:hover {
            background: #2c405a;
            color: #fff;
        }

        /* Support dropdown (P11) — custom, matches the nav link styling;
           Bootstrap's dropdown component is not used here. */
        .nav-dropdown {
            position: relative;
        }

        .nav-dropdown-toggle {
            min-height: 44px;
            border: 0;
            cursor: pointer;
            background: none;
            font: inherit;
            color: #4b5563;
            font-size: 0.875rem;
            font-weight: 500;
            padding: 0.4rem 0.75rem;
            border-radius: 6px;
            transition: color 0.15s, background 0.15s;
            white-space: nowrap;
        }

        .nav-dropdown-toggle:hover {
            color: var(--primary);
            background: #f3f4f6;
        }

        .nav-dropdown-toggle .bi {
            font-size: 0.7rem;
            margin-left: 0.15rem;
        }

        .nav-dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            min-width: 12rem;
            margin: 0.25rem 0 0;
            padding: 0.4rem 0;
            list-style: none;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
            z-index: 1000;
        }

        .nav-dropdown.is-open .nav-dropdown-menu {
            display: block;
        }

        .nav-dropdown-menu li a {
            display: block;
            border-radius: 0;
        }

        /* ===== BACKEND SUBNAV ===== */
        .backend-subnav-bar {
            background: #f8f9fa;
            border-bottom: 1px solid #e5e7eb;
        }

        .backend-subnav-bar .inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0.5rem 2rem;
        }

        .backend-subnav {
            list-style: none;
            display: flex;
            gap: 8px;
            margin: 0;
            padding: 0;
            flex-wrap: wrap;
        }

        .backend-subnav a {
            text-decoration: none;
            color: #395270;
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 0.875rem;
            transition: background-color 0.15s ease, color 0.15s ease;
        }

        .backend-subnav a:hover {
            background-color: #e9ecef;
            color: #1f2d3d;
        }

        .backend-subnav a.active {
            background-color: #395270;
            color: #fff;
        }

        /* ===== MAIN CONTENT ===== */
        .main-content {
            flex: 1;
            /* Long unbroken words (German compounds like
               "Verbraucherstreitbeilegung") may wrap instead of
               overflowing narrow viewports. */
            overflow-wrap: break-word;
        }

        /* Default page container for inner pages */
        .page-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        /* ===== PRODUCT GRID (used on category pages) ===== */
        .product-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }

        .product-card {
            display: flex;
            flex-direction: column;
            min-width: 0;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 20px;
            width: calc(33.333% - 20px);
            box-sizing: border-box;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .product-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }

        .product-card-body {
            flex-grow: 1;
            min-width: 0;
        }

        /* Reserve a separate row for the image and title. Floated images can
           intrude into the shared price summary on narrow tariff cards. */
        .product-card-heading {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .product-card-heading.has-image {
            grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
        }

        .product-card-title {
            margin: 0;
            font-size: 1.5rem;
            overflow-wrap: anywhere;
        }

        .product-card-media {
            width: 100%;
            max-width: 160px;
            justify-self: end;
        }

        .product-card-media picture,
        .product-card-media img {
            display: block;
            width: 100%;
        }

        .product-card-media img {
            height: auto;
            aspect-ratio: 1;
            object-fit: contain;
        }

        .price { font-size: 1.2em; color: #16a34a; font-weight: bold; }

        .pricing-summary {
            margin: 1rem 0;
            padding: 1rem;
            border: 1px solid #dbe3ea;
            border-radius: 10px;
            background: #f8fafc;
            color: #334155;
            text-align: left;
        }

        .pricing-summary p {
            margin: 0 0 0.45rem;
        }

        .pricing-summary p:last-child {
            margin-bottom: 0;
        }

        .pricing-summary .pricing-primary {
            color: #0f172a;
            font-size: 1.25rem;
            font-weight: 800;
        }

        .pricing-summary .pricing-detail {
            font-size: 0.875rem;
        }

        .pricing-summary .pricing-legal {
            padding-top: 0.35rem;
            border-top: 1px solid #e2e8f0;
            color: #64748b;
            font-size: 0.75rem;
        }

        /* ===== SHARED BUTTON STYLE ===== */
        .btn-themed {
            display: inline-block;
            background: var(--primary);
            color: #fff !important;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            text-decoration: none;
            text-align: center;
            transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
        }

        .btn-themed:hover {
            background: var(--primary) !important;
            color: #fff !important;
            opacity: 0.9;
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
        }

        /* ===== CONSENT NOTICE =====
           Deliberately named without "cookie-banner": generic ad-blocker
           cosmetic filters (###cookie-banner in Fanboy's Cookie Monster /
           EasyList Cookie) would hide the legally required consent UI. */
        .nebie-consent {
            position: fixed;
            left: 20px;
            right: 20px;
            bottom: 20px;
            background: #1f2937;
            color: #fff;
            border-radius: 12px;
            padding: 16px 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            z-index: 9999;
            display: none;
        }

        .nebie-consent p {
            margin: 0 0 12px 0;
            font-size: 0.95rem;
        }

        .cookie-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .cookie-actions .btn {
            border-radius: 8px;
        }

        /* ===== FOOTER ===== */
        .site-footer {
            background-color: var(--footer-bg);
            color: #cbd5e1;
            padding: 3.5rem 0 0;
            margin-top: 5rem;
        }

        .site-footer .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #fff;
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }

        .footer-brand img {
            width: auto;
            height: 32px;
            max-height: 32px;
        }

        .footer-brand .footer-icon {
            font-size: 1.5rem;
            color: #93c5fd;
        }

        .site-footer p {
            font-size: 0.875rem;
            color: #94a3b8;
            line-height: 1.7;
        }

        .site-footer .footer-heading {
            color: #fff;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 1.1rem;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 0.6rem;
        }

        .footer-links a {
            color: #94a3b8;
            text-decoration: none;
            font-size: 0.875rem;
            /* WCAG 2.2: keep the tap target >= 24px tall */
            line-height: 1.75;
            transition: color 0.15s;
            overflow-wrap: anywhere;
        }

        .footer-links a:hover {
            color: #fff;
        }

        .footer-contract-actions {
            display: grid;
            grid-auto-rows: 1fr;
            gap: 0.5rem;
            max-width: 14.5rem;
            margin-bottom: 1.4rem;
        }

        .footer-contract-actions li {
            min-width: 0;
            margin: 0;
        }

        .footer-links .footer-contract-action {
            display: flex;
            align-items: center;
            width: 100%;
            height: 100%;
            min-height: 44px;
            padding: 0.6rem 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.65);
            border-radius: 6px;
            background-color: transparent;
            color: #fff;
            font-weight: 500;
            line-height: 1.4;
            text-decoration: none;
            transition: background-color 0.15s, border-color 0.15s;
        }

        .footer-links .footer-contract-action:hover,
        .footer-links .footer-contract-action:focus-visible {
            background-color: rgba(255, 255, 255, 0.08);
            border-color: #fff;
        }

        .footer-links .footer-contract-action:focus-visible {
            outline: 3px solid #fff;
            outline-offset: 3px;
        }

        @media (prefers-reduced-motion: reduce) {
            .footer-links .footer-contract-action {
                transition: none;
            }
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            margin-top: 3rem;
            padding: 1.25rem 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .footer-bottom p {
            margin: 0;
            font-size: 0.8rem;
            color: #64748b;
        }

        .footer-bottom-links {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .footer-bottom-links a {
            color: #64748b;
            text-decoration: none;
            font-size: 0.8rem;
            /* WCAG 2.2: keep the tap target >= 24px tall */
            line-height: 1.9;
            transition: color 0.15s;
        }

        .footer-bottom-links a:hover {
            color: #fff;
        }

        @media (min-width: 768px) and (max-width: 991.98px) {
            .product-card {
                width: calc(50% - 10px);
            }
        }

        /* Public links fit progressively; account actions always live in the
           disclosure. Below 768px JS moves all entries into the same panel. */
        .site-header:not(.is-wide) .header-inner {
            padding: 0 1rem;
        }

        .site-header.is-wide .site-logo {
            max-width: 35%;
        }

        .site-header.has-navigation-js .nav-toggle {
            display: inline-flex;
        }

        .nav-panel {
            padding: 0.75rem;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
        }

        .site-header.has-navigation-js .nav-panel {
            display: none;
            position: absolute;
            top: calc(100% + 0.75rem);
            right: 0;
            width: min(22rem, calc(100vw - 2rem));
            max-height: calc(100dvh - 6rem);
            overflow-y: auto;
            overscroll-behavior: contain;
        }

        .site-header.has-navigation-js .nav-panel.is-open {
            display: block;
        }

        .site-header:not(.is-wide) .site-navigation {
            position: static;
        }

        .site-header:not(.is-wide) .nav-panel {
            top: 100%;
            right: 1rem;
            left: 1rem;
            width: auto;
        }

        .nav-panel .site-nav {
            align-items: stretch;
            flex-direction: column;
            gap: 0.5rem;
        }

        .nav-overflow:not(:empty) + .nav-account {
            border-top: 1px solid #e5e7eb;
            padding-top: 0.75rem;
            margin-top: 0.75rem;
        }

        .nav-panel .site-nav li a,
        .nav-panel .logout-form .nav-btn {
            display: block;
            width: 100%;
            text-align: left;
            min-height: 44px;
            padding: 0.65rem 0.75rem;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        /* Support remains a nested disclosure inside the overflow panel. */
        .nav-panel .nav-dropdown-menu {
            position: static;
            border: 0;
            box-shadow: none;
            margin: 0;
            padding: 0 0 0 1rem;
        }

        .nav-panel .nav-dropdown-toggle {
            display: block;
            width: 100%;
            text-align: left;
            min-height: 44px;
            padding: 0.65rem 0.75rem;
        }

        .nav-panel .site-nav li a.nav-cta {
            text-align: center;
        }

        /* With scripting unavailable, every link (including Support) remains
           reachable in the compact layout; no non-functional toggle is shown. */
        .site-header:not(.has-navigation-js) {
            position: static;
        }

        .site-header:not(.has-navigation-js) .header-inner,
        .site-header:not(.has-navigation-js) .nav-layout,
        .site-header:not(.has-navigation-js) .site-nav {
            flex-direction: column;
            align-items: stretch;
        }

        .site-header:not(.has-navigation-js) .site-nav li a {
            white-space: normal;
            overflow-wrap: anywhere;
        }

        .site-header:not(.has-navigation-js) .nav-panel {
            margin-top: 0.75rem;
        }

        .site-header:not(.has-navigation-js) .nav-dropdown-toggle,
        .site-header.has-navigation-js .nav-dropdown-label {
            display: none;
        }

        .nav-dropdown-label {
            display: block;
            padding: 0.65rem 0.75rem;
            color: #4b5563;
            font-size: 0.875rem;
            font-weight: 500;
        }

        .site-header:not(.has-navigation-js) .nav-dropdown-menu {
            display: block;
            position: static;
            border: 0;
            box-shadow: none;
            padding-left: 1rem;
        }

        .site-header:not(.has-navigation-js) .site-logo {
            max-width: 100%;
        }

        @media (max-width: 767.98px) {
            /* The footer's g-5 row uses 1.5rem negative margins, wider than
               the 1rem mobile padding of .footer-inner — without this the
               page gets an 8px horizontal scrollbar below 768px. */
            .site-footer .row {
                margin-left: 0;
                margin-right: 0;
            }

            .page-container,
            .backend-subnav-bar .inner,
            .site-footer .footer-inner {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .product-card {
                width: 100%;
            }

            .nebie-consent {
                left: 0.75rem;
                right: 0.75rem;
                bottom: 0.75rem;
                max-height: calc(100vh - 1.5rem);
                overflow-y: auto;
                padding: 1rem;
            }

            .cookie-actions .btn {
                flex: 1 1 140px;
                min-height: 44px;
                white-space: normal;
            }

            .footer-bottom {
                align-items: flex-start;
                flex-direction: column;
            }

            .footer-bottom-links {
                gap: 0.75rem 1rem;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                scroll-behavior: auto !important;
                transition-duration: 0.01ms !important;
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
            }
        }
/* Retention controls stay distinguishable when navigating with a keyboard. */
.retention-action { min-height: 44px; }
.retention-action:focus-visible,
.retention-table:focus-visible {
    outline: 3px solid #1a2939;
    outline-offset: 3px;
}
