/* Globale Variablen */
:root {
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #a0a0a0;
    --highlight-color: #ffeb3b;
    --accent-color: #FF6347;
    --background-dark: #1a1a2e;
    --background-light: #2c0b43;
    --countdown-bg: rgba(0, 0, 0, 0.55);
    --card-bg: rgba(0, 0, 0, 0.7);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.25);
    --button-hover-darken: #d6402d;
    --border-color: #4a0e69;
    --sparkle-glow: rgba(255, 255, 200, 0.9);
    --cookie-banner-bg: #1a1a2e;
    --cookie-banner-text: var(--primary-text-color);
    --cookie-banner-link: var(--highlight-color);
    --cookie-btn-accept: #28a745;
    --cookie-btn-decline: #dc3545;
    --cookie-btn-customize: #007bff;
}

/* Rest des bestehenden CSS bleibt unverändert */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-dark), var(--background-light));
    color: var(--primary-text-color);
    overflow-x: hidden;
    position: relative;
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.page-header {
    margin-bottom: 0px;
    z-index: 1;
    animation: slideInFromTop 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes slideInFromTop {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

.countdown-title {
    font-family: 'Great Vibes', cursive;
    font-weight: 700;
    font-size: 4.5em;
    color: var(--highlight-color);
    text-shadow: 0 0 20px var(--sparkle-glow), 0 0 40px var(--sparkle-glow);
    margin: 0;
    letter-spacing: 3px;
    white-space: nowrap;
}

.countdown-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    width: 90%;
    max-width: 1000px;
    box-sizing: border-box;
    padding: 0 15px;
}

.intro-greeting {
    text-align: center;
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
    padding: 0 15px;
}

#greetingMessage {
    font-family: 'Dancing Script', cursive;
    font-size: 2em;
    color: var(--primary-text-color);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    margin: 0;
    line-height: 1.3;
}

.ad-container {
    width: 100%;
    text-align: center;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
    padding: 8px;
    box-sizing: border-box;
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.ad-container.top-ad { animation-delay: 1.4s; }
.ad-container.middle-ad { animation-delay: 2.2s; }

.countdown-card {
    background-color: var(--countdown-bg);
    padding: 35px 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--border-color);
    z-index: 1;
    animation: fadeInScale 1s ease-out forwards;
    animation-delay: 1.2s;
    opacity: 0;
    transform: scale(0.95);
    width: 100%;
    box-sizing: border-box;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.countdown-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2em;
    color: var(--primary-text-color);
    margin-top: 0;
    margin-bottom: 30px;
    letter-spacing: 0.8px;
}

.location-selector {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.location-selector label {
    font-size: 1.2em;
    color: var(--primary-text-color);
    font-weight: 500;
}

.location-selector select {
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.65);
    color: var(--primary-text-color);
    outline: none;
    cursor: pointer;
    appearance: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    width: 65%;
    max-width: 400px;
    box-sizing: border-box;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23FFEB3B" height="26" viewBox="0 0 24 24" width="26" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 26px;
    padding-right: 60px;
}

.location-selector select:hover {
    border-color: var(--highlight-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transform: translateY(-4px);
}

.location-selector select:focus {
    box-shadow: 0 0 0 6px rgba(255, 235, 59, 0.6);
    border-color: var(--highlight-color);
}

.location-selector select option {
    background-color: var(--background-dark);
    color: var(--primary-text-color);
    padding: 10px 12px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji';
}

.countdown-creator-toggle-button {
    background-color: var(--highlight-color);
    color: var(--background-dark);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    margin-top: 25px;
    margin-bottom: 40px;
    width: auto;
    display: inline-block;
}

.countdown-creator-toggle-button:hover {
    background-color: #fceb5a;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.countdown-creator-toggle-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.custom-countdown-creator {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    width: 80%;
    max-width: 500px;
    box-sizing: border-box;
    text-align: left;
}

.custom-countdown-creator h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    color: var(--highlight-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.custom-countdown-creator .input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-countdown-creator label {
    font-size: 1em;
    color: var(--primary-text-color);
    font-weight: 500;
}

.custom-countdown-creator input[type="date"],
.custom-countdown-creator input[type="time"],
.custom-countdown-creator input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.95em;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--primary-text-color);
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.custom-countdown-creator input[type="date"]:focus,
.custom-countdown-creator input[type="time"]:focus,
.custom-countdown-creator input[type="text"]:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.3);
}

