/* Die Schrift Inter wird selbst ausgeliefert (~/lib/inter/inter.css, eingebunden im
   Layout). Hier stand frueher ein @import auf fonts.googleapis.com - der haette bei
   jedem Seitenaufruf die IP-Adresse des Besuchers ohne Einwilligung an Google
   uebertragen. Die Content-Security-Policy verbietet fremde Stil- und Schriftquellen
   ohnehin; die Zeile war damit wirkungslos und zugleich irrefuehrend. */

/* 1. CSS Reset / Base & Custom Properties */
:root {
    color-scheme: light;
    --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --color-primary: #10b981;
    --color-primary-dark: #059669;
    --color-primary-deep: #047857;
    --color-primary-soft: rgba(16, 185, 129, 0.14);
    --color-primary-softer: rgba(16, 185, 129, 0.08);
    --color-secondary: #0ea5e9;
    --color-secondary-soft: rgba(14, 165, 233, 0.12);
    --color-success: #10b981;
    --color-success-soft: rgba(16, 185, 129, 0.14);
    --color-info: #38bdf8;
    --color-info-soft: rgba(56, 189, 248, 0.14);
    --color-warning: #f59e0b;
    --color-warning-soft: rgba(245, 158, 11, 0.16);
    --color-danger: #ef4444;
    --color-danger-soft: rgba(239, 68, 68, 0.14);
    --color-muted-blue: #dbeafe;
    --color-bg: #f8fafc;
    --color-bg-soft: #f1f5f9;
    --color-bg-elevated: #ffffff;
    --color-surface: rgba(255, 255, 255, 0.88);
    --color-surface-solid: #ffffff;
    --color-surface-muted: rgba(248, 250, 252, 0.84);
    --color-surface-alt: rgba(241, 245, 249, 0.85);
    --color-surface-inverse: #0f172a;
    --color-text: #0f172a;
    --color-text-soft: #475569;
    --color-text-muted: #64748b;
    --color-text-inverse: #f8fafc;
    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-strong: rgba(15, 23, 42, 0.14);
    --color-border-inverse: rgba(255, 255, 255, 0.12);
    --color-navbar: rgba(255, 255, 255, 0.72);
    --color-navbar-border: rgba(255, 255, 255, 0.56);
    --color-footer: #0b1220;
    --gradient-primary: linear-gradient(135deg, #34d399 0%, #10b981 45%, #059669 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.9) 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #0b1220 28%, #064e3b 68%, #10b981 100%);
    --gradient-hero-soft: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 38%), linear-gradient(135deg, #0f172a 0%, #0b1220 32%, #064e3b 72%, #10b981 100%);
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --radius-xs: 0.5rem;
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 1.75rem;
    --radius-pill: 999px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.11), 0 8px 22px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 36px 80px rgba(15, 23, 42, 0.15), 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 18px 42px rgba(16, 185, 129, 0.24);
    --shadow-focus: 0 0 0 4px rgba(16, 185, 129, 0.16);
    --blur-sm: 10px;
    --blur-md: 18px;
    --blur-lg: 24px;
    --duration-fast: 0.2s;
    --duration-normal: 0.28s;
    --duration-slow: 0.4s;
    --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
    --container-max: 1280px;
    --bs-body-font-family: var(--font-sans);
    --bs-primary: var(--color-primary);
    --bs-primary-rgb: 16, 185, 129;
    --bs-secondary: #64748b;
    --bs-secondary-rgb: 100, 116, 139;
    --bs-success: var(--color-success);
    --bs-success-rgb: 16, 185, 129;
    --bs-info: var(--color-info);
    --bs-info-rgb: 56, 189, 248;
    --bs-warning: var(--color-warning);
    --bs-warning-rgb: 245, 158, 11;
    --bs-danger: var(--color-danger);
    --bs-danger-rgb: 239, 68, 68;
    --bs-light: #f8fafc;
    --bs-light-rgb: 248, 250, 252;
    --bs-dark: #0f172a;
    --bs-dark-rgb: 15, 23, 42;
    --bs-body-bg: var(--color-bg);
    --bs-body-color: var(--color-text);
    --bs-border-color: var(--color-border);
    --bs-border-radius: var(--radius-sm);
    --bs-border-radius-sm: var(--radius-xs);
    --bs-border-radius-lg: var(--radius-md);
    --bs-border-radius-xl: var(--radius-lg);
    --bs-link-color: var(--color-primary-dark);
    --bs-link-hover-color: var(--color-primary-deep);
    --bs-card-bg: var(--color-surface-solid);
    --bs-card-border-color: var(--color-border);
    --bs-card-cap-bg: transparent;
    --bs-emphasis-color: var(--color-text);
    --bs-tertiary-bg: var(--color-bg-soft);
    --bs-secondary-bg: var(--color-bg-soft); }
html[data-theme='dark'] {
    color-scheme: dark;
    --color-primary: #34d399;
    --color-primary-dark: #10b981;
    --color-primary-deep: #6ee7b7;
    --color-primary-soft: rgba(52, 211, 153, 0.16);
    --color-primary-softer: rgba(52, 211, 153, 0.1);
    --color-secondary: #38bdf8;
    --color-secondary-soft: rgba(56, 189, 248, 0.16);
    --color-success: #34d399;
    --color-success-soft: rgba(52, 211, 153, 0.16);
    --color-info: #7dd3fc;
    --color-info-soft: rgba(125, 211, 252, 0.14);
    --color-warning: #fbbf24;
    --color-warning-soft: rgba(251, 191, 36, 0.18);
    --color-danger: #f87171;
    --color-danger-soft: rgba(248, 113, 113, 0.16);
    --color-muted-blue: rgba(30, 41, 59, 0.92);
    --color-bg: #020617;
    --color-bg-soft: #0f172a;
    --color-bg-elevated: #111827;
    --color-surface: rgba(15, 23, 42, 0.78);
    --color-surface-solid: #0f172a;
    --color-surface-muted: rgba(15, 23, 42, 0.88);
    --color-surface-alt: rgba(30, 41, 59, 0.76);
    --color-surface-inverse: #e2e8f0;
    --color-text: #e2e8f0;
    --color-text-soft: #cbd5e1;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #020617;
    --color-border: rgba(148, 163, 184, 0.16);
    --color-border-strong: rgba(148, 163, 184, 0.22);
    --color-border-inverse: rgba(255, 255, 255, 0.14);
    --color-navbar: rgba(2, 6, 23, 0.68);
    --color-navbar-border: rgba(148, 163, 184, 0.16);
    --color-footer: #020617;
    --gradient-primary: linear-gradient(135deg, #6ee7b7 0%, #34d399 45%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.84) 100%);
    --gradient-hero: linear-gradient(135deg, #020617 0%, #0f172a 36%, #052e2b 72%, #10b981 100%);
    --gradient-hero-soft: radial-gradient(circle at top left, rgba(52, 211, 153, 0.12), transparent 38%), linear-gradient(135deg, #020617 0%, #0f172a 36%, #052e2b 72%, #10b981 100%);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.26);
    --shadow-sm: 0 12px 24px rgba(2, 6, 23, 0.36), 0 3px 8px rgba(2, 6, 23, 0.22);
    --shadow-md: 0 18px 38px rgba(2, 6, 23, 0.48), 0 4px 14px rgba(2, 6, 23, 0.24);
    --shadow-lg: 0 26px 62px rgba(2, 6, 23, 0.56), 0 8px 26px rgba(2, 6, 23, 0.3);
    --shadow-xl: 0 38px 90px rgba(2, 6, 23, 0.66), 0 14px 34px rgba(2, 6, 23, 0.32);
    --shadow-glow: 0 18px 44px rgba(52, 211, 153, 0.18);
    --shadow-focus: 0 0 0 4px rgba(52, 211, 153, 0.18);
    --bs-body-bg: var(--color-bg);
    --bs-body-color: var(--color-text);
    --bs-border-color: var(--color-border);
    --bs-link-color: var(--color-primary);
    --bs-link-hover-color: var(--color-primary-deep);
    --bs-card-bg: var(--color-surface-solid);
    --bs-card-border-color: var(--color-border);
    --bs-tertiary-bg: var(--color-bg-soft);
    --bs-secondary-bg: rgba(30, 41, 59, 0.7); }
* , *::before, *::after {
    box-sizing: border-box;
    transition: background-color var(--duration-normal) var(--ease-standard), border-color var(--duration-normal) var(--ease-standard), color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard), opacity var(--duration-normal) var(--ease-standard), filter var(--duration-normal) var(--ease-standard); }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
    background-color: var(--color-bg); }
body {
    position: relative;
    margin: 0;
    font-family: var(--font-sans);
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), transparent 28%), radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 22%), var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh; }
body::before, body::after {
    content: '';
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.5; }
body::before {
    top: -10rem;
    left: -8rem;
    width: 20rem;
    height: 20rem;
    background: rgba(16, 185, 129, 0.12); }
