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

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #14b8a6;
    --accent: #0066cc;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    --gradient-hover: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    --card-bg: #ffffff;
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body { 
    background: var(--bg);
    font-size: 16px;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Logo Fallback */
.logo-fallback {
    display: none;
    font-size: 24px;
    font-weight: bold;
}

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

/* Top-Bar */
.topbar {
    background: #0066cc;
    border-bottom: 1px solid #0052a3;
    padding: 12px 0;
    font-size: 14px;
}

.topbar-item i {
    margin-right: 8px;
}

.topbar-content {
    display: grid;
    gap: 20px;
    align-items: center;
}

.topbar-content.topbar-columns-1 {
    grid-template-columns: 1fr;
}

.topbar-content.topbar-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.topbar-content.topbar-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.topbar-content.topbar-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.topbar-column {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.topbar-title {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
}

.topbar-item i {
    color: #ffffff;
}

.topbar-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.topbar-item a:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header.scrolled {
    background: white;
}

.header .container {
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

.logo img {
    height: 70px;
    margin-right: 12px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a i {
    font-size: 16px;
}

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

.main-nav a:hover {
    color: var(--primary);
}

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

.main-nav li.has-dropdown {
    position: relative;
}

.main-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 4px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    list-style: none;
    margin-top: 12px;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    pointer-events: none;
    z-index: 1000;
    border: 1px solid var(--border);
    /* Dropdown-Menü: Links untereinander angeordnet */
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-nav li.has-dropdown:hover .dropdown,
.main-nav li.has-dropdown.show-dropdown .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.main-nav .dropdown li {
    padding: 0;
    display: block;
    width: 100%;
    margin: 0;
    line-height: 1.2;
    /* Links untereinander angeordnet, kein Abstand */
}

.main-nav .dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 24px;
    transition: all 0.2s;
    width: 100%;
    margin: 0;
    line-height: 1.4;
    color: var(--text-primary);
    /* Link nimmt volle Breite ein, Links untereinander, minimaler Abstand */
}

.main-nav .dropdown a i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.main-nav .dropdown a:hover {
    background: rgba(6, 182, 212, 0.1);
    padding-left: 28px;
    color: var(--accent);
}

.main-nav .dropdown a::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-primary);
}

/* Überschriften - Highlightfarbe */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 0;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 110%;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
    animation: slideZoom 20s ease-in-out infinite;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    animation: slideZoom 20s ease-in-out infinite;
}

