/* ==========================================================================
   cmschule.de - Modern Education Design System
   ========================================================================== */

/* Fonts are loaded locally/system-fallback for GDPR compliance */

:root {
    /* Color Palette */
    --bg-base: #fbfbf9;             /* Warmer, weicher, cremiger Hintergrund */
    --bg-surface: #ffffff;          /* Reinweiß für Karten & Nav */
    --bg-footer: #1e293b;           /* Slate-800 für professionellen, dunklen Footer */
    
    --text-main: #1e293b;           /* Dunkles Schiefergrau für perfekte Lesbarkeit */
    --text-muted: #64748b;          /* Mittleres Grau für sekundäre Infos */
    --text-light: #94a3b8;          /* Helles Grau für Details */
    
    --primary: #0f766e;             /* Edles Waldmeister-Teal: Kompetent & vertrauenswürdig */
    --primary-hover: #115e59;
    --primary-light: #f0fdfa;       /* Sehr zartes Mint für Hintergründe */
    --primary-glow: rgba(15, 118, 110, 0.15);
    
    --accent: #ea580c;              /* Warmes Terrakotta/Orange für Impulse */
    --accent-hover: #c2410c;
    --accent-light: #fff7ed;        /* Zartes Orange für Badges */
    
    --success: #16a34a;             /* Fröhliches Grün */
    --success-light: #f0fdf4;
    --info: #0284c7;                /* Info-Blau */
    --info-light: #f0f9ff;
    
    --border: #f1f5f9;              /* Sehr subtile Grenzen */
    --border-hover: #e2e8f0;
    
    /* Layout & Styling Globals */
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    
    --shadow-sm: 0 4px 6px -1px rgba(15, 118, 110, 0.03), 0 2px 4px -2px rgba(15, 118, 110, 0.03);
    --shadow-md: 0 12px 20px -8px rgba(15, 118, 110, 0.08), 0 4px 8px -2px rgba(15, 118, 110, 0.04);
    --shadow-lg: 0 25px 40px -15px rgba(15, 118, 110, 0.12), 0 10px 20px -10px rgba(15, 118, 110, 0.06);
    
    --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 2. Base Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

/* 4. Layout Header & Navigation */
.header-nav {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-all);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-bounce);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 640px) {
    .btn-quick-support {
        display: none !important;
    }
}

/* Round, premium menu toggle button */
.drawer-toggle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-hover);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    z-index: 1001;
}

.drawer-toggle-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.drawer-toggle-btn .menu-label {
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* Hamburger Icon styling inside the toggle button */
.hamburger-icon {
    width: 18px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: var(--transition-all);
}

/* Animate hamburger to close X shape when drawer is open */
.drawer-toggle-btn.open .hamburger-icon span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.drawer-toggle-btn.open .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.drawer-toggle-btn.open .hamburger-icon span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Drawer Backdrop */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 118, 110, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Drawer Side Panel */
.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-surface);
    box-shadow: -10px 0 40px rgba(15, 118, 110, 0.15);
    z-index: 1003;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.38s;
    display: flex;
    flex-direction: column;
    padding: 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    /* Prevent off-screen panel from intercepting touches on iOS */
    pointer-events: none;
    visibility: hidden;
}

.drawer-panel.open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-shrink: 0;
}

.drawer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.drawer-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.drawer-close-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: rotate(90deg);
}

