/* ========== Base Styles ========== */
:root {
    --primary-color: #8B9CF6; /* Sanfteres Violett */
    --primary-light: #A7B8FA;
    --primary-dark: #7C8AED;
    --secondary-color: #EC89B9; /* Sanfteres Pink */
    --secondary-light: #F4A2C6;
    --accent-color: #0EA5E9; /* Sky */
    --accent-light: #38BDF8;
    --success-color: #10B981; /* Emerald */
    --warning-color: #F59E0B; /* Amber */
    --light-color: #F9FAFB;
    --dark-color: #111827;
    
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 18px;
    --box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    
    --wheel-shadow: 0 10px 25px rgba(139, 156, 246, 0.2);
    --glass-background: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light-color);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 25%);
    background-attachment: fixed;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-600);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========== Header & Footer ========== */
header {
    margin: 2rem 0 3rem;
}

footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 20px 0;
    border-top: 1px solid var(--gray-300);
}

/* ========== Main Layout ========== */
main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-section,
.explanation-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.wheel-section {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: var(--glass-background);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.wheel-section:hover {
    box-shadow: var(--box-shadow-lg);
}

/* ========== Canvas and Wheel ========== */
.canvas-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheelCanvas {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    transition: transform 0.2s ease;
    border-radius: 50%;
    box-shadow: var(--wheel-shadow);
}

.canvas-container:hover #wheelCanvas {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

#pointer {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 24px;
    height: 32px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
    transition: var(--transition);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Pause animation when wheel is spinning */
.wheel-spinning #pointer {
    animation-play-state: paused;
}

/* ========== AdSense Containers ========== */
.ad-container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

.ad-banner {
    max-width: 1200px;
    margin-bottom: 1rem;
    padding: 0 20px;
}

.ad-middle {
    margin: 1.5rem 0;
    max-width: 800px;
}

.ad-bottom {
    margin-top: 2rem;
    max-width: 1000px;
}

.ad-placeholder {
    background-color: var(--gray-100);
    border: 1px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

.ad-banner .ad-placeholder {
    min-height: 90px;
}

.ad-middle .ad-placeholder {
    min-height: 180px;
}

.ad-bottom .ad-placeholder {
    min-height: 250px;
}

.ad-placeholder p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.9rem;
}

.ad-story {
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
}

.ad-story .ad-placeholder {
    min-height: 150px;
    border-radius: var(--border-radius);
    background-color: var(--gray-100);
    border: 1px dashed var(--gray-300);
}

/* ========== Expanded Info Box ========== */
.info-box {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 2rem;
}

.info-box h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

