/*
Theme Name: Herzjuwel – Test
Description: Eigenständiges barrierearmes Theme für die Testumgebung von Herzjuwel
Author: Herzjuwel
Version: 1.0
*/

/* =========================
   Basis-CSS
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* =========================
   Überschriften
   ========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* =========================
   Links & Fokus
   ========================= */

a {
    color: #004aad;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid #ffb400;
    outline-offset: 2px;
    text-decoration: none;
}

/* =========================
   Listen
   ========================= */

ul,
ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.25rem;
}

/* =========================
   Medien
   ========================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================
   Hauptinhalt
   ========================= */

main {
    display: block;
}

/* =========================
   Skip-Link
   ========================= */

.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: #ffffff;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    z-index: 1000;
    border: 2px solid #004aad;
    text-decoration: none;
}

.skip-link:focus-visible {
    top: 1rem;
}

/* =========================
   Header & Navigation
   ========================= */

header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

header .site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

nav.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

nav.main-navigation li {
    margin: 0;
}

nav.main-navigation a {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: underline;
}

nav.main-navigation a:hover,
nav.main-navigation a:focus-visible {
    background-color: #f2f2f2;
    text-decoration: none;
    outline: 3px solid #ffb400;
    outline-offset: 2px;
}

nav.main-navigation .current-menu-item > a,
nav.main-navigation .current_page_item > a {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #004aad;
}

/* =========================
   Hero-Bereich (Grundlayout)
   ========================= */

.hero {
    background-color: #f7f7f7;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;

    /* Ergänzung: Beitragsbild als Hintergrund korrekt darstellen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem;
    max-width: 60ch;
}

/* =========================
   Hero – visuelle Beruhigung
   ========================= */

/* Overlay für alle Hero-Hintergrundbilder */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Text immer gut lesbar */
.hero h1,
.hero p {
    color: #ffffff;
}

/* =========================
   Hero – Mobile kompakter
   ========================= */

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}

/* =========================
   News – Feinschliff
   ========================= */

.news-list article {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.news-list h2 {
    margin-bottom: 0.5rem;
}

.news-excerpt {
    max-width: 65ch;
}

.pagination {
    margin-top: 2rem;
}

.pagination a:focus-visible {
    outline: 3px solid #ffb400;
    outline-offset: 2px;
}

/* =========================
   Footer
   ========================= */

.site-footer {
    border-top: 1px solid #e5e5e5;
    padding: 2rem 1rem;
    background-color: #fafafa;
}

.footer-navigation ul {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-navigation li {
    margin: 0;
}

.footer-navigation a {
    color: #1a1a1a;
    text-decoration: underline;
}

.footer-navigation a:hover,
.footer-navigation a:focus-visible {
    outline: 3px solid #ffb400;
    outline-offset: 2px;
    text-decoration: none;
}

.footer-copy {
    font-size: 0.875rem;
    margin: 0;
}
