/** Meshcore Rhein-Neckar - Modernes, minimalistisches Design */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --bg-accent: #0f172a;
    --border-color: #e5e7eb;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --max-width: 1200px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    -webkit-text-size-adjust: 100%; /* Verhindert iOS Safari Auto-Zoom */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.3em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1.5em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1em;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
    /* Touch-Target Verbesserung für Links */
    padding: 0.25rem 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.75rem 0.5rem; /* Touch-target: min 44px */
    position: relative;
    font-size: 0.9rem;
    min-height: 44px; /* Touch-Target Größe */
    display: flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px; /* Größeres Touch-Target */
    min-width: 44px; /* Touch-Target Größe */
    min-height: 44px; /* Touch-Target Größe */
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Menu Active State */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-status {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.status-icon {
    font-size: 1.25rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 540px;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px; /* Touch-Target Größe (Apple Humanor Interface Guidelines) */
    min-width: 44px; /* Touch-Target Größe */
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Hero Visual - Mesh Diagram */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mesh-diagram {
    position: relative;
    width: 300px;
    height: 300px;
}

.node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.node-1 { top: 20%; left: 20%; animation-delay: 0s; }
.node-2 { top: 20%; right: 20%; animation-delay: 0.5s; }
.node-3 { bottom: 20%; left: 20%; animation-delay: 1s; }
.node-4 { bottom: 20%; right: 20%; animation-delay: 1.5s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-md); }
    50% { transform: scale(1.05); box-shadow: var(--shadow-lg); }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--bg-white);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--text-white);
}

.section-dark p {
    color: #9ca3af;
}

.section-accent {
    background: var(--bg-accent);
    color: var(--text-white);
}

