/* Globale Einstellungen (Mobile First & Dark Mode) */
:root {
    --bg-color: #000000;
    --card-bg: #121212;
    --input-bg: #262626;
    --border-color: #363636;
    --text-main: #f5f5f5;
    --text-muted: #a8a8a8;
    --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Container, der auf dem Handy den ganzen Bildschirm nutzt und am PC zentriert wird */
.container {
    width: 100%;
    max-width: 450px; /* Perfekte Breite für ein Handy-Interface am PC */
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: max(10px, 4vh);
}

/* Typografie */
h1, h2 {
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--ig-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

p {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

/* Formulare & Inputs */
input[type="text"], input[type="password"], input[type="file"] {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 12px;
    padding: 16px;
    font-size: 16px; /* Wichtig: Verhindert Auto-Zoom auf iOS */
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s;
}

input:focus {
    border-color: #a8a8a8;
}

input::placeholder {
    color: var(--text-muted);
}

/* Spezielles Styling für den File-Upload */
input[type="file"] {
    padding: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Buttons */
button {
    width: 100%;
    background: var(--ig-gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

button:active {
    transform: scale(0.98);
}

button.secondary {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

button.success {
    background: #1db954; /* Modernes Grün */
}

/* Video Player (Reels 9:16 Format) */
#videoContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
}

iframe {
    width: 100%;
    aspect-ratio: 9 / 16; /* Zwingt das iFrame in das Reel-Format */
    max-height: 65vh; /* Verhindert, dass das Video auf kleinen Bildschirmen zu groß wird */
    border: none;
    border-radius: 12px;
    background-color: var(--bg-color);
}

.fallback-link {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.fallback-link:hover {
    text-decoration: underline;
}

/* Hilfsklassen */
.hidden {
    display: none !important;
}

#statusMsg, #errorMsg {
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
}

.msg-error { background-color: rgba(255, 59, 48, 0.1); color: #ff3b30; }
.msg-success { background-color: rgba(52, 199, 89, 0.1); color: #34c759; }
.msg-info { background-color: rgba(0, 122, 255, 0.1); color: #0a84ff; }