:root {
    --axa-blue: #000080;
    --axa-light-blue: #007AC9;
    --axa-gray: #f0f2f5;
    --text-color: #333;
    --border-color: #d9d9d9;
    --white: #fff;
    --overlay-color: rgba(255, 255, 255, 0.85);
    
    /* DBV Farben */
    --dbv-orange: #F18400;
    --dbv-orange-hover: #b85c0e;
}

/* Theme Switch Transition Logic */
body.dbv-mode {
    --axa-blue: var(--dbv-orange);
    --axa-light-blue: var(--dbv-orange-hover);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--axa-gray);
    transition: background-color 0.4s ease-in-out;
}

.background-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(var(--overlay-color), var(--overlay-color)), 
                url('./assets/bg.jpg') center center/cover no-repeat fixed;
}

.linktree-card {
    background-color: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
    /* Damit die Boxgröße sich smooth ändert, falls doch mal was anders ist */
    transition: all 0.3s ease; 
}

/* --- NEUE LOGO LOGIK --- */

.card-header {
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
}

/* Der Container hält den Platz frei. Passe die Height an deine Logos an! */
.logo-wrapper {
    position: relative;
    width: 100%;
    height: 80px; /* FESTE HÖHE verhindert Springen */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    position: absolute; /* Logos liegen übereinander */
    max-width: 200px;
    max-height: 100%; /* Passt sich der Box-Höhe an */
    height: auto;
    width: auto;
    /* Zentrieren im absoluten Kontext */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    transition: opacity 0.4s ease-in-out; /* Weicher Fade */
}

/* AXA ist standardmäßig sichtbar */
.logo-axa {
    opacity: 1;
}

/* DBV ist standardmäßig unsichtbar */
.logo-dbv {
    opacity: 0;
}

/* Wenn DBV Mode aktiv ist: AXA weg, DBV her */
body.dbv-mode .logo-axa {
    opacity: 0;
}

body.dbv-mode .logo-dbv {
    opacity: 1;
}

/* --- Social Media --- */

.social-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--axa-blue);
    /* Transition für Color UND Transform */
    transition: transform 0.2s, color 0.4s ease-in-out;
    width: 32px;
    height: 32px;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.social-icon:hover {
    color: var(--axa-light-blue);
    transform: scale(1.15);
}

/* --- Buttons --- */

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    /* Transition auf allen relevanten Properties */
    transition: background-color 0.4s ease-in-out, 
                color 0.4s ease-in-out,
                border-color 0.4s ease-in-out,
                transform 0.2s ease, 
                box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--axa-blue);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--axa-light-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-highlight {
    background-color: var(--white);
    color: var(--axa-blue);
    border: 2px solid var(--axa-blue);
}

.btn-highlight:hover {
    background-color: var(--axa-gray);
    transform: translateY(-2px);
}

/* --- Footer --- */

.card-footer {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
}

.card-footer a, .text-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.card-footer a:hover, .text-link:hover {
    color: var(--axa-light-blue);
    text-decoration: underline;
}

.separator {
    margin: 0 5px;
    color: #ccc;
}

.cookie-trigger-wrapper {
    margin-top: 10px;
    font-size: 0.75rem;
}

/* Cookie Banner (Unverändert) */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#cookie-consent-banner.active {
    transform: translateY(0);
}

#cookie-consent-banner .container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#cookie-consent-banner h3 {
    color: var(--axa-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

#cookie-consent-banner p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

#cookie-consent-banner a {
    color: var(--axa-light-blue);
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-cookie {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid transparent;
}

.btn-cookie.primary {
    background-color: var(--axa-blue);
    color: white;
}

.btn-cookie.secondary {
    background-color: white;
    border-color: #ccc;
    color: #555;
}

@media (max-width: 480px) {
    .linktree-card {
        padding: 30px 20px;
        min-height: 100vh;
        border-radius: 0;
        justify-content: center;
    }
    .background-wrapper {
        padding: 0;
    }
}