.countdown-creator-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    margin-top: 10px;
    width: 100%;
}

.countdown-creator-button:hover {
    background-color: var(--button-hover-darken);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.countdown-creator-button.cancel-button {
    background-color: var(--secondary-text-color);
    margin-top: 15px;
}

.countdown-creator-button.cancel-button:hover {
    background-color: #888;
}

.custom-countdown-name-display {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8em;
    color: var(--highlight-color);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.4);
    margin-top: 20px;
    margin-bottom: 0;
    text-align: center;
}

.countdown-timer {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 25px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px 35px;
    border-radius: 20px;
    min-width: 130px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.time-unit h2 {
    font-family: 'Source Code Pro', monospace;
    font-size: 5.5em;
    margin: 0;
    color: var(--highlight-color);
    text-shadow: 0 0 20px var(--sparkle-glow), 0 0 35px var(--sparkle-glow);
    line-height: 1;
    transition: color 0.2s ease;
}

.time-unit h2.pulsate {
    animation: pulsateGlow 1.5s infinite alternate;
}

@keyframes pulsateGlow {
    from { text-shadow: 0 0 15px var(--sparkle-glow), 0 0 25px var(--sparkle-glow); }
    to { text-shadow: 0 0 25px var(--sparkle-glow), 0 0 40px var(--sparkle-glow); }
}

.time-unit small {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    color: var(--secondary-text-color);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.new-year-resolutions {
    width: 100%;
    max-width: 650px;
    text-align: center;
    animation: fadeInScale 1s ease-out forwards;
    animation-delay: 2.5s;
    opacity: 0;
    transform: scale(0.95);
}

.resolution-card {
    background-color: var(--card-bg);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

.resolution-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: var(--highlight-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.4);
}

#resolutionInput {
    padding: 12px;
    font-size: 1em;
    border-radius: 8px;
    margin-bottom: 12px;
    width: calc(100% - 24px);
    box-sizing: border-box;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--primary-text-color);
}

.resolution-button {
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 8px;
    margin: 0 8px 15px 8px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.resolution-button:hover {
    background-color: var(--button-hover-darken);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

#resolutionList {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--highlight-color) var(--card-bg);
}

#resolutionList::-webkit-scrollbar {
    width: 8px;
}

#resolutionList::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 10px;
}

#resolutionList::-webkit-scrollbar-thumb {
    background-color: var(--highlight-color);
    border-radius: 10px;
    border: 2px solid var(--card-bg);
}

#resolutionList li {
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 0.95em;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#resolutionList li:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateX(3px);
}

#resolutionList li button.remove-resolution {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

#resolutionList li button.remove-resolution:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.resolution-info {
    font-size: 0.85em;
    margin-top: 15px;
    color: var(--secondary-text-color);
}

.fun-fact-section {
    width: 100%;
    max-width: 600px;
    text-align: center;
    animation: fadeInScale 1s ease-out forwards;
    animation-delay: 2.8s;
    opacity: 0;
    transform: scale(0.95);
}

.fun-fact-card {
    background-color: var(--card-bg);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

.fun-fact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: var(--highlight-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.4);
}