body::after {
    right: -8rem;
    bottom: 5rem;
    width: 18rem;
    height: 18rem;
    background: rgba(14, 165, 233, 0.1); }
main, footer, .page-loader, .dev-banner, .scroll-top, .whatsapp-float, .cookie-banner, #cookieConsentBanner {
    position: relative;
    z-index: 1; }
img, picture, svg, video, canvas {
    display: block;
    max-width: 100%; }
button, input, select, textarea { font: inherit; }
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-text); }
hr {
    margin: var(--space-8) 0;
    border: 0;
    border-top: 1px solid var(--color-border);
    opacity: 1; }
.bg-light-blue { background: linear-gradient(135deg, rgba(219, 234, 254, 0.58) 0%, rgba(240, 249, 255, 0.72) 100%) !important; }
html[data-theme='dark'] .bg-light-blue { background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.78) 100%) !important; }

/* 2. Typography */
body, p, ul, ol, li, span, small, label, input, textarea, select, button, .table, .badge, .alert { font-family: var(--font-sans); }
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4); }
h1, .display-1 { font-size: clamp(2.5rem, 5vw, 4.75rem); }
h2, .display-4 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h4 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h5 { font-size: 1.125rem; }
h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em; }
p {
    margin-bottom: var(--space-4);
    color: var(--color-text-soft); }
.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 500;
    color: var(--color-text-soft); }
small, .small, .text-muted, .text-body-secondary { color: var(--color-text-muted) !important; }
a {
    color: var(--color-primary-dark);
    text-decoration: none; }
a:hover { color: var(--color-primary-deep); }
a.text-white:hover, footer a:hover { opacity: 0.92; }
strong, b {
    font-weight: 700;
    color: var(--color-text); }
.section-title {
    margin-bottom: var(--space-4);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text); }
.section-subtitle {
    max-width: 44rem;
    margin: 0 auto var(--space-10);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-soft); }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; }

/* 3. Layout & Navigation */
main { min-height: calc(100vh - 12rem); }
section, .section {
    position: relative;
    padding: clamp(3.5rem, 6vw, 6rem) 0; }
.container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
    position: relative;
    z-index: 1; }
.navbar {
    width: min(calc(100% - 1.25rem), var(--container-max));
    margin: 1rem auto 0;
    padding: 0.85rem 1rem;
    background: var(--color-navbar) !important;
    border: 1px solid var(--color-navbar-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%); }
.navbar.sticky-top {
    top: 1rem;
    z-index: 1035; }
.navbar.bg-primary, .navbar.navbar-dark, .navbar.navbar-light { background: var(--color-navbar) !important; }
.navbar .container, .navbar .container-fluid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem; }
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    min-width: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text) !important;
    letter-spacing: -0.03em;
    text-decoration: none;
    z-index: 10; }
.navbar-brand:hover { opacity: 0.9; }
.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15; }
.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; }
.brand-sub {
    font-size: 0.82rem;
    font-weight: 400;
    opacity: 0.9;
    white-space: nowrap; }
.navbar-logo, .footer-logo {
    width: auto;
    max-width: 100%;
    object-fit: contain; }
.navbar-logo {
    height: 72px;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.12)); }
/* Hoehe ueber max-height statt height: das Logo ist breiter als hoch und wuerde
   in schmalen Spalten sonst ueber den Rand laufen. */
.footer-logo {
    height: auto;
    max-height: 190px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25)); }
.navbar .navbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-items: center; }
.navbar .nav-link, .navbar .btn-link.nav-link, .navbar .navbar-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius-pill);
    color: var(--color-text) !important;
    font-weight: 500;
    opacity: 0.9;
    white-space: nowrap; }
.navbar .nav-link:hover, .navbar .nav-link:focus-visible, .navbar .btn-link.nav-link:hover, .navbar .btn-link.nav-link:focus-visible {
    background: rgba(15, 23, 42, 0.05);
    opacity: 1;
    transform: translateY(-1px); }
.navbar .nav-link.active, .navbar .nav-link[aria-current='page'] {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary-dark) !important; }
.navbar .dropdown-menu { margin-top: 0.75rem; }
.navbar-toggler {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: none !important;
    color: var(--color-text);
    padding: 0.6rem 0.75rem; }
.navbar-toggler:hover, .navbar-toggler:focus-visible {
    background: rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow-focus) !important; }
.navbar-toggler-icon {
    position: relative;
    width: 1.35rem;
    height: 1rem;
    background-image: none !important;
    background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat;
    color: currentColor; }
.navbar-toggler-icon::before, .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor; }
.navbar-toggler-icon::before { top: 0; }
.navbar-toggler-icon::after { bottom: 0; }
.navbar .navbar-collapse { border-radius: var(--radius-xl); }
.dropdown-menu, .modal-content, .accordion-item, .list-group-item, .offcanvas, .toast, .popover {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md)); }
.dropdown-menu {
    padding: 0.5rem;
    min-width: 14rem; }
.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    color: var(--color-text); }
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--color-primary-softer);
    color: var(--color-primary-dark); }
footer { margin-top: clamp(4rem, 6vw, 6rem); }
footer.bg-dark {
    background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.18), transparent 22%), linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08); }
