
/* === 01_styles.css === */
/* ============================================
   DRK Kyffhäuserkreis - App Stylesheet
   (Header & Footer Styles sind in Templates)
   ============================================ */

:root {
    --drk-red: #e60005;
    --drk-red-dark: #b80004;
    --drk-red-light: #ff3338;
    --white: #ffffff;
    --off-white: #f8f7f5;
    --gray-light: #e8e6e3;
    --gray-medium: #9a9590;
    --gray-dark: #4a4744;
    --black: #1a1918;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-strong: 0 16px 60px rgba(0,0,0,0.18);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-dark);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    color: var(--black);
    line-height: 1.2;
}
/* Hero-Überschrift bewusst auf max. 36px begrenzt (nicht 4.5rem/72px).
   Bis zum libs.js-Pilot (05.08.2026) lud die Seite ungewollt die Framework-Regel
   `body h1 { clamp(2rem, 4vw, 36px) }` aus libs.css mit; deren höhere Spezifität
   (0-0-2) überschrieb die frühere DRK-Regel und ergab faktisch diese 36px.
   Andreas hat den kleineren Wert im Screenshot-Vergleich als den besseren bestätigt
   ("die 36px vorher sind besser"). Seit libs.css weg ist, steht der Wert hier fest
   im eigenen Stylesheet — NICHT zurück auf 4.5rem "korrigieren". */
h1 { font-size: clamp(2rem, 4vw, 36px); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p { max-width: 65ch; }
a { color: var(--drk-red); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--drk-red-dark); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--drk-red);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(230, 0, 5, 0.3);
}
.btn-primary:hover {
    background: var(--drk-red-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230, 0, 5, 0.4);
}
.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--gray-light);
}
.btn-secondary:hover {
    border-color: var(--drk-red);
    color: var(--drk-red);
    transform: translateY(-3px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 50%, var(--gray-light) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(230, 0, 5, 0.03) 50%, transparent 70%);
    transform: rotate(-12deg);
    pointer-events: none;
}
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-content {
    animation: fadeInUp 1s var(--transition-smooth) forwards;
    opacity: 0;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(230, 0, 5, 0.08);
    color: var(--drk-red);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 0, 5, 0.15);
}
.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--drk-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .text-red { color: var(--drk-red); }
.hero-text {
    font-size: 1.2rem;
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-visual {
    position: relative;
    animation: fadeInUp 1s 0.3s var(--transition-smooth) forwards;
    opacity: 0;
}
.hero-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}
/* Tauschbares Hero-Bild. Feste 4:3-Proportion (wie zuvor der Platzhalter),
   damit die Höhe der .hero-visual und die Position der Floating-Cards
   unverändert bleiben. object-fit: cover füllt den Rahmen randlos, egal
   welches Motiv gepflegt wird. */
.hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.floating-card-1 { top: 10%; right: -30px; animation-delay: 0s; }
.floating-card-2 { bottom: 15%; left: -40px; animation-delay: 1s; }
.floating-card h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    color: var(--gray-medium);
    font-weight: 400;
    margin-bottom: 0.3rem;
}
.floating-card p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
}
.floating-card p span { color: var(--drk-red); }

/* ============================================
   Stats Section
   ============================================ */
.stats {
    background: var(--black);
    padding: 4rem 2rem;
}
.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat-item {
    text-align: center;
    padding: 1rem;
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-number span { color: var(--drk-red); }
.stat-label {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

/* ============================================
   Quick Links Section
   ============================================ */
.quick-links {
    padding: 6rem 2rem;
    background: var(--off-white);
}
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}
.quick-link-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}
.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.quick-link-card:hover .quick-link-icon { background: var(--drk-red); }
.quick-link-card:hover .quick-link-icon svg { stroke: var(--white); }
.quick-link-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 0, 5, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}
.quick-link-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--drk-red);
    fill: none;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}