.fun-fact-card p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.fact-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.fact-button:hover {
    background-color: var(--button-hover-darken);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.new-year-history {
    width: 100%;
    max-width: 700px;
    text-align: center;
    animation: fadeInScale 1s ease-out forwards;
    animation-delay: 3.2s;
    opacity: 0;
    transform: scale(0.95);
}

.history-card {
    background-color: var(--card-bg);
    padding: 35px 45px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.history-card:hover {
    transform: translateY(-6px);
}

.history-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: var(--highlight-color);
    margin-top: 0;
    margin-bottom: 25px;
    text-shadow: 0 0 12px rgba(255, 235, 59, 0.5);
}

.history-card p {
    font-size: 1em;
    color: var(--primary-text-color);
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.history-card p:last-child {
    margin-bottom: 0;
}

.page-footer {
    margin-top: 40px;
    color: var(--secondary-text-color);
    font-size: 0.85em;
    z-index: 1;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 3.6s;
    opacity: 0;
    width: 100%;
    padding: 20px 15px;
    box-sizing: border-box;
    position: relative;
}

.page-footer p {
    margin-bottom: 15px;
    padding: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-links img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.social-links img:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* --- Cookie Banner und Modal Styles --- */
#cookieOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

#cookieOverlay.active {
    display: block;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

#cookieBanner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background-color: var(--cookie-banner-bg);
    color: var(--cookie-banner-text);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: bottom 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.6s ease-in-out;
}

#cookieBanner.active {
    bottom: 1200px;
    opacity: 1;
    display: block;
}

.cookie-banner-content h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: var(--highlight-color);
    margin-bottom: 15px;
}

.cookie-banner-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--cookie-banner-text);
}

.cookie-banner-content a {
    color: var(--cookie-banner-link);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-content a:hover {
    color: var(--primary-text-color);
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

#cookieSettingsModal {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background-color: var(--cookie-banner-bg);
    color: var(--cookie-banner-text);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: left;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: bottom 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.6s ease-in-out;
}

#cookieSettingsModal.active {
    bottom: 1200px;
    opacity: 1;
    display: block;
}

.cookie-settings-content h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: var(--highlight-color);
    margin-bottom: 15px;
    text-align: center;
}

.cookie-settings-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--cookie-banner-text);
}

.cookie-settings-content .cookie-category {
    margin-bottom: 20px;
}

.cookie-settings-content .cookie-category label {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: var(--primary-text-color);
    margin-bottom: 10px;
}

.cookie-settings-content .cookie-category input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-settings-content .cookie-category input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-settings-content .cookie-category p {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    margin: 0 0 10px 28px;
}

.cookie-settings-content a {
    color: var(--cookie-banner-link);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-settings-content a:hover {
    color: var(--primary-text-color);
}

#saveCookieSettings {
    background-color: var(--cookie-btn-customize);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    margin-top: 20px;
}

#saveCookieSettings:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#reopenCookieSettings {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--cookie-btn-customize);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reopenCookieSettings:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn.accept {
    background-color: var(--cookie-btn-accept);
    color: white;
}

.btn.accept:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn.decline {
    background-color: var(--cookie-btn-decline);
    color: white;
}

.btn.decline:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn.customize {
    background-color: var(--cookie-btn-customize);
    color: white;
}

.btn.customize:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .countdown-title { font-size: 3.8em; }
    #greetingMessage { font-size: 1.8em; }
    .countdown-subtitle { font-size: 1.8em; }
    .time-unit h2 { font-size: 4.5em; }
    .time-unit small { font-size: 1.1em; }
    .countdown-card { padding: 30px 40px; }
    .location-selector select { width: 70%; }
    .custom-countdown-creator h3 { font-size: 1.5em; }
    .history-card h3 { font-size: 1.8em; }
    .history-card p { font-size: 0.95em; }
    .countdown-creator-toggle-button {
        font-size: 1.05em;
        padding: 10px 22px;
        margin-top: 20px;
        margin-bottom: 35px;
    }
}