/* Drawer Navigation & Links */
.drawer-nav {
    flex-grow: 1;
    margin-bottom: 40px;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-item {
    opacity: 0;
    transform: translateY(14px);
    /* Reset transition-delay to 0 when closing, so items snap back immediately */
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0s;
    cursor: pointer;
}

/* Staggered entrance for links on open */
.drawer-panel.open .drawer-item {
    opacity: 1;
    transform: translateY(0);
}

.drawer-panel.open .drawer-item:nth-child(1) { transition-delay: 0.04s; }
.drawer-panel.open .drawer-item:nth-child(2) { transition-delay: 0.08s; }
.drawer-panel.open .drawer-item:nth-child(3) { transition-delay: 0.12s; }
.drawer-panel.open .drawer-item:nth-child(4) { transition-delay: 0.16s; }
.drawer-panel.open .drawer-item:nth-child(5) { transition-delay: 0.20s; }
.drawer-panel.open .drawer-item:nth-child(6) { transition-delay: 0.24s; }

.drawer-link, .submenu-toggle-btn {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    color: var(--text-main);
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-all);
    /* Remove iOS 300ms tap delay */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Ensure full tap target */
    -webkit-user-select: none;
    user-select: none;
}

.drawer-num {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
    transition: var(--transition-all);
}

.link-content {
    display: flex;
    flex-direction: column;
}

.main-text {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition-all);
    line-height: 1.2;
}

.drawer-link .micro {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
    transition: var(--transition-all);
}

.drawer-link:hover .main-text,
.submenu-toggle-btn:hover .main-text {
    color: var(--primary);
    transform: translateX(8px);
}

.drawer-link:hover .drawer-num,
.submenu-toggle-btn:hover .drawer-num {
    transform: translateX(4px) scale(1.1);
}

.drawer-link.active .main-text {
    color: var(--primary);
}

/* Submenu inside Drawer */
.drawer-item.has-submenu {
    position: relative;
}

.submenu-toggle-btn {
    display: flex;
    align-items: center;
    width: 100%;
}

.submenu-toggle-btn .arrow {
    display: inline-block;
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.drawer-submenu {
    list-style: none;
    margin-left: 36px;
    padding: 4px 0 8px 16px;
    border-left: 2px solid var(--border);
    display: none;
    flex-direction: column;
    gap: 8px;
}

.drawer-submenu.open {
    display: flex;
}

.drawer-submenu a {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    display: block;
    transition: var(--transition-all);
}

.drawer-submenu a:hover,
.drawer-submenu a.active {
    color: var(--primary);
    padding-left: 8px;
}

/* Drawer Footer Section */
.drawer-footer {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.drawer-btn {
    width: 100%;
    padding: 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.drawer-info {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
}

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

/* 5. Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-surface);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.3);
}

.btn-secondary {
    background-color: var(--accent-light);
    color: var(--accent);
    border-color: rgba(234, 88, 12, 0.1);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-surface);
    transform: translateY(-2px);
}

/* 6. Hero Section */
/* 6. Hero Section */
.hero {
    padding: 110px 0 130px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-base);
}

/* Ambient Glowing Background Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

.hero-orb-1 {
    width: 450px;
    height: 450px;
    top: -100px;
    left: -80px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.18) 0%, rgba(15, 118, 110, 0) 70%);
    animation: orbFloat1 14s ease-in-out infinite alternate;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    top: -50px;
    right: -100px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.15) 0%, rgba(234, 88, 12, 0) 70%);
    animation: orbFloat2 18s ease-in-out infinite alternate;
}

.hero-orb-3 {
    width: 400px;
    height: 400px;
    bottom: -80px;
    left: 30%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 70%);
    animation: orbFloat3 12s ease-in-out infinite alternate;
}

/* Subtile Tech & EdTech Dot Grid Overlay */
.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(15, 118, 110, 0.12) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
    z-index: 0;
}

/* Floating SVG Decorative Accents */
.hero-floating-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-shape-1 {
    top: 15%;
    left: 6%;
    animation: shapeFloatSlow 7s ease-in-out infinite alternate;
}

.hero-shape-2 {
    top: 22%;
    right: 7%;
    animation: shapeFloatReverse 9s ease-in-out infinite alternate;
}

.hero-shape-3 {
    bottom: 25%;
    left: 10%;
    animation: shapeFloatSlow 8s ease-in-out 1s infinite alternate;
}

.hero-shape-4 {
    bottom: 20%;
    right: 11%;
    animation: shapeFloatReverse 10s ease-in-out 2s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-base), transparent);
    pointer-events: none;
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    color: var(--primary);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.08);
    animation: badgePulse 3s infinite ease-in-out;
}

