/**
 * Vorsprung News Template - Main Stylesheet v5.0
 * Performance-optimiert für Google PageSpeed
 */

:root {
    --color-primary: #cc0000;
    --color-primary-dark: #a00000;
    --color-secondary: #333333;
    --color-text: #444444;
    --color-text-light: #666666;
    --color-border: #e5e5e5;
    --color-background: #f5f5f5;
    --color-white: #ffffff;
    --color-header-bg: #ffffff;
    --color-footer-bg: #222222;
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: var(--font-family-base);
    --font-family-serif: Georgia, 'Times New Roman', Times, serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --container-width: 1200px;
    --sidebar-width: 300px;
    --radius-sm: 3px;
    --radius-md: 5px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
}

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
    font-family: var(--font-family-base);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: var(--color-secondary);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }

p { margin-top: 0; margin-bottom: var(--spacing-md); }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover, a:focus { color: var(--color-primary-dark); text-decoration: underline; }

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}
.container-fluid { width: 100%; padding-left: var(--spacing-md); padding-right: var(--spacing-md); }

.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ========================================================================
   FIXED HEADER
   ======================================================================== */
.fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-header-bg);
    box-shadow: var(--shadow-md);
    will-change: transform;
    backface-visibility: hidden;
}

.fixed-header-wrapper.header-compact .site-header {
    /* Bei Scroll kompakter */
}

