/* 
   umrechner.online - COMPLETE MODERN CSS
   Feng Shui Orange-Grün mit modernem Dropdown-Menü
*/

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

:root {
    --forest-dark: #4A5F1F;
    --forest-medium: #6B8E23;
    --sage-green: #8FAF3F;
    --lime-fresh: #A4C639;
    
    --orange-vibrant: #FF8C00;
    --orange-warm: #FFA500;
    --orange-light: #FFB84D;
    --golden-amber: #FFCC66;
    
    --autumn-red: #E85D00;
    --terracotta: #CC5500;
    
    --cream: #FFF8F0;
    --beige-light: #FAF4EC;
    --sand: #F5E6D3;
    --brown-light: #D4A574;
    
    --text-primary: #3A3A3A;
    --text-secondary: #666666;
    --text-light: #888888;
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-strong: rgba(0, 0, 0, 0.18);
}

html {
    font-size: 16px; /* Basis-Schriftgröße */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige-light) 100%);
    min-height: 100vh;
    position: relative;
    font-size: 1rem;
}

/* Mobile: Größere Basis-Schriftgröße für bessere Lesbarkeit */
@media (max-width: 768px) {
    html {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 18px; /* 18px Basis für sehr gute Lesbarkeit auf Smartphones */
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 140, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 175, 63, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ==================== HEADER ==================== */

.main-header {
    background: linear-gradient(135deg, var(--orange-warm) 0%, var(--orange-vibrant) 50%, var(--golden-amber) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.25);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.logo i {
    font-size: 1.8rem;
    background: white;
    color: var(--orange-vibrant);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
}

/* Search */
.search-container {
    flex: 1;
    max-width: 540px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 12px 24px;
    box-shadow: 0 3px 15px var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px var(--shadow-strong);
}

.search-box i {
    color: var(--orange-vibrant);
    margin-right: 12px;
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-strong);
    overflow: hidden;
    z-index: 1001;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--sand);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--beige-light);
}

.suggestion-item i {
    color: var(--sage-green);
    width: 24px;
    font-size: 1.1rem;
}

.suggestion-name {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.suggestion-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Search Results (New Design) */
.search-results-list {
    max-height: 500px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 20px;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border-bottom: 1px solid var(--sand);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--beige-light);
}

.search-result-item.calculator {
    border-left: 3px solid var(--orange-vibrant);
}

.search-result-item.converter {
    border-left: 3px solid var(--sage-green);
}

.search-result-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--beige-light), var(--sand));
    border-radius: 10px;
    font-size: 1.2rem;
}

.search-result-item.calculator .search-result-icon {
    background: linear-gradient(135deg, var(--orange-light), var(--golden-amber));
    color: white;
}

.search-result-item.converter .search-result-icon {
    background: linear-gradient(135deg, var(--sage-light), var(--sage-green));
    color: white;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.search-result-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.search-result-type {
    background: var(--beige-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.search-result-item.calculator .search-result-type {
    background: var(--orange-light);
    color: white;
}

.search-result-item.converter .search-result-type {
    background: var(--sage-light);
    color: white;
}

.search-result-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 6px;
}

/* Search States */
.search-loading,
.search-no-results,
.search-error {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-loading i {
    font-size: 1.5rem;
    color: var(--sage-green);
    margin-bottom: 10px;
}

.search-no-results i {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.search-error {
    color: #c00;
}

.search-error i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ==================== NAVIGATION - MODERN ==================== */

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link i {
    font-size: 0.95rem;
}

.nav-link-admin {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-link-admin:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 0.2rem;
    transition: transform 0.3s;
}

.has-dropdown.dropdown-open .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.has-dropdown.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    padding: 0.8rem;
}

/* Kategorien-Grid - 4 SPALTEN (3. Nav-Item = Kategorien) */
.nav-item:nth-child(3) .dropdown-menu {
    min-width: 980px;
    max-width: 1200px;
}

.nav-item:nth-child(3) .dropdown-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    max-height: 560px;
    overflow-y: auto;
}

.nav-item:nth-child(3) .dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.nav-item:nth-child(3) .dropdown-content::-webkit-scrollbar-track {
    background: var(--sand);
    border-radius: 10px;
}

.nav-item:nth-child(3) .dropdown-content::-webkit-scrollbar-thumb {
    background: var(--orange-light);
    border-radius: 10px;
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.25s;
    border-radius: 12px;
    background: white;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--beige-light), var(--cream));
    border-color: var(--orange-light);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15);
}