.hero h1 {
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.15;
}

.hero h1 span {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 50%, #0284c7 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6s ease infinite;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

/* Feature Chips Bar */
.hero-highlights {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-hover);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: var(--transition-all);
}

.hero-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.3);
    box-shadow: var(--shadow-sm);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 16px 36px;
    font-size: 16px;
}

/* Hero Keyframe Animations */
@keyframes orbFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}

@keyframes orbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.15); }
}

@keyframes orbFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -40px) scale(0.95); }
}

@keyframes shapeFloatSlow {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-16px) rotate(6deg); }
}

@keyframes shapeFloatReverse {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(16px) rotate(-6deg); }
}

@keyframes textShimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(15, 118, 110, 0.08); }
    50% { box-shadow: 0 4px 20px rgba(15, 118, 110, 0.22); }
}

/* 7. General Sections & Filter Bar */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-hover);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--bg-surface);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* 8. Platforms Cards Grid */
.grid-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--primary);
    opacity: 0;
    transition: var(--transition-all);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-free {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.badge-login {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid rgba(2, 132, 199, 0.15);
}

.card-body {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
    flex-grow: 1;
    line-height: 1.6;
}

.card .btn {
    width: 100%;
}

/* 9. Pricing Section */
.grid-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.price-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 15px 35px -10px rgba(15, 118, 110, 0.2);
}

.price-card.featured::after {
    content: "EMPFOHLEN / SCHULWEITE FLATRATE";
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: 0.08em;
    border: 1px solid rgba(15, 118, 110, 0.15);
    white-space: nowrap;
}

.price-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    margin-top: 10px;
}

.price-amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.price-features {
    list-style: none;
    text-align: left;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 36px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.price-features li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 800;
    font-size: 16px;
}

/* 10. Footer Styling */
footer {
    background-color: var(--bg-footer);
    color: #f8fafc;
    padding: 80px 0 40px 0;
    margin-top: 80px;
    font-size: 15px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-light);
    max-width: 320px;
    line-height: 1.6;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-light);
    transition: var(--transition-all);
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    color: var(--text-light);
    font-size: 14px;
}

