/*
Theme Name: Notfallportal Schopfheim
Theme URI: https://www.feuerwehr-schopfheim.de/
Author: Feuerwehr Schopfheim
Description: WordPress-Theme für das Notfallportal und den Bevölkerungsschutz der Stadt Schopfheim.
Version: 1.0.3
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: notfallportal-schopfheim
*/

:root {
    --red: #d7261e;
    --red-dark: #a91813;
    --ink: #191817;
    --muted: #625e59;
    --paper: #f4f1eb;
    --white: #fff;
    --line: #ded8cf;
    --yellow: #f1bd39;
    --green: #167c5b;
    --shadow: 0 24px 55px rgba(46, 37, 29, .13);
    --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; background: #fff; padding: 12px 16px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid #ece8e1; }
.header-inner { min-height: 94px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand-sign { display: grid; place-items: center; width: 58px; height: 64px; flex: 0 0 58px; }
.brand-sign img { display: block; width: auto; height: 60px; object-fit: contain; }
.brand strong { display: block; font-size: 21px; line-height: 1.1; }
.brand small { display: block; margin-top: 7px; text-transform: uppercase; letter-spacing: .2em; font-size: 11px; }
.main-nav { display: flex; gap: 30px; font-weight: 700; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--red); }
.emergency-button { background: var(--red); color: #fff; padding: 17px 23px; text-decoration: none; font-weight: 800; }
.emergency-button:hover { background: var(--red-dark); }

.hero { color: #fff; background: var(--red); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .11; background-image: radial-gradient(#fff 1.5px, transparent 1.5px); background-size: 34px 34px; }
.hero-inner { position: relative; z-index: 1; padding: 92px 45px 108px; }
.eyebrow, .section-kicker { margin: 0 0 22px; text-transform: uppercase; letter-spacing: .17em; font-size: 13px; font-weight: 800; }
.eyebrow { color: #fff; }
.eyebrow span { display: inline-block; width: 9px; height: 9px; background: var(--yellow); margin-right: 12px; }
.hero h1, .archive-hero h1 { font-family: Georgia, 'Times New Roman', serif; margin: 0; font-size: clamp(54px, 8vw, 96px); line-height: .92; letter-spacing: -.05em; }
.hero h1 em { color: var(--yellow); font-weight: 400; }
.hero-copy { max-width: 690px; margin: 36px 0; font-size: 22px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; padding: 17px 24px; text-decoration: none; font-weight: 800; border: 1px solid transparent; }
.button-light { color: var(--ink); background: #fff; }
.button-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.button-red { color: #fff; background: var(--red); }

.current-wrap { position: relative; z-index: 2; margin-top: -32px; }
.current-card { background: #fff; box-shadow: var(--shadow); display: grid; grid-template-columns: 72px 1fr; padding: 44px 46px 0; border-top: 7px solid var(--green); }
.current-card.status-warnung { border-color: var(--red); }
.current-card.status-info { border-color: #247ab5; }
.current-card.status-entwarnung { border-color: #687078; }
.status-icon { display: grid; place-items: center; align-self: start; width: 54px; height: 54px; border-radius: 50%; color: var(--green); background: #e7f2ed; font: 700 30px Georgia, serif; }
.status-warnung .status-icon { color: #fff; background: var(--red); }
.status-info .status-icon { color: #fff; background: #247ab5; }
.status-entwarnung .status-icon { color: #fff; background: #687078; }
.section-kicker { color: var(--red); margin-bottom: 12px; }
.status-content h2, .section-heading h2, .bbk-box h3, .warning-entry h2 { font-family: Georgia, 'Times New Roman', serif; }
.status-content h2 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 50px); line-height: 1.08; }
.status-content p { margin: 8px 0; color: #4f4c48; }
.status-message > p:first-child { margin-top: 0; }
.instruction { margin: 18px 0; padding: 16px 18px; border-left: 5px solid var(--red); background: #fff2f1; }
.status-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin: 30px -46px 0; padding: 16px 46px; background: #f6f4f0; color: #5d5954; font-size: 14px; }
.status-footer span:first-child::before { content: "●"; color: var(--green); margin-right: 10px; }
.status-warnung .status-footer span:first-child::before { color: var(--red); }
.archive-link { text-align: right; margin: 20px 0 0; font-weight: 700; }
.archive-link a { color: var(--red-dark); }

.action-band { margin-top: 44px; background: #24211e; color: #fff; }
.action-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
.action-grid > * { min-height: 116px; padding: 26px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.13); text-decoration: none; }
.action-grid > *:last-child { border: 0; }
.action-grid b { font-size: 25px; color: var(--yellow); }
.action-grid strong { font-size: 18px; }
.action-grid span { color: #cbc7c1; font-size: 14px; }

.section { padding-top: 104px; padding-bottom: 104px; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; margin-bottom: 45px; }
.section-heading h2 { font-size: clamp(42px, 6vw, 68px); line-height: 1; letter-spacing: -.035em; margin: 0; }
.section-heading p { color: var(--muted); font-size: 18px; margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.card-grid article { padding: 34px; background: #fff; border-right: 1px solid var(--line); }
.card-grid article:last-child { border-right: 0; }
.card-grid article > span { color: var(--red); font-weight: 800; font-size: 12px; letter-spacing: .14em; }
.card-grid h3, .check-grid h3, .press-grid h3 { margin: 15px 0 10px; font-size: 22px; line-height: 1.25; }
.card-grid p, .check-grid p, .press-grid p { color: var(--muted); }
.card-grid a { color: var(--red-dark); font-weight: 700; }
.store-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.store-links a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 12px; color: #fff; background: #24211e; text-align: center; text-decoration: none; font-size: 14px; line-height: 1.25; }
.store-links a:hover { background: var(--red); }
.store-links .store-info { grid-column: 1 / -1; color: var(--red-dark); background: transparent; border: 1px solid var(--red-dark); }
.store-links .store-info:hover { color: #fff; background: var(--red); }

.muted { background: #e8e3db; }
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #cfc7bc; border: 1px solid #cfc7bc; }
.check-grid article { background: #f7f4ef; padding: 28px; }
.check-grid b { color: var(--red); font-size: 13px; }
.bbk-box { margin-top: 28px; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 35px; background: #fff; }
.bbk-box h3 { margin: 0; font-size: 34px; }
.bbk-box p { margin: 5px 0; }

.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.press-grid article { padding: 26px 28px; background: #fff; border-top: 4px solid var(--red); }
.press-grid time { color: var(--red-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.press-grid h3 a { text-decoration: none; }
.press-grid h3 a:hover { color: var(--red); }
.notice { padding: 28px; background: #fff; border-left: 5px solid var(--yellow); }

.social-section { color: #fff; background: #2a2724; }
.social-section .section-heading p { color: #d6d1ca; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.social-grid a { padding: 28px; border: 1px solid rgba(255,255,255,.25); text-decoration: none; transition: .2s ease; }
.social-grid a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.social-grid strong, .social-grid span { display: block; }
.social-grid strong { font-size: 23px; }
.social-grid span { color: #d6d1ca; margin-top: 18px; }
.small-note { color: #bdb7af; font-size: 13px; margin-top: 22px; }

.archive-hero { padding: 76px 0 82px; color: #fff; background: var(--red); }
.archive-hero p:last-child { max-width: 720px; margin: 28px 0 0; font-size: 19px; }
.archive-section { padding-top: 64px; }
.warning-list { display: grid; gap: 20px; }
.warning-entry { padding: 32px 36px; background: #fff; border-left: 7px solid #247ab5; box-shadow: 0 10px 26px rgba(46,37,29,.08); }
.warning-entry.status-warnung { border-color: var(--red); }
.warning-entry.status-entwarnung { border-color: #687078; }
.warning-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.warning-meta span { color: var(--red-dark); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.warning-entry h2 { margin: 12px 0; font-size: 34px; }
.empty-state { padding: 64px 30px; text-align: center; background: #fff; }
.empty-state > span { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; color: var(--green); background: #e7f2ed; font-size: 34px; }
.standard-content { max-width: 820px; padding: 40px; background: #fff; }

.site-footer { background: #171513; color: #fff; padding: 54px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 60px; }
.footer-grid strong { font-size: 18px; }
.footer-grid p { color: #aaa49d; }
.footer-grid a { display: block; color: #d7d2cc; margin-top: 9px; }
.footer-bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid #37332f; color: #817b75; font-size: 12px; }

@media (max-width: 920px) {
    .main-nav { display: none; }
    .action-grid, .check-grid { grid-template-columns: repeat(2, 1fr); }
    .section-heading { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    :root { --shell: min(100% - 24px, 1160px); }
    .header-inner { min-height: 76px; gap: 12px; }
    .brand-sign { width: 42px; height: 54px; flex-basis: 42px; }
    .brand-sign img { height: 52px; }
    .brand strong { max-width: 130px; font-size: 15px; line-height: 1.05; }
    .brand small { margin-top: 4px; font-size: 8px; }
    .emergency-button { padding: 10px; font-size: 13px; }
    .hero-inner { padding: 70px 10px 78px; }
    .hero-copy { font-size: 18px; }
    .current-card { grid-template-columns: 1fr; gap: 18px; padding: 30px 24px 0; }
    .status-footer { margin: 20px -24px 0; padding: 14px 24px; flex-direction: column; gap: 4px; }
    .action-grid, .card-grid, .check-grid, .press-grid, .social-grid, .footer-grid { grid-template-columns: 1fr; }
    .action-grid > *, .card-grid article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
    .card-grid article { border-bottom-color: var(--line); }
    .section { padding-top: 72px; padding-bottom: 72px; }
    .bbk-box { align-items: stretch; flex-direction: column; padding: 28px; }
    .warning-entry { padding: 26px 22px; }
    .warning-meta { flex-direction: column; gap: 4px; }
    .store-links { grid-template-columns: 1fr; }
    .store-links .store-info { grid-column: auto; }
}