@keyframes slideZoom {
    0% {
        background-size: 100%;
    }
    50% {
        background-size: 110%;
    }
    100% {
        background-size: 100%;
    }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    border-radius: 0;
    font-size: 48px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: all;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.slider-btn:hover {
    background: transparent;
    transform: scale(1.2);
    box-shadow: none;
    border: none;
    opacity: 1;
    text-shadow: 0 4px 12px rgba(255, 255, 255, 1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

.slide-content {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 60px 80px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.slide-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

.slide-content p {
    font-size: 22px;
    margin-bottom: 32px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-page-header {
    background-color: #f8fafc;
    opacity: 0.8;
    background: repeating-linear-gradient(-45deg, #f3f4f6, #f3f4f6 5px, #f8fafc 5px, #f8fafc 25px);
    color: var(--text-primary);
    padding: 120px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.section-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(6,182,212,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.section-page-header h1 {
    font-size: 56px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: var(--primary);
    font-weight: 700;
}

.section-page-header p {
    font-size: 20px;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.section-cta {
    background: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.section-cta h2 {
    color: white;
    font-size: 42px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.section-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
    /* Alle Cards haben die gleiche Höhe (höchste Card bestimmt Höhe) */
}

/* Spezielle Regel für CardGrid - responsive von Anfang an */
.page-element-cards-grid .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
}

.news-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Card passt sich der Grid-Höhe an, alle Cards im Grid haben gleiche Höhe */
}

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

.news-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    position: relative !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    /* Bild-Container passt sich dem Bild/Icon an, kein Hintergrund */
}

/* Icon-Container mit Kreis */
.news-image:has(i) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    position: relative !important;
    background: transparent !important;
}

.news-image:has(i)::before {
    content: '' !important;
    position: absolute !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: #0066cc !important;
    z-index: 0 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.news-image i {
    position: relative !important;
    z-index: 1 !important;
    color: white !important;
    font-size: 40px !important;
    font-style: normal !important;
}

/* Bild ohne Hintergrund */
.news-image:has(img) {
    padding: 0 !important;
    background: transparent !important;
}

.news-image a {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    /* Link passt sich der Container-Größe an */
}

/* Gradient-Overlay nur für Bilder, nicht für Icons */
.news-image:has(img)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.news-image img,
.news-image a img,
.news-card .news-image img,
.news-card .news-image a img,
div.news-card div.news-image img,
article.news-card .news-image img,
article.news-card .news-image a img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.5s;
    box-sizing: border-box !important;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 0 15px 4px !important;
    margin-top: -45px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
    /* Content-Bereich füllt verbleibende Höhe, damit alle Cards gleich hoch sind */
}

/* Buttons in Cards auf gleicher Höhe */
.news-content .wysiwyg-button {
    margin-top: auto;
    margin-bottom: 0;
    align-self: center;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: -45px 0 0 0;
    padding: 0;
    line-height: 1.1;
    color: var(--text-primary);
}

.news-content h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

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

.news-content p {
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: auto;
    line-height: 1.3;
    font-size: 13px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    color: var(--primary);
    gap: 8px;
}

/* Article Detail */
.article-detail {
    padding: 80px 0;
}

.article-header {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-category {
    background: var(--gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.article-header h1 {
    font-size: 52px;
    margin-bottom: 24px;
    color: var(--primary);
    line-height: 1.2;
    font-weight: 700;
}

.article-teaser {
    font-size: 22px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

.article-image {
    max-width: 1000px;
    margin: 0 auto 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 24px;
}

.article-content iframe,
.article-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content video {
    width: 100%;
    height: auto;
}

.article-content > div[style*="padding-bottom"] {
    margin: 20px 0;
}

.article-footer {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

/* Video Consent Button Hover */
.loadVideoBtn:hover {
    background: var(--gradient-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid var(--border);
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    max-width: 200px !important;
    max-height: 100px !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

.footer-contact-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-item i {
    min-width: 20px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-item.address-item {
    align-items: flex-start;
}

.footer-contact-item.address-item i {
    margin-top: 4px;
}

.footer-contact-item.contact-item {
    align-items: center;
}

.footer-placeholder {
    min-height: 100px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.footer-text {
    color: white;
    line-height: 1.9;
    font-size: 15px;
}

.footer-text a {
    color: #ffffff;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.footer-text a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* WYSIWYG Formatierungen im Footer */
.footer-text strong,
.footer-text b {
    font-weight: bold;
    color: white;
}

.footer-text em,
.footer-text i {
    font-style: italic;
}

.footer-text u {
    text-decoration: underline;
}

.footer-text s {
    text-decoration: line-through;
}

.footer-text p {
    margin: 0 0 12px 0;
}

.footer-text p:last-child {
    margin-bottom: 0;
}

.footer-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}

.footer-text hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 16px 0;
}

/* Footer Navigation */
.footer-navigation {
    margin-bottom: 16px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 8px;
}

.footer-nav-list li:last-child {
    margin-bottom: 0;
}

.footer-nav-list a {
    color: #ffffff;
    text-decoration: none;
    transition: text-decoration 0.3s;
    font-size: 15px;
    display: inline-block;
}

.footer-nav-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: white;
    font-size: 14px;
    text-align: center;
}

.footer-copyright-link {
    color: white;
    text-decoration: none;
}

.footer-copyright-link:hover {
    text-decoration: underline;
}

.footer-bottom p {
    text-align: center;
    width: 100%;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: text-decoration 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer Contact Links */
.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
    flex-wrap: wrap;
}

/* Contact Page */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
}

.content-text {
    color: var(--text-primary);
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 16px;
}

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

/* WYSIWYG Formatierungen in Content-Text */
.content-text strong,
.content-text b {
    font-weight: bold;
}

.content-text em,
.content-text i {
    font-style: italic;
}

.content-text u {
    text-decoration: underline;
}

.content-text s {
    text-decoration: line-through;
}

.content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}

.content-text hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 24px 0;
}

.content-text div {
    margin-bottom: 12px;
}

.content-text div:last-child {
    margin-bottom: 0;
}

/* Video Elements */
.page-element-video {
    margin: 40px 0;
}

.page-element-video > div {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.page-element-video iframe,
.page-element-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.page-element-video video {
    object-fit: contain;
}

/* Contact Form */
#contactForm {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

#contactForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--bg);
    color: var(--text-primary);
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* Responsive */
/* Zuerst für Tablets und kleinere Bildschirme */
/* Ab 1200px: Cards beginnen einzurücken */
@media (max-width: 1200px) {
    .page-element-cards-grid .news-grid,
    .page-element.page-element-cards-grid .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 25px !important;
    }
}

@media (max-width: 1024px) {
    .page-element-cards-grid .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    .topbar-content.topbar-columns-2,
    .topbar-content.topbar-columns-3,
    .topbar-content.topbar-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .topbar-column {
        justify-content: center;
        text-align: center;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-top: 1px solid var(--border);
        padding: 20px;
        z-index: 1000;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .main-nav li {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .main-nav a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        gap: 8px;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .main-nav li.has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        background: rgba(248, 250, 252, 0.8);
        margin-top: 0;
        margin-left: 20px;
        border: none;
        border-radius: 0;
        padding: 0;
    }
    
    .main-nav li.has-dropdown .dropdown li {
        width: 100%;
    }
    
    .main-nav li.has-dropdown .dropdown a {
        padding: 8px 0;
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide {
        background-size: cover !important;
        background-position: center;
        background-repeat: no-repeat;
        animation: none; /* Deaktiviere Animation auf mobilen Geräten für bessere Performance */
    }
    
    .slide-content {
        padding: 40px 30px;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .wysiwyg-content .news-grid,
    .page-content .news-grid,
    .article-content .news-grid,
    .career-content .news-grid,
    div.news-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* CardGrid: ZWINGEND untereinander auf Mobile */
    .page-element-cards-grid .news-grid,
    .page-element.page-element-cards-grid .news-grid,
    .page-element-cards-grid > .news-grid,
    .page-element.page-element-cards-grid > .news-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Contact Layout - Mobile: Eine Spalte, Formular nach unten */
    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .contact-layout .contact-info {
        order: 1;
    }
    
    .contact-layout .contact-form {
        order: 2;
    }
    
    .article-header h1 {
        font-size: 36px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .page-element-cards-grid .news-grid,
    .page-element.page-element-cards-grid .news-grid,
    .page-element-cards-grid > .news-grid,
    .page-element.page-element-cards-grid > .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .slide {
        background-size: cover !important;
        animation: none;
    }
    
    .slide-content {
        padding: 30px 20px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
