/* ========================================================= STYLE.CSS ========================================================= */
/* Google Fonts importieren */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ========================= VARIABLEN ========================= */
:root {
    --dark: #1c1c1c;
    --chalk-green: #42663b;
    --chalkboard-color: #42663b;
    --chalk-color: #f5f5dc;
    --success-color: #00cc44;
    --error-color: #ff4444;
    --accent-green: #27ae60;
    --wood: #BA8C63;
    --wood-light: #d4b592;
    --wood-dark: #8B6F47;
    --accent-color: #BA8C63;
    --tab-gradient: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(186, 140, 99, 0.15));
    --tab-active-gradient: linear-gradient(135deg, rgba(39, 174, 96, 0.4), rgba(186, 140, 99, 0.3));
    --tab-hover-gradient: linear-gradient(135deg, rgba(39, 174, 96, 0.25), rgba(186, 140, 99, 0.25));
    
    /* Schriftarten-Variablen */
    --font-heading: 'Caveat', cursive;
    --font-body: 'Quicksand', sans-serif;
    --font-accent: 'Caveat', cursive;
    
    /* Shadow-Variablen */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.2);
    --inner-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* ========================= EINHEITLICHE BUTTON-VARIABLEN ========================= */
    --btn-height-desktop: 52px;
    --btn-height-mobile: 48px;
    --btn-radius: 10px;
    
    /* Social Button Größen */
    --social-btn-height-desktop: 60px;
    --social-btn-height-mobile: 44px;
    
    /* Neue Farbvariablen für 404 Seite */
    --error-primary: #ff6b6b;
    --error-secondary: #4ecdc4;
    --error-accent: #ffe66d;
}

/* ========================= RESET & BASIS ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: url('./images/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* ========================= HEADER & LOGO ========================= */
header {
    text-align: center;
    margin: -20px auto 0;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
}

.logo {
    width: 100%;
    height: 400px;
    background: url('./images/header.png') center / cover no-repeat;
    border-radius: 30px 30px 0 0;
    margin-bottom: 0;
}

/* ========================= HAUPTNAVIGATION (NEU OPTIMIERT) ========================= */
.image-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 25px;
    padding: 20px 15px;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--inner-shadow), var(--shadow-medium);
    background-color: var(--wood);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.05) 1px,
        transparent 1px,
        transparent 6px
    );
    gap: 18px;
    position: relative;
    overflow: hidden;
}

/* Dekorative Elemente für die Navigation */
.image-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 165, 116, 0.6) 50%,
        transparent 100%);
}

.image-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 111, 71, 0.6) 50%,
        transparent 100%);
}

/* Navigations-Buttons */
.image-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 calc(25% - 18px);
    max-width: calc(25% - 18px);
    padding: 0;
    background: transparent;
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 70px;
    text-decoration: none;
}

/* Hover-Effekte für Desktop */
.image-nav a:hover {
    transform: translateY(-6px) scale(1.02);
}

/* Aktiver Zustand */
.image-nav a.active {
    animation: gentleFloat 3s ease-in-out infinite;
    margin: -2px;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Bilder in der Navigation */
.image-nav img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

/* Hover-Effekt für Bilder */
.image-nav a:hover img {
    filter:
        drop-shadow(0 8px 16px rgba(0,0,0,0.6))
        brightness(1.08)
        contrast(1.1);
    transform: scale(1.05);
}

/* Aktiver Zustand für Bilder */
.image-nav a.active img {
    filter:
        drop-shadow(0 0 12px rgba(212, 165, 116, 0.6))
        drop-shadow(0 4px 8px rgba(0,0,0,0.4))
        brightness(1.08);
    animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
    0% {
        filter:
            drop-shadow(0 0 10px rgba(212, 165, 116, 0.5))
            drop-shadow(0 4px 8px rgba(0,0,0,0.4))
            brightness(1.06);
    }
    100% {
        filter:
            drop-shadow(0 0 18px rgba(212, 165, 116, 0.7))
            drop-shadow(0 4px 10px rgba(0,0,0,0.5))
            brightness(1.1);
    }
}

/* Hintergrund-Effekt beim Hover */
.image-nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.image-nav a:hover::before {
    width: 140%;
    height: 140%;
}

/* Aktiver Zustand Hintergrund */
.image-nav a.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg,
        rgba(212, 165, 116, 0.2),
        rgba(139, 111, 71, 0.2),
        rgba(212, 165, 116, 0.2));
    border-radius: 12px;
    z-index: 0;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

/* ========================= RESPONSIVE - MOBILE NAVIGATION ========================= */
@media (max-width: 768px) {
    .image-nav {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 18px 12px;
    }
  
    .image-nav a {
        flex: 0 0 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
        min-height: 85px;
        margin: 2px;
    }
  
    .image-nav img {
        filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
        border-radius: 8px;
    }
  
    /* Verstärkte Hover-Effekte für Mobile */
    .image-nav a:hover img {
        filter:
            drop-shadow(0 6px 12px rgba(0,0,0,0.5))
            brightness(1.06);
        transform: scale(1.04);
    }
  
    /* Aktiver Zustand Mobile */
    .image-nav a.active img {
        filter:
            drop-shadow(0 0 10px rgba(212, 165, 116, 0.6))
            drop-shadow(0 3px 6px rgba(0,0,0,0.3))
            brightness(1.06);
    }
  
    /* Angepasster Hover-Hintergrund für Mobile */
    .image-nav a::before {
        display: none;
    }
  
    .image-nav a.active::after {
        animation: borderGlowMobile 2s ease-in-out infinite alternate;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 10px;
    }
  
    @keyframes borderGlowMobile {
        0% { opacity: 0.3; }
        100% { opacity: 0.5; }
    }
}