.footer-bottom-links a {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 24px;
    transition: var(--transition-all);
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* 11. Responsive Breakpoints */
@media (max-width: 1024px) {
    .nav-container {
        height: 80px;
    }
    
    .btn-quick-login {
        display: none; /* Hide quick login on smaller screens to make space */
    }
    
    .drawer-panel {
        width: 100%; /* Take full width on small tablets and mobile devices */
        padding: 28px 24px;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px 0;
    }
    
    .hero-floating-shape {
        opacity: 0.25;
        transform: scale(0.65);
    }
    
    .hero h1 {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .filter-bar {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ==========================================================================
   12. Legal & Content Pages
   ========================================================================== */
.content-page {
    padding: 60px 0 100px 0;
    background: radial-gradient(circle at top right, rgba(204, 251, 241, 0.2) 0%, var(--bg-base) 100%);
    min-height: calc(100vh - 90px - 340px); /* Fill screen space between header & footer */
}

.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.content-card h1 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.content-card .meta-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
    display: block;
    font-weight: 500;
}

.content-card h2 {
    font-size: 22px;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.content-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-card p {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-card ul, .content-card ol {
    margin-bottom: 24px;
    margin-left: 24px;
}

.content-card li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.content-card th, .content-card td {
    border: 1px solid var(--border-hover);
    padding: 12px;
    text-align: left;
}

.content-card th {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.content-card strong {
    color: var(--text-main);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 14px;
    transition: var(--transition-all);
}

.back-link:hover {
    color: var(--primary-hover);
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .content-page {
        padding: 40px 0 60px 0;
    }
    
    .content-card {
        padding: 32px 20px;
    }
    
    .content-card h1 {
        font-size: 30px;
    }
}

/* ==========================================================================
   13. Form & Input Styles
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-hover);
    background-color: var(--bg-base);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition-all);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background-color: var(--bg-surface);
}

.form-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid rgba(153, 27, 27, 0.15);
}

.uuid-display {
    background-color: var(--primary-light);
    border: 2px dashed var(--primary);
    color: var(--primary);
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    text-align: center;
    user-select: all;
    cursor: pointer;
}

/* Förderpinnwand: responsive dashboard grid */
@media (max-width: 768px) {
    .fp-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   13. Global Print Stylesheet (@media print)
   ========================================================================== */
@media print {
    #header-placeholder,
    #footer-placeholder,
    .header-nav,
    .digital-toolbar,
    header,
    nav,
    footer,
    .drawer-panel,
    .drawer-overlay,
    .no-print,
    .btn-quick-login {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* ==========================================================================
   14. Schnellstart / 3-Schritte Timeline Component
   ========================================================================== */
.steps-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.timeline-line {
    position: absolute;
    top: 32px;
    left: 15%;
    right: 15%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #2a9d8f 50%, #e76f51 100%);
    border-radius: 4px;
    z-index: 1;
    box-shadow: 0 0 12px rgba(78, 205, 196, 0.4);
}

.timeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-badge-node {
    width: 64px;
    height: 64px;
    background: var(--bg-surface);
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 24px;
}

.timeline-step:hover .step-badge-node {
    transform: scale(1.15) rotate(5deg);
    border-color: #2a9d8f;
    box-shadow: 0 12px 25px rgba(78, 205, 196, 0.35);
}

.step-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    font-family: system-ui, -apple-system, sans-serif;
}

.step-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-step:hover .step-content {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.step-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.step-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.step-btn {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    text-decoration: none;
    margin-top: auto;
}

/* Responsive view for Mobile and Tablets */
@media (max-width: 850px) {
    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-left: 10px;
    }

    .timeline-line {
        top: 20px;
        bottom: 20px;
        left: 41px;
        right: auto;
        width: 4px;
        height: auto;
        background: linear-gradient(180deg, var(--primary) 0%, #2a9d8f 50%, #e76f51 100%);
    }

    .timeline-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .step-badge-node {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .step-content {
        align-items: flex-start;
    }

    .step-btn {
        width: auto;
    }
}

/* ==========================================================================
   15. Hero Audio Player ("Lieber hören statt lesen?")
   ========================================================================== */
.hero-audio-card {
    max-width: 640px;
    margin: 32px auto 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 16px 20px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-audio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(15, 118, 110, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.audio-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.audio-play-btn {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #2a9d8f 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.audio-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.45);
}

.audio-play-btn:active {
    transform: scale(0.96);
}

.audio-play-btn.playing {
    background: linear-gradient(135deg, #0d5f58 0%, #1f776d 100%);
    animation: audioPulse 2s infinite;
}

@keyframes audioPulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(15, 118, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

.audio-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.audio-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.audio-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.audio-badge {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.audio-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
}

.audio-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
}

.audio-controls-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.audio-time {
    font-size: 12px;
    font-family: monospace, sans-serif;
    color: var(--text-muted);
    font-weight: 600;
}

.audio-speed-btn {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.audio-speed-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.audio-progress-wrap {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    touch-action: none;
}

.audio-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #2a9d8f 100%);
    border-radius: 999px;
    width: 0%;
    transition: width 0.1s linear;
}

@media (max-width: 640px) {
    .hero-audio-card {
        padding: 14px 16px;
        margin-top: 24px;
    }

    .audio-card-inner {
        gap: 12px;
    }

    .audio-play-btn {
        width: 46px;
        height: 46px;
    }

    .audio-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .audio-controls-meta {
        width: 100%;
        justify-content: space-between;
        margin-top: 2px;
    }
}