.section-accent h2,
.section-accent h3 {
    color: var(--text-white);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-intro {
    font-size: 1.125rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Mobile Grid Optimierung */
@media (max-width: 640px) {
    .grid-2,
    .grid-3,
    .features-grid,
    .tech-grid,
    .device-grid,
    .channels-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h4 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

/* Tech Cards */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tech-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.tech-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.tech-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.highlight-box h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.highlight-box p {
    color: #78350f;
    margin: 0;
}

/* Settings Section */
.settings-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-icon {
    font-size: 2.5rem;
}

.settings-title h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.setting-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.setting-item.highlight {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--accent-color);
}

.setting-label {
    font-size: 0.875rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.setting-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.setting-desc {
    font-size: 0.875rem;
    color: #9ca3af;
}

.settings-copy {
    text-align: center;
    margin-top: 2rem;
}

.copy-feedback {
    display: inline-block;
    margin-left: 1rem;
    color: #10b981;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}

/* Regions & Scopes Explanation */
.explanation-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.explanation-box h3 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.explain-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.explain-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.explain-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.explain-card p {
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.explain-card ul {
    color: #9ca3af;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.explain-card li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.explain-card code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #06b6d4;
}

.explain-card strong {
    color: #e2e8f0;
}

/* Explanation Card */
.explanation-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.explanation-card h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.explain-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.explain-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.explain-item p {
    color: #d1d5db;
    margin: 0;
    line-height: 1.6;
}

/* Hardware Tabs */
.hardware-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-white);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    min-height: 44px; /* Touch-Target Größe */
    min-width: 44px;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Device Cards */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.device-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.device-card h4 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.device-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.device-card ul {
    list-style: none;
}

.device-card li {
    padding: 0.25rem 0;
    color: #d1d5db;
}

.device-card li::before {
    content: '✓';
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.recommended {
    background: #10b981;
    color: white;
}

/* Table */
.component-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.component-table th,
.component-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.component-table th {
    color: var(--accent-color);
    font-weight: 600;
}

.component-table td {
    color: #d1d5db;
}

/* Steps */
.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

.step-content p {
    margin: 0;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
    color: white;
}

.cta-box h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-box .btn {
    background: white;
    color: var(--primary-color);
}

.cta-box .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

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

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.author-badge.daily {
    background: #dbeafe;
    color: #1e40af;
}

.author-badge.special {
    background: #fce7f3;
    color: #be185d;
}

.news-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-badge.badge-info {
    background: var(--accent-color);
}

.news-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.news-lead {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-content {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-sources {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.news-sources strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.news-sources ul {
    list-style: none;
    padding-left: 0;
}

.news-sources li {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.news-sources li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.news-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.topic-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.news-footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.news-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

#last-update {
    font-weight: 600;
    color: var(--primary-color);
}

/* News in Navigation */
.nav-news {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    font-weight: 600;
}

.nav-news:hover {
    background: var(--primary-dark) !important;
}

.nav-news::after {
    display: none !important;
}

/* Channels Page Styles */
.channel-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.intro-box {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.intro-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.intro-box h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.intro-box ol {
    padding-left: 1.5rem;
    color: var(--text-light);
}

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

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.channel-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.channel-main {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.channel-name {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.channel-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

.channel-badge.main {
    background: var(--primary-color);
    color: white;
}

.channel-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.channel-region {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.region-icon {
    font-size: 1.25rem;
}

/* Termine Page Styles */
.termine-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.termin-card {
    display: flex;
    gap: 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.termin-card:hover {
    box-shadow: var(--shadow-md);
}

.termin-zukunft {
    border-left: 4px solid var(--primary-color);
}

.termin-info {
    border-left: 4px solid var(--accent-color);
}

.termin-datum {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.datum-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.datum-monat {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    margin: 0.25rem 0;
}

.datum-jahr {
    font-size: 0.75rem;
    color: var(--text-light);
}

.termin-content {
    flex: 1;
}

.termin-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.termin-badge.neu {
    background: #dcfce7;
    color: #166534;
}

.termin-badge.info {
    background: #dbeafe;
    color: #1e40af;
}

.termin-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.termin-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.termin-ort {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.termin-cta {
    margin-top: 1.5rem;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p,
.footer-section li {
    color: #9ca3af;
    font-size: 0.9rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-radius: var(--border-radius);
        background: var(--bg-light);
        min-height: 48px; /* Touch-Target */
    }
    
    .nav-links a:hover {
        background: var(--primary-color);
        color: white;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 7rem 0 3rem;
        min-height: auto;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-status {
        flex-direction: column;
        gap: 1rem;
    }
    
    .status-item {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 1rem 1.5rem; /* Größeres Touch-Target */
        min-height: 48px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .mesh-diagram {
        width: 200px;
        height: 200px;
    }
    
    .node {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Cards */
    .card, .tech-card, .news-card {
        padding: 1.5rem;
    }
    
    /* Settings */
    .settings-card {
        padding: 1.5rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .setting-value {
        font-size: 1.5rem;
    }
    
    /* Steps */
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    /* Hardware Tabs */
    .tab-buttons {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 0.875rem 1.25rem;
        min-height: 48px;
    }
    
    /* Device Cards */
    .device-grid {
        grid-template-columns: 1fr;
    }
    
    /* Termin Cards */
    .termin-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .termin-datum {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .datum-tag {
        font-size: 1.5rem;
    }
    
    .termin-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* CTA Box */
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-box .btn {
        width: 100%;
        min-height: 48px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Sections */
    .section {
        padding: 2.5rem 0;
    }
    
    /* Typography - Mindestgröße 16px für Lesbarkeit */
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    p {
        font-size: 16px; /* Mindestgröße für Lesbarkeit */
    }
    
    /* Buttons - Alle min 44px Touch-Target */
    .btn {
        padding: 1rem 1.25rem;
        min-height: 48px;
        font-size: 16px;
    }
    
    /* Cards */
    .card,
    .tech-card,
    .device-card,
    .news-card {
        padding: 1.25rem;
    }
    
    /* Features */
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Settings */
    .settings-card {
        padding: 1.25rem;
    }
    
    .setting-value {
        font-size: 1.25rem;
    }
    
    .setting-desc {
        font-size: 0.875rem;
    }
    
    /* Explanation */
    .explanation-box {
        padding: 1.5rem;
    }
    
    .explain-card {
        padding: 1.25rem;
    }
    
    /* CTA Box */
    .cta-box {
        padding: 1.5rem;
    }
    
    .cta-box h3 {
        font-size: 1.25rem;
    }
    
    /* Channel Cards */
    .channel-card {
        padding: 1.25rem;
    }
    
    .channel-name {
        font-size: 1.1rem;
    }
    
    /* News */
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .news-lead {
        font-size: 1rem;
    }
    
    /* Grid anpassen */
    .grid-2, .grid-3, .features-grid, .tech-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tables */
    .component-table th,
    .component-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Highlight Box */
    .highlight-box {
        padding: 1rem;
    }
    
    .highlight-box h4 {
        font-size: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-visual,
    .cta-box,
    footer {
        display: none;
    }

    .section {
        padding: 2rem 0;
    }
}

/* ================================
   Legal Pages Styles
   ================================ */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.legal-page h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-page h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.legal-page p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-page ul {
    color: var(--text-light);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-page a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page a:hover {
    color: var(--primary-dark);
}

.legal-box {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.legal-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.legal-box.warning h3 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.legal-box.warning p,
.legal-box.warning li {
    color: #78350f;
}

.legal-box.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
}

.legal-box.info h3 {
    color: #1e40af;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.legal-box.info p {
    color: #1e3a8a;
}

.legal-box .hint {
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 1rem;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.legal-footer a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.legal-footer a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

/* Mobile Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 1.5rem 0;
    }
    
    .legal-page h1 {
        font-size: 1.75rem;
    }
    
    .legal-page h2 {
        font-size: 1.25rem;
    }
    
    .legal-box {
        padding: 1rem;
    }
}

/* ================================
   Wiki Article Styles
   ================================ */

/* Wiki Table of Contents */
.wiki-toc {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.wiki-toc h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Wiki Article */
.wiki-article {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.wiki-article h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
}

.wiki-article h3 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.wiki-article h4 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Article Metadata */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.article-meta span::before {
    content: '•';
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.article-meta span:first-child::before {
    display: none;
}

/* Article Content */
.article-content {
    line-height: 1.8;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    color: var(--text-light);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content li::marker {
    color: var(--primary-color);
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--primary-dark);
}

.article-content code {
    background: var(--bg-light);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.article-content pre {
    background: var(--bg-dark);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* FAQ Items */
.faq-item {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Sources Section */
.sources {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sources h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.sources ul {
    list-style: none;
    padding-left: 0;
}

.sources li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.sources li::before {
    content: '📚';
    position: absolute;
    left: 0;
    font-size: 0.875rem;
}

.sources a {
    color: var(--primary-color);
}

/* Highlight Box Variants */
.highlight-box.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
}

.highlight-box.info h4,
.highlight-box.info strong {
    color: #1e40af;
}

.highlight-box.info p {
    color: #1e3a8a;
}

.highlight-box.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left: 4px solid #22c55e;
}

.highlight-box.success h4,
.highlight-box.success strong {
    color: #166534;
}

.highlight-box.success p {
    color: #14532d;
}

.highlight-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.highlight-box.warning h4,
.highlight-box.warning strong {
    color: #92400e;
}

.highlight-box.warning p {
    color: #78350f;
}

.highlight-box.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
}

.highlight-box.error h4,
.highlight-box.error strong {
    color: #b91c1c;
}

.highlight-box.error p {
    color: #7f1d1d;
}

/* Hardware Tier Boxes */
.hardware-tier {
    background: #f0fff4;
    border-left: 4px solid #48bb78;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.hardware-tier h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.hardware-tier p {
    margin-bottom: 0.75rem;
}

.hardware-tier ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.hardware-tier li {
    margin-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-table td {
    color: var(--text-light);
}

.comparison-table tr:hover td {
    background: var(--bg-light);
}

/* Mobile Wiki Styles */
@media (max-width: 768px) {
    .wiki-article {
        padding: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .wiki-toc {
        padding: 1.5rem;
    }

    .hardware-tier {
        padding: 1rem;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}