footer h5, footer h6, footer .text-white { color: #f8fafc !important; }
footer p, footer .text-white-50, footer .small { color: rgba(226, 232, 240, 0.74) !important; }
footer a { color: rgba(226, 232, 240, 0.88) !important; }
footer a:hover {
    color: #ffffff !important;
    transform: translateX(2px); }
.dev-banner {
    position: sticky;
    top: 0;
    z-index: 1045;
    padding: 0;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    white-space: nowrap; }
.dev-banner-track {
    display: inline-block;
    padding: 0.75rem 0;
    animation: dev-banner-scroll 25s linear infinite; }
.dev-banner-text {
    display: inline;
    font-size: 0.85rem; }
@keyframes dev-banner-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } }
.dev-banner a {
    color: #fff;
    text-decoration: underline; }

/* 4. Buttons */
/* Global icon-text vertical centering fix */
.btn .bi, .btn i, .nav-link .bi, .nav-link i,
.icon-text .bi, .icon-text i, .icon-text svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle; }
.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2; }
.btn {
    --btn-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.95rem;
    padding: 0.78rem 1.15rem;
    border-radius: 0.9rem;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: var(--btn-shadow); }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { box-shadow: var(--shadow-focus), var(--btn-shadow); }
.btn-primary, .btn-accent, .btn-success {
    color: #ffffff !important;
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow); }
.btn-primary:hover, .btn-primary:focus-visible, .btn-accent:hover, .btn-accent:focus-visible, .btn-success:hover, .btn-success:focus-visible {
    color: #ffffff;
    filter: saturate(1.05);
    box-shadow: 0 20px 44px rgba(16, 185, 129, 0.24); }
.btn-outline-primary {
    color: var(--color-primary-dark);
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(255, 255, 255, 0.72); }
.btn-outline-primary:hover, .btn-outline-primary:focus-visible {
    color: #ffffff;
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow); }
.btn-outline-secondary, .btn-light {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--color-border); }
.btn-outline-secondary:hover, .btn-outline-secondary:focus-visible, .btn-light:hover, .btn-light:focus-visible {
    background: var(--color-surface-solid);
    border-color: var(--color-border-strong); }
.btn-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: transparent;
    color: #f8fafc; }
.btn-dark:hover, .btn-dark:focus-visible {
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22); }
.btn-link {
    box-shadow: none;
    border-color: transparent; }
.btn-sm {
    min-height: 2.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.8rem; }
.btn-lg {
    min-height: 3.25rem;
    padding: 0.95rem 1.4rem;
    border-radius: 1rem; }

/* 5. Cards (feature, stat, pricing, auth) */
.card, .feature-card, .stat-card, .pricing-card, .auth-card, .testimonial-card, .ba-card, .tonnen-card {
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    animation: fadeUp 0.7s var(--ease-standard) both; }
.card:hover, .feature-card:hover, .stat-card:hover, .pricing-card:hover, .auth-card:hover, .testimonial-card:hover, .ba-card:hover, .tonnen-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-lg); }
.card-header, .card-footer {
    background: transparent;
    border-color: var(--color-border); }
.card-body { padding: clamp(1.25rem, 2vw, 1.75rem); }
/* Die Hoehe folgt dem Inhalt.

   Frueher stand hier `height: 100%` fuer alle Karten. Gemeint war der Fall
   "mehrere Karten nebeneinander sollen gleich hoch sein" - getroffen hat es
   aber auch gestapelte Karten: Steht in einer Rasterspalte mehr als eine
   Karte, loest der Browser die Prozenthoehe gegen die Hoehe der ganzen
   Spalte auf. Jede Karte wurde dadurch so hoch wie das gesamte Formular,
   die Karten legten sich uebereinander und es blieben riesige leere
   Rechtecke stehen (gemessen auf Admin/ReinigungsplanErstellen: sechs
   Karten mit je 2787 px, von denen nur die erste sichtbar war).

   Gleich hohe Karten entstehen deshalb nur noch dort, wo eine Karte ihre
   Spalte allein ausfuellt - genau der Fall, fuer den die Regel gedacht war.
   Wer sie darueber hinaus braucht, setzt Bootstraps `h-100` im Markup. */
.feature-card {
    height: auto;
    padding: clamp(1.5rem, 2vw, 2rem);
    border-radius: var(--radius-xl);
    overflow: visible;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 100%); }
[class*='col-'] > .feature-card:only-child,
.col > .feature-card:only-child { height: 100%; }
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 36%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-standard); }
.feature-card:hover::before { opacity: 1; }
.feature-card .bi, .feature-card i[class*='bi-'] {
    display: inline-grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: var(--space-6);
    border-radius: 1.1rem;
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-primary-dark);
    font-size: 1.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.feature-card h3, .feature-card h4, .feature-card h5 { margin-bottom: var(--space-3); }
.feature-card p:last-child { margin-bottom: 0; }
.stat-card {
    --stat-accent: var(--color-primary);
    height: 100%;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: var(--radius-lg); }
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-accent), transparent); }
.stat-card .bi, .stat-card i[class*='bi-'] {
    display: inline-grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: var(--space-5);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--stat-accent) 14%, transparent);
    color: var(--stat-accent);
    font-size: 1.25rem; }
.stat-card h2, .stat-card h3, .stat-card .display-6 {
    margin-bottom: var(--space-2);
    font-size: clamp(1.8rem, 3vw, 2.4rem); }
.stat-card p:last-child, .stat-card .text-muted:last-child { margin-bottom: 0; }
.stat-card.success, .stat-card.border-success, .stat-card[data-accent='success'] { --stat-accent: var(--color-success); }
.stat-card.warning, .stat-card.border-warning, .stat-card[data-accent='warning'] { --stat-accent: var(--color-warning); }
.stat-card.danger, .stat-card.border-danger, .stat-card[data-accent='danger'] { --stat-accent: var(--color-danger); }
.stat-card.info, .stat-card.border-info, .stat-card[data-accent='info'] { --stat-accent: var(--color-info); }

/* Operations Center Kacheln */
.ops-kachel {
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    height: 100%; }
.ops-kachel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.ops-kachel-icon {
    font-size: 1.8rem;
    margin-bottom: 0.25rem; }
.ops-kachel-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1; }
.ops-kachel-label {
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-top: 0.15rem; }
html[data-theme='dark'] .ops-kachel:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4); }

.pricing-card ul {
    padding-left: 0;
    list-style: none;
    margin: var(--space-8) 0 0; }
.pricing-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0;
    color: var(--color-text-soft);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05); }
.pricing-card li:last-child { border-bottom: 0; }
.pricing-card li .bi, .pricing-card li i[class*='bi-'] {
    margin-top: 0.15rem;
    color: var(--color-primary-dark); }
.auth-container {
    min-height: calc(100vh - 10rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem) 1rem; }
.auth-card {
    width: min(100%, 32rem);
    padding: clamp(1.75rem, 2.5vw, 2.4rem);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.45); }