/* Kategorien Cards (3. Nav-Item = Kategorien) */
.nav-item:nth-child(3) .dropdown-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    min-height: 130px;
    position: relative;
    overflow: hidden;
}

.nav-item:nth-child(3) .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 204, 102, 0.05), rgba(255, 140, 66, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 12px;
}

.nav-item:nth-child(3) .dropdown-item:hover::before {
    opacity: 1;
}

.nav-item:nth-child(3) .dropdown-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.2);
}

.dropdown-item i {
    color: var(--sage-green);
    font-size: 1.3rem;
    transition: all 0.3s;
}

.nav-item:nth-child(3) .dropdown-item i {
    font-size: 2.8rem;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange-light), var(--golden-amber));
    color: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.nav-item:nth-child(3) .dropdown-item:hover i {
    background: linear-gradient(135deg, var(--orange-vibrant), var(--orange-warm));
    box-shadow: 0 8px 28px rgba(255, 140, 0, 0.45);
    transform: scale(1.08) rotateZ(5deg);
}

.dropdown-item-content {
    flex: 1;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin-top: 4px;
}

.nav-item:nth-child(3) .dropdown-item-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dropdown-item-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: none;
}

.nav-item:not(:nth-child(3)) .dropdown-item-description {
    display: block;
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
    margin-top: 90px;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Intro */
.intro-section {
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--lime-fresh) 100%);
    padding: 2rem 2rem;
    border-radius: 24px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 30px rgba(139, 175, 63, 0.2);
}

.intro-content {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.intro-content h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    flex: 0 0 auto;
}

.intro-text {
    display: none;
}

.quick-stats {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
}

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

.stat-item i {
    color: white;
    font-size: 1.1rem;
    opacity: 0.9;
}

.stat-item span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
}

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

.section-header h2 {
    color: var(--forest-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-warm), var(--sage-green));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.8rem;
}

/* Categories */
.categories-section {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 1.8rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow-soft);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.category-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.category-card:nth-child(1)::before { background: var(--orange-vibrant); }
.category-card:nth-child(1):hover { border-color: var(--orange-vibrant); }
.category-card:nth-child(1) .category-icon { background: linear-gradient(135deg, var(--orange-warm), var(--orange-vibrant)); }

.category-card:nth-child(2)::before { background: var(--sage-green); }
.category-card:nth-child(2):hover { border-color: var(--sage-green); }
.category-card:nth-child(2) .category-icon { background: linear-gradient(135deg, var(--sage-green), var(--lime-fresh)); }

.category-card:nth-child(3)::before { background: var(--terracotta); }
.category-card:nth-child(3):hover { border-color: var(--terracotta); }
.category-card:nth-child(3) .category-icon { background: linear-gradient(135deg, var(--terracotta), var(--autumn-red)); }

.category-card:nth-child(4)::before { background: var(--forest-medium); }
.category-card:nth-child(4):hover { border-color: var(--forest-medium); }
.category-card:nth-child(4) .category-icon { background: linear-gradient(135deg, var(--forest-medium), var(--sage-green)); }

.category-card:nth-child(5)::before { background: var(--golden-amber); }
.category-card:nth-child(5):hover { border-color: var(--golden-amber); }
.category-card:nth-child(5) .category-icon { background: linear-gradient(135deg, var(--golden-amber), var(--orange-light)); }

.category-card:nth-child(6)::before { background: var(--lime-fresh); }
.category-card:nth-child(6):hover { border-color: var(--lime-fresh); }
.category-card:nth-child(6) .category-icon { background: linear-gradient(135deg, var(--lime-fresh), var(--sage-green)); }

