/**
 * Auerhahn Cookie Consent - Banner Styles
 * Elegant Hotel Design - DSGVO-konform
 * 
 * WICHTIG: Alle Buttons haben identisches Design (keine Nudging-Verstöße)
 */

/* ========================================
   CSS Variables - Clean White Design
   ======================================== */
.auerhahn-cookie-banner {
    /* Colors - Clean White Design (ALWAYS) */
    --auerhahn-primary: #000000;
    --auerhahn-primary-hover: #333333;
    --auerhahn-primary-light: #f5f5f5;
    
    /* Text Colors - Black on White */
    --auerhahn-text: #000000;
    --auerhahn-text-light: #444444;
    --auerhahn-text-muted: #666666;
    
    /* Background Colors - White */
    --auerhahn-bg: #ffffff;
    --auerhahn-bg-light: #fafafa;
    --auerhahn-bg-category: #f5f5f5;
    
    /* Borders & Shadows */
    --auerhahn-border: #e0e0e0;
    --auerhahn-border-light: #eeeeee;
    --auerhahn-overlay: rgba(0, 0, 0, 0.5);
    --auerhahn-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --auerhahn-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --auerhahn-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    
    /* Button Radius */
    --auerhahn-button-radius: 6px;
    --auerhahn-card-radius: 8px;
    
    /* Transitions */
    --auerhahn-transition: 0.2s ease;
}

/* ========================================
   Base Styles - FORCE WHITE THEME
   ======================================== */
.auerhahn-cookie-banner {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #000000 !important;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff !important;
}

/* Force all text to be black */
.auerhahn-cookie-banner,
.auerhahn-cookie-banner * {
    color: #000000 !important;
}

.auerhahn-cookie-banner a {
    color: #000000 !important;
}

.auerhahn-cookie-banner *,
.auerhahn-cookie-banner *::before,
.auerhahn-cookie-banner *::after {
    box-sizing: border-box;
}

/* ========================================
   Overlay
   ======================================== */
.auerhahn-cookie-banner__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--auerhahn-overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
}

/* ========================================
   Position: Bottom
   ======================================== */
.auerhahn-cookie-banner--bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.auerhahn-cookie-banner--bottom .auerhahn-cookie-banner__container {
    background-color: #ffffff !important;
    background: #ffffff !important;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    padding: 20px 24px;
    max-height: 85vh;
    overflow-y: auto;
}

/* ========================================
   Position: Top
   ======================================== */
.auerhahn-cookie-banner--top {
    top: 0;
    left: 0;
    right: 0;
}

.auerhahn-cookie-banner--top .auerhahn-cookie-banner__container {
    background-color: #ffffff !important;
    background: #ffffff !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 20px 24px;
    max-height: 85vh;
    overflow-y: auto;
}

/* ========================================
   Position: Center (Modal)
   ======================================== */
.auerhahn-cookie-banner--center {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auerhahn-cookie-banner--center .auerhahn-cookie-banner__container {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    padding: 24px 32px;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    width: 100%;
}

/* ========================================
   Header
   ======================================== */
.auerhahn-cookie-banner__header {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 0;
}

.auerhahn-cookie-banner__header::before {
    display: none; /* No cookie emoji */
}

.auerhahn-cookie-banner__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}

/* ========================================
   Content
   ======================================== */
.auerhahn-cookie-banner__content {
    margin-bottom: 20px;
}

.auerhahn-cookie-banner__description {
    margin: 0 0 16px;
    color: #000000;
    font-size: 15px;
    line-height: 1.6;
}

.auerhahn-cookie-banner__description a {
    color: #000000;
    text-decoration: underline;
}

.auerhahn-cookie-banner__description a:hover {
    text-decoration: none;
}

/* ========================================
   Categories Container
   ======================================== */
.auerhahn-cookie-banner__categories {
    border-top: 1px solid #e0e0e0;
    margin-top: 16px;
    padding-top: 16px;
    background: transparent;
}

.auerhahn-cookie-banner__categories[hidden] {
    display: none;
}

.auerhahn-cookie-banner__categories-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 4px;
}

.auerhahn-cookie-banner__categories-subtitle {
    font-size: 14px;
    color: #444444;
    margin: 0 0 16px;
}

/* ========================================
   Individual Category
   ======================================== */
.auerhahn-cookie-category {
    margin-bottom: 16px;
    transition: background var(--auerhahn-transition);
}

.auerhahn-cookie-category:last-child {
    margin-bottom: 0;
}

.auerhahn-cookie-category__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.auerhahn-cookie-category__name {
    flex: 1;
    font-weight: 700;
    font-size: 15px;
    color: #000000;
    display: block;
}

.auerhahn-cookie-category__required {
    font-weight: 400;
    color: #666666;
    font-size: 13px;
    background: none;
    padding: 0;
    margin-left: 4px;
}