.auth-card .card-body { padding: 0; }
.auth-card .form-control, .auth-card .form-select { background: rgba(255, 255, 255, 0.72); }
.testimonial-card, .ba-card, .tonnen-card {
    height: 100%;
    padding: clamp(1.35rem, 2vw, 1.75rem); }
.testimonial-card::before, .ba-card::before, .tonnen-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04), transparent 40%);
    pointer-events: none; }
.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: 12px;
    right: 16px; }
.testimonial-stars {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.6rem;
    color: #f59e0b;
    font-size: 1.05rem; }
.testimonial-text {
    font-style: italic;
    color: var(--color-text-soft);
    line-height: 1.65;
    margin-bottom: 1rem; }
.testimonial-author {
    font-weight: 600;
    color: var(--color-text); }
.testimonial-location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-left: 0.35rem; }
.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
    font-size: 0.8rem; }
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-primary-dark);
    font-weight: 600; }
.testimonial-date {
    color: var(--color-text-muted); }

/* Feature Icons */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto var(--space-5);
    transition: transform var(--duration-normal) var(--ease-standard); }
.feature-card:hover .feature-icon {
    transform: scale(1.08); }
.feature-icon.blue {
    background: rgba(14, 165, 233, 0.12);
    color: var(--color-secondary); }
.feature-icon.green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-primary-dark); }

/* Counter Label */
.counter-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-soft);
    margin-top: 0.3rem; }

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 576px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-normal) var(--ease-standard),
                box-shadow var(--duration-normal) var(--ease-standard);
}
.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.trust-card .trust-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary-dark);
}
.trust-card h5 {
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-text);
}
.trust-card p {
    margin-bottom: 0;
    color: var(--color-text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}
html[data-theme='dark'] .trust-card {
    background: var(--color-surface) !important;
    border-color: var(--color-border) !important;
}
html[data-theme='dark'] .testimonial-card .quote-icon {
    color: var(--color-primary); }

/* 6. Forms */
.form-label {
    margin-bottom: 0.55rem;
    font-weight: 600;
    color: var(--color-text); }
.form-control, .form-select, textarea.form-control, input.form-control, select.form-select, .input-group-text {
    min-height: 3rem;
    border-radius: 0.85rem;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.form-control, .form-select, textarea.form-control, input.form-control, select.form-select { padding: 0.8rem 0.95rem; }
.form-control::placeholder, .form-select::placeholder, textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.8; }
.form-control:hover, .form-select:hover, .input-group-text:hover { border-color: var(--color-border-strong); }
.form-control:focus, .form-select:focus, textarea.form-control:focus, input.form-control:focus, select.form-select:focus {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: var(--shadow-focus), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-text); }
.input-group-text {
    padding: 0.8rem 0.95rem;
    color: var(--color-text-muted); }
.form-control:disabled, .form-select:disabled, .form-control[readonly] {
    background: var(--color-bg-soft);
    color: var(--color-text-muted);
    opacity: 0.95; }
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-height: 1.5rem; }
.form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 0.35rem;
    box-shadow: none; }
.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12); }
.form-check-input:focus { box-shadow: var(--shadow-focus); }
.form-switch .form-check-input {
    width: 2.5rem;
    border-radius: var(--radius-pill); }

/* Zahlungsmethoden-Auswahl */
.zahlungsmethode-card {
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    border-width: 1.5px !important; }
.zahlungsmethode-card:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.zahlungsmethode-card.selected,
.zahlungsmethode-card.border-primary {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }
.zahlungsmethode-card .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    accent-color: var(--color-primary); }
.zahlungsmethode-card .payment-icon {
    width: 2rem;
    text-align: center;
    line-height: 1; }

.form-text, .invalid-feedback, .valid-feedback { margin-top: 0.45rem; }
.was-validated .form-control:valid, .form-control.is-valid, .was-validated .form-select:valid, .form-select.is-valid {
    border-color: rgba(16, 185, 129, 0.45);
    background-image: none; }
.was-validated .form-control:invalid, .form-control.is-invalid, .was-validated .form-select:invalid, .form-select.is-invalid {
    border-color: rgba(239, 68, 68, 0.4);
    background-image: none; }

/* Inline-Fehler direkt am Feld */
.field-validation-error,
span.text-danger {
    display: block;
    font-size: 0.82rem;
    margin-top: 0.3rem;
    color: var(--color-danger);
    font-weight: 500;
}
.validation-summary-errors {
    background: var(--color-danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    color: var(--color-danger);
}
.validation-summary-errors ul {
    margin: 0.35rem 0 0;
    padding-left: 1.2rem;
}
.validation-summary-errors li {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

/* 7. Tables */
.table-responsive {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%; }
.admin-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}
.admin-table-scroll table {
    min-width: 1100px;
    margin-bottom: 0;
}
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--color-text);
    --bs-table-border-color: var(--color-border);
    margin-bottom: 0;
    color: var(--color-text);
    vertical-align: middle; }
.table > :not(caption) > * > * {
    padding: 1rem 1.1rem;
    background: transparent;
    box-shadow: none; }
.table thead th {
    border-bottom: 1px solid var(--color-border-strong);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.45); }
.table tbody tr { border-color: var(--color-border); }
.table tbody tr:hover { background: rgba(16, 185, 129, 0.04); }
.table td, .table th { border-color: var(--color-border); }
.table-sm > :not(caption) > * > * { padding: 0.75rem 0.9rem; }
.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(16, 185, 129, 0.05);
    color: var(--color-text); }

/* 8. Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.48rem 0.78rem;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent; }
.badge-geplant {
    color: #0369a1;
    background: rgba(14, 165, 233, 0.14);
    border-color: rgba(14, 165, 233, 0.18); }
.badge-erledigt, .badge-bezahlt {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.18); }
.badge-verschoben {
    color: #c2410c;
    background: rgba(249, 115, 22, 0.14);
    border-color: rgba(249, 115, 22, 0.18); }
.badge-storniert {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.18); }
.badge-offen {
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.18); }

/* Notification Badges – Apple/iOS Style */
@keyframes badgePop {
    0%   { opacity: 0; transform: translate(50%, -50%) scale(0.4); }
    60%  { opacity: 1; transform: translate(50%, -50%) scale(1.08); }
    100% { opacity: 1; transform: translate(50%, -50%) scale(1); }
}
.notification-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    transform: translate(50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #F43F5E;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    border: 2.5px solid var(--color-surface, #ffffff);
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4),
                0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 10;
    animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    text-transform: none;
    pointer-events: none; }
html[data-theme='dark'] .notification-badge {
    border-color: var(--color-surface, #0f172a);
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.5),
                0 1px 3px rgba(0, 0, 0, 0.2); }