/* Extra kleine Smartphones */
@media (max-width: 480px) {
    .image-nav {
        gap: 12px;
        padding: 15px 10px;
    }
  
    .image-nav a {
        flex: 0 0 calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
        min-height: 75px;
    }
  
    .image-nav img {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
}

/* ========================= STARTSEITE OPTIMIERTES DESIGN ========================= */

/* Hero Bereich */
.homepage-hero {
    background: linear-gradient(135deg, 
        rgba(66, 102, 59, 0.3) 0%, 
        rgba(186, 140, 99, 0.2) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin: 20px 0 40px;
    text-align: center;
    border: 3px solid var(--wood-light);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(39, 174, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--chalk-color);
    font-size: 3.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title-main {
    display: block;
    font-size: 2.4rem;
    color: rgba(245, 245, 220, 0.9);
    margin-bottom: 5px;
    font-weight: 400;
}

.hero-title-accent {
    display: block;
    font-size: 3.5rem;
    color: var(--wood-light);
    text-shadow: 
        0 0 10px rgba(212, 165, 116, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(212, 165, 116, 0.5),
            2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    100% {
        text-shadow: 
            0 0 20px rgba(212, 165, 116, 0.8),
            0 0 30px rgba(212, 165, 116, 0.3),
            2px 2px 4px rgba(0, 0, 0, 0.5);
    }
}

.hero-subtitle {
    font-family: var(--font-body);
    color: rgba(245, 245, 220, 0.85);
    font-size: 1.4rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Social Media Sektion */
.social-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    position: relative;
    overflow: hidden;
}

.social-intro {
    text-align: center;
    margin-bottom: 40px;
}

.social-title {
    font-family: var(--font-heading);
    color: var(--chalk-color);
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.title-icon {
    font-size: 2.5rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.social-description {
    font-family: var(--font-body);
    color: rgba(245, 245, 220, 0.8);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Social Grid - Optisch ansprechend */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px;
    margin: 30px 0;
}

.social-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 20px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    height: 280px;
    overflow: hidden;
}

.social-button.social-button-active {
    border-color: rgba(212, 165, 116, 0.4);
}

.social-button.social-button-disabled {
    border-color: rgba(255, 255, 255, 0.1);
}

.social-button-inner {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.social-button-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
    z-index: 2;
    position: relative;
}

.social-button-active .social-button-img {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6)) brightness(1.1);
}

.social-button-disabled .social-button-img {
    filter: grayscale(30%) brightness(0.7) drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

/* Hover Overlay */
.social-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    border-radius: 15px;
}

.social-button-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(39, 174, 96, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    border-radius: 15px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.social-button-hover .hover-icon {
    font-size: 2rem;
    animation: arrowPulse 1.5s infinite;
}

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

.social-button-disabled:hover .social-button-overlay {
    opacity: 1;
}

.social-button-active:hover .social-button-hover {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Glow Effekt */
.social-button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: all 0.4s ease;
    z-index: 1;
    border-radius: 15px;
}

.social-button-active .social-button-glow {
    background: radial-gradient(circle, rgba(39, 174, 96, 0.3) 0%, transparent 70%);
}

.social-button-label {
    font-family: var(--font-heading);
    color: var(--chalk-color);
    font-size: 1.8rem;
    text-align: center;
    margin-top: 10px;
    z-index: 2;
    position: relative;
    transition: color 0.3s ease;
}

.social-button:hover .social-button-label {
    color: var(--wood-light);
}

/* Button Animation */
.social-button-animate {
    animation: socialButtonAppear 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes socialButtonAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Notice */
.social-notice {
    background: linear-gradient(135deg, 
        rgba(139, 111, 71, 0.2) 0%, 
        rgba(66, 102, 59, 0.1) 100%);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    border: 2px dashed rgba(212, 165, 116, 0.3);
    text-align: center;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.notice-icon {
    font-size: 2rem;
    animation: noticePulse 2s infinite;
}

@keyframes noticePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.social-notice p {
    color: rgba(245, 245, 220, 0.9);
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin: 0;
}

/* Highlights */
.homepage-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.highlight-card {
    background: linear-gradient(135deg, 
        rgba(66, 102, 59, 0.2) 0%, 
        rgba(186, 140, 99, 0.1) 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(212, 165, 116, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-10px);
    border-color: var(--wood-light);
    box-shadow: var(--shadow-heavy);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--wood-light));
}

.highlight-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
}

.highlight-card h3 {
    font-family: var(--font-heading);
    color: var(--chalk-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.highlight-card p {
    font-family: var(--font-body);
    color: rgba(245, 245, 220, 0.8);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ========================= 404-SEITE OPTIMIERT ========================= */
.page-404-optimized {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.error-illustration {
    text-align: center;
    margin: 40px 0;
    position: relative;
    min-height: 200px;
}

.magnifying-glass {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 150px;
    animation: searchRotate 4s ease-in-out infinite;
}

@keyframes searchRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-10deg) scale(1.05); }
}

.glass-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border: 8px solid var(--error-primary);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 20px rgba(255, 107, 107, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.search-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 8px;
    background: var(--error-secondary);
    transform: rotate(45deg);
    transform-origin: right bottom;
    border-radius: 4px;
    animation: searchLine 2s ease-in-out infinite;
}

@keyframes searchLine {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.2); }
}

.handle {
    position: absolute;
    top: 40px;
    right: -10px;
    width: 40px;
    height: 8px;
    background: var(--wood);
    border-radius: 4px;
}

.french-flag {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 40px;
    height: 30px;
    background: linear-gradient(90deg, 
        #002395 0%, #002395 33%,
        #fff 33%, #fff 66%,
        #ED2939 66%, #ED2939 100%);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: flagWave 3s ease-in-out infinite;
}

@keyframes flagWave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

.error-message {
    color: rgba(245, 245, 220, 0.9);
    font-size: 1.3rem;
    line-height: 1.6;
    margin-top: 30px;
    font-family: var(--font-body);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Error Actions */
.error-actions {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(66, 102, 59, 0.15) 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 2px solid rgba(212, 165, 116, 0.3);
    text-align: center;
}

.error-actions h3 {
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.error-actions h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--error-primary), var(--error-secondary));
    border-radius: 2px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--chalk-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-height: 80px;
}

.action-btn-home {
    background: linear-gradient(135deg, 
        rgba(39, 174, 96, 0.3) 0%, 
        rgba(39, 174, 96, 0.1) 100%);
    border-color: rgba(39, 174, 96, 0.4);
}

.action-btn-contact {
    background: linear-gradient(135deg, 
        rgba(186, 140, 99, 0.3) 0%, 
        rgba(186, 140, 99, 0.1) 100%);
    border-color: rgba(186, 140, 99, 0.4);
}

.action-btn-back {
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.3) 0%, 
        rgba(255, 107, 107, 0.1) 100%);
    border-color: rgba(255, 107, 107, 0.4);
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.action-btn:hover .btn-hover-effect {
    width: 100%;
    opacity: 1;
}

.btn-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    transition: all 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.btn-icon {
    font-size: 1.8rem;
    z-index: 2;
    position: relative;
}

.btn-text {
    z-index: 2;
    position: relative;
}

/* Error Tips */
.error-tips {
    background: linear-gradient(135deg, 
        rgba(255, 230, 109, 0.1) 0%, 
        rgba(78, 205, 196, 0.08) 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border-left: 5px solid var(--error-accent);
    position: relative;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tip-icon {
    font-size: 2rem;
    animation: tipIcon 2s infinite;
}

@keyframes tipIcon {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.error-tips h4 {
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin: 0;
}

.error-tips p {
    color: rgba(245, 245, 220, 0.9);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tip-decorations {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.decoration {
    font-size: 1.5rem;
    animation: decorationFloat 3s ease-in-out infinite;
}

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

/* Error Suggestions */
.error-suggestions {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.error-suggestions h4 {
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.suggestion-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.suggestion-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: rgba(245, 245, 220, 0.9);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.suggestion-link:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: var(--wood-light);
    transform: translateY(-3px);
}

.suggestion-link span {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Error Animation */
.error-animation {
    text-align: center;
    margin: 40px 0;
    overflow: hidden;
    height: 100px;
}

.floating-letters {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.floating-letters span {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--wood-light);
    animation: letterFloat 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes letterFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        color: var(--wood-light);
    }
    25% { 
        transform: translateY(-20px) rotate(5deg); 
        color: var(--error-primary);
    }
    50% { 
        transform: translateY(0) rotate(0deg); 
        color: var(--error-secondary);
    }
    75% { 
        transform: translateY(-20px) rotate(-5deg); 
        color: var(--error-accent);
    }
}

.floating-letters span:nth-child(1) { animation-delay: 0s; }
.floating-letters span:nth-child(2) { animation-delay: 0.2s; }
.floating-letters span:nth-child(3) { animation-delay: 0.4s; }
.floating-letters span:nth-child(4) { animation-delay: 0.6s; }
.floating-letters span:nth-child(5) { animation-delay: 0.8s; }
.floating-letters span:nth-child(6) { animation-delay: 1s; }

/* Error Countdown */
.error-countdown {
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: rgba(245, 245, 220, 0.9);
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.countdown-content i {
    color: var(--error-accent);
    font-size: 1.3rem;
    animation: clockPulse 1s infinite;
}

@keyframes clockPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.countdown-content strong {
    color: var(--wood-light);
    font-size: 1.3rem;
}

/* ========================= DOWNLOAD-BEREICH ========================= */

/* Hauptordner Grid - 3 IN EINER REIHE AUF PC */
.main-folders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 5px 0;
    width: 100%;
    margin: 0;
    justify-items: center;
}

/* Sub-Ordner Grid - 3 IN EINER REIHE AUF PC */
.subfolders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 5px 0;
    width: 100%;
    margin: 0;
    justify-items: center;
}

/* Ordner Optionen */
.main-folder-option,
.subfolder-option {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Versteckte Radio-Inputs */
.main-folder-option input[type="radio"],
.subfolder-option input[type="radio"] {
    display: none;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Bild-Stile */
.main-folder-option img,
.subfolder-option img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
    border-radius: 0;
    display: block;
    position: relative;
    cursor: pointer;
    border: none;
}

/* Hover-Effekt für Bilder */
.main-folder-option img:hover,
.subfolder-option img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.6));
}

/* Ausgewählter Zustand */
.main-folder-option img.selected,
.subfolder-option img.selected {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5)) brightness(1.05);
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.6);
}

/* Checkmark (entfernt, da nicht mehr verwendet) */

/* Dateien-Auswahl */
.files-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    width: 100%;
    margin: 0;
}

/* ========================= VERBESSERTE DATEI-DARSTELLUNG FÜR MOBILE ========================= */
.file-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

/* Datei-Hover */
.file-option:hover {
    background: transparent;
    border-color: transparent;
    transform: translateX(5px);
}

.file-option:hover .file-icon-small {
    background: rgba(212, 165, 116, 0.1);
}

/* Datei-Checkbox */
.file-checkbox {
    position: relative;
    flex-shrink: 0;
}

.file-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--accent-green);
    cursor: pointer;
    transform: scale(1.2);
}

.file-info-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

.file-icon-small {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.file-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.file-details strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--chalk-color);
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 5px;
    font-size: 0.85rem;
    color: rgba(245, 245, 220, 0.7);
    align-items: center;
}