.category-card:nth-child(n+7):nth-child(odd)::before { background: var(--orange-light); }
.category-card:nth-child(n+7):nth-child(odd):hover { border-color: var(--orange-light); }
.category-card:nth-child(n+7):nth-child(odd) .category-icon { background: linear-gradient(135deg, var(--orange-light), var(--golden-amber)); }

.category-card:nth-child(n+7):nth-child(even)::before { background: var(--forest-dark); }
.category-card:nth-child(n+7):nth-child(even):hover { border-color: var(--forest-dark); }
.category-card:nth-child(n+7):nth-child(even) .category-icon { background: linear-gradient(135deg, var(--forest-dark), var(--forest-medium)); }

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-info {
    text-align: center;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-meta {
    padding-top: 1rem;
    border-top: 1px solid var(--sand);
}

.tool-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.tool-count i {
    color: var(--orange-warm);
}

/* Popular Section */
.popular-section {
    margin-bottom: 4rem;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.popular-item {
    background: white;
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: 0 3px 10px var(--shadow-soft);
    border-left: 3px solid;
}

.popular-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow-medium);
}

.popular-item:nth-child(1) { border-left-color: var(--orange-vibrant); }
.popular-item:nth-child(1) i { color: var(--orange-vibrant); }

.popular-item:nth-child(2) { border-left-color: var(--sage-green); }
.popular-item:nth-child(2) i { color: var(--sage-green); }

.popular-item:nth-child(3) { border-left-color: var(--terracotta); }
.popular-item:nth-child(3) i { color: var(--terracotta); }

.popular-item:nth-child(4) { border-left-color: var(--forest-medium); }
.popular-item:nth-child(4) i { color: var(--forest-medium); }

.popular-item:nth-child(5) { border-left-color: var(--golden-amber); }
.popular-item:nth-child(5) i { color: var(--golden-amber); }

.popular-item:nth-child(6) { border-left-color: var(--lime-fresh); }
.popular-item:nth-child(6) i { color: var(--lime-fresh); }

.popular-item i {
    font-size: 1.3rem;
    width: 28px;
}

.popular-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.popular-usage {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Info Section */
.info-section {
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--sand) 100%);
    padding: 3.5rem 2rem;
    border-radius: 30px;
    margin: 4rem 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.info-item {
    text-align: center;
}

.info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s;
}

.info-item:nth-child(1) .info-icon { background: linear-gradient(135deg, var(--orange-warm), var(--orange-vibrant)); }
.info-item:nth-child(2) .info-icon { background: linear-gradient(135deg, var(--sage-green), var(--lime-fresh)); }
.info-item:nth-child(3) .info-icon { background: linear-gradient(135deg, var(--terracotta), var(--autumn-red)); }
.info-item:nth-child(4) .info-icon { background: linear-gradient(135deg, var(--forest-medium), var(--sage-green)); }

.info-item:hover .info-icon {
    transform: scale(1.1) rotate(-5deg);
}

.info-item h3 {
    color: var(--forest-dark);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* API Section */
.api-section {
    background: linear-gradient(135deg, var(--orange-vibrant) 0%, var(--orange-warm) 50%, var(--golden-amber) 100%);
    padding: 3.5rem;
    border-radius: 30px;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 140, 0, 0.2);
}

.api-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.api-info h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.api-info p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.api-features {
    list-style: none;
    padding: 0;
}

.api-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.8rem;
}

.api-features i {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--orange-vibrant);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--sage-green);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 175, 63, 0.3);
}

.btn-secondary:hover {
    background: var(--forest-medium);
    transform: translateY(-2px);
}

/* ==================== FOOTER ==================== */

.main-footer {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-medium) 50%, var(--sage-green) 100%);
    color: white;
    margin-top: 5rem;
    padding: 3rem 0 1.5rem;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange-vibrant), var(--golden-amber), var(--orange-vibrant));
}

.footer-content {
    margin-bottom: 2rem;
}

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

.footer-column h4 {
    color: var(--golden-amber);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--golden-amber);
}

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

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0.2rem 0;
}