/* 9. Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: clamp(5.5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6.5rem);
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 30%, #047857 60%, #10b981 100%) !important;
    color: #ffffff !important;
    isolation: isolate; }
.hero-section::before, .hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.85; }
.hero-section::before {
    top: 3rem;
    right: 8%;
    width: 18rem;
    height: 18rem;
    background: rgba(255, 255, 255, 0.12); }
.hero-section::after {
    left: -5rem;
    bottom: -6rem;
    width: 20rem;
    height: 20rem;
    background: rgba(16, 185, 129, 0.24); }
.hero-section .container {
    position: relative;
    z-index: 1; }
.hero-section .section-title, .hero-section h1, .hero-section h2, .hero-section .lead, .hero-section p { color: #ffffff !important; }
.hero-section .lead, .hero-section p { color: rgba(255, 255, 255, 0.85) !important; }
.hero-section .btn-light {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm)); }
.hero-section .btn-light:hover, .hero-section .btn-light:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff; }
.hero-section .badge, .hero-section .badge.bg-light {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.16); }

/* 10. Dashboard */
.counter-section {
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md); }
.counter-item {
    text-align: center;
    padding: var(--space-6) var(--space-4); }
.counter-item h3, .counter-number {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: -0.05em;
    margin-bottom: var(--space-2); }
.counter-item p {
    margin-bottom: 0;
    color: var(--color-text-soft); }
.admin-sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.92) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-md); }
.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border-radius: 0.95rem;
    color: var(--color-text-soft);
    font-weight: 600; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary-dark); }
.tonnen-card {
    border-radius: var(--radius-xl);
    text-align: center; }
.tonnen-input {
    max-width: 120px;
    margin: 0 auto;
    text-align: center; }
.tonnen-btn {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    font-size: 1.2rem;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-xs); }
.tonnen-btn:hover, .tonnen-btn:focus-visible {
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-primary-dark); }

/* 11. Utilities & Animations */
.shadow-soft { box-shadow: var(--shadow-sm) !important; }
.shadow-premium { box-shadow: var(--shadow-lg) !important; }
.surface-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md); }
.glass-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg)); }
.rounded-4 { border-radius: var(--radius-lg) !important; }
.rounded-5 { border-radius: var(--radius-xl) !important; }
.alert {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm)); }
.alert-success {
    color: #065f46;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.18); }
.alert-info {
    color: #075985;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.18); }
.alert-warning {
    color: #92400e;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.18); }
.alert-danger {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.18); }
.accordion-button {
    background: transparent;
    color: var(--color-text);
    font-weight: 600;
    box-shadow: none !important; }
.accordion-button:not(.collapsed) {
    background: rgba(16, 185, 129, 0.06);
    color: var(--color-primary-dark); }
.pagination { gap: 0.45rem; }
.page-link {
    border: 1px solid var(--color-border);
    border-radius: 0.9rem !important;
    color: var(--color-text-soft);
    background: var(--color-surface);
    box-shadow: var(--shadow-xs); }
.page-link:hover, .page-link:focus {
    color: var(--color-primary-dark);
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.16);
    box-shadow: var(--shadow-focus); }
.page-item.active .page-link {
    color: #ffffff;
    border-color: transparent;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow); }
.fade-in-up {
    opacity: 0;
    transform: translateY(18px); }
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0); }
@keyframes fadeUp {
from {
    opacity: 0;
    transform: translateY(18px); }
to {
    opacity: 1;
    transform: translateY(0); }
}
@keyframes pulseGlow {
0%, 100% {
    box-shadow: 0 16px 34px rgba(34, 197, 94, 0.24);
    transform: scale(1); }
50% {
    box-shadow: 0 22px 42px rgba(34, 197, 94, 0.36);
    transform: scale(1.03); }
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@keyframes floatUp {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-6px); }
}
@keyframes revealUp {
from {
    opacity: 0;
    transform: translateY(12px); }
to {
    opacity: 1;
    transform: translateY(0); }
}

/* 12. Components (loader, scroll-top, whatsapp, cookie-banner) */
.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.76);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    z-index: 3000; }
.loader-content {
    display: grid;
    gap: 1rem;
    place-items: center;
    padding: 1.5rem 1.75rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-lg); }
.loader-content h5, .loader-content p, .loader-content span { color: var(--color-text); }
.loader-spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 3px solid rgba(16, 185, 129, 0.14);
    border-top-color: var(--color-primary);
    animation: spin 0.85s linear infinite; }
.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 0;
    border-radius: 1.15rem;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md)); }
.scroll-top:hover, .scroll-top:focus-visible {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-4px); }
.scroll-top[style*='display: flex'] { animation: revealUp 0.24s var(--ease-standard); }
.whatsapp-float {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    width: 3.8rem;
    height: 3.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(18, 140, 126, 0.32);
    animation: pulseGlow 2.4s ease-in-out infinite; }
.whatsapp-float:hover, .whatsapp-float:focus-visible {
    color: #ffffff;
    transform: translateY(-4px) scale(1.02); }
.whatsapp-float::after {
    content: 'WhatsApp';
    position: absolute;
    left: calc(100% + 0.8rem);
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    pointer-events: none; }
.whatsapp-float:hover::after, .whatsapp-float:focus-visible::after {
    opacity: 1;
    transform: translateX(0); }
.cookie-banner, #cookieConsentBanner {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.86) !important;
    border-top: 1px solid var(--color-border) !important;
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.12); }
.cookie-banner .card, #cookieConsentBanner .card {
    background: transparent !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: none; }
.cookie-banner h6, .cookie-banner strong, #cookieConsentBanner h6, #cookieConsentBanner strong { color: var(--color-text); }
.cookie-banner p, .cookie-banner .small, #cookieConsentBanner p, #cookieConsentBanner .small, #cookieConsentBanner .text-muted { color: var(--color-text-soft) !important; }
.cookie-banner a, #cookieConsentBanner a { color: var(--color-primary-dark); }
.cookie-banner .form-check, #cookieConsentBanner .form-check {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0; }
.cookie-banner .btn, #cookieConsentBanner .btn { width: 100%; }

/* 13. Mobile Responsive */
@media (max-width: 1199.98px) {
.navbar {
    width: min(calc(100% - 1rem), 100%);
    margin-top: 0.85rem; }
.hero-section { padding-top: 5rem; }
}
@media (max-width: 991.98px) {
.navbar {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0; }
}
@media (max-width: 991.98px) {
html { scroll-padding-top: 6.5rem; }
.navbar {
    padding: 0.75rem 0.85rem;
    border-radius: 0; }
.navbar .navbar-collapse {
    margin-top: 0.6rem;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none; }
.navbar .navbar-nav { align-items: stretch; }
.navbar .nav-link, .navbar .btn-link.nav-link {
    justify-content: flex-start;
    width: 100%; }
.hero-section {
    margin-top: 1rem;
    padding: 4.5rem 0 4rem; }
.feature-card, .pricing-card, .auth-card, .counter-section { padding: 1.4rem; }
.cookie-banner .row, #cookieConsentBanner .row { row-gap: 1rem; }
}
@media (max-width: 767.98px) {
body::before, body::after {
    width: 12rem;
    height: 12rem; }
.section-title { font-size: clamp(1.75rem, 7vw, 2.35rem); }
.section-subtitle {
    margin-bottom: var(--space-8);
    font-size: 1rem; }
.auth-container { padding-inline: 0.75rem; }
.price-amount { font-size: 2.75rem; }
.whatsapp-float, .scroll-top {
    width: 3.35rem;
    height: 3.35rem; }
}
@media (max-width: 575.98px) {
.navbar {
    width: 100%;
    margin-top: 0;
    padding-inline: 0.7rem; }
.navbar.sticky-top { top: 0; }
.navbar-logo { height: 54px; }
.brand-name { font-size: 0.9rem; }
.brand-sub { display: none; }
.hero-section {
    padding: 4rem 0 3.5rem;
    border-radius: 0 0 1.75rem 1.75rem; }
.btn, .btn-lg, .btn-sm { width: 100%; }
.btn-group > .btn, .input-group > .btn, .navbar .btn, .cookie-banner .btn, #cookieConsentBanner .btn, .d-inline-flex.btn, .w-auto.btn { width: auto; }
.scroll-top {
    right: 1rem;
    bottom: 1rem; }
.whatsapp-float {
    left: 1rem;
    bottom: 1rem; }
.loader-content {
    margin-inline: 1rem;
    width: calc(100% - 2rem); }
}

