* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0 10px;
    align-items: center;
}

.site-footer {
    width: 100%;
    max-width: 420px;
    margin: 30px 0 20px 0;
    padding: 20px 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    color: white;
    flex-shrink: 0; /* verhindert dass Footer kollabiert */
}

.site-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.site-footer .footer-section { flex: 1 1 120px; }

.site-footer h3 { font-size: 1rem; margin-bottom: 8px; font-weight: bold; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 5px; }
.site-footer a { color: #00e0ff; text-decoration: none; transition: all 0.2s ease; }
.site-footer a:hover { color: #00c0d0; text-decoration: underline; }
.site-footer .footer-bottom { text-align: center; margin-top: 15px; font-size: 0.75rem; opacity: 0.7; }

.site-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    z-index: 1000;
}

.site-header .logo { font-weight: bold; font-size: 1rem; }
.header-buttons { display: flex; gap: 8px; }
.header-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.header-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
.header-btn.register { background: #00e0ff; color: #222; border: none; }
.header-btn.register:hover { background: #00c0d0; }

.container {
    width: 100%;
    max-width: 420px;
    margin-top: 70px;
    padding: 15px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.container2 {
    width: 100%;
    max-width: 420px;
    margin-top: 10px;
    padding: 15px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

label { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-weight: bold; font-size: 0.9rem; }
#wordCount { font-weight: normal; font-size: 0.85rem; opacity: 0.85; }

textarea, input {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 1rem;
}

textarea { height: 120px; resize: none; }

button {
    margin-top: 15px;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #00e0ff;
    color: #222;
    font-weight: bold;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:active { transform: scale(0.97); }
.secondary-btn { background: rgba(255,255,255,0.25); color: white; border: 1px solid rgba(255,255,255,0.4); }

.hero { text-align: center; margin-bottom: 15px; }
.dice {
    font-size: 3rem;
    display: inline-block;
    animation: roll 1.5s infinite ease-in-out;
    transform-origin: center center;
    margin-bottom: 8px;
}

@keyframes roll {
    0%   { transform: rotate(0deg) translateY(0px); }
    25%  { transform: rotate(15deg) translateY(-5px); }
    50%  { transform: rotate(-15deg) translateY(5px); }
    75%  { transform: rotate(10deg) translateY(-3px); }
    100% { transform: rotate(0deg) translateY(0px); }
}

/* === Slotmaschine / Ergebnisse === */
#slotContainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px; /* Abstand zum Button */
    overflow: hidden;
    transition: height 0.5s ease; /* Smooth expand */
}

.door {
    width: 100%;
    height: 70px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    position: relative;
}
.boxes {
    display: flex;
    flex-direction: column;
}
.box {
    display: flex;
    justify-content: center; /* horizontal zentriert */
    align-items: center;    /* vertikal zentriert */
    height: 70px;
    font-size: 1.8rem;      /* größere Schrift */
    font-weight: bold;
    color: white;
}

#result {
    margin-top: 50px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ergebnis Label - klein, elegant, leicht abgehoben */
#result h2 {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1); /* leicht transparent */
    backdrop-filter: blur(6px);            /* sanfter Blur */
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* SlotContainer kompakt, abgerundet, neutral */
#slotContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 6px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);  /* subtil abgesetzt */
    overflow: hidden;
    transition: height 0.5s ease;       /* flüssiges expandieren */
}

.info-section {
    width: 100%;
    max-width: 420px;
    margin: 30px auto 0 auto; /* Abstand oben & unten */
    padding: 18px 18px;
    background: rgba(255, 255, 255, 0.1); /* dezenter, wie container */
    backdrop-filter: blur(8px);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); /* leichter Schatten */
}

.info-section h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-weight: 600;
    text-align: center;
    color: #e0e0ff; /* etwas heller, dezent */
}

.info-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
    text-align: center;
}

.info-section ul {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.info-section ul li {
    margin-bottom: 4px;
}

.info-section .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.info-section .cta-buttons .primary-btn {
    background: rgba(102, 126, 234, 0.8); /* heller, leicht transparent */
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    flex: 1 1 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.info-section .cta-buttons .primary-btn:active {
    transform: scale(0.97);
}

.info-section .cta-buttons .secondary-btn {
    background: rgba(255,255,255,0.15); /* subtiler */
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    flex: 1 1 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.info-section .cta-buttons .secondary-btn:active {
    transform: scale(0.97);
}

.dark-mode-btn {
    position: fixed;
    bottom: 20px;      /* Abstand vom unteren Bildschirmrand */
    right: 20px;       /* Abstand vom rechten Bildschirmrand */
    width: 50px;
    height: 50px;
    border-radius: 30%;
    border: none;
    background-color: rgba(255, 255, 255, 0.15); /* schlicht und passend */
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, background 0.3s ease;
    z-index: 2000; /* über allem */
}

.dark-mode-btn:hover {
    background-color: rgba(255, 255, 255, 0.25); /* leichte Hover-Farbe */
    transform: translateY(-1px);
}

/* Darkmode für die ganze Seite – etwas heller */
body.dark-mode {
    background: #1e1e2f; /* dunkles Anthrazit statt Schwarz */
    color: #e0e0e0;      /* helle Schrift */
}

/* Container dunkler, aber nicht zu stark */
body.dark-mode .container,
body.dark-mode .container2,
body.dark-mode .info-section {
    background: rgba(40, 40, 55, 0.8);
    backdrop-filter: blur(8px);
    color: #fff;
}

/* Footer dunkler, aber noch weich */
body.dark-mode .site-footer {
    background: rgba(35, 35, 50, 0.8);
}

/* Header dunkler */
body.dark-mode .site-header {
    background: rgba(35, 35, 50, 0.8);
}

/* Buttons dunkler, aber dezent */
body.dark-mode button {
    background: #555; /* etwas heller als vorher */
    color: #fff;
}

body.dark-mode button.secondary-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.upgrade-box {
    width: 100%;
    max-width: 420px;
    margin: 30px auto 20px auto;
    padding: 20px 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upgrade-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.upgrade-box h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.upgrade-box p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.upgrade-btn {
    padding: 12px 20px;
    background: #fff;
    color: #667eea;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}