.file-type {
    background: rgba(66, 102, 59, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.file-ext {
    background: rgba(186, 140, 99, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.file-size {
    color: rgba(245, 245, 220, 0.8);
    white-space: nowrap;
}

.download-count {
    color: var(--wood-light);
    white-space: nowrap;
}

/* ========================= DOWNLOAD-BEREICH - MOBILE OPTIMIERUNG ========================= */
@media (max-width: 768px) {
    /* Hauptordner Grid - 2 nebeneinander auf Mobile */
    .main-folders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 3px 0;
    }
    
    /* Ordner-Bilder auf Mobile */
    .main-folder-option img,
    .subfolder-option img {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 1/1 !important;
        object-fit: contain !important;
    }
    
    /* Sub-Ordner Grid - 2 nebeneinander auf Mobile */
    .subfolders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 3px 0;
    }
    
    /* Sub-Ordner Bilder auf Mobile */
    .subfolder-option img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        object-fit: contain !important;
    }
    
    /* Dateien-Auswahl auf Mobile */
    .files-selection {
        gap: 8px;
    }
    
    .file-option {
        padding: 10px;
        gap: 12px;
    }
    
    .file-info-compact {
        gap: 12px;
    }
    
    .file-icon-small {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .file-details strong {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .file-meta {
        gap: 8px;
        font-size: 0.8rem;
    }
    
    .file-type,
    .file-ext {
        padding: 2px 6px;
        font-size: 0.75rem;
    }
}

/* Extra kleine Smartphones */
@media (max-width: 480px) {
    .main-folders-grid {
        gap: 10px;
    }
    
    .main-folder-option img,
    .subfolder-option img {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .subfolders-grid {
        gap: 8px;
    }
    
    .subfolder-option img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Dateien auf kleinen Bildschirmen */
    .file-option {
        padding: 8px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .file-checkbox {
        order: 1;
    }
    
    .file-info-compact {
        order: 2;
        width: calc(100% - 40px);
        gap: 10px;
    }
    
    .file-icon-small {
        width: 60px;
        height: 60px;
    }
    
    .file-details strong {
        font-size: 0.95rem;
        line-height: 1.3;
        hyphens: auto;
    }
    
    .file-meta {
        gap: 6px;
        font-size: 0.75rem;
    }
    
    .file-type,
    .file-ext,
    .file-size,
    .download-count {
        font-size: 0.7rem;
    }
    
    /* Spezielle Optimierung für den Download-Bereich */
    .download-school .form-group input[type="text"],
    .download-school .form-group input[type="email"] {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Sehr kleine Smartphones */
@media (max-width: 360px) {
    .main-folders-grid,
    .subfolders-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-folder-option img,
    .subfolder-option img {
        width: 100% !important;
        max-width: 100% !important;
        max-width: 140px !important;
        margin: 0 auto;
    }
    
    .subfolder-option img {
        width: 100% !important;
        max-width: 100% !important;
        max-width: 120px !important;
        margin: 0 auto;
    }
    
    /* Dateien auf sehr kleinen Bildschirmen */
    .file-info-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .file-icon-small {
        width: 100%;
        height: 120px;
        margin-bottom: 5px;
    }
    
    .file-details {
        width: 100%;
    }
    
    .file-details strong {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .file-meta {
        justify-content: center;
        gap: 5px;
    }
    
    .file-type,
    .file-ext {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
}

/* ========================= DOWNLOAD SUCCESS OPTIMIERUNG ========================= */
.download-success {
    background: linear-gradient(135deg, 
        rgba(39, 174, 96, 0.15) 0%, 
        rgba(39, 174, 96, 0.05) 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    border: 2px solid rgba(39, 174, 96, 0.3);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 60px;
    color: var(--accent-green);
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.download-success h3 {
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message {
    color: rgba(245, 245, 220, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.success-note {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    color: rgba(245, 245, 220, 0.8);
    font-size: 0.95rem;
    border-left: 3px solid var(--wood-light);
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-green);
    color: white;
}

.btn-primary:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--wood-light);
    border-color: var(--wood-light);
}

.btn-secondary:hover {
    background: rgba(186, 140, 99, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .download-success {
        padding: 25px 20px;
    }
    
    .success-icon {
        font-size: 50px;
    }
    
    .download-success h3 {
        font-size: 1.5rem;
    }
    
    .success-message {
        font-size: 1rem;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ========================= OPTIMIERTES RECAPTCHA - EINHEITLICH FÜR ALLE ========================= */

/* ALLGEMEINE RECAPTCHA-CONTAINER STYLES - FÜR ALLE FORMULARE GLEICH */
.recaptcha-container,
.newsletter-content .recaptcha-container,
.unsubscribe-recaptcha,
.download-school .recaptcha-container,
.contact-school .recaptcha-container {
    margin: 20px 0;
    text-align: center;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    box-sizing: border-box;
    overflow: visible;
}

/* ReCAPTCHA für PC - größere Darstellung */
@media (min-width: 769px) {
    .g-recaptcha {
        transform: scale(1.1);
        transform-origin: center center;
        margin: 0 auto;
        display: inline-block;
        position: relative;
    }
    
    .recaptcha-container,
    .newsletter-content .recaptcha-container,
    .unsubscribe-recaptcha,
    .download-school .recaptcha-container,
    .contact-school .recaptcha-container {
        padding: 20px;
        border-width: 3px;
    }
}

/* ReCAPTCHA für Mobile - perfekte Ausrichtung */
@media (max-width: 768px) {
    .recaptcha-container,
    .newsletter-content .recaptcha-container,
    .unsubscribe-recaptcha,
    .download-school .recaptcha-container,
    .contact-school .recaptcha-container {
        padding: 15px 5px;
        margin: 15px 0;
        overflow: visible;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        border: 2px solid rgba(212, 165, 116, 0.3);
    }
    
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center center;
        margin: 0 auto;
        display: block;
        width: 304px;
        max-width: 100%;
        height: 78px;
        overflow: visible;
    }
    
    .g-recaptcha > div {
        width: 304px;
        max-width: 100%;
        height: 78px;
        margin: 0 auto;
        display: block;
    }
    
    .g-recaptcha iframe {
        width: 304px;
        max-width: 100%;
        height: 78px;
        margin: 0 auto;
        display: block;
    }
}

/* Extra kleine Smartphones */
@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
    
    .recaptcha-container,
    .newsletter-content .recaptcha-container,
    .unsubscribe-recaptcha,
    .download-school .recaptcha-container,
    .contact-school .recaptcha-container {
        padding: 12px 5px;
        margin: 12px 0;
    }
}

/* Sehr kleine Smartphones */
@media (max-width: 360px) {
    .g-recaptcha {
        transform: scale(0.78);
    }
    
    .recaptcha-container,
    .newsletter-content .recaptcha-container,
    .unsubscribe-recaptcha,
    .download-school .recaptcha-container,
    .contact-school .recaptcha-container {
        padding: 10px 5px;
        margin: 10px 0;
    }
}

/* ========================= VERBESSERTE LEGAL-LINKS ========================= */
.legal-inline-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -30px;
    z-index: 2;
    padding: 0 20px;
    width: 100%;
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-links a.legal-link {
    color: var(--chalk-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
    text-align: center;
    min-width: 140px;
    display: inline-block;
    flex: 0 0 auto;
}

.legal-links a.legal-link:hover {
    color: var(--wood);
    border-color: var(--wood);
    background-color: rgba(186, 140, 99, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.legal-images a .legal-link {
    display: none;
    color: var(--chalk-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    min-width: 140px;
    display: inline-block;
    flex: 0 0 auto;
}

.legal-images a .legal-link:hover {
    color: var(--wood);
    border-color: var(--wood);
    background-color: rgba(186, 140, 99, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.legal-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-images a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    min-height: 60px;
    position: relative;
    text-decoration: none;
}

.legal-images a img {
    width: auto;
    height: 105px;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.legal-images a:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* ========================= LEGAL-LINKS MOBILE ========================= */
@media (max-width: 768px) {
    .legal-images {
        gap: 25px;
        padding: 0 15px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
   
    .legal-images a {
        flex: 1;
        max-width: 33.333%;
        justify-content: center;
        min-height: 80px;
    }
   
    .legal-images a img {
        height: 75px !important;
        max-width: 100%;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
   
    .legal-images a:hover img {
        transform: scale(1.08);
        filter: brightness(1.08) drop-shadow(0 3px 6px rgba(0,0,0,0.4));
    }
   
    .legal-links {
        gap: 20px;
        padding: 0 15px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
   
    .legal-links a.legal-link,
    .legal-images a .legal-link {
        font-size: 1.05rem;
        padding: 15px 20px;
        min-width: 120px;
        margin: 0;
        flex: 1;
        max-width: 33.333%;
    }
   
    .legal-inline-frame {
        flex-wrap: nowrap;
        gap: 0;
        margin-top: -25px;
        justify-content: center;
        padding: 0 15px;
    }
   
    .legal-inline-frame a {
        flex: 1;
        max-width: 33.333%;
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 80px;
    }
   
    .legal-inline-frame a img {
        max-height: 100px !important;
        max-width: 100%;
        height: auto;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
   
    .legal-inline-frame a:hover img {
        transform: scale(1.08);
        filter: brightness(1.08) drop-shadow(0 3px 6px rgba(0,0,0,0.4));
    }
}

/* Extra kleine Smartphones für Legal-Links */
@media (max-width: 480px) {
    .legal-images {
        gap: 15px;
    }
   
    .legal-images a img {
        height: 65px !important;
    }
   
    .legal-inline-frame a img {
        max-height: 90px !important;
    }
   
    .legal-links a.legal-link,
    .legal-images a .legal-link {
        font-size: 1rem;
        padding: 14px 16px;
        min-width: 100px;
    }
}

/* ========================= HOLZRAHMEN & TAFEL ========================= */
.chalkboard-frame {
    width: 100%;
    max-width: 900px;
    border-radius: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    margin-top: -10px;
    overflow: hidden;
    background-color: var(--wood);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.05) 1px,
        transparent 1px,
        transparent 6px
    );
    box-shadow: var(--inner-shadow), var(--shadow-medium);
}

.chalkboard {
    width: 100%;
    max-width: 860px;
    border-radius: 20px;
    background: var(--chalkboard-color);
    background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.03), transparent 40%),
                      radial-gradient(circle at 70% 60%, rgba(255,255,255,0.02), transparent 45%);
    color: var(--chalk-color);
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    padding: 40px 35px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ========================= LISTEN-STYLES OPTIMIERT ========================= */
.chalkboard ul,
.chalkboard ol {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.chalkboard li {
    padding-left: 0;
    margin-bottom: 8px;
    line-height: 1.6;
    color: rgba(245, 245, 220, 0.9);
    font-family: var(--font-body);
    list-style: none;
}

/* Entferne Punkte bei Listen */
.chalkboard ul li {
    list-style: none;
}

.chalkboard ol li {
    list-style: none;
}

.page-content li,
.download-step li,
.faq-item li {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 6px 10px 6px 15px;
    margin-bottom: 6px;
    border-left: 3px solid rgba(212, 165, 116, 0.3);
    transition: all 0.3s ease;
    font-family: var(--font-body);
    list-style: none;
}

.page-content li:hover,
.download-step li:hover,
.faq-item li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(212, 165, 116, 0.6);
    transform: translateX(3px);
}

/* ========================= INDEX – SOCIAL ========================= */
.social-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #f5f5dc;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    font-weight: 500;
}

.social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 70%;
    margin: 0 auto;
}

.social-icons a {
    display: flex;
    justify-content: center;
    width: 85%;
    transition: transform 0.3s ease;
}

.social-icons a img {
    width: 85%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ========================= SOCIAL-BUTTONS DISABLED (NOCIAL) ========================= */
.social-button-disabled {
    position: relative;
    cursor: pointer !important;
}

.social-button-disabled:hover {
    filter: brightness(0.9);
    opacity: 0.8;
    transform: scale(1.02);
}

.social-button-disabled img {
    pointer-events: none;
    filter: grayscale(30%) brightness(0.85) !important;
    transition: all 0.3s ease !important;
}

.social-button-disabled:hover img {
    filter: grayscale(20%) brightness(0.9) !important;
}

/* ========================= SEITENINHALT ========================= */
.header-with-image {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
}

.header-with-image img.top {
    width: 28%;
    height: auto;
    flex-shrink: 0;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    border: 3px solid var(--wood-light);
}

/* ========================= HEADER-TITLE ========================= */
.header-title {
    flex: 1;
    text-align: center;
    padding: 20px;
    background:
        linear-gradient(135deg,
            rgba(66, 102, 59, 0.9) 0%,
            rgba(66, 102, 59, 0.7) 50%,
            rgba(66, 102, 59, 0.9) 100%
        );
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 2px rgba(212, 165, 116, 0.3),
        var(--shadow-heavy);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--wood-light);
}

.header-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        var(--wood-light) 0%,
        var(--wood-dark) 50%,
        var(--wood-light) 100%);
    border-radius: 20px 20px 0 0;
}

.header-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        var(--wood-light) 0%,
        var(--wood-dark) 50%,
        var(--wood-light) 100%);
    border-radius: 0 0 20px 20px;
}

.header-title h2 {
    font-size: 2.6rem;
    margin: 0 0 10px 0;
    padding-bottom: 15px;
    display: inline-block;
    color: var(--chalk-color);
    text-shadow:
        2px 2px 4px rgba(0,0,0,0.5),
        0 0 10px rgba(212, 165, 116, 0.3);
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    position: relative;
    border-bottom: 3px dashed rgba(212, 165, 116, 0.5);
    font-weight: 600;
}

.header-title h2::before,
.header-title h2::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wood-light);
    font-size: 1.8rem;
    opacity: 0.8;
}

.header-title h2::before {
    left: -40px;
}

.header-title h2::after {
    right: -40px;
}

.header-title p.subtitle {
    color: rgba(245, 245, 220, 0.9);
    font-size: 1.4rem;
    font-family: var(--font-heading);
    margin-top: 10px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-weight: 400;
}

/* ========================= PAGE-CONTENT ========================= */
.page-content {
    width: 100%;
    font-size: 1.15rem;
    line-height: 1.7;
    background:
        linear-gradient(90deg,
            rgba(39, 174, 96, 0.15) 0%,
            rgba(39, 174, 96, 0.05) 10px,
            rgba(0, 0, 0, 0.2) 10px,
            rgba(0, 0, 0, 0.2) 100%
        );
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border-left: none;
    box-shadow:
        inset 5px 0 0 rgba(39, 174, 96, 0.3),
        inset 0 0 0 1px rgba(255,255,255,0.05),
        var(--shadow-light);
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

.page-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 5px;
    background: linear-gradient(
        to bottom,
        var(--accent-green),
        var(--wood-light)
    );
    border-radius: 0 3px 3px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.page-content:hover {
    background:
        linear-gradient(90deg,
            rgba(39, 174, 96, 0.2) 0%,
            rgba(39, 174, 96, 0.1) 10px,
            rgba(0, 0, 0, 0.25) 10px,
            rgba(0, 0, 0, 0.25) 100%
        );
    transform: translateY(-3px);
    box-shadow:
        inset 5px 0 0 rgba(39, 174, 96, 0.4),
        inset 0 0 0 1px rgba(255,255,255,0.1),
        var(--shadow-medium);
}

.page-content p {
    margin-bottom: 1.5rem;
    color: rgba(245, 245, 220, 0.9);
    font-family: var(--font-body);
}

.page-content p:last-child {
    margin-bottom: 0;
}

/* ========================= DOWNLOAD-STEP ========================= */
.download-step {
    background:
        linear-gradient(90deg,
            rgba(186, 140, 99, 0.15) 0%,
            rgba(186, 140, 99, 0.05) 10px,
            rgba(0, 0, 0, 0.2) 10px,
            rgba(0, 0, 0, 0.2) 100%
        );
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border-left: none;
    box-shadow:
        inset 5px 0 0 rgba(186, 140, 99, 0.3),
        inset 0 0 0 1px rgba(255,255,255,0.05),
        var(--shadow-light);
    position: relative;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.download-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 5px;
    background: linear-gradient(
        to bottom,
        var(--wood-light),
        var(--wood-dark)
    );
    border-radius: 0 3px 3px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.download-step:hover {
    background:
        linear-gradient(90deg,
            rgba(186, 140, 99, 0.2) 0%,
            rgba(186, 140, 99, 0.1) 10px,
            rgba(0, 0, 0, 0.25) 10px,
            rgba(0, 0, 0, 0.25) 100%
        );
    transform: translateY(-3px);
    box-shadow:
        inset 5px 0 0 rgba(186, 140, 99, 0.4),
        inset 0 0 0 1px rgba(255,255,255,0.1),
        var(--shadow-medium);
}

.download-step h3 {
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.download-step p {
    color: rgba(245, 245, 220, 0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================= FAQ-ITEMS ========================= */
.faq-item {
    background:
        linear-gradient(90deg,
            rgba(186, 140, 99, 0.1) 0%,
            rgba(186, 140, 99, 0.05) 8px,
            rgba(0, 0, 0, 0.15) 8px,
            rgba(0, 0, 0, 0.15) 100%
        );
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: none;
    box-shadow:
        inset 4px 0 0 rgba(186, 140, 99, 0.2),
        inset 0 0 0 1px rgba(255,255,255,0.03);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.faq-item:hover {
    background:
        linear-gradient(90deg,
            rgba(186, 140, 99, 0.15) 0%,
            rgba(186, 140, 99, 0.08) 8px,
            rgba(0, 0, 0, 0.2) 8px,
            rgba(0, 0, 0, 0.2) 100%
        );
    transform: translateY(-2px);
    box-shadow:
        inset 4px 0 0 rgba(186, 140, 99, 0.3),
        inset 0 0 0 1px rgba(255,255,255,0.05),
        var(--shadow-light);
}

.faq-question {
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.faq-answer {
    color: rgba(245, 245, 220, 0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}

/* ========================= MELDUNGEN ========================= */
.message-school {
    padding: 18px 30px;
    border-radius: 20px;
    background: var(--chalkboard-color);
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-shadow: var(--shadow-heavy);
    border: 4px solid rgba(255,255,255,0.2);
    margin: 20px auto;
    max-width: 800px;
    animation: slideIn 0.5s ease-out;
    font-weight: 500;
}

.message-school.success {
    border-color: var(--success-color);
    box-shadow: 0 0 25px rgba(0,204,68,0.4);
    background: rgba(39, 174, 96, 0.2);
    border-left-color: var(--success-color);
    color: #d4f4e6;
}

.message-school.error {
    border-color: var(--error-color);
    box-shadow: 0 0 25px rgba(255,68,68,0.4);
    background: rgba(231, 76, 60, 0.2);
    border-left-color: #e74c3c;
    color: #f8d7da;
}

.message-school.info {
    border-color: #3498db;
    box-shadow: 0 0 25px rgba(52,152,219,0.4);
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
    color: #d1ecf1;
}

.message-school.warning {
    border-color: #f39c12;
    box-shadow: 0 0 25px rgba(243,156,18,0.4);
    background: rgba(243, 156, 18, 0.2);
    border-left-color: #f39c12;
    color: #fff3cd;
}

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

/* ========================= SCHULTAFEL-FORMULARE ========================= */
.contact-school,
.download-school {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    border: 2px dashed rgba(212, 165, 116, 0.3);
    position: relative;
    font-family: var(--font-body);
    width: 100%;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.05),
        var(--shadow-medium);
}

.chalk-doodle {
    position: absolute;
    font-size: 40px;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
    font-family: var(--font-heading);
}

.doodle-1 { top: 10%; left: 5%; transform: rotate(-15deg); }
.doodle-2 { top: 15%; right: 5%; transform: rotate(15deg); }
.doodle-3 { bottom: 10%; left: 10%; transform: rotate(-10deg); }
.doodle-4 { bottom: 15%; right: 10%; transform: rotate(10deg); }

.school-title,
.contact-title,
.download-title {
    font-family: var(--font-heading);
    color: var(--chalk-color);
    text-align: center;
    margin: 20px 0 30px;
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    font-weight: 600;
}

.school-title:after,
.contact-title:after,
.download-title:after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: var(--chalk-color);
    margin: 10px auto;
    border-radius: 2px;
}

/* ========================= FORMULARE ALLGEMEIN ========================= */
.contact-form,
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 250px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--chalk-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 500;
}

/* ========================= OPTIMIERTE INPUT-FELDER ========================= */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 15px;
    border: none;
    background: rgba(245,245,220,0.9);
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--dark);
    box-shadow: var(--inner-shadow);
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Mobile-Optimierung für Input-Felder */
@media (max-width: 768px) {
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 1rem !important;
        padding: 14px 16px !important;
        border-radius: 12px !important;
        min-height: 48px !important;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group {
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .form-row {
        gap: 15px !important;
    }
    
    .form-group label {
        font-size: 1.2rem !important;
    }
}

/* Extra kleine Smartphones */
@media (max-width: 480px) {
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 0.95rem !important;
        padding: 12px 14px !important;
        min-height: 44px !important;
        border-radius: 10px !important;
    }
    
    .form-group label {
        font-size: 1.1rem !important;
    }
}

/* Verhindert Zoom beim Fokus auf iOS */
@media (max-width: 768px) {
    .form-group input[type="text"]:focus,
    .form-group input[type="email"]:focus,
    .form-group textarea:focus {
        font-size: 16px !important;
    }
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

/* ========================= CHECKBOXEN ========================= */
.checkbox-school {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.2rem;
    color: var(--chalk-color);
    background: rgba(186, 140, 99, 0.1);
    border-radius: 8px;
    padding: 15px;
    box-shadow:
        inset 4px 0 0 rgba(212, 165, 116, 0.3),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    margin: 15px 0;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.checkbox-school:hover {
    background: rgba(186, 140, 99, 0.15);
    box-shadow:
        inset 4px 0 0 rgba(212, 165, 116, 0.4),
        inset 0 0 0 1px rgba(255,255,255,0.08);
}

.checkbox-school input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--accent-green);
    transform: scale(1.3);
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-school label {
    flex: 1;
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.4;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-school a {
    color: #d4a574;
    text-decoration: underline;
    font-weight: bold;
    margin: 0 3px;
}

.checkbox-school a:hover {
    color: #f5f5dc;
}

/* ========================= COOKIE HINWEISE - RECAPTCHA NOTICE ========================= */
.recaptcha-notice {
    background: linear-gradient(135deg, 
        rgba(139, 111, 71, 0.95) 0%, 
        rgba(66, 102, 59, 0.9) 100%);
    border-radius: 20px;
    padding: 35px 30px;
    margin: 35px 0;
    text-align: center;
    border: 4px solid var(--wood-dark);
    color: #f8f8e8;
    font-family: var(--font-body);
    box-shadow: 
        var(--shadow-heavy),
        inset 0 0 0 2px rgba(245, 245, 220, 0.1),
        inset 0 0 40px rgba(139, 111, 71, 0.2);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(66, 102, 59, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
}

.recaptcha-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        var(--accent-green) 0%,
        var(--wood-light) 50%,
        var(--accent-green) 100%);
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.recaptcha-notice h3 {
    margin: 0 0 20px 0;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.7),
        0 0 15px rgba(212, 165, 116, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.recaptcha-notice h3 i {
    color: var(--wood-light);
    font-size: 1.8rem;
    text-shadow: 0 0 15px rgba(212, 165, 116, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.recaptcha-notice > div {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.recaptcha-notice img {
    max-width: 320px !important;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: 
        drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5))
        brightness(1.1)
        contrast(1.05);
    border-radius: 12px;
    border: 3px solid var(--wood-dark);
    padding: 8px;
    background: linear-gradient(135deg, 
        rgba(245, 245, 220, 0.15) 0%, 
        rgba(212, 165, 116, 0.1) 100%);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.recaptcha-notice:hover img {
    filter: 
        drop-shadow(0 12px 25px rgba(0, 0, 0, 0.6))
        brightness(1.15)
        contrast(1.1);
    transform: scale(1.05);
    border-color: var(--wood-light);
}

.recaptcha-notice p {
    margin: 18px 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-body);
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.recaptcha-notice p:last-of-type {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 3px dashed rgba(212, 165, 116, 0.4);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.recaptcha-notice a {
    color: var(--wood-light);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.recaptcha-notice a:hover {
    color: #fff;
    border-bottom: 2px solid var(--accent-green);
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

/* Dekorative Holzelemente */
.recaptcha-notice::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    border-radius: 15px;
    pointer-events: none;
    z-index: 1;
}

/* Bereichsspezifische Akzente */
.contact-school .recaptcha-notice {
    border-left: 6px solid var(--accent-green);
    border-right: 6px solid var(--accent-green);
}

.download-school .recaptcha-notice {
    border-left: 6px solid var(--chalk-green);
    border-right: 6px solid var(--chalk-green);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .recaptcha-notice {
        padding: 30px 25px;
        margin: 30px 0;
    }
    
    .recaptcha-notice h3 {
        font-size: 1.7rem;
    }
    
    .recaptcha-notice img {
        max-width: 260px !important;
    }
    
    .recaptcha-notice p {
        font-size: 1.05rem;
    }
    
    .recaptcha-notice a {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .recaptcha-notice {
        padding: 25px 20px;
        margin: 25px 0;
    }
    
    .recaptcha-notice h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .recaptcha-notice img {
        max-width: 220px !important;
    }
    
    .recaptcha-notice::after {
        top: 8px;
        right: 8px;
        bottom: 8px;
        left: 8px;
    }
}

/* ========================= FORMULAR-BUTTONS - OPTIMIERT FÜR GLEICHE GRÖSSE ========================= */
.form-submit-btn-school {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    margin: 20px auto 0 !important;
    padding: 0 !important;
    transition: all 0.4s ease !important;
    display: block !important;
    width: 100% !important;
    max-width: 320px !important; /* Gleiche Größe für alle Buttons */
    position: relative !important;
    z-index: 10 !important;
}

/* Deaktivierter Button-Zustand */
.form-submit-btn-school:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.5) brightness(0.8) !important;
}

.form-submit-btn-school:disabled:hover {
    transform: none !important;
}

.form-submit-btn-school:disabled img {
    filter: grayscale(0.5) brightness(0.8) !important;
}

/* Aktivierter Button-Zustand */
.form-submit-btn-school:not(:disabled):hover {
    transform: scale(1.08) !important;
}

.form-submit-btn-school:not(:disabled):hover img {
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5)) brightness(1.05) !important;
    transform: scale(1.02);
}

.form-submit-btn-school img {
    width: 100% !important;
    height: auto !important;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4)) !important;
    display: block !important;
    pointer-events: none !important;
    transition: all 0.4s ease !important;
    border-radius: 12px;
}

/* Spezifische Styles für Newsletter-Buttons - GLEICHE GRÖSSE */
.newsletter-submit-btn {
    max-width: 320px !important; /* Gleiche Größe wie andere Buttons */
}

.unsubscribe-submit-btn {
    max-width: 320px !important; /* Gleiche Größe wie andere Buttons */
}

/* ========================= MOBILE OPTIMIERUNG FÜR BUTTONS ========================= */
@media (max-width: 768px) {
    .form-submit-btn-school {
        max-width: 280px !important;
        margin: 15px auto 0 !important;
    }
    
    .newsletter-submit-btn,
    .unsubscribe-submit-btn {
        max-width: 280px !important; /* Gleiche Größe auf Mobile */
    }
}

@media (max-width: 480px) {
    .form-submit-btn-school {
        max-width: 250px !important;
    }
    
    .newsletter-submit-btn,
    .unsubscribe-submit-btn {
        max-width: 250px !important; /* Gleiche Größe auf kleinen Bildschirmen */
    }
}

.privacy-note-school {
    text-align: center;
    margin-top: 20px;
    color: rgba(245, 245, 220, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: var(--font-body);
}

/* ========================= FAQ ========================= */
.faq-school {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed rgba(212, 165, 116, 0.3);
}

.faq-title {
    font-family: var(--font-heading);
    color: var(--chalk-color);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ========================= NEWSLETTER TAB SYSTEM - VOLLSTÄNDIG ÜBERARBEITET ========================= */
.newsletter-tab-system {
    width: 100%;
    position: relative;
    margin: 30px 0 0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 1px rgba(212, 165, 116, 0.2),
        var(--shadow-light);
    background: linear-gradient(135deg, 
        rgba(66, 102, 59, 0.1) 0%,
        rgba(186, 140, 99, 0.1) 100%);
}

.newsletter-tabs {
    display: flex;
    gap: 0;
    background: transparent;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    backdrop-filter: blur(5px);
}

.newsletter-tab {
    flex: 1;
    padding: 22px 15px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--chalk-color);
    background: var(--tab-gradient);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(212, 165, 116, 0.2);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 1;
}

.newsletter-tab:last-child {
    border-right: none;
}

/* Hover Effekt für Tabs */
.newsletter-tab:hover {
    background: var(--tab-hover-gradient);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-tab:hover::before {
    opacity: 1;
}

/* Aktiver Tab */
.newsletter-tab.active {
    background: var(--tab-active-gradient);
    color: var(--chalk-color);
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    position: relative;
    z-index: 2;
    transform: translateY(0);
}

.newsletter-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-green) 0%,
        var(--wood-light) 50%,
        var(--accent-green) 100%);
    z-index: 3;
    animation: tabGlow 2s ease-in-out infinite alternate;
}

@keyframes tabGlow {
    0% {
        background: linear-gradient(90deg, 
            var(--accent-green) 0%,
            var(--wood-light) 50%,
            var(--accent-green) 100%);
    }
    100% {
        background: linear-gradient(90deg, 
            var(--wood-light) 0%,
            var(--accent-green) 50%,
            var(--wood-light) 100%);
    }
}

.newsletter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    z-index: 3;
}

.newsletter-tab i {
    font-size: 1.3em;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.newsletter-tab:hover i {
    transform: scale(1.15) rotate(5deg);
    color: var(--wood-light);
}

.newsletter-tab.active i {
    transform: scale(1.2);
    color: var(--wood-light);
    filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.5));
}

/* Newsletter Content - Perfekt bündig mit Tabs */
.newsletter-content {
    width: 100%;
    font-size: 1.15rem;
    line-height: 1.7;
    background:
        linear-gradient(135deg,
            rgba(39, 174, 96, 0.15) 0%,
            rgba(186, 140, 99, 0.1) 10px,
            rgba(0, 0, 0, 0.2) 10px,
            rgba(0, 0, 0, 0.2) 100%
        );
    border-radius: 0 0 20px 20px;
    padding: 40px 35px;
    margin: 0;
    border-left: none;
    border-top: none;
    box-shadow:
        inset 5px 0 0 rgba(39, 174, 96, 0.3),
        inset 0 -5px 0 rgba(212, 165, 116, 0.2),
        inset 0 0 0 1px rgba(255,255,255,0.05),
        var(--shadow-medium);
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
    min-height: 500px;
    backdrop-filter: blur(3px);
}

.newsletter-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(
        to bottom,
        var(--accent-green),
        var(--wood-light),
        var(--accent-green)
    );
    border-radius: 0 3px 3px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 1;
}

.newsletter-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(39, 174, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(186, 140, 99, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.newsletter-content.no-margin-top {
    margin-top: 0 !important;
}

.newsletter-content:hover {
    background:
        linear-gradient(135deg,
            rgba(39, 174, 96, 0.2) 0%,
            rgba(186, 140, 99, 0.15) 10px,
            rgba(0, 0, 0, 0.25) 10px,
            rgba(0, 0, 0, 0.25) 100%
        );
    box-shadow:
        inset 5px 0 0 rgba(39, 174, 96, 0.4),
        inset 0 -5px 0 rgba(212, 165, 116, 0.3),
        inset 0 0 0 1px rgba(255,255,255,0.1),
        var(--shadow-heavy);
}

.newsletter-form-section {
    display: none;
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 2;
}

.newsletter-form-section.active {
    display: block;
}

/* Newsletter Form Wrapper */
.newsletter-form-wrapper,
.unsubscribe-form-wrapper {
    animation: fadeIn 0.6s ease;
}

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

/* Form Section Titles */
.form-section-title {
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.form-section-title i {
    color: var(--wood-light);
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.3));
}

.form-description {
    color: rgba(245, 245, 220, 0.9);
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 35px;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

/* Unsubscribe Form - Farben angepasst */
.unsubscribe-form-wrapper {
    background: rgba(66, 102, 59, 0.15);
    border-radius: 15px;
    padding: 35px 30px;
    margin: 0;
    border: 2px solid rgba(212, 165, 116, 0.2);
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.1),
        var(--shadow-light);
    position: relative;
    z-index: 2;
}

.unsubscribe-info {
    background: rgba(66, 102, 59, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid var(--wood-light);
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.05),
        var(--shadow-light);
}

.unsubscribe-info h4 {
    color: var(--wood-light);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.unsubscribe-info p {
    color: rgba(245, 245, 220, 0.9);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Unsubscribe Form Anpassungen */
.unsubscribe-form .form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.unsubscribe-email-input {
    padding: 18px 22px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    font-size: 1.15rem;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    color: var(--chalk-color);
    font-family: var(--font-body);
    transition: all 0.3s ease;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.unsubscribe-email-input:focus {
    border-color: var(--accent-green);
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 15px rgba(39, 174, 96, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.unsubscribe-email-input::placeholder {
    color: rgba(245, 245, 220, 0.6);
    font-style: italic;
}

.unsubscribe-note {
    margin-top: 20px;
    font-size: 1rem;
    color: rgba(245, 245, 220, 0.8);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--accent-green);
}

.unsubscribe-note i {
    color: var(--accent-green);
    font-size: 1.2rem;
}

.direct-contact-info {
    background: rgba(212, 165, 116, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border-left: 5px solid var(--wood-light);
    box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.05),
        var(--shadow-light);
}

.direct-contact-info h4 {
    color: var(--wood-light);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.direct-contact-info p {
    color: rgba(245, 245, 220, 0.9);
    font-size: 1.05rem;
    line-height: 1.5;
}

.direct-contact-info a {
    color: var(--wood-light);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.direct-contact-info a:hover {
    color: #fff;
    border-bottom: 2px solid var(--accent-green);
}

/* ========================= RESPONSIVE ANPASSUNGEN FÜR STARTSEITE ========================= */
@media (max-width: 768px) {
    /* Hero Bereich */
    .homepage-hero {
        padding: 30px 20px;
        margin: 15px 0 30px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-title-main {
        font-size: 1.8rem;
    }
    
    .hero-title-accent {
        font-size: 2.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Social Section */
    .social-section {
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .social-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .title-icon {
        font-size: 2rem;
    }
    
    .social-description {
        font-size: 1.1rem;
    }
    
    /* Social Grid */
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        padding: 15px;
    }
    
    .social-button {
        height: 240px;
        padding: 15px;
    }
    
    .social-button-inner {
        height: 150px;
    }
    
    .social-button-label {
        font-size: 1.5rem;
    }
    
    /* Highlights */
    .homepage-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .highlight-card {
        padding: 25px;
    }
    
    .highlight-icon {
        font-size: 3rem;
    }
    
    .highlight-card h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title-accent {
        font-size: 2.2rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-button {
        height: 220px;
    }
    
    .overlay-text {
        font-size: 1.5rem;
    }
    
    .social-button-hover {
        font-size: 1.2rem;
    }
}

/* ========================= RESPONSIVE ANPASSUNGEN FÜR 404-SEITE ========================= */
@media (max-width: 768px) {
    .page-404-optimized {
        padding: 10px;
    }
    
    .error-illustration {
        margin: 30px 0;
    }
    
    .magnifying-glass {
        width: 120px;
        height: 120px;
    }
    
    .glass-circle {
        width: 80px;
        height: 80px;
        border-width: 6px;
    }
    
    .search-line {
        width: 50px;
        height: 6px;
    }
    
    .error-message {
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    .error-actions {
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .error-actions h3 {
        font-size: 1.6rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-btn {
        min-height: 70px;
        font-size: 1.2rem;
    }
    
    .error-tips {
        padding: 20px;
    }
    
    .error-tips h4 {
        font-size: 1.4rem;
    }
    
    .error-suggestions {
        padding: 20px;
    }
    
    .suggestion-links {
        grid-template-columns: 1fr;
    }
    
    .floating-letters span {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .magnifying-glass {
        width: 100px;
        height: 100px;
    }
    
    .glass-circle {
        width: 70px;
        height: 70px;
    }
    
    .french-flag {
        width: 30px;
        height: 22px;
    }
    
    .floating-letters {
        gap: 10px;
    }
    
    .floating-letters span {
        font-size: 1.8rem;
    }
    
    .tip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ========================= RESPONSIVE ANPASSUNGEN FÜR NEWSLETTER ========================= */
@media (max-width: 768px) {
    .newsletter-tab-system {
        margin: 25px 0 0;
        border-radius: 15px 15px 0 0;
    }
    
    .newsletter-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        background: transparent;
        border-radius: 15px 15px 0 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        width: 100%;
        display: flex;
    }
    
    .newsletter-tab {
        flex: 1;
        padding: 18px 12px;
        font-size: 1.2rem;
        min-height: 70px;
        border-right: 1px solid rgba(212, 165, 116, 0.2);
        border-bottom: none;
        gap: 10px;
    }
    
    .newsletter-tab:last-child {
        border-right: none;
    }
    
    .newsletter-tab.active::before {
        left: 0;
        right: 0;
        height: 4px;
        width: 100%;
        background: linear-gradient(90deg, var(--accent-green), var(--wood-light));
        top: 0;
        bottom: auto;
    }
    
    .newsletter-content {
        padding: 30px 25px;
        border-radius: 0 0 15px 15px;
        min-height: 450px;
        font-size: 1.05rem;
        margin-top: -1px;
        box-shadow:
            inset 5px 0 0 rgba(39, 174, 96, 0.3),
            inset 0 -4px 0 rgba(212, 165, 116, 0.2),
            inset 0 0 0 1px rgba(255,255,255,0.05),
            var(--shadow-medium);
    }
    
    .unsubscribe-form-wrapper {
        padding: 25px 20px;
    }
    
    .form-section-title {
        font-size: 1.8rem;
    }
    
    .form-description {
        font-size: 1.05rem;
        padding: 0;
    }
    
    .newsletter-submit-btn {
        max-width: 280px;
    }
    
    .unsubscribe-submit-btn {
        max-width: 280px;
    }
    
    /* Sicherstellen, dass auf Mobile keine Lücke ist */
    .newsletter-tab-system {
        margin-bottom: 0;
    }
    
    .newsletter-content {
        margin-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

@media (max-width: 480px) {
    .newsletter-tab {
        padding: 16px 10px;
        font-size: 1.1rem;
        min-height: 65px;
        gap: 8px;
        flex-direction: column;
    }
    
    .newsletter-tab i {
        font-size: 1.3em;
        margin-bottom: 5px;
    }
    
    .newsletter-tab span:not(.fa) {
        font-size: 0.9rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .newsletter-content {
        padding: 25px 20px;
        min-height: 420px;
    }
    
    .unsubscribe-form-wrapper {
        padding: 22px 18px;
    }
    
    .form-section-title {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .form-section-title i {
        font-size: 1.8rem;
    }
    
    .unsubscribe-email-input {
        padding: 16px 18px;
        font-size: 1.05rem;
    }
    
    .newsletter-submit-btn {
        max-width: 250px;
    }
    
    .unsubscribe-submit-btn {
        max-width: 250px;
    }
    
    .direct-contact-info {
        padding: 20px;
    }
    
    .direct-contact-info h4 {
        font-size: 1.3rem;
    }
    
    .unsubscribe-note {
        font-size: 0.95rem;
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .newsletter-tabs {
        flex-direction: column;
        gap: 0;
        border-radius: 15px 15px 0 0;
    }
    
    .newsletter-tab {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px;
        gap: 15px;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    }
    
    .newsletter-tab:last-child {
        border-bottom: none;
    }
    
    .newsletter-tab i {
        margin-bottom: 0;
        font-size: 1.4em;
        width: 24px;
        text-align: center;
    }
    
    .newsletter-content {
        border-radius: 0 0 15px 15px;
        padding: 20px 18px;
    }
    
    .newsletter-tab span:not(.fa) {
        font-size: 1rem;
    }
}

/* ========================= COOKIE BANNER STYLES ========================= */
.cookie-banner-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 1000;
    animation: slideUpBanner 0.5s ease;
}

.cookie-banner {
    background: linear-gradient(135deg, var(--chalk-green) 0%, #2d4a28 100%);
    border-radius: 15px;
    padding: 20px;
    color: var(--chalk-color);
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--wood);
    font-family: var(--font-body);
    position: relative;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cookie-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--chalk-color);
    margin: 0;
    font-weight: 600;
}

.close-cookie-banner {
    background: none;
    border: none;
    color: var(--chalk-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-cookie-banner:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cookie-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: rgba(245, 245, 220, 0.9);
    font-family: var(--font-body);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--accent-green) 0%, #219653 100%);
    color: var(--chalk-color);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #2ecc71 0%, var(--accent-green) 100%);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--chalk-color);
}

.cookie-btn-reject:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    transform: translateY(-2px);
}

.cookie-btn-revoke {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: var(--chalk-color);
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.cookie-btn-revoke:hover {
    background: linear-gradient(135deg, #ffa726 0%, #f39c12 100%);
    transform: translateY(-2px);
}

.cookie-more-info {
    text-align: center;
    margin-top: 10px;
}

.cookie-more-info a {
    color: var(--wood);
    text-decoration: underline;
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.cookie-more-info a:hover {
    color: var(--wood-light);
}

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

.cookie-settings-link {
    color: var(--chalk-green);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    margin: 0;
    display: inline;
    font-family: var(--font-body);
}

.cookie-settings-link:hover {
    color: var(--wood);
}

.cookie-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid var(--wood);
    font-family: var(--font-body);
}

.cookie-details-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--chalk-color);
    font-size: 1rem;
    font-family: var(--font-heading);
}

.cookie-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-body);
}

.cookie-details-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.cookie-details-list li:last-child {
    border-bottom: none;
}

.cookie-details-list i {
    color: var(--wood);
    font-size: 0.9rem;
}

.cookie-icon {
    text-align: center;
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--wood);
}

.copyright {
    color: #000;
    text-align: center;
    padding: 15px 0;
    margin-top: 10px;
    font-family: var(--font-body);
}

.impressum-link {
    color: #000;
    text-decoration: none;
    font-weight: normal;
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-body);
}

.impressum-link:hover {
    text-decoration: underline;
}

.copyright-text {
    font-size: 0.9rem;
    color: #000;
    font-family: var(--font-body);
}

/* ========================= LIGHTBOX ========================= */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
}

/* ========================= CONFETTI ========================= */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--confetti-color);
    opacity: 0;
    animation: fall linear forwards;
    animation-duration: calc(1s + var(--delay) * 1s);
}

@keyframes fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ========================= KREIDE-SPEZIALEFFEKTE ========================= */
.kreide-text {
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
    font-weight: 500;
}

.kreide-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(245, 245, 220, 0.1) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.chalk-underline {
    position: relative;
    display: inline-block;
}

.chalk-underline::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--chalk-color);
    opacity: 0.6;
    transform: scaleX(0.9);
    transform-origin: center;
}

/* ========================= WEITERE RESPONSIVE ANPASSUNGEN ========================= */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
   
    .chalkboard li {
        padding-left: 0;
        margin-bottom: 6px;
    }
   
    .page-content li,
    .download-step li,
    .faq-item li {
        padding: 5px 8px 5px 15px;
        margin-bottom: 5px;
    }
   
    .header-with-image {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
   
    .header-with-image img.top {
        width: 70%;
        max-width: 250px;
        margin-bottom: 0;
    }
   
    .header-title {
        padding: 15px;
        width: 100%;
    }
   
    .header-title h2 {
        font-size: 1.8rem;
        padding-bottom: 12px;
    }
   
    .header-title h2::before,
    .header-title h2::after {
        display: none;
    }
   
    .header-title p.subtitle {
        font-size: 1.1rem;
    }
   
    .message-school {
        font-size: 1.4rem;
        padding: 15px 20px;
    }
   
    .school-title,
    .contact-title,
    .download-title {
        font-size: 2rem;
    }
   
    .faq-title {
        font-size: 1.8rem;
    }
   
    .faq-question {
        font-size: 1.2rem;
    }
   
    .container {
        max-width: 100%;
        padding: 15px 10px;
        width: 100vw;
        margin: 0;
    }
   
    .logo {
        height: 250px;
        border-radius: 25px 25px 0 0;
    }
   
    .chalkboard-frame {
        max-width: 100%;
        padding: 15px 10px;
        border-radius: 25px;
        width: 100%;
    }
   
    .chalkboard {
        max-width: 100%;
        padding: 25px 20px;
        width: 100%;
        font-size: 1rem;
    }
   
    .cookie-banner-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
   
    .cookie-buttons {
        flex-direction: column;
    }
   
    .cookie-btn {
        width: 100%;
    }
   
    .cookie-title {
        font-size: 1.3rem;
    }
   
    .cookie-text {
        font-size: 0.85rem;
    }
}

/* ========================= OPTIMIERTE NOSOCIAL-SEITE ========================= */
.nocial-content-optimized {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

.nocial-header {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, 
        rgba(66, 102, 59, 0.15) 0%, 
        rgba(186, 140, 99, 0.1) 100%);
    border: 2px solid rgba(212, 165, 116, 0.2);
    position: relative;
    overflow: hidden;
}

.nocial-icon-main {
    font-size: 60px;
    margin-bottom: 15px;
    display: block;
    animation: gentleFloat 3s ease-in-out infinite;
}

.nocial-title-main {
    font-family: var(--font-heading);
    color: var(--chalk-color);
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-weight: 600;
}

.nocial-subtitle {
    color: rgba(245, 245, 220, 0.85);
    font-size: 1.2rem;
    font-family: var(--font-body);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Hauptbild - Mobile optimiert */
.nocial-main-image {
    max-width: 400px;
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 3px solid var(--wood-light);
    transition: all 0.3s ease;
}

.nocial-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nocial-main-image:hover img {
    transform: scale(1.02);
}

/* Fließende Inhaltsspalten */
.nocial-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
    padding: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .nocial-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Content Box - Kein Container-in-Container mehr */
.nocial-content-box {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.15) 0%, 
        rgba(0, 0, 0, 0.08) 100%);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(212, 165, 116, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.nocial-content-box:hover {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.12) 100%);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.nocial-content-box h3 {
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 165, 116, 0.3);
    position: relative;
    font-weight: 600;
}

.nocial-content-box h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-green);
}

/* Features Liste - Mobile optimiert */
.nocial-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nocial-features-list li {
    padding: 12px 0;
    color: rgba(245, 245, 220, 0.9);
    font-family: var(--font-body);
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    line-height: 1.5;
}

.nocial-features-list li:last-child {
    border-bottom: none;
}

.nocial-features-list li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================= KORREKTURIERTE BUTTON-GRÖSSEN - OPTIMIERT ========================= */

/* 1. contact-submit-btn als Referenz */
.contact-submit-btn {
    height: var(--btn-height-desktop);
    padding: 0 28px;
    border-radius: var(--btn-radius);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .contact-submit-btn {
        height: var(--btn-height-mobile);
        width: 100%;
    }
}

/* 2. nocial-back-button mit gleicher Größe wie contact-submit-btn */
.nocial-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-height-desktop);
    width: var(--btn-height-desktop); /* quadratisch */
    border-radius: var(--btn-radius);
    background: #f2f2f2;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.nocial-back-button img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.nocial-back-button:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nocial-back-button {
        height: var(--btn-height-mobile);
        width: var(--btn-height-mobile);
    }
}

/* 3. nocial-platform-buttons - UNTEREINANDER mit korrekter Verlinkung */
.nocial-platform-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
}

.nocial-platform-button {
    display: inline-flex; /* WICHTIG: inline-flex statt flex für korrekte Breite */
    align-items: center;
    justify-content: center;
    height: var(--social-btn-height-desktop);
    min-height: var(--social-btn-height-desktop);
    max-width: 100%;
    border-radius: 12px;
    background: transparent !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0;
    border: none;
    cursor: pointer;
}

/* Desktop: Buttons größer */
@media (min-width: 769px) {
    .nocial-platform-button {
        height: var(--social-btn-height-desktop);
        min-height: var(--social-btn-height-desktop);
    }
}

/* Mobile: Buttons kleiner */
@media (max-width: 768px) {
    .nocial-platform-button {
        height: var(--social-btn-height-mobile);
        min-height: var(--social-btn-height-mobile);
    }
}

.nocial-platform-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
}

/* Hover-Effekte */
.nocial-platform-button:hover img {
    transform: scale(1.05);
    filter: brightness(1.08) drop-shadow(0 6px 12px rgba(0,0,0,0.5));
}

/* 4. Mobile Optimierung für Social-Buttons */
@media (max-width: 768px) {
    .nocial-platform-wrapper {
        max-width: 100%;
        gap: 15px;
    }
    
    .nocial-platform-button {
        height: var(--social-btn-height-mobile);
        min-height: var(--social-btn-height-mobile);
    }
}

/* 5. Social-Icons auf der Startseite als Referenz */
.social-icon {
    width: 44px;
    height: 44px;
}

/* 6. Korrektur für die existierenden nocial-platform-buttons */
.nocial-platform-buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    max-width: 400px !important;
    margin: 40px auto !important;
    width: 100% !important;
}

.nocial-platform-buttons a {
    display: inline-flex !important;
    width: auto !important;
    height: var(--social-btn-height-desktop) !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nocial-platform-buttons a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 12px !important;
}

/* Mobile Anpassung für nocial-platform-buttons */
@media (max-width: 768px) {
    .nocial-platform-buttons {
        gap: 15px !important;
    }
    
    .nocial-platform-buttons a {
        height: var(--social-btn-height-mobile) !important;
    }
}

/* 7. Korrektur für den nocial-back-button in der Nocial-Seite */
.nocial-back-optimized {
    margin-top: 50px;
    text-align: center;
}

.nocial-back-optimized .nocial-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-height-desktop);
    width: var(--btn-height-desktop);
    border-radius: var(--btn-radius);
    background: #f2f2f2;
    margin: 0 auto;
}

.nocial-back-optimized .nocial-back-button img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .nocial-back-optimized .nocial-back-button {
        height: var(--btn-height-mobile);
        width: var(--btn-height-mobile);
    }
}

/* 8. Responsive Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .nocial-platform-button {
        height: var(--social-btn-height-mobile);
        min-height: var(--social-btn-height-mobile);
    }
    
    .nocial-platform-wrapper {
        gap: 12px;
    }
    
    .nocial-platform-buttons {
        gap: 12px !important;
    }
}

/* 9. Optional: Gemeinsame Button-Basisklasse für zukünftige Konsistenz */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--btn-radius);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

/* 10. Korrektur für das vorhandene Layout - Verhindere Überlappung */
.chalkboard-frame {
    position: relative;
    z-index: 1;
}

.nocial-platform-wrapper,
.nocial-back-optimized {
    position: relative;
    z-index: 2;
}

/* Alternative Plattformen Container */
.nocial-platforms {
    width: 100%;
    margin: 40px 0;
    padding: 30px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, 
        rgba(66, 102, 59, 0.1) 0%, 
        rgba(186, 140, 99, 0.08) 100%);
    border: 2px dashed rgba(212, 165, 116, 0.2);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 5; /* Unter den Buttons */
}

.nocial-platforms h3 {
    color: var(--chalk-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    padding: 0 10px;
}

/* Keine Plattformen Meldung */
.no-platforms {
    padding: 30px 20px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px dashed rgba(212, 165, 116, 0.2);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

.no-platforms p {
    color: rgba(245, 245, 220, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ========================= SOCIAL MEDIA BUTTONS ON HOMEPAGE ========================= */
.social-button-disabled:hover {
    filter: brightness(0.9) !important;
    opacity: 0.8 !important;
    transform: scale(1.02);
}

.social-button-disabled img {
    pointer-events: none;
}

/* Aktive Social Buttons */
.social-icons a:not(.social-button-disabled):hover {
    transform: scale(1.05);
}

.social-icons a:not(.social-button-disabled):hover img {
    filter: brightness(1.1) drop-shadow(0 6px 12px rgba(0,0,0,0.5));
}

/* ========================= VISUALLY HIDDEN ========================= */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ========================= PRINT STYLES ========================= */
@media print {
    .image-nav,
    .cookie-banner-container,
    .legal-inline-frame,
    .copyright,
    .form-submit-btn-school,
    .g-recaptcha,
    .recaptcha-container,
    .recaptcha-notice,
    .newsletter-tabs,
    .unsubscribe-form-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .chalkboard {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .chalkboard-frame {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ========================= NEUE ANIMATIONEN UND VERBESSERUNGEN ========================= */
@keyframes subtlePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
}

/* Subtile Hover-Effekte für alle interaktiven Elemente */
.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group textarea:hover,
.unsubscribe-email-input:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(212, 165, 116, 0.2);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.unsubscribe-email-input:focus {
    animation: subtlePulse 1.5s infinite;
}

/* Glättung für alle Übergänge */
* {
    scroll-behavior: smooth;
}

/* Verbesserte Lesbarkeit für lange Texte */
.page-content p,
.faq-answer p,
.form-description,
.unsubscribe-info p {
    text-align: justify;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Verbesserte Kontraste für Barrierefreiheit */
@media (prefers-contrast: high) {
    :root {
        --chalk-color: #ffffff;
        --chalk-green: #2d4a28;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        background: #ffffff;
        color: #000000;
    }
}

/* Reduced Motion Unterstützung */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .newsletter-tab.active::before,
    .hero-title-accent,
    .nocial-title-main::before,
    .nocial-title-main::after,
    .activeGlow,
    .borderGlow,
    .gentleFloat,
    .tabGlow,
    .titleGlow,
    .iconFloat,
    .socialButtonAppear,
    .letterFloat,
    .searchRotate,
    .flagWave,
    .clockPulse,
    .tipIcon,
    .decorationFloat,
    .arrowPulse,
    .noticePulse {
        animation: none !important;
    }
}

/* Entferne alte Container-Stile für NOSOCIAL */
.nocial-content,
.nocial-message,
.nocial-coming-soon,
.nocial-alternative,
.alternative-buttons,
.alternative-button {
    display: none !important;
}

/* ========================= PROGRESSIVE LADEANIMATION FÜR NOSOCIAL ========================= */
.nocial-content-optimized > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.nocial-header { 
    animation-delay: 0.1s; 
    animation-fill-mode: forwards;
}
.nocial-main-image { 
    animation-delay: 0.2s; 
    animation-fill-mode: forwards;
}
.nocial-content-grid { 
    animation-delay: 0.3s; 
    animation-fill-mode: forwards;
}
.nocial-platforms, 
.no-platforms { 
    animation-delay: 0.4s; 
    animation-fill-mode: forwards;
}
.nocial-back-optimized { 
    animation-delay: 0.5s; 
    animation-fill-mode: forwards;
}

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

/* ========================= PERFORMANCE OPTIMIERUNG FÜR BILDER ========================= */
.nocial-main-image img,
.nocial-platform-button img,
.nocial-back-button img {
    will-change: transform;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ========================= ENTFERNE ALLE UMRANDUNGEN UND FALSCHE STYLES ========================= */
.nocial-back-button:focus,
.nocial-back-button:active,
.nocial-platform-button:focus,
.nocial-platform-button:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Verhindere Browser-Standardstyles */
.nocial-back-button::-moz-focus-inner,
.nocial-platform-button::-moz-focus-inner {
    border: 0 !important;
    padding: 0 !important;
}

/* Stellt sicher, dass keine unerwünschten Styles von anderen CSS-Regeln übernommen werden */
a.nocial-back-button,
a.nocial-platform-button {
    all: unset;
    cursor: pointer;
}

a.nocial-back-button *,
a.nocial-platform-button * {
    all: unset;
}