/* 14. Dark Mode Overrides */
html[data-theme='dark'] body {
    background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.08), transparent 30%), radial-gradient(circle at top right, rgba(14, 165, 233, 0.06), transparent 22%), var(--color-bg); }
html[data-theme='dark'] body::before { background: rgba(52, 211, 153, 0.1); }
html[data-theme='dark'] body::after { background: rgba(56, 189, 248, 0.08); }
html[data-theme='dark'] .navbar .nav-link:hover, html[data-theme='dark'] .navbar .nav-link:focus-visible, html[data-theme='dark'] .navbar .btn-link.nav-link:hover, html[data-theme='dark'] .navbar .btn-link.nav-link:focus-visible { background: rgba(255, 255, 255, 0.06); }
html[data-theme='dark'] .navbar .nav-link.active, html[data-theme='dark'] .navbar .nav-link[aria-current='page'] {
    background: rgba(52, 211, 153, 0.12);
    color: var(--color-primary) !important; }
html[data-theme='dark'] .navbar .navbar-collapse { background: transparent; }
html[data-theme='dark'] .feature-card, html[data-theme='dark'] .pricing-card, html[data-theme='dark'] .auth-card, html[data-theme='dark'] .card, html[data-theme='dark'] .stat-card, html[data-theme='dark'] .counter-section, html[data-theme='dark'] .admin-sidebar, html[data-theme='dark'] .testimonial-card, html[data-theme='dark'] .ba-card, html[data-theme='dark'] .tonnen-card, html[data-theme='dark'] .table-responsive, html[data-theme='dark'] .dropdown-menu, html[data-theme='dark'] .modal-content, html[data-theme='dark'] .accordion-item, html[data-theme='dark'] .list-group-item {
    background: var(--color-surface) !important;
    border-color: var(--color-border) !important; }
html[data-theme='dark'] .feature-card { background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.8) 100%) !important; }
html[data-theme='dark'] .form-control, html[data-theme='dark'] .form-select, html[data-theme='dark'] .input-group-text, html[data-theme='dark'] .auth-card .form-control, html[data-theme='dark'] .auth-card .form-select {
    background: rgba(2, 6, 23, 0.6);
    border-color: var(--color-border);
    color: var(--color-text); }
html[data-theme='dark'] .form-control:focus, html[data-theme='dark'] .form-select:focus, html[data-theme='dark'] .input-group-text:focus { background: rgba(2, 6, 23, 0.78); }
html[data-theme='dark'] .table thead th {
    background: rgba(15, 23, 42, 0.6);
    color: var(--color-text-muted); }
html[data-theme='dark'] .table tbody tr:hover { background: rgba(52, 211, 153, 0.08); }
html[data-theme='dark'] .btn-outline-primary, html[data-theme='dark'] .btn-outline-secondary, html[data-theme='dark'] .btn-light {
    background: rgba(15, 23, 42, 0.72);
    color: var(--color-text); }
html[data-theme='dark'] .alert-success {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.12); }
html[data-theme='dark'] .alert-info {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12); }
html[data-theme='dark'] .alert-warning {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12); }
html[data-theme='dark'] .alert-danger {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12); }
html[data-theme='dark'] .badge-geplant {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.14); }
html[data-theme='dark'] .badge-erledigt, html[data-theme='dark'] .badge-bezahlt {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.14); }
html[data-theme='dark'] .badge-verschoben {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.14); }
html[data-theme='dark'] .badge-storniert {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.14); }
html[data-theme='dark'] .badge-offen {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.14); }
html[data-theme='dark'] .page-loader { background: rgba(2, 6, 23, 0.78); }
html[data-theme='dark'] .loader-content {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(148, 163, 184, 0.16); }
html[data-theme='dark'] .scroll-top { background: rgba(15, 23, 42, 0.92); }
html[data-theme='dark'] .whatsapp-float::after {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff; }
html[data-theme='dark'] .cookie-banner, html[data-theme='dark'] #cookieConsentBanner {
    background: rgba(2, 6, 23, 0.82) !important;
    border-top-color: rgba(148, 163, 184, 0.16) !important; }
html[data-theme='dark'] .cookie-banner .card, html[data-theme='dark'] #cookieConsentBanner .card { background: rgba(15, 23, 42, 0.62) !important; }
html[data-theme='dark'] footer.bg-dark { background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.12), transparent 24%), linear-gradient(180deg, #020617 0%, #020617 100%) !important; }




    font-size: 1.15rem;
    transition: transform var(--duration-normal) var(--ease-standard), color var(--duration-normal);
    color: var(--color-text); }
.theme-toggle-icon:hover { transform: rotate(20deg) scale(1.1); }
html[data-theme='dark'] .theme-toggle-icon { color: #fbbf24; }

/* === Step Indicator (Checkout-Flow) === */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--color-bg-soft);
    color: var(--color-text-muted);
    border: 2px solid var(--color-border-strong);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.step-circle.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.step-circle.completed {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.step-line {
    height: 3px;
    width: 60px;
    background: var(--color-border-strong);
    border-radius: 2px;
    margin: 0 0.5rem;
    transition: background 0.3s ease;
}
.step-line.completed {
    background: var(--color-primary);
}

/* ========================================================
   MOBILE UX OPTIMIZATIONS
   ======================================================== */

/* === 1. Mobile Bottom Navigation === */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1045;
    background: var(--color-surface-solid);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 0.4rem 0 env(safe-area-inset-bottom, 0.4rem);
    justify-content: space-around;
    align-items: center;
}
@media (max-width: 991.98px) {
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 72px; }
}
.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.68rem;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
    min-width: 56px;
    -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}
.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item:active {
    color: var(--color-primary);
}
.mobile-bottom-nav-cta {
    position: relative;
    top: -14px;
}
.mobile-bottom-nav-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.mobile-bottom-nav-cta:active .mobile-bottom-nav-circle {
    transform: scale(0.92);
}