.fixed-header-wrapper.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.fixed-header-wrapper:not(.header-hidden) {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* ========================================================================
   TOPBAR
   ======================================================================== */
.topbar {
    background: #f7f7f7;
    color: #666;
    font-size: 0.75rem;
    line-height: 1;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #e8e8e8;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    gap: 0;
    height: 44px;
}
.topbar-left {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
}
.topbar-left ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 0; align-items: stretch; }
.topbar-left li { position: relative; display: flex; align-items: stretch; }
.topbar-left a {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid transparent;
}
.topbar-left a:hover, .topbar-left a:focus {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    text-decoration: none;
}
.topbar-left li.active > a, .topbar-left li.current > a {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.topbar-right { display: flex; align-items: stretch; gap: 0; flex-shrink: 0; }
.topbar a { color: #666; text-decoration: none; transition: color 0.2s ease; }
.topbar a:hover { color: var(--color-primary); text-decoration: none; }

/* Suchfeld Topbar – integriert */
.topbar-search { display: flex; align-items: center; border-left: 1px solid #e8e8e8; height: 44px; padding-right: 0.4rem; }

/* Override-Form */
.topbar-search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
}
.topbar-search-input {
    width: 160px;
    padding: 0 0.75rem;
    border: none;
    background: transparent;
    color: #555;
    font-size: 0.72rem;
    height: auto;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: width 0.3s ease, background 0.2s ease;
}
.topbar-search-input::placeholder { color: #bbb; font-size: 0.72rem; }
.topbar-search-input:focus {
    width: 200px;
    background: rgba(0,0,0,0.02);
}
.topbar-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-left: 1px solid #e8e8e8;
    color: #767676;
    padding: 0 0.65rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease, background 0.2s ease;
}
.topbar-search-btn:hover { color: var(--color-primary); background: rgba(0,0,0,0.02); }
.topbar-search-btn svg { pointer-events: none; }

/* Fallback: Falls Joomla-Standard statt Override */
.topbar-search .search,
.topbar-search > div { display: flex; align-items: stretch; width: 100%; }
.topbar-search form { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; flex-wrap: nowrap; width: 100%; }
.topbar-search .input-group { display: flex; align-items: stretch; flex-wrap: nowrap !important; width: 100%; }
.topbar-search label,
.topbar-search .control-label,
.topbar-search .visually-hidden,
.topbar-search .element-invisible,
.topbar-search h3, .topbar-search h4, .topbar-search h5,
.topbar-search .module-title,
.topbar-search .input-group-text,
.topbar-search .awesomplete { display: none !important; }
.topbar-search input[type="search"],
.topbar-search input[type="text"],
.topbar-search .form-control,
.topbar-search .inputbox,
.topbar-search .search-query {
    width: 160px !important;
    max-width: 200px !important;
    padding: 0 0.75rem !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #555 !important;
    font-size: 0.72rem !important;
    height: auto !important;
    min-height: unset !important;
    outline: none !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
.topbar-search input::placeholder { color: #bbb !important; font-size: 0.72rem !important; }
.topbar-search input:focus {
    width: 200px !important;
    background: rgba(0,0,0,0.02) !important;
    box-shadow: none !important;
}
/* Topbar Such-Button: kompakter Button, Joomla/Bootstrap überschreiben */
.topbar .topbar-search button[type],
.topbar .topbar-search button[type].btn,
.topbar .topbar-search button[type].btn-primary,
.topbar .topbar-search button[type].button,
.topbar .topbar-search .btn[type="submit"],
.topbar .topbar-right .topbar-search button,
.topbar-search button,
.topbar-search .btn,
.topbar-search .btn-primary,
.topbar-search .button {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 4px !important;
    font-size: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}
.topbar-search button span { display: none !important; }
.topbar-search button::after {
    content: '⌕' !important;
    font-size: 1rem !important;
    color: inherit !important;
    display: flex !important;
    align-items: center !important;
}

/* ========================================================================
   HEADER
   ======================================================================== */
.site-header { background-color: var(--color-header-bg); border-bottom: 1px solid var(--color-border); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
    min-height: 80px;
}

/* Logo */
.logo-wrapper { display: flex; flex-direction: column; flex-shrink: 1; min-width: 0; }
.logo { display: block; color: var(--color-secondary); min-width: 0; overflow: hidden; }
.logo:hover { text-decoration: none; }
.logo-image { display: block; max-height: 70px; width: auto; height: auto; }
.logo-text { font-size: 2.2rem; font-weight: 700; color: var(--color-primary); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.site-slogan { font-size: 0.75rem; color: var(--color-text-light); margin-top: 2px; }

/* Header Module Position */
.header-modules { display: flex; align-items: center; flex: 1; min-width: 0; margin-left: 1.5rem; }

/* Header Right */
.header-right { display: flex; align-items: stretch; gap: 0; margin-left: auto; flex-shrink: 0; }

/* Datum Block */
.header-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--color-background);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    min-width: 90px;
    text-align: center;
}
.date-weekday { font-size: 0.85rem; font-weight: 600; color: var(--color-secondary); line-height: 1.2; }
.date-daymonth { font-size: 0.8rem; color: var(--color-text-light); line-height: 1.2; margin-top: 1px; }

/* Separator */
.header-separator { width: 1px; background: #ddd; align-self: stretch; margin: 4px 0; }

/* Artikel Block */
.header-article-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--color-background);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    min-width: 90px;
}
.article-count-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    text-align: center;
}
.article-count-link:hover { text-decoration: none; }
.article-count-number { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); line-height: 1; }
.article-count-label { font-size: 0.75rem; color: var(--color-text-light); line-height: 1.2; margin-top: 2px; white-space: nowrap; }
.article-count-link:hover .article-count-number { color: var(--color-secondary); }

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 2px 0;
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}
.menu-toggle.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================================================
   MAIN NAVIGATION
   ======================================================================== */
