/**
 * Herzlich Braut Sommer-Schmelze 2026 — CSS Stylesheet
 *
 * Responsive Design für Mobile & Desktop.
 * Corporate Identity: #1B2A4A (Dunkelblau), #C8963E (Gold)
 */

/* --- CSS Custom Properties (Corporate Identity + Doku §6.3) --- */
:root {
  --color-cream: #FAF6F1;
  --color-champagne: #F7E7CE;
  --color-gold: #C8963E;
  --color-navy: #1B2A4A;
  --color-apricot: #FBCEB1;
  --color-sand: #C2B280;
  --color-ice-blue: #D6EAF8;
  --color-turquoise: #A3D5D9;
  --color-success: #2E7D32;

  --font-heading: 'Georgia', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    background-color: var(--color-cream);
}

/* --- Overlay (Popup-Basis) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-champagne) 100%);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.overlay.hidden,
.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

.overlay-content h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    color: var(--color-navy);
    margin-bottom: 1.25rem;
}

.overlay-content p {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    color: #4a4a4a;
    margin-bottom: 0.75rem;
}

.overlay-content a {
    color: var(--color-gold);
    text-decoration: underline;
}

/* --- UI Overlay (Timer/Score) --- */
.ui-content {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.timer,
.score {
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: clamp(1.5rem, 5vw, 2rem);
}

.timer span,
.score span {
    font-weight: bold;
    color: var(--color-gold);
}

/* --- Result Screen (Legacy — wird durch game.css .result-card ersetzt) --- */
#result-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 300px;
}

#result-screen h2 {
    font-size: clamp(2rem, 6vw, 2.75rem);
    color: var(--color-navy);
    margin-bottom: 1.25rem;
}

#result-message {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    color: #4a4a4a;
    margin-bottom: 1.75rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-gold);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: #b3843a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 150, 62, 0.3);
}

/* --- Buttons Extended --- */
.btn-large {
    padding: 22px 52px;
    font-size: clamp(1.5rem, 5vw, 1.75rem);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: white;
}

/* --- Hero Overlay (Startscreen) --- */
.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    overflow-y: auto;

    /* bg-summer.webp als Hintergrund (object-fit: cover) */
    background: url('/static/images/bg-summer.webp') center center / cover no-repeat;
    background-color: var(--color-cream); /* Fallback */

    /* Dunkler Overlay für Lesbarkeit */
    box-shadow: inset 0 0 0 100vh rgba(27, 42, 74, 0.35);
}

/* Pseudo-Element für den dunklen Overlay (erlaubt Hintergrundbild durchscheinen) */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(27, 42, 74, 0.55) 0%,
        rgba(27, 42, 74, 0.3) 50%,
        rgba(27, 42, 74, 0.55) 100%
    );
    z-index: 0;
}

/* Alle Kinder über dem Overlay-Gradient */
.hero-overlay > * {
    position: relative;
    z-index: 1;
}

.logo-hero {
    max-width: 280px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    color: var(--color-champagne);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 2.5rem;
}

.hero-cta {
    max-width: 400px;
}

.cta-text {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- Legal Footer --- */
.legal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #999;
    background: rgba(250, 246, 241, 0.9);
    z-index: 100;
}

.legal-footer a {
    color: var(--color-gold);
    text-decoration: none;
}

.legal-footer .separator {
    margin: 0 0.5rem;
    color: #ccc;
}

/* --- Consent Group --- */
.consent-group {
    margin-bottom: 1.75rem;
}

/* --- Canvas --- */
#game-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