/* Utility */
.text-center { text-align: center; }
.badge {
    background: var(--golden-amber);
    color: var(--terracotta);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 6px;
    text-transform: uppercase;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
    .nav-item:nth-child(3) .dropdown-content {
        grid-template-columns: repeat(2, 1fr);
        min-width: 500px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--orange-vibrant), var(--golden-amber));
        padding: 80px 20px 20px;
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 18px 20px;
        border-radius: 0;
    }
    
    .nav-link.active {
        border-left: 4px solid white;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s;
    }
    
    .has-dropdown.dropdown-open .dropdown-menu {
        max-height: 800px;
    }
    
    .dropdown-content {
        padding: 0;
    }
    
    .nav-item:nth-child(3) .dropdown-content {
        display: block;
        min-width: auto;
    }

    .nav-item:nth-child(3) .dropdown-item {
        flex-direction: row;
        text-align: left;
        padding: 14px 20px 14px 40px;
    }

    .nav-item:nth-child(3) .dropdown-item i {
        font-size: 1.5rem;
        height: 48px;
        width: 48px;
        padding: 0;
        margin-right: 12px;
        margin-bottom: 0;
        border-radius: 12px;
    }
    
    .dropdown-item {
        color: white;
        background: transparent;
        padding: 14px 20px 14px 40px;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
        padding-left: 44px;
    }
    
    .dropdown-item i {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .dropdown-item-title {
        color: white;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .api-content {
        grid-template-columns: 1fr;
    }
    
    .intro-content {
        flex-direction: column;
        text-align: center;
    }

    .intro-content h1 {
        font-size: 1.5rem;
    }

    .quick-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-item {
        min-width: 80px;
        padding: 0.6rem 1rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item:nth-child(3) .dropdown-item {
    animation: fadeInUp 0.3s ease-out backwards;
}

.nav-item:nth-child(3) .dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item:nth-child(3) .dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item:nth-child(3) .dropdown-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item:nth-child(3) .dropdown-item:nth-child(4) { animation-delay: 0.2s; }
.nav-item:nth-child(3) .dropdown-item:nth-child(5) { animation-delay: 0.25s; }
.nav-item:nth-child(3) .dropdown-item:nth-child(6) { animation-delay: 0.3s; }

/* Focus */
*:focus {
    outline: 3px solid var(--orange-light);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--orange-light);
    color: white;
}

/* ==================== ZENTRALE SUCHBOX ==================== */

.central-search {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(255, 204, 102, 0.05) 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 20px;
    position: relative;
}

.central-search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.central-search-title {
    text-align: center;
    margin-bottom: 1.2rem;
}

.central-search-title h2 {
    color: var(--forest-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.central-search-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.central-search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--orange-warm);
    border-radius: 30px;
    padding: 14px 24px;
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.central-search-box:focus-within {
    border-color: var(--orange-vibrant);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 140, 0, 0.25);
}

.central-search-box i {
    color: var(--orange-vibrant);
    font-size: 1.4rem;
    margin-right: 16px;
}

.central-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.2rem;
    color: var(--text-primary);
    background: transparent;
    font-weight: 500;
}

.central-search-box input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Mobile */
@media (max-width: 768px) {
    .central-search {
        padding: 2rem 1rem;
    }
    
    .central-search-title h2 {
        font-size: 1.4rem;
    }
    
    .central-search-box {
        padding: 14px 20px;
    }
    
    .central-search-box input {
        font-size: 1rem;
    }
}

/* ==================== ZENTRALE SUCHBOX (FEHLTE!) ==================== */

.central-search {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(255, 204, 102, 0.05) 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 20px;
    position: relative;
}

.central-search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.central-search-title {
    text-align: center;
    margin-bottom: 1.2rem;
}

.central-search-title h2 {
    color: var(--forest-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.central-search-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.central-search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--orange-warm);
    border-radius: 30px;
    padding: 14px 24px;
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.central-search-box:focus-within {
    border-color: var(--orange-vibrant);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 140, 0, 0.25);
}

.central-search-box i {
    color: var(--orange-vibrant);
    font-size: 1.4rem;
    margin-right: 16px;
}

.central-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.2rem;
    color: var(--text-primary);
    background: transparent;
    font-weight: 500;
}

