/* ============================================
   steiermark-wirtschaft.at - Stylesheet
   Basierend auf GP Magazine Theme v1.1.0,
   fuer Custom-PHP-Setup bereinigt.
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    --mag-primary: #1a1a2e;
    --mag-accent: #2b7232;
    --mag-accent-hover: #225c28;
    --mag-text: #2c2c2c;
    --mag-text-light: #6b6b6b;
    --mag-bg: #ffffff;
    --mag-white: #ffffff;
    --mag-border: #e0ddd5;
    --mag-border-dark: #1a1a2e;
    --mag-font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --mag-font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mag-radius: 0px;
    --mag-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --mag-shadow-hover: 0 6px 24px rgba(0,0,0,0.1);
    --mag-transition: 0.25s ease;
    --mag-max-width: 1280px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--mag-bg);
    color: var(--mag-text);
    font-family: var(--mag-font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--mag-accent); }
a:hover { color: var(--mag-primary); }
button { font-family: inherit; cursor: pointer; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--mag-font-heading);
    color: var(--mag-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

/* ---------- SKIP LINK ---------- */
.mag-skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 10000;
    background: var(--mag-accent);
    color: #fff;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}
.mag-skip-link:focus { top: 10px; }

/* ---------- FOCUS ---------- */
*:focus-visible { outline: 2px solid var(--mag-accent); outline-offset: 2px; }

/* ---------- VISITED LINKS (nicht ausbleichen) ---------- */
a:visited { color: inherit; }
.mag-article-content a:visited,
.mag-page-content a:visited { color: var(--mag-primary); }
/* Card-Titel bei visited nur minimal dimmen */
.mag-news-card h3 a:visited,
.mag-post-card h3 a:visited,
.mag-featured-main h2 a:visited,
.mag-featured-small h3 a:visited,
.mag-related-content h4 a:visited,
.mag-popular-posts h4 a:visited { color: var(--mag-primary); opacity: 0.82; }

/* ---------- main-Fokus (Skip-Link-Ziel) ohne sichtbares Outline ---------- */
main#content:focus { outline: none; }

/* ============================================
   TOP BAR
   ============================================ */
.mag-top-bar {
    background: var(--mag-accent);
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.mag-top-bar .inside-container {
    max-width: var(--mag-max-width);
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mag-top-bar a { color: #ffffff; text-decoration: none; }
.mag-top-bar a:hover { text-decoration: underline; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--mag-white);
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}
.inside-header {
    max-width: var(--mag-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.mag-logo {
    display: block;
    flex-shrink: 0;
    padding: 12px 0;
    text-decoration: none;
}
.mag-logo-svg { display: block; max-width: 360px; height: auto; }

/* Desktop Nav */
.mag-nav-desktop { display: flex; }
.mag-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.mag-nav-list li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mag-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
}
.mag-nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 2px;
    background: var(--mag-accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.mag-nav-list li a:hover::after,
.mag-nav-list li.is-current a::after { transform: scaleX(1); }
.mag-nav-list li a:hover,
.mag-nav-list li.is-current a { color: var(--mag-accent); }
.mag-nav-list .mag-nav-search a { padding: 8px 10px; }
.mag-nav-list .mag-nav-search a::after { display: none; }

/* Hamburger */
.mag-hamburger { display: none; }
.mag-nav-mobile { display: none; }

/* Search Overlay */
.mag-search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mag-white);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    z-index: 100;
}
.mag-search-overlay[hidden] { display: none; }
.mag-search-form-inline {
    max-width: var(--mag-max-width);
    margin: 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}
.mag-search-form-inline input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--mag-border);
    border-radius: 0;
    background: #fff;
}
.mag-search-form-inline input[type="search"]:focus {
    outline: none;
    border-color: var(--mag-accent);
}
.mag-search-form-inline button {
    padding: 12px 16px;
    background: var(--mag-accent);
    color: #fff;
    border: none;
    font-weight: 600;
}
.mag-search-form-inline button:hover { background: var(--mag-accent-hover); }
.mag-search-close {
    background: transparent !important;
    color: var(--mag-primary) !important;
    font-size: 1.5rem;
    padding: 4px 12px !important;
}
.mag-search-results {
    max-width: var(--mag-max-width);
    margin: 16px auto 0;
    font-size: 0.95rem;
}
.mag-search-results ul { list-style: none; padding: 0; margin: 0; }
.mag-search-results li {
    padding: 10px 0;
    border-bottom: 1px solid var(--mag-border);
}
.mag-search-results li a {
    color: var(--mag-primary);
    text-decoration: none;
    font-weight: 600;
}
.mag-search-results li a:hover { color: var(--mag-accent); }
.mag-search-results .meta { display: block; font-size: 0.78rem; color: var(--mag-text-light); margin-top: 2px; }

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.site-content {
    max-width: var(--mag-max-width);
    margin: 0 auto;
    display: block;
}