/* === 2. Touch Targets Tonnenauswahl (44x44px min) === */
.tonnen-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 1.2rem !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs) !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.tonnen-input {
    min-width: 48px !important;
    min-height: 44px !important;
    font-size: 1.1rem !important;
    font-weight: 700;
}
@media (min-width: 768px) {
    .tonnen-btn {
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 1rem !important;
    }
    .tonnen-input {
        min-width: 42px !important;
        min-height: 36px !important;
        font-size: 0.95rem !important;
    }
}

/* === 3. Pricing Grid (Responsive) === */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
    max-width: 1140px;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}
@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(300px, 360px));
        gap: 2rem;
    }
}
.pricing-grid .pricing-card-wrapper {
    width: 100%;
    max-width: 400px;
}
.pricing-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 2.8vw, 2.4rem);
    border-radius: var(--radius-xl);
    text-align: left;
    border: 2px solid var(--color-border);
    transition: transform var(--duration-normal) var(--ease-standard),
                box-shadow var(--duration-normal) var(--ease-standard),
                border-color var(--duration-normal) var(--ease-standard);
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--color-primary);
}
.pricing-card.popular {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    position: relative;
}
.pricing-card.popular::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
    pointer-events: none;
}
.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}
.pricing-card .badge-popular {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.14);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}
.price-amount {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.15rem;
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.price-period {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.price-netto-hinweis {
    display: block;
    margin-top: 0.45rem;
    color: var(--color-text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
}

/* Netto-Modus: Der grosse Betrag ist der Nettopreis je Reinigung.
   Das Wort "netto" muss auf einen Blick erkennbar sein - sonst haelt der
   Besucher den kleineren Betrag fuer den Endpreis. Deshalb steht es
   hervorgehoben direkt unter der Zahl, nicht im Kleingedruckten. */
.price-period-netto {
    display: block;
    margin-top: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}
.price-netto-wort {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    margin-right: 0.15rem;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.16);
    color: var(--color-primary-dark);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    vertical-align: 0.08em;
}
.price-steuer {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
/* Der Endpreis verschwindet nie. Er steht kleiner, aber lesbar unter dem
   Nettobetrag - gegenueber Verbrauchern muss der tatsaechlich zu zahlende
   Gesamtpreis erkennbar bleiben. */
.price-brutto-zeile {
    display: block;
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.35;
}

/* Einstiegssatz ueber den Preiskacheln */
.preis-einstieg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    max-width: 34rem;
    margin: 1.25rem auto 0;
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: var(--color-primary-dark);
    text-align: center;
}
.preis-einstieg .bi {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.preis-einstieg-text {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}
@media (max-width: 575.98px) {
    .preis-einstieg {
        padding: 0.6rem 1rem;
        gap: 0.4rem;
    }
}

/* ── Tonnengroessen als Reihe im Hero ────────────────────────────────────
   Frueher war das ein eigener Abschnitt mit weissen Karten. Der kostete viel
   Hoehe und beantwortete die Frage "passt meine Tonne?" erst weit unten. Jetzt
   steht die Reihe im gruenen Hero - sie traegt keine eigene Flaeche, sondern
   lehnt sich an den Untergrund an. */
.tonnen-band {
    max-width: 54rem;
    margin: 0 auto 1.5rem;
}
/* Der wichtigste Satz des Abschnitts. Er bekommt als einziges Element eine
   eigene Flaeche, damit das Auge ihn im Hero sofort findet. */
.tonnen-band-titel {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 auto 0.6rem;
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-pill, 999px);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.35;
    backdrop-filter: blur(2px);
}
.tonnen-band-titel strong {
    font-weight: 800;
    white-space: nowrap;
}
.tonnen-band-titel .bi {
    font-size: 1.15rem;
    flex-shrink: 0;
    opacity: 0.9;
}
.tonnen-band-text {
    margin: 0 auto 0.9rem;
    max-width: 40rem;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}
/* Flex statt Raster: Die Reihe soll sich an der Standlinie ausrichten und bei
   vielen Groessen sauber umbrechen, nicht Spalten fuellen. */
.tonnen-band-reihe {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tonnen-band-eintrag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    /* Farbwerte der Zeichnung. Sie stehen hier und nicht im SVG, damit ein
       Farbwechsel eine Stelle betrifft und nicht jede einzelne Form. */
    --t-koerper: #ffffff;
    --t-deckel: #cbd5e1;
    --t-griff: #94a3b8;
    --t-linie: rgba(15, 23, 42, 0.22);
    --t-rad: #1e293b;
}
.tonnen-band-eintrag.tonne-gruen {
    --t-koerper: #6ee7b7;
    --t-deckel: #34d399;
    --t-griff: #10b981;
    --t-linie: rgba(6, 78, 59, 0.3);
}
/* Alle Eintraege teilen dieselbe Bildhoehe; nur die gezeichnete Tonne waechst.
   So stehen alle auf einer Standlinie und der Groessenunterschied bleibt
   trotzdem sichtbar. Die Breite folgt dem Seitenverhaeltnis - ein Container
   ist dadurch von selbst breit und flach, eine Haushaltstonne schmal und hoch. */
.tonnen-band-bild {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 5.5rem;
}
.tonnen-band-bild svg {
    height: var(--tonne-hoehe, 100%);
    width: auto;
    overflow: visible;
    filter: drop-shadow(0 4px 6px rgba(2, 44, 34, 0.4));
}
.t-koerper { fill: var(--t-koerper); }
.t-deckel { fill: var(--t-deckel); }
.t-griff { fill: var(--t-griff); }
.t-rad {
    fill: var(--t-rad);
    fill-opacity: 0.9;
}
.t-rad-hinten { fill-opacity: 0.55; }
.t-gabel {
    fill: var(--t-rad);
    fill-opacity: 0.75;
}
.t-detail {
    fill: none;
    stroke: var(--t-linie);
    stroke-width: 2.5;
    stroke-linecap: round;
}
.tonnen-band-liter {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(2, 44, 34, 0.45);
}
/* Der Pfeil sitzt auf halber Hoehe der Reihe, nicht auf der Standlinie -
   sonst zeigte er auf die Raeder statt auf die naechste Tonne. */
.tonnen-band-pfeil {
    display: flex;
    align-self: center;
    margin-bottom: 0.9rem;
    flex-shrink: 0;
}
.tonnen-band-pfeil svg {
    width: 1.85rem;
    height: auto;
}
.tonnen-band-pfeil path {
    fill: #a7f3d0;
    filter: drop-shadow(0 1px 2px rgba(2, 44, 34, 0.35));
}
@media (max-width: 991.98px) {
    .tonnen-band-bild { height: 4.5rem; }
    .tonnen-band-pfeil svg { width: 1.5rem; }
}
@media (max-width: 767.98px) {
    .tonnen-band { margin-bottom: 1.25rem; }
    .tonnen-band-titel {
        padding: 0.4rem 0.95rem;
        gap: 0.4rem;
    }
    .tonnen-band-text {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    /* Auf schmalen Schirmen bricht die Reihe um. Der Pfeil steht im Markup
       zwischen zwei Tonnen, nicht in der sichtbaren Zeile - beim Umbruch
       stuende er sonst allein am Zeilenanfang und zeigte ins Leere. */
    .tonnen-band-pfeil { display: none; }
    .tonnen-band-reihe { gap: 0.75rem 1.1rem; }
    .tonnen-band-bild { height: 3.75rem; }
    .tonnen-band-liter { font-size: 0.85rem; }
}

/* Legacy: Swipe-Karussell (Fallback) */
.paket-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1.5rem;
    scrollbar-width: none;
}
.paket-carousel::-webkit-scrollbar { display: none; }
.paket-carousel .pricing-card-wrapper {
    flex: 0 0 85%;
    scroll-snap-align: center;
}
@media (min-width: 768px) {
    .paket-carousel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        overflow: visible;
        padding: 0;
    }
    .paket-carousel .pricing-card-wrapper {
        display: flex;
        flex-direction: column;
        flex: unset;
        scroll-snap-align: unset;
    }
}

/* === 5. (entfernt: Sticky-Checkout-Footer, ersetzt durch Smooth-Scroll) === */









/* === 6. Dark-Mode Overrides fuer Bootstrap-Utilities und Sonderfaelle === */
html[data-theme='dark'] .bg-light,
html[data-theme='dark'] .bg-body-tertiary {
    background-color: var(--color-surface-alt) !important;
    color: var(--color-text) !important;
}
html[data-theme='dark'] .bg-white {
    background-color: var(--color-surface-solid) !important;
    color: var(--color-text) !important;
}
html[data-theme='dark'] .text-dark {
    color: var(--color-text) !important;
}
/* Badges mit text-dark sollen lesbar bleiben (helle Badge-Hintergruende) */
html[data-theme='dark'] .badge.bg-warning,
html[data-theme='dark'] .badge.bg-info,
html[data-theme='dark'] .badge.bg-light {
    color: #020617 !important;
}
html[data-theme='dark'] .badge.bg-light {
    background-color: var(--color-surface-alt) !important;
    color: var(--color-text) !important;
}
/* Tabellen-Header table-light */
html[data-theme='dark'] .table-light,
html[data-theme='dark'] .table-light > th,
html[data-theme='dark'] .table-light > td,
html[data-theme='dark'] .table > thead.table-light th,
html[data-theme='dark'] .table > :not(caption) > * > .table-light {
    --bs-table-bg: var(--color-surface-alt);
    --bs-table-color: var(--color-text);
    background-color: var(--color-surface-alt) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border) !important;
}
html[data-theme='dark'] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--color-text);
    --bs-table-border-color: var(--color-border);
    color: var(--color-text);
}
html[data-theme='dark'] .table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--color-text);
    border-bottom-color: var(--color-border);
}
html[data-theme='dark'] .table-hover > tbody > tr:hover > * {
    background-color: var(--color-surface-alt) !important;
    color: var(--color-text) !important;
}
html[data-theme='dark'] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(148, 163, 184, 0.06) !important;
    color: var(--color-text) !important;
}
/* Alerts: alert-light + alert-secondary */
html[data-theme='dark'] .alert-light,
html[data-theme='dark'] .alert-secondary {
    background-color: var(--color-surface-alt) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border) !important;
}
/* Cookie-Consent Banner (hardcoded weiss) */
html[data-theme='dark'] #cookieConsentBanner {
    background: var(--color-surface-solid) !important;
    color: var(--color-text) !important;
    border-top-color: var(--color-primary) !important;
}
html[data-theme='dark'] #cookieConsentBanner .text-muted,
html[data-theme='dark'] #cookieConsentBanner small {
    color: var(--color-text-muted) !important;
}
/* List-Group (haeufig mit weissem Hintergrund) */
html[data-theme='dark'] .list-group-item {
    background-color: var(--color-surface-solid);
    color: var(--color-text);
    border-color: var(--color-border);
}
html[data-theme='dark'] .list-group-item-action:hover,
html[data-theme='dark'] .list-group-item-action:focus {
    background-color: var(--color-surface-alt);
    color: var(--color-text);
}
/* Page-Header / Breadcrumb */
html[data-theme='dark'] .breadcrumb {
    background-color: transparent;
}
html[data-theme='dark'] .breadcrumb-item + .breadcrumb-item::before {
    color: var(--color-text-muted);
}
/* border-light / border-secondary */
html[data-theme='dark'] .border-light,
html[data-theme='dark'] .border-secondary {
    border-color: var(--color-border) !important;
}
/* Close-Button (X) sichtbar auf dunklem Hintergrund */
html[data-theme='dark'] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
/* Inline-Style background:#fff oder white als Notausgang fuer haertere Faelle */
html[data-theme='dark'] [style*="background:#fff"],
html[data-theme='dark'] [style*="background: #fff"],
html[data-theme='dark'] [style*="background:#FFF"],
html[data-theme='dark'] [style*="background-color:#fff"],
html[data-theme='dark'] [style*="background-color: #fff"] {
    background: var(--color-surface-solid) !important;
    background-color: var(--color-surface-solid) !important;
    color: var(--color-text) !important;
}