.quick-link-card h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ============================================
   Section Container & Header
   ============================================ */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--drk-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
    color: var(--gray-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 8rem 2rem;
    background: var(--white);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    background: var(--off-white);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--drk-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    background: var(--white);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(230, 0, 5, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon { background: var(--drk-red); }
.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--drk-red);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}
.service-card:hover .service-icon svg { stroke: var(--white); }
.service-card h3 { margin-bottom: 1rem; }
.service-card p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--drk-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}
.service-link:hover { gap: 0.8rem; }

/* ============================================
   Map Section
   ============================================ */
.map-section {
    padding: 6rem 2rem;
    background: var(--off-white);
}
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}
/* Höhe am #map selbst, nicht nur an .map-placeholder: bleibt erhalten, wenn das
   Init-Skript die Platzhalter-Klasse nach dem Leaflet-Start entfernt (sonst 0px). */
#map {
    width: 100%;
    height: 500px;
}
.map-placeholder {
    width: 100%;
    height: 500px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-loading {
    text-align: center;
    color: var(--gray-medium);
}
.map-loading svg {
    width: 48px;
    height: 48px;
    stroke: var(--drk-red);
    fill: none;
    stroke-width: 2;
    margin-bottom: 1rem;
}
.map-loading p {
    line-height: 1.6;
}

/* Leaflet-Marker in DRK-Optik (identisch zur Kontaktseite) */
.drk-marker {
    background: none;
    border: none;
}
.drk-marker .marker-inner {
    width: 40px;
    height: 40px;
    background: var(--drk-red);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(230, 0, 5, 0.4);
}
.drk-marker .marker-inner svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
    transform: rotate(45deg);
}
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}
.leaflet-popup-content {
    margin: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--drk-red) 0%, var(--drk-red-dark) 100%);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}
.cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta .btn-primary {
    background: var(--white);
    color: var(--drk-red);
}
.cta .btn-primary:hover {
    background: var(--off-white);
    color: var(--drk-red);
    transform: translateY(-3px);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 8rem 2rem;
    background: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p {
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
}
.contact-details {
    display: grid;
    gap: 1.5rem;
}
.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-item-icon {
    width: 44px;
    height: 44px;
    background: rgba(230, 0, 5, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--drk-red);
    fill: none;
    stroke-width: 2;
}
.contact-item h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.contact-item p, .contact-item a {
    color: var(--gray-medium);
    font-size: 0.95rem;
    text-decoration: none;
}
.contact-item a:hover { color: var(--drk-red); }
.contact-form {
    background: var(--off-white);
    padding: 3rem;
    border-radius: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--drk-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 5, 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { order: 1; }
    .hero-visual { order: 2; max-width: 500px; margin: 0 auto; }
    .hero-text { margin: 0 auto 2.5rem; }
    .hero-buttons { justify-content: center; }
    .floating-card { display: none; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .stats-container { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    /* Mobile Kartenhöhe wie auf der Kontaktseite; ohne gesetzte Höhe bliebe die Karte unsichtbar. */
    #map, .map-placeholder { height: 350px; }
}
@media (max-width: 480px) {
    .quick-links-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .contact-form { padding: 1.5rem; }
}

/* ============================================
   Aktuelles-Teaser (Inhaltskomponente, Ebene 2)
   ============================================
   ACHTUNG: Diese Datei wird über die Punkt-Notation an alle 20 Seiten-Apps
   vererbt. Alle Regeln hier sind deshalb auf `.news-teaser` eingegrenzt – diesen
   Abschnitt gibt es nur auf der Startseite. Die Neuigkeiten-Seite bringt ihre
   eigenen, unveränderten Kachel-Regeln mit; die hier sind bewusst eine eigene,
   engere Kopie statt eines gemeinsamen Stylesheets (Projektkonvention: jede App
   hat ihr eigenes 01_styles.css). */

.news-teaser {
    padding: 6rem 2rem;
    background: var(--white);
}

.news-teaser-grid {
    /* Siehe Erläuterung in der Neuigkeiten-App: PagePower meldet für ui-list
       Grundregeln in einer CSS-Ebene an und hebt zugleich unser Bundle-CSS in
       eine untere Ebene (ThemeEngineClass, #adoptLoaderStyles). Dadurch schlägt
       `ui-list { display:flex }` die Klassenregel trotz höherer Spezifität –
       gemessen standen die Karten untereinander statt nebeneinander. */
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-teaser-grid ui-listitem {
    display: contents !important;
}

.news-teaser .news-card {
    background: var(--off-white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.news-teaser .news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    background: var(--white);
}

.news-teaser .news-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-light);
}

.news-teaser .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

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

.news-teaser .news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--drk-red) 0%, var(--drk-red-dark) 100%);
    color: var(--white);
}