/* ============================================
   HOMEPAGE - FEATURED
   ============================================ */
.mag-featured-section {
    max-width: var(--mag-max-width);
    margin: 30px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.mag-featured-main, .mag-featured-small {
    position: relative;
    overflow: hidden;
    border-radius: var(--mag-radius);
    background: var(--mag-primary);
    transition: box-shadow var(--mag-transition);
}
/* Main bestimmt die Zeilenhoehe, Sidebar folgt */
.mag-featured-main { aspect-ratio: 16/10; }
/* Smalls haben KEIN aspect-ratio - sie fuellen ihre Grid-Cell */
.mag-featured-small { min-height: 0; }
.mag-featured-main:hover, .mag-featured-small:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.mag-featured-main:hover .mag-overlay,
.mag-featured-small:hover .mag-overlay { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.95)); }
.mag-featured-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.mag-featured-main img,
.mag-featured-small img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mag-featured-main .mag-overlay,
.mag-featured-small .mag-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.9));
}
.mag-featured-small .mag-overlay { padding: 20px; }
.mag-featured-main h2,
.mag-featured-small h3 {
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.mag-featured-main h2 { font-size: 2rem; line-height: 1.2; }
.mag-featured-small h3 { font-size: 1.2rem; line-height: 1.3; }
.mag-featured-main .mag-meta {
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mag-category-badge {
    display: inline-block;
    background: var(--mag-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    margin-bottom: 12px;
    text-decoration: none;
}
.mag-featured-sidebar {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   NEWS GRID
   ============================================ */
.mag-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
    margin: 0 auto 50px;
    max-width: var(--mag-max-width);
}
.mag-news-card {
    background: var(--mag-white);
    box-shadow: var(--mag-shadow);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: box-shadow var(--mag-transition), transform var(--mag-transition);
}
.mag-news-card:hover { box-shadow: var(--mag-shadow-hover); transform: translateY(-2px); }
.mag-news-card .mag-news-image { flex-shrink: 0; width: 120px; overflow: hidden; }
.mag-news-card .mag-news-image img { width: 100%; height: 100%; object-fit: cover; }
.mag-news-card .mag-news-content {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}
.mag-news-card .mag-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--mag-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.mag-news-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
}
.mag-news-card h3 a {
    color: var(--mag-primary);
    text-decoration: none;
}
.mag-news-card h3 a:hover { color: var(--mag-accent); }
.mag-news-card .mag-meta {
    font-size: 0.72rem;
    color: var(--mag-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   CATEGORY COLUMNS (Homepage)
   ============================================ */
.mag-category-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 0 20px;
    margin: 0 auto 50px;
    max-width: var(--mag-max-width);
}
.mag-cat-column {
    background: var(--mag-white);
    box-shadow: var(--mag-shadow);
}
.mag-cat-column-header {
    background: var(--mag-accent);
    padding: 14px 20px;
}
.mag-cat-column-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
}
.mag-cat-column-header h3 a { color: #fff; text-decoration: none; }
.mag-cat-list { list-style: none; padding: 0; margin: 0; }
.mag-cat-list li {
    padding: 14px 20px;
    border-bottom: 1px solid var(--mag-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}
.mag-cat-list li:last-child { border-bottom: none; }
.mag-cat-list li a {
    font-family: var(--mag-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mag-primary);
    text-decoration: none;
    line-height: 1.35;
}
.mag-cat-list li a:hover { color: var(--mag-accent); }
.mag-cat-list li .mag-meta {
    font-size: 0.72rem;
    color: var(--mag-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mag-cat-more {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mag-accent);
    text-decoration: none;
    border-top: 1px solid var(--mag-border);
}
.mag-cat-more:hover { background: var(--mag-accent); color: #fff; }

/* ============================================
   SECTION HEADER
   ============================================ */
.mag-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 24px;
    padding: 0 20px;
    max-width: var(--mag-max-width);
    margin-left: auto;
    margin-right: auto;
}
.mag-section-header h2 {
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;
}
.mag-section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--mag-border);
}

/* ============================================
   ARCHIVE HEADER
   ============================================ */
.mag-archive-header {
    max-width: var(--mag-max-width);
    margin: 16px auto 30px;
    padding: 0 20px;
}
.mag-archive-header h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin: 0 0 8px;
}
.mag-archive-header .archive-description {
    font-size: 1.05rem;
    color: var(--mag-text-light);
    max-width: 680px;
    line-height: 1.6;
    margin-bottom: 12px;
}
.mag-archive-header .archive-meta {
    font-size: 0.78rem;
    color: var(--mag-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 12px;
    border-top: 2px solid var(--mag-accent);
    display: inline-block;
}

/* ============================================
   CONTENT AREA (Archive + Single Sidebar)
   ============================================ */
.mag-content-area {
    max-width: var(--mag-max-width);
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

/* ============================================
   POST GRID (Archive)
   ============================================ */
.mag-post-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.mag-post-card {
    background: var(--mag-white);
    box-shadow: var(--mag-shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--mag-transition), transform var(--mag-transition);
}
.mag-post-card:hover { box-shadow: var(--mag-shadow-hover); transform: translateY(-2px); }
.mag-post-card .mag-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.mag-post-card .mag-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mag-post-card .mag-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mag-post-card .mag-category-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    padding: 3px 10px;
    margin-bottom: 10px;
}
.mag-post-card .mag-card-content h3 {
    font-size: 1.15rem;
    margin: 0 0 10px;
    line-height: 1.35;
}
.mag-post-card .mag-card-content h3 a {
    color: var(--mag-primary);
    text-decoration: none;
}
.mag-post-card .mag-card-content h3 a:hover { color: var(--mag-accent); }
.mag-post-card .mag-excerpt {
    font-size: 0.9rem;
    color: var(--mag-text-light);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}
.mag-post-card .mag-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--mag-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 12px;
    border-top: 1px solid var(--mag-border);
}
.read-more {
    color: var(--mag-accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.read-more::after { content: '→'; transition: transform 0.2s ease; }
.read-more:hover::after { transform: translateX(4px); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 40px 20px;
}
.pagination a, .pagination span {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 16px;
    background: var(--mag-white);
    color: var(--mag-primary);
    text-decoration: none;
    border: 1px solid var(--mag-border);
}
.pagination a:hover { background: var(--mag-primary); color: #fff; border-color: var(--mag-primary); }
.pagination .current { background: var(--mag-primary); color: #fff; border-color: var(--mag-primary); }

/* ============================================
   ARTICLE (Single)
   ============================================ */
.mag-article-area {
    max-width: var(--mag-max-width);
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}
.mag-article {
    background: var(--mag-white);
    padding: 30px 40px;
}
.mag-breadcrumbs {
    max-width: var(--mag-max-width);
    margin: 16px auto;
    padding: 0 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mag-text-light);
    grid-column: 1 / -1;
}
.mag-breadcrumbs a { color: var(--mag-text-light); text-decoration: none; }
.mag-breadcrumbs a:hover { color: var(--mag-accent); }
.mag-breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }
.mag-breadcrumb-current {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
}
.mag-article-header { padding: 20px 0 20px; border-bottom: 1px solid var(--mag-border); margin-bottom: 30px; }
.mag-article-header .mag-category-badge { margin-bottom: 16px; }
.mag-article-header h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 16px;
}
.mag-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mag-text-light);
    flex-wrap: wrap;
}
.mag-article-meta .dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--mag-text-light);
    display: inline-block;
}
.mag-article-image {
    margin: 0 0 24px;
}
.mag-article-image img { width: 100%; height: auto; }
.mag-image-caption {
    font-size: 0.82rem;
    color: var(--mag-text-light);
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}
.mag-article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 1.5em;
}
.mag-article-content h2 {
    font-size: 1.6rem;
    margin: 1.8em 0 0.6em;
    line-height: 1.3;
}
.mag-article-content h3 {
    font-size: 1.25rem;
    margin: 1.5em 0 0.6em;
}
.mag-article-content ul,
.mag-article-content ol {
    margin: 0 0 1.5em 1.5em;
    font-size: 1.05rem;
    line-height: 1.8;
}
.mag-article-content a {
    color: var(--mag-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.mag-article-content a:hover { color: var(--mag-primary); }
.mag-article-content blockquote {
    border-left: 4px solid var(--mag-accent);
    padding: 16px 24px;
    margin: 2em 0;
    background: #f9f9f9;
    font-family: var(--mag-font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--mag-primary);
    line-height: 1.6;
}
.mag-article-content img { max-width: 100%; height: auto; }

/* Artikel-Tabellen */
.mag-article-content table,
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
}
.mag-article-content thead {
    background: var(--mag-primary);
    color: #fff;
}
.mag-article-content th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
}
.mag-article-content td {
    padding: 12px;
    border-bottom: 1px solid var(--mag-border);
}
.mag-article-content tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

