/* ==========================================================================
   BASE & LAYOUT STYLES (base.css)
   ========================================================================== */

/* 1. TOKENS & BASIS-RESET
   ========================================================================== */
:root {
    --font-serif: 'Liberation Serif', 'Tinos', Georgia, serif;
    --font-sans: 'Liberation Sans', -apple-system, sans-serif;
    --font-logo: 'Caveat', cursive;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--priv-bg-page);
    color: var(--priv-text-main);
    line-height: 1.75;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Verhindert das Ausbrechen von SVGs, Bildern und Medien */
img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

a:focus-visible, button:focus-visible, select:focus-visible {
    outline: 3px solid var(--priv-focus);
    outline-offset: 4px;
}

/* ==========================================================================
   2. GLOBALE LAYOUTS & HILFSELEMENTE
   ========================================================================== */
main {
    flex: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(0.75rem, 2.5vw, 1.5rem);
    width: 100%;
}

.reading-article {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--priv-bg-surface);
    padding: clamp(1.25rem, 3.5vw, 3rem);
    border-radius: 6px;
    border: 1px solid var(--priv-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
}

.reading-article.is-wide {
    max-width: none;
}

#main-content,
article[id] {
    scroll-margin-top: 8rem;
}

/* Skip-Link für Tastaturnavigation */
.skip-link {
    position: fixed;
    top: -34px;
    left: 2rem;
    background-color: var(--priv-bg-subtle);
    border: 1px solid var(--priv-warn);
    color: var(--priv-text-main);
    padding: 0.6rem 1.25rem;
    z-index: 2000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.skip-link:focus,
.skip-link:hover {
    top: 0;
    border-left: 3px solid var(--priv-focus);
    border-bottom: 3px solid var(--priv-focus);
    border-right: 3px solid var(--priv-focus);
    border-top: none;
}

/* Zurück-zum-Seitenanfang-Button */
.back-to-top {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    background-color: var(--priv-bg-subtle);
    border: 1px solid var(--priv-border);
    color: var(--priv-text-main);
    padding: 0.5rem 1rem;
    z-index: 1000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s, border-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: var(--priv-bg-surface);
    border-color: var(--priv-accent);
    color: var(--priv-accent);
}

/* ==========================================================================
   3. TYPOGRAFIE, ARTIKEL-HEADER & UNTERTITEL
   ========================================================================== */
/* Meta-Tag (Dachzeile) – zentral und einmalig definiert */
.meta-tag {
    display: inline-block;
    background-color: var(--priv-bg-subtle);
    color: var(--priv-accent);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Standard-Überschrift (wenn kein Header-Container genutzt wird) */
.reading-article h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-top: 0;
    color: var(--priv-text-main);
    border-bottom: 2px solid var(--priv-border);
    padding-bottom: 0.75rem;
}

/* Container-Kapselung für zusammengehörige Titel-Blöcke (Mit Header & Subtitle) */
header.article-header,
.reading-article > header {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 2px solid var(--priv-border);
    padding-bottom: 0.75rem;
}

/* h2 innerhalb eines Article-Headers verliert die Einzellinie */
header.article-header h2 {
    font-size: clamp(1.6rem, 2.5vw + 1rem, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--priv-text-main);
    margin: 0;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Der Subtitle / Untertitel */
.subtitle,
p.subtitle,
p.lead {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--priv-text-subtitle, var(--priv-text-muted)); /* Fallback auf muted */
    margin: 0;
    max-width: 68ch;
}

/* Fließtext-Definitionen */
.reading-article h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-top: 2rem;
    color: var(--priv-accent);
}

.reading-article p {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.1rem);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    text-align: justify;
    hyphens: auto;
}

header.article-header p {
    margin-bottom: 0.5rem;
}

header.article-header .subtitle {
    color: var(--priv-text-subtitle);
}

.reading-article p.small-bottom {
    margin-bottom: -1rem;
}

/* Feine Trennung bei aufeinanderfolgenden Abschnitten nach Header */
header.article-header + p,
.reading-article > header + p {
    margin-top: 0.5rem;
}

/* ==========================================================================
   4. NAVIGATION, HEADER & FOOTER
   ========================================================================== */
header.private-header {
    border-bottom: 3px solid var(--priv-border);
    padding: 1.5rem;
    background-color: var(--priv-bg-surface);
}

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

.author-font {
    font-family: var(--font-logo);
    font-weight: normal;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.04em;
}

.author-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--priv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.author-tags li:not(:last-child):after {
    content: "|";
    margin-left: 0.75rem;
    color: var(--priv-author-tags-separator);
    font-weight: bold;
    padding-top: -1rem;
}

.author-brand {
    text-decoration: none;
    color: var(--priv-text-main);
    text-align: center;
}

.author-brand h1 {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: bold;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.04em;
}

.author-brand span {
    font-size: 0.85rem;
    color: var(--priv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--priv-text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--priv-accent);
    text-decoration: underline;
}