.news-teaser .news-card-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.news-teaser .news-card-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.news-teaser .news-card-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--drk-red);
    line-height: 1;
}

.news-teaser .news-card-date .month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-teaser .news-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-teaser .news-card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.news-teaser .news-card:hover .news-card-content h3 {
    color: var(--drk-red);
}

.news-teaser .news-card-meta {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

.news-teaser .news-card-excerpt {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.news-teaser .news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--drk-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.news-teaser .news-card-link:hover {
    gap: 0.8rem;
}

.news-teaser .news-card-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.news-teaser .news-empty {
    grid-column: 1 / -1;
    /* Der Hinweis ist ein <p> und erbt `p { max-width: 65ch }` (Z. 49 = 549px).
       Im Grid kappt das die 1/-1-Box auf 549px und schiebt sie an den linken
       Rand ihres Bereichs; `text-align: center` zentriert dann nur innerhalb
       dieser schmalen Box – der Text wirkt linksbündig unter der zentrierten
       Überschrift. `max-width: none` hebt die Lesbreite für diese eine Stelle
       auf, die Box füllt den ganzen Bereich und der Text steht mittig. */
    max-width: none;
    padding: 2rem 0;
    text-align: center;
    color: var(--gray-medium);
}

.news-teaser-more {
    margin-top: 3rem;
    text-align: center;
}

/* Detailansicht (Popup) – gleiche Gestaltung wie auf der Neuigkeiten-Seite. */
.news-teaser .news-detail {
    width: min(760px, calc(100vw - 3rem));
    max-height: calc(100vh - 4rem);
    /* Der globale Reset `* { margin: 0 }` (Z. 22) killt die Browser-Voreinstellung
       `dialog { margin: auto }`. Ein per showModal() geöffneter Dialog ist
       `position: fixed; inset: 0` – erst `margin: auto` zentriert ihn dann wieder
       in der Bildschirmmitte. Ohne diese Zeile klebt das Popup oben links. */
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.news-teaser .news-detail::backdrop {
    background: rgba(20, 20, 20, 0.55);
}

.news-teaser .news-detail-inner {
    position: relative;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.news-teaser .news-detail-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    color: var(--gray-dark);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease;
}

.news-teaser .news-detail-close:hover {
    background: var(--drk-red);
    color: var(--white);
}

.news-teaser .news-detail-body {
    padding: 0 0 2rem;
}

.news-teaser .news-detail-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.news-teaser .news-detail-date {
    padding: 1.5rem 2rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--drk-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-teaser .news-detail-body h2 {
    padding: 0.5rem 2rem 0;
    font-size: 1.8rem;
}

.news-teaser .news-detail-meta {
    padding: 0.75rem 2rem 0;
    font-size: 0.85rem;
    color: var(--gray-medium);
}

.news-teaser .news-detail-text {
    padding: 1.5rem 2rem 0;
    color: var(--gray-dark);
    line-height: 1.7;
    white-space: pre-line;
}

@media (max-width: 968px) {
    .news-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-teaser {
        padding: 4rem 1.5rem;
    }

    .news-teaser-grid {
        grid-template-columns: 1fr;
    }

    .news-teaser .news-detail-date,
    .news-teaser .news-detail-body h2,
    .news-teaser .news-detail-meta,
    .news-teaser .news-detail-text {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