.info-box h3 {
    color: var(--primary-dark);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.info-box h4 {
    color: var(--primary-dark);
    margin: 1.25rem 0 0.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box h5 {
    color: var(--secondary-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.info-box ul {
    margin-bottom: 1.25rem;
}

.info-box li {
    margin-bottom: 0.5rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-800);
}

.info-footer {
    font-weight: 600;
    margin: 1.5rem 0 0;
    color: var(--gray-800);
    font-size: 1.1rem;
}

/* ========== Use Cases and Stories ========== */
.use-cases {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.use-case {
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.use-case:hover {
    box-shadow: var(--box-shadow);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Make the entire use-case clickable by placing a pseudo-element on top */
.use-case::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

/* Ensure content still receives clicks */
.use-case h4, .use-case ul, .use-case .story-toggle, .use-case .story-content {
    position: relative;
    z-index: 2;
}

/* Make sure story content doesn't trigger the pseudo-element click */
.use-case .story-content {
    pointer-events: auto;
}

.story-toggle {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    outline: none;
    text-align: center;
}

.story-toggle-full {
    width: 100%;
    background-color: var(--gray-100);
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-toggle:hover, .story-toggle.hover-effect {
    background-color: var(--primary-light);
    color: white;
}

.story-content {
    display: none;
    margin-top: 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--secondary-color);
}

.story-content p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Feature List styling */
.feature-list {
    list-style-type: none;
    padding-left: 0.5rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.feature-list .emoji {
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ========== Input Controls ========== */
.input-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.textarea-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

textarea {
    width: 100%;
    padding: 14px 16px;
    min-height: 150px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--gray-800);
    resize: vertical;
    transition: var(--transition);
    background-color: white;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 156, 246, 0.2);
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    justify-content: flex-start;
}

.category-btn {
    background-color: var(--light-color);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    gap: 6px;
}

.category-btn:hover {
    background-color: var(--gray-200);
    transform: translateY(-2px);
}

.category-btn i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.spin-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
}

.spin-icon {
    font-size: 1.1rem;
}

.spin-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(139, 92, 246, 0.3);
}

.spin-button:active {
    transform: translateY(1px);
}

.secondary-button {
    background-color: var(--gray-200);
    color: var(--gray-700);
    border: none;
    border-radius: var(--border-radius);
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secondary-button:hover {
    background-color: var(--gray-300);
    transform: translateY(-2px);
}

.result-container {
    width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease-in-out;
}

.result-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    transition: all 0.3s ease;
}

.winner-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.winner-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--gray-700);
}

.trophy-icon {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.winner-count {
    font-weight: 700;
    color: var(--secondary-color);
}

.last-winner-container {
    font-size: 0.95rem;
    color: var(--gray-600);
}

.last-winner {
    font-weight: 700;
    color: var(--success-color);
}

.result-text.highlight {
    animation: pulse 1s ease-in-out;
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-200);
    color: var(--gray-700);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-button:hover {
    background-color: var(--gray-300);
    transform: translateY(-2px);
}

.icon-button:active {
    transform: translateY(1px);
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); color: var(--secondary-color); }
    100% { transform: scale(1); }
}

.sound-controls {
    display: flex;
    justify-content: center;
}

.toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 24px;
    background-color: var(--gray-400);
    border-radius: 34px;
    transition: var(--transition);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(21px);
}

.toggle-label {
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== Privacy Modal ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-200);
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
}

.close-button:hover {
    background-color: var(--gray-300);
    color: var(--gray-800);
}

.modal h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

/* Spinning animation for the spin icon */
.spin-button:hover .spin-icon {
    animation: spin 1.5s linear infinite;
}