.auerhahn-cookie-category__toggle {
    display: none; /* Hide expand arrow - description always visible */
}

.auerhahn-cookie-category__arrow {
    display: none;
}

/* Category Details (Always visible now) */
.auerhahn-cookie-category__details {
    padding: 4px 0 0 36px;
    background: transparent;
    font-size: 14px;
    color: #444444;
    line-height: 1.5;
}

.auerhahn-cookie-category__details[hidden] {
    display: block !important; /* Always show description */
}

.auerhahn-cookie-category__details p {
    margin: 0;
}

/* Hide cookie table by default */
.auerhahn-cookie-table {
    display: none;
}

@keyframes auerhahn-expand {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Checkbox Style (like reference)
   ======================================== */
.auerhahn-cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.auerhahn-cookie-toggle input {
    position: absolute;
    width: 24px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    z-index: 1;
}

.auerhahn-cookie-toggle__slider {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auerhahn-cookie-toggle__slider::before {
    content: "";
    display: none;
}

.auerhahn-cookie-toggle__slider::after {
    content: "✓";
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.auerhahn-cookie-toggle input:checked + .auerhahn-cookie-toggle__slider {
    background-color: #ffffff;
    border-color: #000000;
}

.auerhahn-cookie-toggle input:checked + .auerhahn-cookie-toggle__slider::after {
    opacity: 1;
}

.auerhahn-cookie-toggle input:focus + .auerhahn-cookie-toggle__slider {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.auerhahn-cookie-toggle input:disabled + .auerhahn-cookie-toggle__slider {
    background-color: #f0f0f0;
    border-color: #999999;
    cursor: not-allowed;
}

.auerhahn-cookie-toggle input:disabled:checked + .auerhahn-cookie-toggle__slider::after {
    color: #666666;
}

/* ========================================
   Cookie Table - Clean Design
   ======================================== */
.auerhahn-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--auerhahn-border-light);
}

.auerhahn-cookie-table th,
.auerhahn-cookie-table td {
    padding: 10px 12px;
    text-align: left;
}

.auerhahn-cookie-table th {
    background: var(--auerhahn-bg);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--auerhahn-text-light);
    border-bottom: 1px solid var(--auerhahn-border-light);
}

.auerhahn-cookie-table td {
    background: white;
    border-bottom: 1px solid var(--auerhahn-border-light);
    color: var(--auerhahn-text);
}

.auerhahn-cookie-table tr:last-child td {
    border-bottom: none;
}

.auerhahn-cookie-table tr:hover td {
    background: var(--auerhahn-bg-light);
}

/* ========================================
   Buttons - DSGVO KONFORM: ALLE IDENTISCH!
   ======================================== */
.auerhahn-cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.auerhahn-cookie-banner__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-left: auto;
}

/* "Einstellungen verwalten" Link */
.auerhahn-cookie-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.auerhahn-cookie-link:hover {
    color: #444444;
}

.auerhahn-cookie-link:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Save wrapper */
.auerhahn-cookie-banner__save {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    margin-top: 16px;
}

/* Base Button - Applies to ALL buttons equally (DSGVO) */
/* WICHTIG: Alle Buttons IDENTISCH für DSGVO-Konformität (kein Nudging!) */
.auerhahn-cookie-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--auerhahn-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    letter-spacing: 0;
    font-family: inherit;
    
    /* DSGVO: Identical OUTLINE styling for ALL buttons - BLACK border, BLACK text */
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

.auerhahn-cookie-btn:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.auerhahn-cookie-btn:active {
    background-color: #333333 !important;
}

.auerhahn-cookie-btn:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Secondary & Primary - IDENTICAL for DSGVO compliance */
.auerhahn-cookie-btn--secondary,
.auerhahn-cookie-btn--primary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

.auerhahn-cookie-btn--secondary:hover,
.auerhahn-cookie-btn--primary:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* ========================================
   Footer Links
   ======================================== */
.auerhahn-cookie-banner__footer {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
}

.auerhahn-cookie-banner__footer a {
    color: #000000;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.15s ease;
}

.auerhahn-cookie-banner__footer a::before {
    display: none;
}

.auerhahn-cookie-banner__footer a:hover {
    color: #444444;
}

/* ========================================
   Floating Settings Button
   ======================================== */
.auerhahn-cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99998;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    transition: all 0.15s ease;
}

.auerhahn-cookie-settings-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.auerhahn-cookie-settings-btn__icon {
    font-size: 18px;
    line-height: 1;
}

.auerhahn-cookie-settings-btn__text {
    white-space: nowrap;
}

/* ========================================
   Placeholder for Blocked Content
   ======================================== */