/* ============================================
   BOXEN IM ARTIKEL
   ============================================ */
.article-summary,
.mag-article-content .article-summary {
    background: #f5f5f5;
    padding: 28px;
    margin: 32px 0;
    border-left: 4px solid var(--mag-primary);
}
.article-summary > strong:first-child {
    font-family: var(--mag-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    display: block;
    margin-bottom: 14px;
    color: var(--mag-primary);
}
.article-summary ul { margin: 0 0 0 1.2em; padding: 0; }
.article-summary li { margin-bottom: 8px; line-height: 1.65; font-size: 0.98rem; }
.article-summary li:last-child { margin-bottom: 0; }

.box-info, .box-tipp, .box-warn, .box-legal, .box-fazit {
    padding: 22px 24px;
    margin: 28px 0;
    line-height: 1.7;
    font-size: 0.98rem;
}
.box-info   { background: #f5f5f5; border-left: 4px solid var(--mag-primary); }
.box-tipp   { background: #e8f5e9; border-left: 4px solid var(--mag-accent); }
.box-warn   { background: #fff8e6; border-left: 4px solid #f0ad4e; }
.box-legal  { background: #e3f2fd; border-left: 4px solid #2196f3; }
.box-fazit  { background: #f5f5f5; border-left: 4px solid var(--mag-primary); }
.box-info > strong:first-child,
.box-tipp > strong:first-child,
.box-warn > strong:first-child,
.box-legal > strong:first-child,
.box-fazit > strong:first-child {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.box-info > strong:first-child   { color: var(--mag-primary); }
.box-tipp > strong:first-child   { color: var(--mag-accent); }
.box-warn > strong:first-child   { color: #c98a00; }
.box-legal > strong:first-child  { color: #1565c0; }
.box-fazit > strong:first-child  { color: var(--mag-primary); }

/* Quellen */
.article-sources { list-style: none; padding: 0; margin: 20px 0; }
.article-sources li { padding: 6px 0; border-bottom: 1px solid var(--mag-border); font-size: 0.95rem; }
.article-sources li:last-child { border-bottom: none; }

/* Tags */
.mag-article-tags {
    margin: 40px 0 24px;
    padding-top: 20px;
    border-top: 1px solid var(--mag-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.mag-article-tags .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mag-text-light);
}
.mag-article-tags a {
    font-size: 0.78rem;
    color: var(--mag-text-light);
    padding: 5px 14px;
    border: 1px solid var(--mag-border);
    text-decoration: none;
}
.mag-article-tags a:hover { background: var(--mag-accent); color: #fff; border-color: var(--mag-accent); }

/* Share */
.mag-share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.mag-share-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}
.mag-share-buttons a:hover { opacity: 0.85; }
.mag-share-btn-x { background: #000; }
.mag-share-btn-fb { background: #1877f2; }
.mag-share-btn-li { background: #0a66c2; }
.mag-share-btn-mail { background: var(--mag-text-light); }

/* Related */
.mag-related { margin-bottom: 40px; }
.mag-related h3 {
    font-size: 1.3rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mag-accent);
}
.mag-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.mag-related-card {
    background: var(--mag-white);
    box-shadow: var(--mag-shadow);
    transition: box-shadow var(--mag-transition);
}
.mag-related-card:hover { box-shadow: var(--mag-shadow-hover); }
.mag-related-img { aspect-ratio: 16/10; overflow: hidden; }
.mag-related-img img { width: 100%; height: 100%; object-fit: cover; }
.mag-related-content { padding: 16px; }
.mag-related-content h4 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0 0 8px;
}
.mag-related-content h4 a {
    color: var(--mag-primary);
    text-decoration: none;
}
.mag-related-content h4 a:hover { color: var(--mag-accent); }
.mag-related-content span {
    font-size: 0.72rem;
    color: var(--mag-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SIDEBAR
   ============================================ */
.mag-sidebar { align-self: start; }
.mag-sidebar .widget,
.widget {
    background: var(--mag-white);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--mag-shadow);
}
.widget-title {
    font-size: 1.1rem;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mag-accent);
}
.mag-popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: popular;
}
.mag-popular-posts li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mag-border);
}
.mag-popular-posts li:last-child { border-bottom: none; }
.mag-pop-number {
    font-family: var(--mag-font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--mag-border);
    line-height: 1;
    min-width: 36px;
}
.mag-pop-content h4 {
    font-size: 0.95rem;
    margin: 0 0 4px;
    line-height: 1.3;
}
.mag-pop-content h4 a { color: var(--mag-primary); text-decoration: none; }
.mag-pop-content h4 a:hover { color: var(--mag-accent); }
.mag-pop-meta {
    font-size: 0.72rem;
    color: var(--mag-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mag-cat-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mag-cat-links li {
    padding: 8px 0;
    border-bottom: 1px solid var(--mag-border);
}
.mag-cat-links li:last-child { border-bottom: none; }
.mag-cat-links a {
    color: var(--mag-primary);
    text-decoration: none;
    font-weight: 600;
}
.mag-cat-links a:hover { color: var(--mag-accent); }

/* ============================================
   STATIC PAGES
   ============================================ */
.mag-page {
    max-width: 780px;
    margin: 20px auto 60px;
    padding: 0 20px;
}
.mag-page h1 {
    font-size: 2.4rem;
    margin: 0 0 24px;
}
.mag-page-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}
.mag-page-content h2 { font-size: 1.6rem; margin: 1.5em 0 0.6em; }
.mag-page-content h3 { font-size: 1.25rem; margin: 1.3em 0 0.5em; }

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */
.mag-search-page {
    max-width: var(--mag-max-width);
    margin: 20px auto 60px;
    padding: 0 20px;
}
.mag-search-page h1 { font-size: 2rem; margin: 0 0 24px; }
.mag-search-result {
    padding: 24px 0;
    border-bottom: 1px solid var(--mag-border);
}
.mag-search-result h2 {
    font-size: 1.3rem;
    margin: 0 0 8px;
}
.mag-search-result h2 a { color: var(--mag-primary); text-decoration: none; }
.mag-search-result h2 a:hover { color: var(--mag-accent); }
.mag-search-result p { font-size: 0.95rem; color: var(--mag-text); margin: 0 0 6px; }
.mag-search-result .meta {
    font-size: 0.75rem;
    color: var(--mag-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   404
   ============================================ */
.mag-404 {
    max-width: 680px;
    margin: 60px auto;
    padding: 48px 20px;
    text-align: center;
}
.mag-404-number {
    font-family: var(--mag-font-heading);
    font-size: 7rem;
    font-weight: 900;
    color: var(--mag-border);
    line-height: 1;
}
.mag-404 h1 { font-size: 1.8rem; margin: 16px 0 12px; }
.mag-404 p { color: var(--mag-text-light); margin-bottom: 28px; }
.mag-404-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.mag-404-links a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.88rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #ffffff;
    color: var(--mag-text);
    margin-top: 60px;
    border-top: 3px solid var(--mag-accent);
}
.mag-footer-widgets {
    max-width: var(--mag-max-width);
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.mag-footer-col .widget-title {
    font-size: 1.05rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mag-accent);
}
.mag-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mag-footer-col li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    font-size: 0.9rem;
}
.mag-footer-col li:last-child { border-bottom: none; }
.mag-footer-col a {
    color: var(--mag-text-light);
    text-decoration: none;
}
.mag-footer-col a:hover { color: var(--mag-accent); }
.mag-footer-col p {
    font-size: 0.9rem;
    color: var(--mag-text-light);
    margin: 0 0 12px;
}
.site-info {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mag-text-light);
}
.site-info a { color: var(--mag-text-light); text-decoration: none; }
.site-info a:hover { color: var(--mag-accent); }

/* ============================================
   RESPONSIVE - TABLET (<= 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .mag-logo-svg { max-width: 280px; }
    /* Tablet: Main oben full-width, 2 Smalls nebeneinander darunter */
    .mag-featured-section {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .mag-featured-main { aspect-ratio: 16/9; }
    .mag-featured-sidebar {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .mag-featured-small { aspect-ratio: 3/2; min-height: 0; }
    .mag-news-grid { grid-template-columns: repeat(2, 1fr); }
    .mag-category-columns { grid-template-columns: repeat(2, 1fr); }
    .mag-post-grid-2col { grid-template-columns: repeat(2, 1fr); }
    .mag-footer-widgets { grid-template-columns: repeat(2, 1fr); }
    .mag-content-area, .mag-article-area { grid-template-columns: 1fr; }
    .mag-article { padding: 24px; }
    .mag-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE - MOBILE (<= 768px)
   ============================================ */
@media (max-width: 768px) {
    :root { --mag-max-width: 100%; }

    .mag-top-bar { display: none; }
    .inside-header { padding: 0 14px; }
    .mag-logo-svg { max-width: 220px; }
    .mag-nav-desktop { display: none; }
    .mag-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: none;
        border: 1px solid #e0e0e0;
    }
    .mag-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--mag-primary);
        transition: all 0.3s ease;
    }
    .mag-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mag-hamburger.is-open span:nth-child(2) { opacity: 0; }
    .mag-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .mag-nav-mobile {
        display: none;
        border-top: 1px solid #e0e0e0;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        z-index: 100;
    }
    .mag-nav-mobile.is-open { display: block; }
    .mag-nav-mobile-list { list-style: none; margin: 0; padding: 0; }
    .mag-nav-mobile-list li { border-bottom: 1px solid #f0f0f0; }
    .mag-nav-mobile-list li a {
        display: block;
        padding: 14px 20px;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--mag-primary);
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
    .mag-nav-mobile-list li a:hover,
    .mag-nav-mobile-list li.is-current a { color: var(--mag-accent); background: #f8f8f8; }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    /* Mobile: Main gross oben, 2 Smalls nebeneinander (kein langes Scrollen) */
    .mag-featured-section {
        padding: 12px;
        margin: 16px auto;
        gap: 12px;
    }
    .mag-featured-main { aspect-ratio: 4/3; }
    .mag-featured-main .mag-overlay { padding: 16px; }
    .mag-featured-main h2 { font-size: 1.35rem; line-height: 1.25; }
    .mag-featured-sidebar {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .mag-featured-small { aspect-ratio: 3/2; }
    .mag-featured-small .mag-overlay { padding: 10px 12px; }
    .mag-featured-small h3 { font-size: 0.85rem; line-height: 1.25; }
    .mag-featured-small .mag-category-badge {
        font-size: 0.6rem;
        padding: 2px 8px;
        margin-bottom: 6px;
    }

    .mag-news-grid {
        grid-template-columns: 1fr;
        padding: 0 14px;
        gap: 12px;
    }
    .mag-news-card .mag-news-image { width: 90px; }

    .mag-category-columns { grid-template-columns: 1fr; padding: 0 14px; gap: 20px; }
    .mag-section-header { padding: 0 14px; }

    .mag-post-grid-2col { grid-template-columns: 1fr; gap: 16px; }

    .mag-article-area, .mag-content-area { padding: 0 14px; gap: 24px; }
    .mag-article { padding: 20px 16px; }
    .mag-article-header h1 { font-size: 1.7rem; }
    .mag-article-content p { font-size: 1rem; line-height: 1.75; }
    .mag-article-content h2 { font-size: 1.3rem; }

    .mag-related-grid { grid-template-columns: 1fr; }

    .mag-footer-widgets { grid-template-columns: 1fr; gap: 24px; padding: 30px 14px 20px; }

    .pagination { padding: 30px 14px; }
    .pagination a, .pagination span { padding: 8px 12px; font-size: 0.8rem; }

    .mag-archive-header { padding: 0 14px; }
    .mag-archive-header h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .mag-logo-svg { max-width: 190px; }
}

/* ============================================
   KONTAKTFORMULAR
   ============================================ */
.mag-contact-form {
    max-width: 620px;
    margin: 24px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mag-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mag-form-row label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mag-primary);
}
.mag-form-row input[type="text"],
.mag-form-row input[type="email"],
.mag-form-row textarea {
    font-family: var(--mag-font-body);
    font-size: 1rem;
    padding: 12px 14px;
    border: 2px solid var(--mag-border);
    background: var(--mag-white);
    color: var(--mag-text);
    line-height: 1.5;
}
.mag-form-row input:focus,
.mag-form-row textarea:focus {
    outline: none;
    border-color: var(--mag-accent);
}
.mag-form-row textarea {
    resize: vertical;
    min-height: 140px;
}
/* Honeypot - fuer Menschen unsichtbar */
.mag-form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.mag-form-submit {
    align-self: flex-start;
    padding: 14px 28px;
    background: var(--mag-accent);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background var(--mag-transition);
}
.mag-form-submit:hover { background: var(--mag-accent-hover); }
.mag-form-note {
    font-size: 0.8rem;
    color: var(--mag-text-light);
    line-height: 1.5;
    margin: 0;
}
.mag-form-note a { color: var(--mag-accent); }

@media (max-width: 768px) {
    .mag-form-submit { align-self: stretch; text-align: center; }
}

/* ============================================
   MENSCHEN: Personen-Lebensdaten-Box
   ============================================ */
.mag-article-content .box-person,
.entry-content .box-person {
    background: #fafafa;
    border: 1px solid var(--mag-border);
    border-left: 4px solid var(--mag-primary);
    padding: 20px 24px;
    margin: 28px 0;
    font-size: 0.92rem;
    line-height: 1.65;
}
.mag-article-content .box-person > strong:first-child,
.entry-content .box-person > strong:first-child {
    font-family: var(--mag-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mag-primary);
    display: block;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mag-border);
}
.mag-article-content .box-person dl,
.entry-content .box-person dl {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
}
.mag-article-content .box-person dt,
.entry-content .box-person dt {
    font-weight: 700;
    color: var(--mag-text-light);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mag-article-content .box-person dd,
.entry-content .box-person dd {
    margin: 0;
}
@media (max-width: 600px) {
    .mag-article-content .box-person dl,
    .entry-content .box-person dl {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }
    .mag-article-content .box-person dd,
    .entry-content .box-person dd { margin-bottom: 8px; }
}