/* ========== Responsive Designs ========== */
@media (min-width: 992px) {
    .use-cases {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .ad-middle {
        display: flex;
        justify-content: center;
    }
    
    .ad-middle .ad-placeholder {
        width: 80%;
    }
}

@media (max-width: 991px) {
    .canvas-container {
        max-width: 400px;
    }
    
    #wheelCanvas {
        max-width: 400px;
        max-height: 400px;
    }
    
    .wheel-section {
        padding: 1.5rem;
    }
    
    .info-box {
        padding: 1.5rem;
    }
    
    .use-case {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    body {
        padding: 10px;
        font-size: 14px;
    }
    
    .container {
        padding: 10px;
        width: 100%;
    }
    
    main {
        gap: 1rem;
    }
    
    h1 {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    header {
        margin: 1rem 0 1.5rem;
    }
    
    .wheel-section {
        padding: 1.2rem;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .info-box {
        padding: 1.2rem;
    }
    
    .modal-content {
        width: 92%;
        padding: 1.2rem;
        max-height: 80vh;
    }
    
    .canvas-container {
        max-width: 95%;
        margin: 0 auto;
    }
    
    #wheelCanvas {
        max-width: 360px;
        height: auto;
        margin: 0 auto;
    }
    
    #pointer {
        top: -26px;
        width: 24px;
        height: 32px;
    }
    
    .controls {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .spin-button, .secondary-button {
        padding: 14px;
        font-size: 1rem;
        width: 100%;
    }
    
    .result-text {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
        padding: 0.8rem;
    }
    
    .winner-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .category-btn {
        padding: 8px;
        font-size: 0.8rem;
        width: 100%;
        border-radius: var(--border-radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .input-controls {
        flex-direction: column;
        width: 100%;
    }
    
    textarea {
        width: 100%;
        min-height: 100px;
        margin-bottom: 10px;
    }
    
    .info-box {
        margin-top: 1rem;
    }
    
    .info-box ul {
        padding-left: 1.2rem;
    }
    
    .info-box li {
        margin-bottom: 0.4rem;
    }
    
    .use-case {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .story-toggle {
        padding: 8px 12px;
    }
    
    .main-section, .explanation-section {
        padding: 0;
    }
    
    .sound-controls {
        width: 100%;
    }
    
    .ad-container {
        margin: 1rem 0;
    }
    
    .result-container {
        width: 100%;
        padding: 0.8rem;
    }
    
    .result-text {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    .winner-stats {
        margin-top: 0.5rem;
    }
    
    .controls {
        margin-top: 1rem;
    }
    
    .spin-button {
        margin-top: 0;
        height: auto;
        min-height: 50px;
    }
    
    .secondary-button {
        min-height: 45px;
        justify-content: center;
        text-align: center;
    }
    
    .ad-story {
        margin: 1rem 0;
    }
    
    .ad-story .ad-placeholder {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
        font-size: 14px;
        background-image: 
            radial-gradient(circle at 10% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 25%),
            radial-gradient(circle at 90% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 20%);
    }
    
    .container {
        padding: 8px;
    }
    
    main {
        gap: 0.8rem;
    }
    
    h1 {
        font-size: 1.9rem;
        margin-bottom: 0.3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .wheel-section {
        padding: 1rem;
        border-radius: var(--border-radius-sm);
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .canvas-container {
        max-width: 100%;
        margin: 0 auto 0.5rem;
        height: auto;
    }
    
    #wheelCanvas {
        max-width: 300px;
        height: auto;
    }
    
    #pointer {
        top: -22px;
        width: 20px;
        height: 28px;
    }
    
    textarea {
        min-height: 90px;
        font-size: 0.9rem;
        padding: 8px;
    }
    
    .result-text {
        font-size: 1.1rem;
        padding: 10px;
    }
    
    .category-btn {
        padding: 7px 5px;
        font-size: 0.75rem;
    }
    
    .info-box h4 {
        font-size: 1rem;
    }
    
    .story-toggle {
        padding: 6px 10px;
    }
    
    .story-content {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .feature-list li {
        padding: 8px;
    }
    
    .feature-list .emoji {
        font-size: 1.2rem;
        margin-right: 8px;
    }
    
    .controls {
        gap: 10px;
    }
    
    .spin-button, .secondary-button {
        padding: 12px;
    }
    
    .winner-stats {
        font-size: 0.85rem;
    }
    
    .action-buttons {
        margin-top: 0.5rem;
    }
    
    .toggle-label {
        font-size: 0.85rem;
    }
    
    footer {
        margin-top: 2rem;
        padding: 15px 0;
        font-size: 0.8rem;
    }
    
    .textarea-container {
        width: 100%;
    }
    
    .explanation-section {
        margin-top: 1rem;
    }
    
    .info-box {
        padding: 1rem;
        border-radius: var(--border-radius-sm);
    }
    
    .info-box h2, .info-box h3, .info-box h4 {
        margin-bottom: 0.7rem;
    }
    
    .info-box p {
        margin-bottom: 0.8rem;
    }
    
    .use-case {
        padding: 0.8rem;
    }
    
    .story-content {
        padding: 0.8rem;
    }
    
    .ad-container {
        margin: 0.8rem 0;
    }
    
    .ad-story {
        margin: 1rem 0;
    }
    
    .ad-story .ad-placeholder {
        min-height: 150px;
    }
}

@media (max-width: 360px) {
    .canvas-container {
        padding: 0;
        margin: 0 auto;
    }
    
    #wheelCanvas {
        max-width: 260px;
        height: auto;
    }
    
    .category-btn {
        padding: 6px 4px;
        font-size: 0.7rem;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .result-text {
        font-size: 1rem;
    }
    
    #pointer {
        top: -18px;
        width: 18px;
        height: 24px;
    }
}

/* Ergänze fehlende Styles */

/* ========== Input Controls ========== */
label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.input-controls {
    width: 100%;
    margin: 0 0 2em 0;
}

/* Content Visibility for Better Performance */
.use-case {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

/* Font Display Swap für bessere Ladezeiten */
@font-face {
    font-family: 'Montserrat';
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    font-display: swap;
}

/* Focus Styles for Better Accessibility */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Content Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

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

/* Print Styles */
@media print {
    .ad-container,
    .action-buttons,
    .category-buttons,
    #spinButton {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .wheel-section {
        break-inside: avoid;
    }
}

/* For Screen Readers Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
} 