.auerhahn-cookie-placeholder {
    background: linear-gradient(135deg, var(--auerhahn-bg-light) 0%, #f0f2f5 100%);
    border: 2px dashed var(--auerhahn-border);
    border-radius: var(--auerhahn-card-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    transition: all var(--auerhahn-transition);
}

.auerhahn-cookie-placeholder:hover {
    border-color: var(--auerhahn-primary);
    background: linear-gradient(135deg, var(--auerhahn-primary-light) 0%, #f0f2f5 100%);
}

.auerhahn-cookie-placeholder-content {
    text-align: center;
    padding: 32px;
}

.auerhahn-cookie-placeholder-icon {
    font-size: 52px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.7;
}

.auerhahn-cookie-placeholder-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--auerhahn-text);
}

.auerhahn-cookie-placeholder-text {
    color: var(--auerhahn-text-light);
    margin: 0 0 20px;
    font-size: 13px;
    max-width: 320px;
    line-height: 1.6;
}

.auerhahn-cookie-load-content {
    background: var(--auerhahn-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--auerhahn-button-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--auerhahn-transition);
}

.auerhahn-cookie-load-content:hover {
    background: var(--auerhahn-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--auerhahn-shadow-sm);
}

/* ========================================
   Blocked Content Notice
   ======================================== */
.auerhahn-cookie-blocked-content {
    background: linear-gradient(135deg, #fff8e5 0%, #fff4d9 100%);
    border: 1px solid #f0c36d;
    border-radius: var(--auerhahn-card-radius);
    padding: 24px;
    text-align: center;
}

.auerhahn-cookie-blocked-content p {
    margin: 0 0 16px;
    color: #8a6914;
}

.auerhahn-cookie-open-settings {
    background: var(--auerhahn-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--auerhahn-button-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--auerhahn-transition);
}

.auerhahn-cookie-open-settings:hover {
    background: var(--auerhahn-primary-hover);
}

/* ========================================
   Consent Status Widget
   ======================================== */
.auerhahn-cookie-status {
    background: var(--auerhahn-bg-light);
    border: 1px solid var(--auerhahn-border);
    border-radius: var(--auerhahn-card-radius);
    padding: 20px;
}

.auerhahn-cookie-status p {
    margin: 0 0 12px;
    font-weight: 500;
}

.auerhahn-cookie-status ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.auerhahn-cookie-status li {
    padding: 6px 0;
    border-bottom: 1px solid var(--auerhahn-border-light);
}

.auerhahn-cookie-status li:last-child {
    border-bottom: none;
}

/* ========================================
   Animations
   ======================================== */
@keyframes auerhahn-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes auerhahn-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes auerhahn-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes auerhahn-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes auerhahn-scale-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes auerhahn-scale-out {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.95);
        opacity: 0;
    }
}

@keyframes auerhahn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes auerhahn-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Success Checkmark Animation */
@keyframes auerhahn-checkmark-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes auerhahn-checkmark-circle {
    0% {
        stroke-dasharray: 0, 330;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dasharray: 330, 330;
        stroke-dashoffset: 0;
    }
}

@keyframes auerhahn-checkmark-scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes auerhahn-success-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 85, 48, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(44, 85, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(44, 85, 48, 0);
    }
}

/* Toggle switch animation */
@keyframes auerhahn-toggle-bounce {
    0%, 100% {
        transform: translateX(22px);
    }
    50% {
        transform: translateX(26px);
    }
}