.central-search-box input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.central-search-suggestions {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 100;
    max-height: 420px;
    overflow-y: auto;
}

.central-search-suggestions .suggestion-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--sand);
    position: relative;
}

.central-search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.central-search-suggestions .suggestion-item:hover {
    background: linear-gradient(90deg, var(--beige-light) 0%, var(--cream) 100%);
    padding-left: 28px;
}

.central-search-suggestions .suggestion-item.highlight {
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 204, 102, 0.05) 100%);
    border-left: 4px solid var(--orange-vibrant);
}

.central-search-suggestions .suggestion-item i {
    color: var(--sage-green);
    width: 28px;
    font-size: 1.2rem;
    text-align: center;
}

.central-search-suggestions .suggestion-item.highlight i {
    color: var(--orange-vibrant);
}

.central-search-suggestions .suggestion-content {
    flex: 1;
    min-width: 0;
}

.central-search-suggestions .suggestion-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.central-search-suggestions .suggestion-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.central-search-suggestions .suggestion-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.central-search-suggestions .suggestion-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.central-search-suggestions .suggestion-type {
    background: var(--sand);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.central-search-suggestions .suggestion-item.calculator .suggestion-type {
    background: var(--orange-light);
    color: white;
}

.central-search-suggestions .suggestion-item.converter .suggestion-type {
    background: var(--sage-light);
    color: white;
}

/* Loading & Error States */
.central-search-suggestions .search-loading,
.central-search-suggestions .search-no-results,
.central-search-suggestions .search-error {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.central-search-suggestions .search-loading i {
    font-size: 1.5rem;
    color: var(--sage-green);
    margin-bottom: 10px;
}

.central-search-suggestions .search-no-results i {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.central-search-suggestions .search-error {
    color: #c00;
}

.central-search-suggestions .search-error i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

/* Quick Search Examples */
.search-examples {
    margin-top: 1.5rem;
    text-align: center;
}

.search-examples-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 1rem;
}

.search-example-chip {
    display: inline-block;
    background: white;
    border: 1px solid var(--orange-light);
    color: var(--orange-vibrant);
    padding: 6px 14px;
    border-radius: 20px;
    margin: 0.3rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
}

.search-example-chip:hover {
    background: var(--orange-vibrant);
    color: white;
    transform: translateY(-2px);
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .central-search {
        padding: 2rem 1rem;
    }
    
    .central-search-title h2 {
        font-size: 1.4rem;
    }
    
    .central-search-box {
        padding: 14px 20px;
    }
    
    .central-search-box input {
        font-size: 1rem;
    }
}
/* ========================================
   FLASH MESSAGES / ALERTS
   ======================================== */

.alert {
    position: relative;
    padding: 18px 60px 18px 60px;
    margin-bottom: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.5s ease-out;
}

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

/* Icon vor dem Text */
.alert::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* Success Alert (grün mit Haken) */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.alert-success::before {
    content: '\f058'; /* fa-check-circle */
    color: #28a745;
}

/* Error Alert (rot mit X) */
.alert-error,
.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
}

.alert-error::before,
.alert-danger::before {
    content: '\f06a'; /* fa-exclamation-circle */
    color: #dc3545;
}

/* Warning Alert (gelb/orange mit Warnung) */
.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border: 2px solid #ffc107;
}

.alert-warning::before {
    content: '\f071'; /* fa-exclamation-triangle */
    color: #ffc107;
}

/* Info Alert (blau mit Info-Icon) */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.alert-info::before {
    content: '\f05a'; /* fa-info-circle */
    color: #17a2b8;
}

/* Close Button */
.alert-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px 10px;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

/* Fade-Out Animation beim Schließen */
.alert.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

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

