:root {
    --primary: #E85D04;
    --text: #1A1A1A;
    --text-muted: #595959;
    --bg: #FFFFFF;
    --bg-ticker: #F8F8F6;
    --border: #E5E5E3;
    --bg-gradient: radial-gradient(ellipse at 50% 0%, #FFF4EC 0%, #FFFFFF 50%, #FFFFFF 100%);
    --bg-accent: #E85D04;
    --focus-ring: #E85D04;
}

[data-theme="dark"] {
    --primary: #FF8C42;
    --text: #F0F0F0;
    --text-muted: #B0B0B0;
    --bg: #121212;
    --bg-ticker: #1A1A1A;
    --border: #333333;
    --bg-gradient: radial-gradient(ellipse at 50% 0%, #2A1F1A 0%, #121212 50%, #121212 100%);
    --bg-accent: #FF8C42;
    --focus-ring: #FF8C42;
}

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Nunito', system-ui, sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Dekorative Akzentkreise */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    opacity: 0.12;
    background: var(--bg-accent);
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
}

body::after {
    width: 400px;
    height: 400px;
    bottom: 100px;
    left: -100px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--bg-ticker);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 100;
}

.theme-toggle:hover {
    background: var(--border);
}

.theme-toggle:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle:focus:not(:focus-visible) {
    outline: none;
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-moon { display: block; }
.icon-sun { display: none; }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: clamp(3.5rem, 12vw, 6rem);
    color: var(--primary);
    line-height: 1.1;
}

.claim {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    color: var(--text-muted);
    font-weight: 400;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.powered-by {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.powered-by a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.powered-by a:hover {
    text-decoration: underline;
}

.powered-by a:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 2px;
}

.powered-by a:focus:not(:focus-visible) {
    outline: none;
}

.powered-by a:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Ticker */
.ticker-wrapper {
    background: transparent;
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 1;
}

.ticker {
    display: flex;
    animation: ticker 35s linear infinite;
    width: max-content;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 1rem 3rem;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ticker-item svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.ticker-item strong {
    color: var(--text);
    font-weight: 600;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Barrierefreiheit: Animation stoppen bei Präferenz */
@media (prefers-reduced-motion: reduce) {
    .ticker {
        animation: none;
    }

    .theme-toggle,
    .skip-link {
        transition: none;
    }

    body::before,
    body::after {
        display: none;
    }
}

/* Disclaimer */
.disclaimer {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg);
}

/* Responsive */
@media (max-width: 480px) {
    main {
        padding: 0.75rem;
        gap: 0.4rem;
    }

    .hero-image {
        max-width: 100%;
        border-radius: 8px;
    }

    .ticker-content {
        gap: 2rem;
        padding: 0.75rem 2rem;
    }

    .ticker-item {
        font-size: 1.1rem;
    }

    .ticker-item svg {
        width: 24px;
        height: 24px;
    }

    body::before,
    body::after {
        display: none;
    }
}

@media (max-height: 800px) {
    .hero-image {
        max-width: 500px;
    }

    .ticker-item {
        font-size: 1.4rem;
    }

    .ticker-item svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-height: 700px) {
    .hero-image {
        max-width: 400px;
    }

    main {
        gap: 0.3rem;
    }

    .logo {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .claim {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }

    .ticker-item {
        font-size: 1.2rem;
    }

    .ticker-item svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-height: 600px) {
    .hero-image {
        max-width: 320px;
    }

    .logo {
        font-size: 2.25rem;
    }

    .claim {
        font-size: 0.95rem;
    }

    .powered-by {
        font-size: 0.8rem;
    }

    .ticker-item {
        font-size: 1rem;
    }

    .ticker-item svg {
        width: 20px;
        height: 20px;
    }
}

/* Print */
@media print {
    body::before,
    body::after,
    .theme-toggle,
    .ticker-wrapper,
    .skip-link {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .logo {
        color: #E85D04;
    }
}