.auerhahn-cookie-banner--bottom .auerhahn-cookie-banner__container {
    animation: auerhahn-slide-up 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.auerhahn-cookie-banner--top .auerhahn-cookie-banner__container {
    animation: auerhahn-slide-down 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.auerhahn-cookie-banner--center .auerhahn-cookie-banner__overlay {
    animation: auerhahn-fade-in 0.25s ease-out;
}

.auerhahn-cookie-banner--center .auerhahn-cookie-banner__container {
    animation: auerhahn-scale-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Closing animations */
.auerhahn-cookie-banner--closing.auerhahn-cookie-banner--bottom .auerhahn-cookie-banner__container {
    animation: auerhahn-slide-up 0.25s cubic-bezier(0.4, 0, 0.2, 1) reverse forwards;
}

.auerhahn-cookie-banner--closing.auerhahn-cookie-banner--top .auerhahn-cookie-banner__container {
    animation: auerhahn-slide-down 0.25s cubic-bezier(0.4, 0, 0.2, 1) reverse forwards;
}

.auerhahn-cookie-banner--closing.auerhahn-cookie-banner--center .auerhahn-cookie-banner__container {
    animation: auerhahn-scale-out 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.auerhahn-cookie-banner--closing.auerhahn-cookie-banner--center .auerhahn-cookie-banner__overlay {
    animation: auerhahn-fade-out 0.25s ease-out forwards;
}

/* Settings button entrance */
.auerhahn-cookie-settings-btn {
    animation: auerhahn-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

/* Success toast notification */
.auerhahn-cookie-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--auerhahn-primary);
    color: #fff;
    padding: 14px 24px 14px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--auerhahn-shadow-lg);
    z-index: 1000000;
    opacity: 0;
    animation: auerhahn-toast-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    font-size: 14px;
    font-weight: 500;
}

.auerhahn-cookie-toast--hiding {
    animation: auerhahn-toast-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes auerhahn-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes auerhahn-toast-out {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Checkmark icon in toast */
.auerhahn-cookie-toast__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auerhahn-cookie-toast__icon svg {
    width: 100%;
    height: 100%;
}

.auerhahn-cookie-toast__checkmark-circle {
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 330;
    stroke-dashoffset: 330;
    animation: auerhahn-checkmark-circle 0.6s ease-out 0.2s forwards;
}

.auerhahn-cookie-toast__checkmark-check {
    stroke: #fff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: auerhahn-checkmark-stroke 0.3s ease-out 0.6s forwards;
}

/* Button click ripple effect */
.auerhahn-cookie-btn {
    position: relative;
    overflow: hidden;
}

.auerhahn-cookie-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.auerhahn-cookie-btn:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
}

/* Category expand animation enhancement */
.auerhahn-cookie-category__details {
    overflow: hidden;
}

.auerhahn-cookie-category__details[hidden] {
    display: none;
}

.auerhahn-cookie-category.is-expanding .auerhahn-cookie-category__details {
    animation: auerhahn-expand 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.auerhahn-cookie-category.is-collapsing .auerhahn-cookie-category__details {
    animation: auerhahn-collapse 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes auerhahn-collapse {
    from {
        opacity: 1;
        max-height: 500px;
    }
    to {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .auerhahn-cookie-banner--bottom .auerhahn-cookie-banner__container,
    .auerhahn-cookie-banner--top .auerhahn-cookie-banner__container {
        padding: 16px;
    }

    .auerhahn-cookie-banner--center .auerhahn-cookie-banner__container {
        padding: 20px;
        margin: 12px;
        max-height: calc(100vh - 24px);
        border-radius: 8px;
    }

    .auerhahn-cookie-banner__title {
        font-size: 18px;
    }

    .auerhahn-cookie-banner__description {
        font-size: 14px;
    }

    .auerhahn-cookie-banner__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .auerhahn-cookie-banner__buttons {
        flex-direction: row;
        margin-left: 0;
        width: 100%;
    }

    .auerhahn-cookie-link {
        order: 2;
        text-align: center;
        margin-top: 4px;
    }

    .auerhahn-cookie-btn {
        flex: 1;
        min-width: auto;
        padding: 12px 16px;
    }

    .auerhahn-cookie-banner__footer {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .auerhahn-cookie-category__header {
        padding: 12px 14px;
    }

    .auerhahn-cookie-table {
        font-size: 11px;
    }

    .auerhahn-cookie-table th,
    .auerhahn-cookie-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .auerhahn-cookie-banner__header::before {
        font-size: 24px;
    }

    .auerhahn-cookie-banner__title {
        font-size: 16px;
    }

    .auerhahn-cookie-settings-btn {
        bottom: 12px;
        left: 12px;
        padding: 10px 14px;
    }

    .auerhahn-cookie-settings-btn__text {
        display: none;
    }

    .auerhahn-cookie-toggle {
        width: 44px;
        height: 24px;
    }

    .auerhahn-cookie-toggle__slider::before {
        height: 18px;
        width: 18px;
    }

    .auerhahn-cookie-toggle input:checked + .auerhahn-cookie-toggle__slider::before {
        transform: translateX(20px);
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .auerhahn-cookie-banner,
    .auerhahn-cookie-settings-btn,
    .auerhahn-cookie-placeholder {
        display: none !important;
    }
}

/* ========================================
   Reduced Motion Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .auerhahn-cookie-banner__container,
    .auerhahn-cookie-banner__overlay,
    .auerhahn-cookie-settings-btn,
    .auerhahn-cookie-category__details,
    .auerhahn-cookie-category,
    .auerhahn-cookie-btn,
    .auerhahn-cookie-toggle__slider,
    .auerhahn-cookie-toggle__slider::before,
    .auerhahn-cookie-placeholder,
    .auerhahn-cookie-toast {
        animation: none !important;
        transition: none !important;
    }
}

/* Animations disabled by setting */
.auerhahn-cookie-banner--no-animations,
.auerhahn-cookie-banner--no-animations * {
    animation: none !important;
    transition: none !important;
}

/* ========================================
   High Contrast Mode
   ======================================== */
@media (prefers-contrast: high) {
    .auerhahn-cookie-btn {
        border-width: 3px;
    }

    .auerhahn-cookie-banner__categories {
        border-width: 2px;
    }

    .auerhahn-cookie-toggle__slider {
        border: 2px solid var(--auerhahn-text);
    }
}

/* ========================================
   Theme - Always White/Light
   ======================================== */
/* Banner is ALWAYS white - no dark mode to ensure DSGVO compliance and readability */

/* ========================================
   Enhanced Focus States (Accessibility)
   ======================================== */
.auerhahn-cookie-banner *:focus {
    outline: none;
}

.auerhahn-cookie-banner *:focus-visible {
    outline: 3px solid var(--auerhahn-primary);
    outline-offset: 2px;
}

.auerhahn-cookie-btn:focus-visible {
    outline: 3px solid var(--auerhahn-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--auerhahn-primary-light);
}

.auerhahn-cookie-toggle input:focus-visible + .auerhahn-cookie-toggle__slider {
    outline: 3px solid var(--auerhahn-primary);
    outline-offset: 2px;
}

.auerhahn-cookie-category__toggle:focus-visible {
    outline: 3px solid var(--auerhahn-primary);
    outline-offset: 2px;
    background: var(--auerhahn-primary-light);
}

.auerhahn-cookie-settings-btn:focus-visible {
    outline: 3px solid var(--auerhahn-primary);
    outline-offset: 2px;
}

.auerhahn-cookie-banner__footer a:focus-visible {
    outline: 2px solid var(--auerhahn-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip link for keyboard users - COMPLETELY HIDDEN by default */
.auerhahn-cookie-skip-link {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: -9999 !important;
}

/* Only show on keyboard focus (Tab navigation) */
.auerhahn-cookie-skip-link:focus,
.auerhahn-cookie-skip-link:focus-visible {
    position: fixed !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    background: #000 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border: 2px solid #000 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    z-index: 10000001 !important;
}

/* Focus trap indicator */
.auerhahn-cookie-banner[aria-modal="true"] {
    isolation: isolate;
}

/* ========================================
   Screen Reader Only
   ======================================== */
.auerhahn-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Loading State
   ======================================== */
.auerhahn-cookie-btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.auerhahn-cookie-btn--loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auerhahn-spin 0.8s linear infinite;
}

@keyframes auerhahn-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Hover Microinteractions
   ======================================== */
.auerhahn-cookie-category {
    transition: all var(--auerhahn-transition);
}

.auerhahn-cookie-category:hover {
    transform: translateX(2px);
}

.auerhahn-cookie-category__header {
    transition: all var(--auerhahn-transition);
}

.auerhahn-cookie-toggle:hover .auerhahn-cookie-toggle__slider {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.auerhahn-cookie-toggle input:checked:hover + .auerhahn-cookie-toggle__slider {
    box-shadow: 0 0 12px var(--auerhahn-primary);
}

/* Toggle bounce on check */
.auerhahn-cookie-toggle.just-checked .auerhahn-cookie-toggle__slider::before {
    animation: auerhahn-toggle-bounce 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Placeholder Enhanced Hover
   ======================================== */
.auerhahn-cookie-placeholder {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auerhahn-cookie-placeholder:hover .auerhahn-cookie-placeholder-icon {
    transform: scale(1.1);
    opacity: 1;
}

.auerhahn-cookie-placeholder-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auerhahn-cookie-load-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auerhahn-cookie-load-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.3);
}

.auerhahn-cookie-load-content:active {
    transform: translateY(-1px);
}

/* ========================================
   Stagger Animation for Categories
   ======================================== */
.auerhahn-cookie-category:nth-child(1) { animation-delay: 0.05s; }
.auerhahn-cookie-category:nth-child(2) { animation-delay: 0.1s; }
.auerhahn-cookie-category:nth-child(3) { animation-delay: 0.15s; }
.auerhahn-cookie-category:nth-child(4) { animation-delay: 0.2s; }

.auerhahn-cookie-banner--animate-in .auerhahn-cookie-category {
    opacity: 0;
    transform: translateY(10px);
    animation: auerhahn-stagger-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes auerhahn-stagger-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Two-Level System: Shopify Style Banner
   ======================================== */

/* Level 1: Simple Banner at Bottom */
#auerhahn-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999997;
    padding: 0;
    background: transparent !important;
}

#auerhahn-cookie-banner[aria-hidden="false"] {
    display: block !important;
}

#auerhahn-cookie-banner .auerhahn-cookie-banner__container {
    animation: auerhahn-slide-up 0.3s ease-out;
}

/* Level 2: Settings Popup (Modal) */
#auerhahn-cookie-settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999998;
}

#auerhahn-cookie-settings-popup[aria-hidden="false"] {
    display: block !important;
}

#auerhahn-cookie-settings-popup .auerhahn-cookie-popup__overlay {
    animation: auerhahn-fade-in 0.2s ease-out;
}

#auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container {
    animation: auerhahn-scale-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Popup close button hover */
#auerhahn-popup-close:hover {
    color: #000000 !important;
}

/* Checkbox styling in popup */
#auerhahn-cookie-settings-popup input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #000000;
    cursor: pointer;
}

#auerhahn-cookie-settings-popup input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   Cookie Category Details (Expandable)
   ======================================== */

/* Clickable category header */
.auerhahn-category-header {
    transition: background-color 0.15s ease;
    border-radius: 4px;
    margin: 0 -8px;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.auerhahn-category-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.auerhahn-category-header:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    border-radius: 4px;
}

.auerhahn-category-header:focus:not(:focus-visible) {
    outline: none;
}

.auerhahn-category-header:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Toggle icon rotation */
.auerhahn-category-header .toggle-icon,
.auerhahn-category-toggle .toggle-icon {
    display: inline-block;
    transition: transform 0.25s ease;
}

.auerhahn-category-header[aria-expanded="true"] .toggle-icon,
.auerhahn-category-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Details container - animation handled by JS */
.auerhahn-cookie-details {
    overflow: hidden;
}

/* Category toggle button (old style) */
.auerhahn-category-toggle {
    flex-shrink: 0;
}

.auerhahn-category-toggle:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Cookie details table */
.auerhahn-cookie-details table {
    display: table;
    width: 100%;
}

.auerhahn-cookie-details table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Responsive: Tablet (hide Transfer column) */
@media (max-width: 768px) {
    .auerhahn-cookie-details table {
        font-size: 11px !important;
    }
    
    .auerhahn-cookie-details th,
    .auerhahn-cookie-details td {
        padding: 8px 10px !important;
    }
    
    /* Hide Transfer/Land column on tablet */
    .auerhahn-cookie-details th:nth-child(5),
    .auerhahn-cookie-details td:nth-child(5) {
        display: none;
    }
}

/* Responsive: Mobile (show only essential columns) */
@media (max-width: 600px) {
    .auerhahn-cookie-details table {
        font-size: 10px !important;
    }
    
    .auerhahn-cookie-details th,
    .auerhahn-cookie-details td {
        padding: 6px 8px !important;
    }
    
    /* Hide Zweck and Transfer columns on mobile */
    .auerhahn-cookie-details th:nth-child(3),
    .auerhahn-cookie-details td:nth-child(3),
    .auerhahn-cookie-details th:nth-child(4),
    .auerhahn-cookie-details td:nth-child(4),
    .auerhahn-cookie-details th:nth-child(5),
    .auerhahn-cookie-details td:nth-child(5) {
        display: none;
    }
    
    /* Adjust margin on mobile */
    .auerhahn-cookie-details > div {
        margin-left: 0 !important;
    }
}

/* Mobile Responsive for Two-Level System */
@media (max-width: 480px) {
    #auerhahn-cookie-banner .auerhahn-cookie-banner__container {
        padding: 20px !important;
        margin: 0 8px 8px 8px !important;
        width: calc(100% - 16px) !important;
        border-radius: 8px !important;
    }
    
    #auerhahn-cookie-banner .auerhahn-cookie-banner__buttons {
        flex-direction: column !important;
    }
    
    #auerhahn-cookie-banner .auerhahn-cookie-banner__buttons button {
        width: 100% !important;
        min-width: unset !important;
    }
    
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container {
        padding: 20px !important;
        width: calc(100% - 20px) !important;
        max-height: 90vh !important;
        border-radius: 8px !important;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Banner Slide-in Animation */
@keyframes auerhahn-banner-slide-in {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auerhahn-banner-slide-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* Popup Fade + Scale Animation */
@keyframes auerhahn-popup-fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes auerhahn-popup-fade-out {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/* Mobile Fullscreen Popup Animation */
@keyframes auerhahn-popup-slide-up {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay Fade Animation */
@keyframes auerhahn-overlay-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes auerhahn-overlay-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Accordion/Details Animation */
@keyframes auerhahn-accordion-expand {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Tab Content Fade Animation */
@keyframes auerhahn-tab-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ANIMATION CLASSES
   ======================================== */

/* Banner Animation */
#auerhahn-cookie-banner {
    animation: auerhahn-banner-slide-in 0.3s ease forwards;
}

#auerhahn-cookie-banner.auerhahn-cookie-banner--closing {
    animation: auerhahn-banner-slide-out 0.25s ease forwards;
}

/* Popup Container Animation */
#auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container {
    animation: auerhahn-popup-fade-in 0.2s ease forwards;
}

#auerhahn-cookie-settings-popup.auerhahn-popup--closing .auerhahn-cookie-popup__container {
    animation: auerhahn-popup-fade-out 0.15s ease forwards;
}

/* Overlay Animation */
#auerhahn-cookie-settings-popup .auerhahn-cookie-popup__overlay {
    animation: auerhahn-overlay-fade-in 0.2s ease forwards;
}

#auerhahn-cookie-settings-popup.auerhahn-popup--closing .auerhahn-cookie-popup__overlay {
    animation: auerhahn-overlay-fade-out 0.15s ease forwards;
}