@media (max-width: 768px) {
    .countdown-title { font-size: 3em; }
    #greetingMessage { font-size: 1.5em; }
    .countdown-subtitle { font-size: 1.5em; margin-bottom: 25px; }
    .countdown-timer { flex-wrap: wrap; gap: 20px; }
    .time-unit { min-width: 100px; padding: 20px 25px; border-radius: 15px; }
    .time-unit h2 { font-size: 3.5em; }
    .time-unit small { font-size: 0.95em; }
    .countdown-card { padding: 25px 35px; }
    .location-selector select { width: 90%; padding: 10px 20px; font-size: 1em; background-position: right 12px center; padding-right: 45px; }
    .custom-countdown-creator { padding: 20px; width: 90%; }
    .custom-countdown-creator h3 { font-size: 1.4em; }
    .countdown-creator-button { padding: 10px 20px; font-size: 0.95em; }
    .custom-countdown-name-display { font-size: 1.5em; margin-top: 15px; }
    .resolution-card, .fun-fact-card, .history-card { padding: 25px 30px; }
    .resolution-card h3, .fun-fact-card h3, .history-card h3 { font-size: 1.6em; }
    .resolution-card p, .fun-fact-card p, .history-card p { font-size: 0.9em; }
    .resolution-button, .fact-button { padding: 10px 20px; font-size: 0.95em; }
    #resolutionInput { font-size: 0.9em; padding: 10px; }
    #resolutionList li { font-size: 0.85em; padding: 7px 10px; }
    .resolution-info { font-size: 0.8em; }
    .social-links img { width: 24px; height: 24px; }
    #cookieBanner, #cookieSettingsModal {
        width: 95%;
        padding: 20px;
    }
    .cookie-banner-content, .cookie-settings-content {
        align-items: flex-start;
        text-align: left;
    }
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn, #saveCookieSettings {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .cookie-banner-content h2, .cookie-settings-content h2 {
        font-size: 1.4em;
    }
    .cookie-banner-content p, .cookie-settings-content p {
        font-size: 0.85em;
    }
    #reopenCookieSettings {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .countdown-title { font-size: 2.2em; letter-spacing: 1px; }
    #greetingMessage { font-size: 1.3em; }
    .countdown-subtitle { font-size: 1.3em; margin-bottom: 20px; }
    .countdown-card { padding: 20px; }
    .countdown-timer { gap: 10px; justify-content: space-around; }
    .time-unit { min-width: 70px; padding: 15px 18px; }
    .time-unit h2 { font-size: 2.5em; }
    .time-unit small { font-size: 0.8em; letter-spacing: 0.8px; }
    .location-selector select { width: 100%; padding-right: 40px; background-position: right 8px center; font-size: 0.9em; }
    .custom-countdown-creator { padding: 15px; }
    .custom-countdown-creator h3 { font-size: 1.2em; margin-bottom: 15px; }
    .custom-countdown-creator input { font-size: 0.85em; padding: 8px 10px; }
    .countdown-creator-button { font-size: 0.9em; padding: 8px 15px; }
    .custom-countdown-name-display { font-size: 1.3em; margin-top: 10px; }
    .resolution-card, .fun-fact-card, .history-card { padding: 15px 20px; }
    .resolution-card h3, .fun-fact-card h3, .history-card h3 { font-size: 1.4em; margin-bottom: 15px; }
    .resolution-card p, .fun-fact-card p, .history-card p { font-size: 0.85em; }
    .resolution-button, .fact-button { font-size: 0.85em; padding: 8px 15px; margin: 0 4px 10px 4px; }
    #resolutionInput { font-size: 0.85em; padding: 8px; }
    #resolutionList li { font-size: 0.8em; padding: 6px 8px; }
    .resolution-info { font-size: 0.75em; }
    .social-links img { width: 20px; height: 20px; }
    .page-footer { font-size: 0.75em; }
    .countdown-creator-toggle-button {
        font-size: 0.9em;
        padding: 8px 15px;
        margin-top: 10px;
        margin-bottom: 20px;
    }
}
/* --- GRUNDEINSTELLUNGEN & VARIABLEN --- */
:root {
    --primary-color: #ffffff;
    --text-color: #e0e0e0;
    --accent-color: #ffc107; /* Gold-Akzent */
    --background-dark: rgba(10, 25, 47, 0.85); /* Dunkelblau mit Transparenz */
    --background-glass: rgba(255, 255, 255, 0.08);
    --button-primary: #007bff;
    --button-hover: #0056b3;
    --font-main: 'Poppins', sans-serif;
    --font-numbers: 'Source Code Pro', monospace;
    --font-title: 'Great Vibes', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #0a192f; /* Dunkelblauer Hintergrund */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* --- HINTERGRUND-CANVAS FÜR FEUERWERK --- */
#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Liegt hinter allem anderen */
}