/* Responsive */
@media (max-width: 768px) {
    .alert {
        padding: 15px 50px 15px 50px;
        font-size: 0.95rem;
    }

    .alert::before {
        font-size: 1.5rem;
    }

    .alert-close {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .alert {
        padding: 12px 45px 12px 12px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .alert::before {
        font-size: 1.3rem;
    }
}

/* ========================================
   PWA INSTALL BANNER
   ======================================== */

.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    color: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
}

.pwa-install-banner.slide-in {
    transform: translateY(0);
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pwa-banner-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
}

.pwa-banner-text strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pwa-banner-text p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.4;
}

.pwa-banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.pwa-btn {
    padding: 14px 28px;
    border-radius: 25px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
}

.pwa-btn-install {
    background: white;
    color: #FF8C00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pwa-btn-install:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pwa-btn-dismiss {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 20px;
    font-size: 1.3rem;
}

.pwa-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .pwa-banner-content {
        padding: 1.8rem 1.5rem;
        gap: 1.2rem;
    }

    .pwa-banner-icon {
        font-size: 3rem;
    }

    .pwa-banner-text strong {
        font-size: 1.3rem;
    }

    .pwa-banner-text p {
        font-size: 1rem;
    }

    .pwa-btn-install {
        padding: 14px 24px;
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .pwa-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1.2rem;
        gap: 1.2rem;
    }

    .pwa-banner-icon {
        font-size: 3.5rem;
        text-align: center;
    }

    .pwa-banner-text {
        text-align: center;
    }

    .pwa-banner-text strong {
        font-size: 1.4rem;
    }

    .pwa-banner-text p {
        font-size: 1.05rem;
    }

    .pwa-banner-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .pwa-btn-install {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1.15rem;
    }

    .pwa-btn-dismiss {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* ============================================
   LANGUAGE SWITCHER STYLES
   ============================================ */
.language-switcher-container {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.language-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lang-toggle .flag {
    font-size: 1.2rem;
}

.lang-toggle .lang-code {
    font-weight: 600;
}

.lang-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.language-switcher.open .lang-toggle i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher:hover .lang-dropdown,
.language-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--beige-light);
}

.lang-option.active {
    background: var(--sage-green);
    color: white;
    font-weight: 600;
}

.lang-option .flag {
    font-size: 1.3rem;
}

.lang-option .lang-name {
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-switcher-container {
        padding: 0.5rem 0;
    }

    .lang-toggle {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .lang-toggle .lang-code {
        display: none; /* Nur Flagge auf Mobile */
    }

    .lang-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: 150px;
    }

    .language-switcher:hover .lang-dropdown,
    .language-switcher.open .lang-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

/* ================================================
   GOOGLE ADSENSE - CARD STYLE
   ================================================ */

.ad-container {
    margin: 1.5rem 0;
    position: relative;
}

.ad-card-style {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow-soft);
    padding: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.ad-card-style:hover {
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.ad-label {
    display: inline-block;
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    z-index: 1;
}

.ad-card-style .adsbygoogle {
    margin-top: 0.5rem;
}

/* Zentrierte Werbung */
.ad-container.mx-auto {
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar Werbung */
.ad-sidebar {
    position: sticky;
    top: 1rem;
}

/* In-Article Werbung */
.ad-in-article {
    margin: 2rem auto;
    max-width: 600px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .ad-card-style {
        border-radius: 8px;
        padding: 0.75rem;
        margin: 1rem -1rem;
        border-radius: 0;
    }

    .ad-label {
        font-size: 0.65rem;
    }
}

/* Kein Werbung auf Druckansicht */
@media print {
    .ad-container {
        display: none !important;
    }
}

/* ================================================
   COOKIE CONSENT BANNER (dezent)
   ================================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(58, 58, 58, 0.97);
    color: white;
    padding: 0.75rem 1rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    min-width: 200px;
}

.cookie-content p i {
    color: var(--orange-warm);
    margin-right: 0.5rem;
}

.cookie-content a {
    color: var(--orange-light);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: white;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--orange-vibrant);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--orange-warm);
    transform: translateY(-1px);
}

.cookie-btn-essential {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-essential:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content p {
        font-size: 0.85rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        padding: 0.6rem 0.8rem;
    }
}

/* Animation beim Einblenden */
.cookie-banner.show {
    animation: slideUp 0.3s ease-out;
}

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