/* Accordion Details Animation */
.auerhahn-cookie-details {
    animation: auerhahn-accordion-expand 0.25s ease-out forwards;
    overflow: hidden;
}

/* Tab Content Animation */
.auerhahn-tab-content.active {
    animation: auerhahn-tab-fade-in 0.15s ease-out forwards;
}

/* ========================================
   BUTTON HOVER EFFECTS
   ======================================== */

/* All buttons - smooth transitions */
#auerhahn-cookie-banner button,
#auerhahn-cookie-settings-popup button {
    transition: background-color 0.15s ease, 
                border-color 0.15s ease, 
                color 0.15s ease,
                transform 0.1s ease;
}

#auerhahn-cookie-banner button:hover,
#auerhahn-cookie-settings-popup button:hover {
    background-color: #f0f0f0 !important;
}

#auerhahn-cookie-banner button:active,
#auerhahn-cookie-settings-popup button:active {
    transform: scale(0.98);
}

/* Tab buttons hover effect */
.auerhahn-tab-btn {
    transition: color 0.15s ease, border-color 0.15s ease !important;
}

/* Category toggle buttons */
.auerhahn-category-toggle,
.auerhahn-category-header {
    transition: background-color 0.15s ease;
}

.auerhahn-category-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Toggle arrow rotation */
.auerhahn-category-header .toggle-icon,
.auerhahn-category-toggle .toggle-icon {
    transition: transform 0.25s ease;
}

