@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #f97316;
    /* Orange for trend */
    --success: #22c55e;
    /* Green for goal */
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0b1120;
        --card-bg: #1f2937;
        --text-main: #f9fafb;
        --text-muted: #9ca3af;
        --border-color: rgba(148, 163, 184, 0.15);
    }
}

:root {
    --border-color: rgba(17, 24, 39, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.08), transparent 45%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header h1 {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

header .subtitle {
    display: inline-block;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--accent);
    position: relative;
    padding-bottom: 0.35rem;
}

header .subtitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 3px;
    border-radius: 3px;
    background-color: var(--accent);
}

.intro p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.promo-banner {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-banner::before {
    content: "🎉";
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.promo-banner--sprechstunde::before {
    content: "🗓️";
}

.promo-banner h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent); /* match the page's orange brand accent */
}

.promo-banner p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e5e7eb;
}

.promo-banner a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.promo-banner strong.coupon-code {
    cursor: pointer;
    user-select: all;
    transition: background 0.2s ease;
}

.promo-banner strong.coupon-code:hover {
    background: rgba(255, 255, 255, 0.35);
}

.promo-banner strong {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
}

.countdowns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .countdowns {
        grid-template-columns: 1fr;
    }
}

a.countdown-card {
    text-decoration: none;
    color: inherit;
}

.countdown-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.countdown-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

.countdown-note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.8;
}

.dashboard {
    margin-top: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

.data-source {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: right;
}

.data-source a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.data-source a:hover {
    border-bottom-color: var(--accent);
}

.disclaimer {
    border-left: 3px solid var(--accent);
    background-color: var(--card-bg);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem 1.25rem;
}

.disclaimer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

footer {
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 114, 128, 0.2);
}