/* --- RESET & BASIC SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* Zentrierung */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #111;
    color: white;
    padding: 20px; /* Sicherheitsabstand auf kleinen Screens */
}

/* Hintergrund */
.bg-image {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('assets/background.jpg') no-repeat center center/cover;
    z-index: -2;
    transform: scale(1.05);
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari Support */
    z-index: -1;
}

/* --- HAUPT KARTE --- */
.glass-card {
    position: relative;
    
    /* RESPONSIVE LOGIK: */
    width: 100%;
    max-width: 380px; /* Maximal 380px auf Desktop */
    aspect-ratio: 1 / 1; /* Erzwingt IMMER ein Quadrat, egal wie breit */
    
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    
    display: flex;
    flex-direction: column;
}

/* --- OBERE HÄLFTE (BILD) --- */
.top-half {
    position: relative;
    width: 100%;
    height: 50%; /* Exakt die Hälfte */
    overflow: hidden;
}

.top-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Fokuspunkt des Bildes anpassen */
    transition: transform 0.5s ease;
}

/* Zoom Effekt nur auf Geräten, die Hover unterstützen (kein Touch) */
@media (hover: hover) {
    .glass-card:hover .top-half img {
        transform: scale(1.05);
    }
}

.gradient-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.85));
    pointer-events: none;
}

/* Name Positionierung */
.name-title {
    position: absolute;
    bottom: 15px; /* Abstand vom unteren Bildrand */
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    margin: 0;
    z-index: 10;
    line-height: 1;
}

/* --- UNTERE HÄLFTE (TEXT & BUTTONS) --- */
.bottom-half {
    width: 100%;
    height: 50%; /* Exakt die Hälfte */
    padding: 24px 28px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.1); /* Subtile Abdunklung */
}

.role-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-top: 0;
    margin-bottom: auto; /* Drückt den Rest nach unten */
    text-align: center;
}

/* Container für Icons und Button */
.actions-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.icon-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.icon-btn {
    width: 48px; /* Groß genug für Touch */
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important; /* WICHTIG: Erzwingt weiße Icons */
    transition: all 0.2s;
    text-decoration: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.1);
}

.icon-btn svg {

    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
}

.main-btn {
    width: 100%;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    -webkit-tap-highlight-color: transparent; /* Entfernt Klick-Highlight auf Mobile */
}

.main-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* --- MOBILE ANPASSUNGEN --- */

/* Auf sehr kleinen Bildschirmen (z.B. iPhone SE) */
@media (max-width: 400px) {
    .name-title { font-size: 1.7rem; }
    .role-subtitle { font-size: 0.9rem; }
    .bottom-half { padding: 20px; }
}

/* Landscape Modus (Handy quer) - Erlaubt Scrollen */
@media (max-height: 450px) {
    body {
        align-items: flex-start; /* Oben ausrichten zum Scrollen */
        padding-top: 40px;
    }
}