.auerhahn-category-header[aria-expanded="true"] .toggle-icon,
.auerhahn-category-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* ========================================
   Tab Navigation
   ======================================== */
.auerhahn-tab-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.auerhahn-tab-nav::-webkit-scrollbar {
    display: none;
}

.auerhahn-tab-btn {
    position: relative;
}

.auerhahn-tab-btn:hover {
    color: #000000 !important;
}

.auerhahn-tab-btn:focus {
    outline: 2px solid #000000;
    outline-offset: -2px;
}

.auerhahn-tab-btn.active {
    color: #000000 !important;
    border-bottom-color: #000000 !important;
}

/* Tab Content */
.auerhahn-tab-content {
    display: none;
}

.auerhahn-tab-content.active {
    display: block;
}

/* Tab Tables - same style as cookie details */
.auerhahn-tab-content table {
    width: 100%;
    border-collapse: collapse;
}

.auerhahn-tab-content table tbody tr {
    transition: background-color 0.1s ease;
}

.auerhahn-tab-content table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Service Toggle Items */
.auerhahn-tab-content [data-service] {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auerhahn-tab-content [data-service]:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Checkbox transitions */
input[type="checkbox"] {
    transition: transform 0.1s ease;
}

input[type="checkbox"]:checked {
    transform: scale(1.05);
}

/* ========================================
   RESPONSIVE: DESKTOP (> 1024px)
   ======================================== */
@media (min-width: 1025px) {
    /* Banner: Max-width 600px, rechts unten */
    #auerhahn-cookie-banner {
        left: auto !important;
        right: 24px !important;
        bottom: 24px !important;
        width: auto !important;
        max-width: 600px !important;
    }
    
    #auerhahn-cookie-banner .auerhahn-cookie-banner__container {
        border-radius: 12px !important;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Popup: Max-width 920px, zentriert */
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container {
        max-width: 920px !important;
        max-height: 80vh !important;
        border-radius: 12px !important;
    }
}