.main-navigation {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.main-navigation .container { display: flex; align-items: stretch; justify-content: flex-start; }
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: max-content;
    flex: 0 0 auto;
}
.main-navigation li { position: relative; display: flex; align-items: stretch; flex: 0 0 auto; }
.main-navigation a {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 40px;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.main-navigation a:hover, .main-navigation a:focus {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    text-decoration: none;
}
.main-navigation li.active > a, .main-navigation li.current > a {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

/* Dropdown */
.main-navigation ul ul {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    flex-direction: column;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    border-radius: 0 0 4px 4px;
    border-top: 2px solid var(--color-primary);
}
.main-navigation li:hover > ul, .main-navigation li:focus-within > ul {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.main-navigation ul ul li { display: block; }
.main-navigation ul ul a {
    color: #555; padding: 0.6rem 1rem; font-size: 0.8rem; height: auto;
    text-transform: none; border-bottom: 1px solid #f0f0f0; border-left: none;
}
.main-navigation ul ul a:hover, .main-navigation ul ul a:focus {
    background: #fafafa; color: var(--color-primary); border-bottom-color: #f0f0f0;
}

/* ========================================================================
   SUB NAVIGATION
   ======================================================================== */
.sub-navigation { background-color: #444; }
.sub-navigation .container { display: flex; }
.sub-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.sub-navigation li { position: relative; }
.sub-navigation a {
    display: block; padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.85); font-size: 0.8rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-decoration: none; white-space: nowrap;
}
.sub-navigation a:hover, .sub-navigation a:focus,
.sub-navigation li.active > a, .sub-navigation li.current > a {
    background-color: rgba(255,255,255,0.1); color: #fff; text-decoration: none;
}
.sub-navigation ul ul {
    position: absolute; top: 100%; left: 0; min-width: 180px;
    background: #555; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; z-index: 100;
}
.sub-navigation li:hover > ul, .sub-navigation li:focus-within > ul {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-navigation ul ul a { padding: 0.4rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* ========================================================================
   Breadcrumbs
   ======================================================================== */
.breadcrumbs-wrapper {
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    border-bottom: 1px solid #eee;
    padding: 0.65rem 0;
}
.breadcrumbs-wrapper ol, .breadcrumbs-wrapper ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; font-size: 0.8rem;
}
.breadcrumbs-wrapper li { display: flex; align-items: center; }
.breadcrumbs-wrapper li::after { display: none; }
.breadcrumbs-wrapper li + li::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    border-right: 1.5px solid #c0c4cc;
    border-top: 1.5px solid #c0c4cc;
    transform: rotate(45deg);
    margin: 0 0.65rem;
    flex-shrink: 0;
}
.breadcrumbs-wrapper li:last-child { color: #1f2937; font-weight: 500; }
.breadcrumbs-wrapper a {
    color: #6b7280;
    text-decoration: none;
    transition: color .15s;
}
.breadcrumbs-wrapper a:hover { color: var(--color-primary); }
.breadcrumbs-wrapper .breadcrumb-label,
.breadcrumbs-wrapper .mod-breadcrumbs__here,
.breadcrumbs-wrapper .divider,
.breadcrumbs-wrapper .separator,
.breadcrumbs-wrapper li > span[aria-hidden] { display: none; }

/* ========================================================================
   Main Content
   ======================================================================== */
.site-main { padding: var(--spacing-xl) 0; flex: 1; }

.content-row { display: grid; gap: var(--spacing-xl); }
.content-row.main-left { grid-template-columns: 1fr var(--sidebar-width); }
.content-row.main-right { grid-template-columns: var(--sidebar-width) 1fr; }
.content-row.main-right .content-main { order: 2; }
.content-row.main-right .sidebar { order: 1; }
.content-row.main-full { grid-template-columns: 1fr; }

.content-main { min-width: 0; }
.content-top, .content-bottom { margin-bottom: var(--spacing-xl); }
.content-bottom { margin-top: var(--spacing-xl); margin-bottom: 0; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: var(--spacing-lg); }

/* Module Card */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}
.card-header {
    padding: var(--spacing-md);
    border-bottom: 3px solid var(--color-primary);
    background-color: var(--color-background);
}
.card-header h3, .card-header .module-title {
    margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em;
}
.card-body { padding: var(--spacing-md); }

/* ========================================================================
   Articles
   ======================================================================== */
.article {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}
.article-header { padding: var(--spacing-lg); padding-bottom: 0; }
.article-title { font-size: 1.75rem; margin-bottom: var(--spacing-sm); }
.article-title a { color: var(--color-secondary); }
.article-title a:hover { color: var(--color-primary); text-decoration: none; }

.article-meta {
    display: flex; flex-wrap: wrap; gap: var(--spacing-md);
    font-size: 0.875rem; color: var(--color-text-light); margin-bottom: var(--spacing-md);
}
.article-meta a { color: var(--color-text-light); }
.article-meta a:hover { color: var(--color-primary); }
.article-content { padding: var(--spacing-lg); }
.article-intro { font-size: 1.125rem; color: var(--color-text-light); margin-bottom: var(--spacing-md); font-style: italic; }

.article-image { position: relative; }
.article-image img { width: 100%; height: auto; display: block; transition: transform var(--transition-base); aspect-ratio: 16 / 9; object-fit: cover; }
.article:hover .article-image img { transform: scale(1.02); }
.article-image figcaption, .img-caption {
    padding: 0.4rem 0.25rem;
    background: none;
    color: #767676;
    font-size: 0.78rem;
    font-style: italic;
    position: static;
}

.article-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.02em; margin-bottom: var(--spacing-sm);
}
.article-category a { color: var(--color-white); }

.readmore, .read-more {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.875rem; font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}
.readmore:hover, .read-more:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white); text-decoration: none;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}
.news-item {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.news-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-item-image { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.news-item-image img { width: 100%; height: 100%; object-fit: cover; }
.news-item-content { padding: var(--spacing-md); }
.news-item-title { font-size: 1rem; margin-bottom: var(--spacing-sm); line-height: 1.4; }
.news-item-title a { color: var(--color-secondary); }
.news-item-title a:hover { color: var(--color-primary); }
.news-item-date { font-size: 0.75rem; color: var(--color-text-light); }

/* Banners */
.banner-top, .banner-bottom { padding: var(--spacing-md) 0; text-align: center; }
.news-promo-item, .news-promo__item, .banneritem, .banner { display: block; max-width: 100%; }
.news-promo-item img, .news-promo__item img, .banneritem img, .banner img { max-width: 100%; height: auto; display: block; }
.news-promo-group, .news-promo__group { display: flex; flex-wrap: wrap; gap: .5rem; }
.news-promo-group > .news-promo-item, .news-promo-group > .news-promo__item,
.news-promo__group > .news-promo-item, .news-promo__group > .news-promo__item { flex: 0 1 auto; }
/* Banner in Cards (z.B. Sidebar/Sticky) horizontal zentrieren */
.card .news-promo-group, .card .news-promo__group,
.card-body .news-promo-group, .card-body .news-promo__group { justify-content: center; }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer { background-color: var(--color-footer-bg); color: var(--color-white); margin-top: auto; }
.footer-widgets { padding: var(--spacing-xxl) 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--spacing-xl); }
.footer-col .card { background-color: transparent; box-shadow: none; }
.footer-col .card-header { background-color: transparent; border-bottom-color: rgba(255,255,255,0.2); }
.footer-col .card-header h3, .footer-col .module-title { color: var(--color-white); }
.footer-col .card-body { padding: var(--spacing-md) 0; }
.footer-col a { color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--color-white); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { padding: var(--spacing-xs) 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-bottom { padding: var(--spacing-md) 0; }
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: var(--spacing-md);
}
.copyright { margin: 0; font-size: 0.875rem; color: rgba(255,255,255,0.7); }

/* ========================================================================
   Off-Canvas
   ======================================================================== */
.off-canvas {
    position: fixed; top: 0; left: -300px; width: 300px; height: 100vh;
    background-color: var(--color-white); box-shadow: var(--shadow-lg);
    z-index: 2000; overflow-y: auto;
    transition: left var(--transition-base); padding: var(--spacing-lg);
}
.off-canvas.active { left: 0; }
.off-canvas-close {
    position: absolute; top: var(--spacing-md); right: var(--spacing-md);
    width: 40px; height: 40px; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--color-text-light);
}
.off-canvas-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); z-index: 1999;
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}
.off-canvas-overlay.active { opacity: 1; visibility: visible; }
.off-canvas ul { list-style: none; margin: 0; padding: 0; }
.off-canvas ul li { border-bottom: 1px solid var(--color-border); }
.off-canvas ul a { display: block; padding: var(--spacing-md); color: var(--color-secondary); }
.off-canvas ul a:hover { background-color: var(--color-background); color: var(--color-primary); text-decoration: none; }