.nav-links a[aria-current="page"],
.legal-nav a[aria-current="page"] {
    color: var(--priv-accent);
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Footer */
/* ==========================================================================
   FOOTER & RESPONSIVE COPYRIGHT-STEUERUNG
   ========================================================================== */
/* Footer Grundlayout */
footer.private-footer {
    background-color: var(--priv-bg-surface);
    border-top: 3px solid var(--priv-border);
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem); /* Fluid Padding, spart Platz auf Handys */
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--priv-text-muted);
}

.footer-copyright {
    margin: 0;
}

.copyright-main {
    display: inline;
}
.copyright-sub {
    display: inline;
}

/* Rechtliche Links im Footer */
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-nav a {
    color: var(--priv-text-muted);
    text-decoration: none;
    display: inline-block;
    padding: 0.1rem 0; /* Etwas Touch-Fläche für Mobile */
}

.legal-nav a:hover {
    color: var(--priv-text-main);
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE FOOTER ANPASSUNGEN (Mobile & Schmale Displays)
   ========================================================================== */
@media screen and (max-width: 680px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .copyright-sub {
        display: block; /* Copyright bricht sauber in die 2. Zeile um */
    }
}

/* Spezieller Schutz für sehr schmale Smartphones (wie Samsung A12) */
@media screen and (max-width: 420px) {
    .legal-nav {
        flex-direction: column; /* Links untereinander anordnen, damit nichts abgeschnitten wird */
        gap: 0.5rem;            /* Angenehmer vertikaler Abstand */
    }
}

/* ==========================================================================
   SITEMAP STILE (Visuelle Inhaltsübersicht)
   ========================================================================== */
.sitemap-navigation {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.sitemap-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sitemap-section h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--priv-accent);
    border-bottom: 1px solid var(--priv-border);
    padding-bottom: 0.5rem;
    margin: 0;
    letter-spacing: 0.02em;
}

.sitemap-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sitemap-list li {
    margin: 0 !important;
    font-family: var(--font-sans);
    font-size: 1.05rem;
}

.sitemap-list a,
.sitemap-list a:visited {
    color: var(--priv-text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sitemap-list a strong {
    color: inherit;
    font-weight: 600;
}

.sitemap-list a:hover,
.sitemap-list a:focus {
    color: var(--priv-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sitemap-desc {
    color: var(--priv-text-muted);
    font-size: 0.95rem;
    font-family: var(--font-serif);
}

/* ==========================================================================
   5. KOMPONENTEN (Buttons, Cards, Links, Callouts etc.)
   ========================================================================== */
.link-subtle {
    color: var(--priv-text-muted);
    font-family: var(--font-sans);
    font-size: 0.95em;
    text-decoration: none;
    text-decoration-color: var(--priv-border);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.link-subtle:hover,
.link-subtle:focus {
    color: var(--priv-accent);
    text-decoration-color: var(--priv-accent);
}

.link-subtle code {
    font-family: monospace;
    font-size: 0.9em;
    background-color: var(--priv-bg-subtle);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    border: 1px solid var(--priv-border);
    transition: border-color 0.2s ease;
}

.link-subtle:hover code,
.link-subtle:focus code {
    border-color: var(--priv-accent);
}

/* Theme Switcher Dropdown */
.theme-switcher {
    position: relative;
}

.theme-btn {
    background: var(--priv-bg-subtle);
    border: 1px solid var(--priv-border);
    color: var(--priv-text-main);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: inherit;
}

.theme-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background-color: var(--priv-bg-surface);
    border: 1px solid var(--priv-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 180px;
    padding: 0.5rem 0;
    padding-left: 1rem;
    list-style: none;
}

.theme-switcher:hover .theme-menu,
.theme-switcher:focus-within .theme-menu {
    display: block;
}

.theme-menu button {
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--priv-text-main);
    font-family: inherit;
    cursor: pointer;
    font-size: 0.9rem;
}

.theme-menu button:hover,
.theme-menu button:focus {
    background-color: var(--priv-bg-subtle);
    color: var(--priv-accent);
}

/* Action Bars & Buttons */
.action-bar {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--priv-border);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn:focus {
    outline: 3px solid var(--priv-focus);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--priv-accent);
    color: var(--priv-bg-surface);
    border-color: var(--priv-accent);
    font-weight: bold;
}
.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--priv-bg-subtle);
    color: var(--priv-text-main);
}
.btn-secondary:hover {
    background-color: var(--priv-border);
}

.btn-warning {
    background-color: transparent;
    color: var(--priv-warn);
    border-color: var(--priv-warn);
}
.btn-warning:hover {
    background-color: var(--priv-warn);
    color: var(--priv-bg-surface);
}

a.btn {
    text-decoration: none;
}

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

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

.card {
    background-color: var(--priv-bg-surface);
    border: 1px solid var(--priv-border);
    border-radius: 6px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: var(--priv-accent);
}

.card h2,
.card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-top: 0;
    color: var(--priv-text-main);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--priv-border);
}

.card h3 {
    border-bottom: 1px;
}