/* ========================================
   RESPONSIVE: TABLET (768px - 1024px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Banner: Max-width 90% */
    #auerhahn-cookie-banner {
        left: 5% !important;
        right: 5% !important;
        bottom: 16px !important;
        width: 90% !important;
        max-width: none !important;
    }
    
    #auerhahn-cookie-banner .auerhahn-cookie-banner__container {
        border-radius: 10px !important;
        max-width: 100% !important;
    }
    
    /* Popup: Max-width 90%, max-height 85vh */
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container {
        max-width: 90% !important;
        width: 90% !important;
        max-height: 85vh !important;
        border-radius: 10px !important;
    }
    
    /* Header: Buttons in einer Reihe mit Wrap */
    #auerhahn-cookie-settings-popup .auerhahn-popup-header {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    
    #auerhahn-cookie-settings-popup .auerhahn-popup-header-buttons {
        flex-wrap: wrap !important;
    }
}

/* ========================================
   RESPONSIVE: MOBILE (< 768px)
   ======================================== */
@media (max-width: 767px) {
    /* Banner: Vollbreite, Buttons untereinander */
    #auerhahn-cookie-banner {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }
    
    #auerhahn-cookie-banner .auerhahn-cookie-banner__container {
        margin: 0 !important;
        border-radius: 16px 16px 0 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px !important;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Banner Buttons untereinander */
    #auerhahn-cookie-banner .auerhahn-cookie-banner__buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    #auerhahn-cookie-banner .auerhahn-cookie-banner__buttons button {
        width: 100% !important;
        min-width: unset !important;
        padding: 14px 20px !important;
    }
    
    /* Popup: Fullscreen-Modal */
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        transform: none !important;
        animation: auerhahn-popup-slide-up 0.3s ease forwards !important;
    }
    
    /* Popup Header - vertikal gestapelt */
    #auerhahn-cookie-settings-popup .auerhahn-popup-header,
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    
    /* Popup Header Titel */
    #auerhahn-cookie-settings-popup .auerhahn-popup-header h2,
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container > div:first-child h2 {
        font-size: 16px !important;
        padding-right: 40px !important;
    }
    
    /* Popup Header Buttons - vertikal gestapelt */
    #auerhahn-cookie-settings-popup .auerhahn-popup-header-buttons,
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container > div:first-child > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    #auerhahn-cookie-settings-popup .auerhahn-popup-header-buttons button,
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container > div:first-child > div:last-child button {
        width: 100% !important;
        padding: 12px 8px !important;
        font-size: 12px !important;
    }
    
    /* Close button - absolute positioniert */
    #auerhahn-popup-close {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        margin: 0 !important;
    }
    
    /* Tabs: Horizontal scrollbar */
    .auerhahn-tab-nav {
        padding: 0 12px !important;
        gap: 0 !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .auerhahn-tab-btn {
        padding: 10px 14px !important;
        font-size: 13px !important;
        flex-shrink: 0 !important;
    }
    
    /* Content Padding reduzieren */
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container > div:nth-child(3) {
        padding: 16px !important;
    }
    
    /* Tab Content Tables */
    .auerhahn-tab-content table {
        font-size: 11px !important;
    }
    
    .auerhahn-tab-content table th,
    .auerhahn-tab-content table td {
        padding: 8px 6px !important;
    }
    
    /* Hide non-essential columns on mobile */
    .auerhahn-tab-content[data-tab-content="cookies"] th:nth-child(3),
    .auerhahn-tab-content[data-tab-content="cookies"] td:nth-child(3),
    .auerhahn-tab-content[data-tab-content="cookies"] th:nth-child(4),
    .auerhahn-tab-content[data-tab-content="cookies"] td:nth-child(4) {
        display: none !important;
    }
    
    /* Transfer table responsive */
    .auerhahn-tab-content[data-tab-content="transfer"] th:nth-child(3),
    .auerhahn-tab-content[data-tab-content="transfer"] td:nth-child(3) {
        display: none !important;
    }
    
    /* Service items responsive */
    .auerhahn-tab-content[data-tab-content="services"] > div > div {
        padding: 12px !important;
    }
    
    /* Category details responsive */
    .auerhahn-cookie-details {
        padding-left: 0 !important;
    }
    
    .auerhahn-cookie-details table {
        font-size: 10px !important;
    }
    
    /* Footer responsive */
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container > div:last-child {
        padding: 12px 16px !important;
    }
}