/* Mobile Bars */
.mobile-top {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    background-color: var(--color-header-bg);
    font-size: 0; line-height: 0;
}
.mobile-top img { display: block; max-width: 100%; height: auto; }
.mobile-top > * { font-size: 1rem; line-height: var(--line-height-base); }
.mobile-bottom {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background-color: var(--color-white); box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    /* KEIN zusätzliches padding-bottom: iOS Safari/Firefox melden safe-area-inset-bottom
       absichtlich als 0 in Portrait — die Bottom-URL-Bar collapsed automatisch beim Scrollen
       und Tippen im Bereich scrollt die Seite hoch. Eigenes Padding würde nur einen leeren
       Streifen erzeugen, durch den die frosted URL-Bar Artikeltext durchscheinen lässt.
       Nur safe-area für Standalone-PWA-Modus und Home-Indicator in Landscape. */
    padding-bottom: env(safe-area-inset-bottom);
    font-size: 0; line-height: 0;
}
.mobile-bottom img { display: block; max-width: 100%; height: auto; }
.mobile-bottom > * { font-size: 1rem; line-height: var(--line-height-base); }

/* ========================================================================
   Buttons & Forms
   ======================================================================== */
.btn, button[type="submit"], input[type="submit"] {
    display: inline-block; padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem; font-weight: 500; text-align: center;
    text-decoration: none; border: none; border-radius: var(--radius-md);
    cursor: pointer; transition: background-color var(--transition-fast), color var(--transition-fast);
}
.btn-primary, button[type="submit"], input[type="submit"] {
    background-color: var(--color-primary); color: var(--color-white);
}
.btn-primary:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background-color: var(--color-primary-dark); color: var(--color-white); text-decoration: none;
}
.btn-secondary { background-color: var(--color-secondary); color: var(--color-white); }
.btn-secondary:hover { background-color: #444; }

input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="tel"], input[type="url"],
input[type="number"], textarea, select {
    width: 100%; padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem; font-family: inherit;
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    background-color: var(--color-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}
label { display: block; margin-bottom: var(--spacing-xs); font-weight: 500; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: var(--spacing-lg); }
th, td { padding: var(--spacing-sm) var(--spacing-md); text-align: left; border-bottom: 1px solid var(--color-border); }
th { background-color: var(--color-background); font-weight: 600; }
tbody tr:hover { background-color: var(--color-background); }

/* Pagination */
.pagination, .pagenav {
    display: flex; justify-content: center; gap: var(--spacing-xs);
    margin: var(--spacing-xl) 0; flex-wrap: wrap;
}
.pagination a, .pagination span, .pagenav a, .pagenav span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 var(--spacing-sm);
    background-color: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); color: var(--color-text); text-decoration: none;
    transition: all var(--transition-fast);
}
.pagination a:hover, .pagenav a:hover {
    background-color: var(--color-primary); border-color: var(--color-primary); color: var(--color-white);
}
.pagination .active span, .pagination .current, .pagenav .pagenav-page.active {
    background-color: var(--color-primary); border-color: var(--color-primary); color: var(--color-white);
}