/* === Testimonial Carousel === */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}
.testimonial-carousel-track {
    display: flex;
    transition: transform 0.5s var(--ease-standard);
}
.testimonial-carousel-track .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .testimonial-carousel-track .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (min-width: 992px) {
    .testimonial-carousel-track .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-standard);
    padding: 0;
}
.testimonial-dot.active {
    background: var(--color-primary);
}
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
.testimonial-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
}
.testimonial-nav-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* === Gallery Grid === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--color-bg-soft);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-standard);
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    transform: translateY(100%);
    transition: transform var(--duration-normal) var(--ease-standard);
}
.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}
.gallery-item-overlay h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}
.gallery-item-overlay small {
    opacity: 0.8;
}
.gallery-item .badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.gallery-filter-btn {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-soft);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* === Lightbox === */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.lightbox-caption {
    text-align: center;
    color: #fff;
    margin-top: 1rem;
    font-size: 0.95rem;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration-fast);
}
.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }
@media (max-width: 768px) {
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* === Before/After Slider === */
.ba-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 16/10;
    cursor: ew-resize;
    user-select: none;
}
.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ba-slider .ba-after {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.1s linear;
}
.ba-slider .ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    z-index: 5;
    transform: translateX(-50%);
    pointer-events: none;
}
.ba-slider .ba-handle::after {
    content: '\F285';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.ba-label {
    position: absolute;
    bottom: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
}
.ba-label-vorher { left: 0.75rem; }
.ba-label-nachher { right: 0.75rem; }

/* ===================================================================
   HOST-NACHRICHTEN – Admin-Styles
   =================================================================== */

.hn-json-block {
    background: var(--color-bg-soft, #f1f5f9);
    border: 1px solid var(--color-border, rgba(15, 23, 42, 0.08));
    border-radius: var(--radius-md, 0.5rem);
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--color-text, #0f172a);
}

.hn-json-block code {
    color: inherit;
}

html[data-theme='dark'] .hn-json-block {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.hn-status-pulse {
    animation: hn-pulse 2s ease-in-out infinite;
}

@@keyframes hn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