/* ========================================
   RESPONSIVE: SMALL MOBILE (< 480px)
   ======================================== */
@media (max-width: 479px) {
    /* Even smaller text and padding */
    #auerhahn-cookie-banner .auerhahn-cookie-banner__container {
        padding: 16px !important;
    }
    
    #auerhahn-cookie-banner h3 {
        font-size: 16px !important;
    }
    
    #auerhahn-cookie-banner p {
        font-size: 13px !important;
    }
    
    /* Popup buttons: Full width stacked */
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container > div:first-child > div:last-child {
        grid-template-columns: 1fr !important;
    }
    
    /* Tabs: smaller */
    .auerhahn-tab-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    /* Category headers smaller */
    .auerhahn-category-header label,
    .auerhahn-cookie-category label {
        font-size: 14px !important;
    }
    
    .auerhahn-category-header p,
    .auerhahn-cookie-category p {
        font-size: 12px !important;
    }
    
    /* Hide even more columns on very small screens */
    .auerhahn-tab-content[data-tab-content="cookies"] th:nth-child(5),
    .auerhahn-tab-content[data-tab-content="cookies"] td:nth-child(5),
    .auerhahn-tab-content[data-tab-content="cookies"] th:nth-child(6),
    .auerhahn-tab-content[data-tab-content="cookies"] td:nth-child(6) {
        display: none !important;
    }
    
    .auerhahn-cookie-details th:nth-child(3),
    .auerhahn-cookie-details td:nth-child(3),
    .auerhahn-cookie-details th:nth-child(4),
    .auerhahn-cookie-details td:nth-child(4) {
        display: none !important;
    }
}

/* ========================================
   REDUCED MOTION PREFERENCE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    #auerhahn-cookie-banner,
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__container,
    #auerhahn-cookie-settings-popup .auerhahn-cookie-popup__overlay,
    .auerhahn-cookie-details,
    .auerhahn-tab-content,
    .auerhahn-category-header .toggle-icon,
    button {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