.card p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--priv-text-main);
}

.card .action-bar {
    margin-bottom: 0;
    margin-top: 1rem;
}

/* Listen & Boxen */
.reading-article ul,
.reading-article ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--priv-text-main);
}

.feature-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--priv-accent);
    font-size: 0.8rem;
    top: 2px;
}

.content-figure {
    margin: 2rem 0;
    padding: 0.75rem;
    background-color: var(--priv-bg-subtle);
    border: 1px solid var(--priv-border);
    border-radius: 6px;
    text-align: center;
}

.content-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.content-figure figcaption {
    margin-top: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--priv-text-muted);
    text-align: left;
    padding: 0 0.25rem;
}

.meta-container {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--priv-border);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--priv-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reading-article .meta-container p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--priv-text-muted);
    margin: 0;
    text-align: left;
    line-height: 1.4;
}

.meta-container .meta-label {
    font-weight: bold;
    color: var(--priv-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

.callout-note {
    background-color: var(--priv-bg-subtle);
    border-left: 4px solid var(--priv-accent);
    border-radius: 0 6px 6px 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.callout-note h3,
.callout-note h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--priv-accent);
}

.callout-note p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--priv-text-muted);
    margin-bottom: 0.75rem;
}

.callout-note p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   TEASER-HINT (.teaser-box / Vorschau-Hinweis)
   ========================================================================== */
.teaser-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: var(--priv-bg-subtle);
    border: 1px dashed var(--priv-border);
    border-left: 3px solid var(--priv-accent);
    border-radius: 4px;
    padding: 0.85rem 1.15rem;
    margin-top: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--priv-text-muted);
    line-height: 1.5;
}

.teaser-box p {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--priv-text-muted);
    text-align: left;
}

.teaser-box .teaser-icon {
    font-size: 1rem;
    color: var(--priv-accent);
    line-height: 1.2;
    flex-shrink: 0;
}
/* ========================================================================== */

/* Debug Panel */
.debug-panel {
    background-color: var(--priv-debug-bg);
    border: 1px dashed var(--priv-accent);
    padding: 1.25rem;
    border-radius: 6px;
    margin-top: 2rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--priv-text-muted);
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.debug-panel h4 {
    margin: 0 0 0.5rem 0;
    color: var(--priv-accent);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.debug-panel p {
    line-height: 1.4;
    margin-bottom: 0.3rem;
    font-family: monospace;
    font-size: 0.7rem;
}

.debug-panel hr {
    border: 0;
    border-top: 1px dashed var(--priv-separator);
    margin: 0.75rem 0;
}

.debug-context-title {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--priv-accent);
    margin-bottom: 0.4rem;
    margin-top: 0.8rem;
}

.debug-context:first-child .debug-context-title {
    margin-top: 0;
}

.debug-context + .debug-context {
    border-top: 1px dashed var(--priv-separator);
    margin-top: 0.75rem;
}

.keep-together {
    white-space: normal;
}

/* NoScript Banner */
.noscript-global-banner {
    background-color: var(--color-warning-bg, #fff3cd);
    color: var(--color-warning-text, #856404);
    border-bottom: 2px solid var(--color-warning-border, #ffeeba);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.noscript-content {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.noscript-content p {
    margin: 0;
}

/* High Contrast Overrides */
[data-theme="high-contrast"] .noscript-global-banner {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border-bottom: 2px solid #FFFF00 !important;
}

[data-theme="high-contrast"] .theme-btn {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border: 2px solid #FFFF00 !important;
}

[data-theme="high-contrast"] .theme-menu {
    background-color: #000000 !important;
    border: 2px solid #FFFF00 !important;
}

[data-theme="high-contrast"] .theme-menu a {
    color: #FFFF00 !important;
}

[data-theme="high-contrast"] .theme-menu a:hover,
[data-theme="high-contrast"] .theme-menu a:focus {
    background-color: #FFFF00 !important;
    color: #000000 !important;
}

/* ==========================================================================
   6. MEDIA QUERIES & RESPONSIVE ANPASSUNGEN
   ========================================================================== */
@media (min-width: 768px) {
    .keep-together {
        white-space: nowrap;
    }
}

/* Tablet & Mobile Umbrüche (unter 780px) */
@media screen and (max-width: 780px) {
    .grid-3-col {
        grid-template-columns: 1fr;
    }

    .back-to-top span.label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .back-to-top {
        padding: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        justify-content: center;
        gap: 0;
        right: 1.25rem;
        border-radius: 6px;
    }
}

/* Spezieller Feinschliff für sehr schmale Smartphones (z.B. Galaxy A12 im Porträtmodus) */
@media screen and (max-width: 420px) and (orientation: portrait) {
    .theme-menu {
        right: auto;
    }

    .back-to-top {
        bottom: 6rem;
    }

    /* Meta-Elemente dezent kompakter halten, ohne die Lesbarkeit zu zerstören */
    .meta-tag,
    .meta-container {
        font-size: 0.75rem;
    }
}