/* --- LAYOUT & CONTAINER --- */
.page-header, .countdown-main-content, .page-footer {
    width: 100%;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    padding-top: 40px;
}

/* --- TYPOGRAPHIE --- */
.countdown-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive Schriftgröße */
    color: var(--primary-color);
    font-weight: 500;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.7);
}

h2, h3 {
    font-family: var(--font-main);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* --- KARTEN-DESIGN ("GLASSMORPHISM") --- */
.countdown-card, .resolution-card, .fun-fact-card, .history-card {
    background: var(--background-glass);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* --- COUNTDOWN-TIMER --- */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit h2 {
    font-family: var(--font-numbers);
    font-size: clamp(3rem, 10vw, 5rem);
    color: var(--accent-color);
    line-height: 1;
    margin: 0;
}

.time-unit small {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-color);
}

/* --- INTERAKTIVE ELEMENTE (BUTTONS, INPUTS) --- */
button, input, select {
    font-family: var(--font-main);
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    margin: 5px;
}

select {
    cursor: pointer;
}

select option {
    background-color: #0a192f;
}

button {
    cursor: pointer;
    background-color: var(--button-primary);
    border: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

.resolution-button, .fact-button, .countdown-creator-button {
    background-color: var(--accent-color);
    color: #111;
}
.resolution-button:hover, .fact-button:hover, .countdown-creator-button:hover {
    background-color: #ffda6b;
}

.cancel-button {
    background-color: #6c757d;
}
.cancel-button:hover {
    background-color: #5a6268;
}

#resolutionInput, #customName {
    width: calc(100% - 30px);
    max-width: 400px;
}

/* --- LISTEN & ANDERE ELEMENTE --- */
#resolutionList {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#resolutionList li {
    background-color: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-break: break-all;
    transition: background-color 0.3s;
}

#resolutionList li:hover {
    background-color: rgba(0,0,0,0.4);
}

.delete-btn {
    background: none;
    border: none;
    color: #ff5c5c;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
}

/* --- COOKIE BANNER & MODAL --- */
#cookieOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
    display: none; /* Standardmäßig versteckt */
}
#cookieBanner, #cookieSettingsModal {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-dark);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999;
    width: 90%;
    max-width: 600px;
    display: none; /* Standardmäßig versteckt */
}
#cookieBanner {
    bottom: 20px;
}
#cookieSettingsModal {
    top: 50%;
    transform: translate(-50%, -50%);
}
.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.cookie-category {
    margin-bottom: 15px;
}
#reopenCookieSettings {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 997;
}

/* --- FOOTER --- */
.page-footer {
    text-align: center;
    padding-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}
.page-footer a {
    color: var(--accent-color);
    text-decoration: none;
}
.social-links img {
    width: 32px;
    margin: 10px;
    transition: transform 0.3s ease;
}
.social-links img:hover {
    transform: scale(1.1);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .time-unit h2 {
        font-size: 2.5rem;
    }
    .time-unit small {
        font-size: 0.8rem;
    }
    .countdown-timer {
        gap: 15px;
    }
}

/* FÜGE DIESE KLASSE ZU DEINER main.css HINZU */

.content-card {
    background: rgba(0, 0, 0, 0.7); /* Ähnlich wie .resolution-card */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 700px; /* Kann angepasst werden */
    box-sizing: border-box;
    text-align: left; /* Besser für Lesbarkeit von Fließtext */
}

.content-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: var(--highlight-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.4);
    text-align: center; /* Zentriert die Überschrift */
}

.content-card p, .content-card li {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-card ul, .content-card ol {
    padding-left: 25px; /* Einrücken der Listen */
    margin-top: 15px;
}

.content-card strong {
    color: var(--highlight-color);
    font-weight: 600;
}