/* Messages */
.alert, .system-message { padding: var(--spacing-md); margin-bottom: var(--spacing-md); border-radius: var(--radius-md); border: 1px solid transparent; }
.alert-success, .message { background-color: #d4edda; border-color: #c3e6cb; color: #155724; }
.alert-warning, .warning { background-color: #fff3cd; border-color: #ffeeba; color: #856404; }
.alert-error, .alert-danger, .error { background-color: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.alert-info, .notice { background-color: #d1ecf1; border-color: #bee5eb; color: #0c5460; }

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.clearfix::after { content: ''; display: table; clear: both; }

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1199px) {
    :root { --container-width: 960px; }
}

@media (max-width: 991px) {
    :root { --container-width: 720px; --sidebar-width: 100%; }
    
    .hidden-mobile { display: none !important; }
    .menu-toggle { display: flex; }
    .main-navigation { display: none; }
    .sub-navigation { display: none; }
    
    .header-inner { flex-wrap: nowrap; min-height: 60px; gap: 0.5rem; position: relative; justify-content: flex-start; align-items: center; }
    .header-inner .menu-toggle { order: 1; position: static; transform: none; flex-shrink: 0; }
    .header-inner .logo-wrapper { order: 2; margin: 0; align-items: flex-start; text-align: left; flex-shrink: 1; min-width: 0; }
    .header-inner .header-right.hidden-mobile { order: 3; display: flex !important; margin-left: auto; flex-shrink: 0; }
    .header-inner .header-right .header-date-block { padding: .25rem .5rem; min-width: 0; }
    .header-inner .header-right .date-weekday { font-size: .7rem; }
    .header-inner .header-right .date-daymonth { font-size: .75rem; }
    .header-inner .header-right .header-article-block { padding: .25rem .5rem; min-width: 0; }
    .header-inner .header-right .article-count-number { font-size: 1.1rem; }
    .header-inner .header-right .article-count-label { font-size: .65rem; line-height: 1.15; }
    .logo-image { max-height: 45px; }
    .logo-text { font-size: 1.5rem; }
    
    .content-row.main-left, .content-row.main-right { grid-template-columns: 1fr; }
    .content-row.main-right .content-main, .content-row.main-right .sidebar { order: unset; }
    .sidebar { order: 2; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Topbar Mobile */
    .topbar-left { display: none; }
    .topbar-right { flex: 1; }
    .topbar-search { flex: 1; }
    .topbar-search input[type="search"],
    .topbar-search input[type="text"],
    .topbar-search .inputbox { width: 100%; }
}

@media (max-width: 767px) {
    :root { --container-width: 100%; --font-size-base: 15px; }
    
    .topbar { display: none; }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    .article-title { font-size: 1.25rem; }
    
    .header-inner { min-height: 50px; padding: 0.5rem 0; }
    .logo-image { max-height: 35px; }
    .logo-text { font-size: 1.1rem; }
    
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .site-footer { padding-bottom: 60px; }

    .news-card-excerpt,
    .news-list-excerpt,
    .event-list-item .news-list-excerpt { display: none !important; }
}

@media (min-width: 992px) {
    .hidden-desktop { display: none !important; }
    /* Submenüs öffnen via Hover (CSS) — Chevron-Toggle-Button nicht nötig auf Desktop */
    .main-navigation .mod-menu__toggle-sub { display: none; }
}

/* ========================================================================
   Gallery Lightbox Modal
   ======================================================================== */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.gallery-modal.active {
    display: flex;
}
.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}
.gallery-modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-modal-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 5px 12px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.gallery-modal-close:hover { opacity: 1; }
.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 16px 14px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}
.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}
.gallery-modal-prev { left: 15px; }
.gallery-modal-next { right: 15px; }
.gallery-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
@media (max-width: 767px) {
    .gallery-modal-prev,
    .gallery-modal-next {
        padding: 12px 10px;
        font-size: 1.2rem;
    }
    .gallery-modal-prev { left: 8px; }
    .gallery-modal-next { right: 8px; }
    .gallery-modal-close { top: 10px; right: 12px; }
}

/* ========================================================================
   Article Body
   ======================================================================== */
.article-body {
    overflow: hidden;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}
.article-body img {
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
}
.article-body img[width] {
    width: auto;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
}

/* ========================================================================
   Ad Slots – CLS-sichere Container für AdSense
   ======================================================================== */
.ad-slot {
    text-align: center;
    overflow: hidden;
}
.ad-slot:empty {
    display: none;
}

/* Banner-Wrapper kollabieren, wenn alle inneren .news-promo per Visibility-Klasse
   am aktuellen Breakpoint ausgeblendet sind. Sonst reserviert min-height Platz. */
.banner-top:not(:has(.news-promo:not(.hidden))),
.banner-bottom:not(:has(.news-promo:not(.hidden))) {
    display: none !important;
}
@media (max-width: 767px) {
    .banner-top:not(:has(.news-promo:not(.hidden):not(.hidden-sm):not(.hidden-mobile):not(.hidden-xs))),
    .banner-bottom:not(:has(.news-promo:not(.hidden):not(.hidden-sm):not(.hidden-mobile):not(.hidden-xs))) {
        display: none !important;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .banner-top:not(:has(.news-promo:not(.hidden):not(.hidden-md):not(.hidden-tablet))),
    .banner-bottom:not(:has(.news-promo:not(.hidden):not(.hidden-md):not(.hidden-tablet))) {
        display: none !important;
    }
}
@media (min-width: 992px) {
    .banner-top:not(:has(.news-promo:not(.hidden):not(.hidden-lg):not(.hidden-desktop))),
    .banner-bottom:not(:has(.news-promo:not(.hidden):not(.hidden-lg):not(.hidden-desktop))) {
        display: none !important;
    }
}
.ad-slot-leaderboard {
    min-height: 90px;
    margin: 1rem 0;
}
.ad-slot-in-article {
    min-height: 250px;
    margin: 1.5rem 0;
}
.sidebar .ad-slot-rectangle {
    min-height: 250px;
    margin-bottom: 1.5rem;
}
@media (max-width: 728px) {
    .ad-slot-leaderboard {
        min-height: 50px;
    }
}
@media print {
    .ad-slot { display: none !important; }
}

/* ========================================================================
   Print
   ======================================================================== */
@media print {
    .fixed-header-wrapper, .site-header, .main-navigation, .sub-navigation,
    .sidebar, .site-footer, .breadcrumbs-wrapper, .banner-top, .banner-bottom,
    .mobile-top, .mobile-bottom, .menu-toggle, .off-canvas, .off-canvas-overlay,
    .topbar, .header-spacer { display: none !important; }
    
    body { font-size: 12pt; color: #000; background: #fff; }
    .container, .container-fluid { max-width: 100%; padding: 0; }
    .content-row { display: block; }
    a { color: #000; text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ========================================================================
   mod_articles_news / mod_articles_latest / mod_articles_category
   Kompakte News-Liste mit roten Pfeilen, ohne Bullet-Punkte
   ======================================================================== */
.card .mod-articles-items,
.card .mod-articles-news-list,
.card ul.mod-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.card .mod-articles-items > li,
.card ul.mod-list > li {
    list-style: none;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}
.card .mod-articles-items > li:first-child,
.card ul.mod-list > li:first-child {
    padding-top: 0.25rem;
}
.card .mod-articles-items > li:last-child,
.card ul.mod-list > li:last-child {
    border-bottom: 0;
    padding-bottom: 0.25rem;
}
.card .mod-articles-items .mod-articles-item-content {
    margin: 0;
}
.card .mod-articles-items .mod-articles-title,
.card .mod-articles-items h4,
.card ul.mod-list h4 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
.card .mod-articles-items .mod-articles-link,
.card .mod-articles-items a,
.card ul.mod-list a {
    display: block;
    color: var(--color-secondary, #1f2937);
    text-decoration: none;
    transition: color 0.2s;
    padding-left: 1.1rem;
    position: relative;
}
.card .mod-articles-items .mod-articles-link::before,
.card .mod-articles-items > li > a::before,
.card ul.mod-list > li > a::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-55%);
    color: var(--color-primary, #cc0000);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
}
.card .mod-articles-items a:hover,
.card .mod-articles-items a:focus,
.card ul.mod-list a:hover,
.card ul.mod-list a:focus {
    color: var(--color-primary, #cc0000);
    text-decoration: none;
}

/* Optionale Meta-Zeile (Datum/Author) — falls vom Modul aktiviert */
.card .mod-articles-items .mod-articles-meta {
    font-size: 0.75rem;
    color: var(--color-text-light, #6b7280);
    margin: 0.15rem 0 0 1.1rem;
}

/* ===========================================================
   Footer v3 — Heller Hintergrund (wie Sitebackground)
   =========================================================== */

.site-footer {
    background-color: var(--color-background);
    color: var(--color-secondary);
    border-top: 1px solid var(--color-border);
}
.footer-widgets {
    padding: var(--spacing-xl) 0;
    border-bottom: 0;
    position: relative;
}

/* === Back-to-Top (rechts oben im Footer) === */
.footer-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--spacing-md);
}
.footer-back-to-top {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-secondary);
    font-size: 0.85rem; font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.footer-back-to-top:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    text-decoration: none;
}
.footer-back-to-top-icon {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}
.footer-back-to-top:hover .footer-back-to-top-icon {
    transform: translateY(-2px);
}

/* Grid: Logo-Spalte breiter, Modul-Spalten gleich verteilt */
.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-xl);
    align-items: start;
}

/* === Logo-Spalte === */
.footer-logo-col { min-width: 0; }
.footer-logo-block {
    position: relative;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
}
.footer-logo-block::after {
    /* dezenter roter Akzentstrich unter dem Logo */
    content: ""; position: absolute; bottom: 12px; left: 50%;
    transform: translateX(-50%); width: 48px; height: 3px;
    background: var(--color-primary); border-radius: 2px;
}
.footer-logo { display: inline-block; color: var(--color-secondary); text-decoration: none; max-width: 100%; }
.footer-logo:hover { text-decoration: none; opacity: 0.85; }
.footer-logo-image { max-width: 100%; height: auto; max-height: 70px; display: block; margin: 0 auto; }
.footer-logo-text {
    display: inline-block; font-size: 2rem; font-weight: 800;
    color: var(--color-secondary); line-height: 1; letter-spacing: 1px;
    text-transform: uppercase;
}
.footer-slogan {
    display: block; margin: var(--spacing-sm) 0 var(--spacing-md);
    font-size: 0.8rem; color: var(--color-text-light);
    letter-spacing: 0.3px;
}

/* === Modul-Titel im Footer (überschreibt Card-Chrome) === */
.footer-col .card { background: transparent; box-shadow: none; padding: 0; }
.footer-col .card-header {
    background: transparent; border: 0; padding: 0 0 var(--spacing-xs);
    position: relative;
}
.footer-col .card-header h3,
.footer-col .module-title,
.footer-col h3.module-title {
    color: var(--color-secondary); font-size: 0.95rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin: 0 0 var(--spacing-xs); padding: 0;
}
.footer-col .card-header::after,
.footer-col .module-title::after {
    content: ""; display: block; width: 40px; height: 3px;
    background: var(--color-primary); margin-top: var(--spacing-xs);
    border-radius: 2px;
}
.footer-col .card-body { padding: var(--spacing-md) 0 0; }

/* === Listen / Links === */
.footer-col ul li {
    padding: var(--spacing-xs) 0;
    border-bottom: 0;
}
.footer-col a {
    color: var(--color-text); text-decoration: none;
    font-size: 0.9rem; transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--color-primary); text-decoration: none; }

/* RSS-Feed-Link in Akzent-Farbe (Konvention: Menüpunkt-CSS-Klasse "rss") */
.footer-col li.rss a,
.footer-col a.rss-link { color: #d97706; }
.footer-col li.rss a:hover { color: #b45309; }

/* === Social-Media-Icons via CSS-Klassen-Suffix am Menüpunkt === */
.footer-col li.facebook a,
.footer-col li.twitter a,
.footer-col li.x-twitter a,
.footer-col li.youtube a,
.footer-col li.instagram a,
.footer-col li.linkedin a {
    display: inline-flex; align-items: center; gap: 0.6rem;
}
.footer-col li.facebook a::before,
.footer-col li.twitter a::before,
.footer-col li.x-twitter a::before,
.footer-col li.youtube a::before,
.footer-col li.instagram a::before,
.footer-col li.linkedin a::before {
    content: ""; display: inline-block; width: 18px; height: 18px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
    flex-shrink: 0;
}
.footer-col li.facebook a::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22.675 0H1.325C.593 0 0 .593 0 1.325v21.351C0 23.407.593 24 1.325 24H12.82v-9.294H9.692v-3.622h3.128V8.413c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12V24h6.116C23.407 24 24 23.407 24 22.676V1.325C24 .593 23.407 0 22.675 0z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22.675 0H1.325C.593 0 0 .593 0 1.325v21.351C0 23.407.593 24 1.325 24H12.82v-9.294H9.692v-3.622h3.128V8.413c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12V24h6.116C23.407 24 24 23.407 24 22.676V1.325C24 .593 23.407 0 22.675 0z'/></svg>");
}
.footer-col li.twitter a::before,
.footer-col li.x-twitter a::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/></svg>");
}
.footer-col li.youtube a::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/></svg>");
}
.footer-col li.instagram a::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919C8.416 2.175 8.796 2.163 12 2.163zm0-2.163C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919C8.416 2.175 8.796 2.163 12 2.163zm0-2.163C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z'/></svg>");
}
.footer-col li.linkedin a::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.063 2.063 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.063 2.063 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/></svg>");
}

/* === Footer-Bottom (Copyright) === */
.footer-bottom { padding: var(--spacing-md) 0; border-top: 1px solid var(--color-border); }
.footer-bottom-inner p, .footer-bottom .copyright {
    color: var(--color-text-light); font-size: 0.82rem; margin: 0;
}

/* === Responsive === */
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-logo-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-logo-col { grid-column: auto; }
    .footer-logo-block { padding: var(--spacing-md); }
    .footer-logo-text { font-size: 1.6rem; }
}
