/* Feuerwehr Zenting. Eigenes Stylesheet, ohne Framework. */

:root {
    --red: #c8102e;
    --red-dark: #a50d26;
    --ink: #17191c;
    --paper: #ffffff;
    --soft: #f1f1ef;
    --line: #dddcd8;
    --muted: #5a5e64;
    --yellow: #ffd60a;
    --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --gutter: clamp(16px, 5vw, 64px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.6 var(--body);
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }

ul, ol { list-style: none; }

a { color: var(--red); }

a:hover { color: var(--red-dark); }

:focus-visible { outline: 3px solid #1f6fd6; outline-offset: 2px; }

.w { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; }

.skip:focus { left: 8px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }

.tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font: 600 17px/1.2 var(--body);
    padding: 12px 20px;
    border: 2px solid var(--red);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn.ghost { background: transparent; border-color: #fff; }

.btn.ghost:hover { background: #fff; color: var(--ink); }

.btn.light { background: #fff; border-color: #fff; color: var(--red); }

.btn.light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== Kopf ===== */
.top { background: var(--red); color: #fff; font-size: 15px; font-weight: 500; }

.top .w { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; }

.top a { color: #fff; text-decoration: none; }

.top a:hover { text-decoration: underline; }

.nav { border-bottom: 1px solid var(--line); background: var(--paper); }

.nav .w { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; flex-wrap: wrap; }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font: 700 26px/1 var(--head);
    text-transform: uppercase;
    letter-spacing: .02em;
    text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand img { width: 36px; }

.links { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; font-weight: 500; }

.links a:not(.btn) { color: var(--ink); text-decoration: none; padding-block: 6px; border-bottom: 3px solid transparent; }

.links a:not(.btn):hover, .links a[aria-current="page"]:not(.btn) { border-bottom-color: var(--red); }

.links .btn { padding: 9px 16px; }

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--ink);
    border-radius: 4px;
    color: var(--ink);
    font: 600 16px/1 var(--body);
    padding: 9px 12px;
    cursor: pointer;
}

/* ===== Startseite ===== */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(72vh, 620px); background: var(--ink); color: #fff; }

.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 14, .15) 20%, rgba(10, 12, 14, .84)); }

.hero .w { position: relative; z-index: 1; width: 100%; padding-block: 48px; }

.hero h1 { font: 700 clamp(44px, 8.4vw, 104px)/.92 var(--head); text-transform: uppercase; letter-spacing: .005em; max-width: 12ch; }

.hero p { font-size: 20px; max-width: 46ch; margin-block: 14px 22px; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.strip { background: var(--ink); color: #fff; overflow: hidden; }

.strip .w { display: grid; grid-template-columns: repeat(3, 1fr); padding-inline: 0; }

.strip .w > * { display: block; min-width: 0; padding: 18px clamp(16px, 3vw, 32px); border-left: 1px solid #33373c; color: inherit; text-decoration: none; }

/* Das gelbe Feld läuft bis zum linken Bildschirmrand weiter. */
.strip .w > :first-child { border-left: 0; position: relative; padding-left: var(--gutter); background: var(--yellow); color: var(--ink); }

.strip .w > :first-child::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: inherit; }

.strip b { display: block; font: 700 28px/1.1 var(--head); text-transform: uppercase; }

.strip a:hover { color: inherit; background: #23272b; }

.strip .w > a:first-child:hover { background: #f2ca00; }

.sec { padding-block: 52px; }

.sec.soft { background: var(--soft); }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }

.sec-head h2, .h2 { font: 700 36px/1 var(--head); text-transform: uppercase; }

.sec-head a { font-weight: 600; text-decoration: none; }

.sec-head a:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 5vw, 64px); }

.split > * { min-width: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Termine */
.dates li { display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: center; padding-block: 14px; border-top: 1px solid var(--line); }

.dates li:last-child { border-bottom: 1px solid var(--line); }

.dates time.tile {
    background: var(--red);
    color: #fff;
    border-radius: 4px;
    text-align: center;
    padding: 7px 0 6px;
    font: 700 30px/1 var(--head);
    font-variant-numeric: tabular-nums;
}

.dates time.tile small { display: block; margin-top: 2px; font: 600 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }

.dates h3 { font: 600 24px/1.15 var(--head); }

.dates p { color: var(--muted); font-size: 16px; }

.dates .tag { color: var(--red); font-size: 12px; }

.empty { border: 1px dashed var(--line); border-radius: 4px; padding: 20px; color: var(--muted); }

.month { font: 700 24px/1 var(--head); text-transform: uppercase; color: var(--muted); margin-block: 32px 10px; }

.month:first-child { margin-top: 0; }

/* Kasten mit Verweisen */
.box { background: var(--soft); border-top: 4px solid var(--red); padding: 22px; }

.sec.soft .box, .box.white { background: #fff; }

.box h2, .box h3 { font: 700 26px/1.1 var(--head); text-transform: uppercase; margin-bottom: 8px; }

.box p + p { margin-top: 10px; }

.linklist { display: grid; gap: 8px; margin-top: 14px; }

.linklist a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-weight: 600; padding: 11px 14px; text-decoration: none; }

.sec.soft .linklist a, .box.white .linklist a { background: var(--soft); }

.linklist a:hover { border-color: var(--red); color: var(--red); }

.linklist a::after { content: " →"; color: var(--red); }

/* Fahrzeuge */
.veh { display: flex; flex-direction: column; min-width: 0; background: #fff; border-top: 4px solid var(--red); color: var(--ink); text-decoration: none; }

.veh:hover { color: var(--ink); box-shadow: 0 6px 20px rgba(23, 25, 28, .14); }

.veh .ph { aspect-ratio: 3 / 2; background: #d9d8d4; display: grid; place-items: center; color: var(--muted); font-size: 15px; overflow: hidden; }

.veh .ph img { width: 100%; height: 100%; object-fit: cover; }

.veh .txt { padding: 16px; }

.veh small { display: block; color: var(--red); font-size: 15px; font-weight: 600; }

.veh h3 { font: 700 30px/1.1 var(--head); text-transform: uppercase; }

.veh.retired { border-top-color: var(--muted); }

.veh.retired small { color: var(--muted); }

/* Chronik und Zahlen */
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }

.timeline b { font: 700 28px/1.1 var(--head); color: var(--red); font-variant-numeric: tabular-nums; }

.facts { display: grid; gap: 14px; align-content: start; }

.facts div { background: var(--ink); color: #fff; padding: 18px 20px; }

.facts b { display: block; font: 700 56px/1 var(--head); font-variant-numeric: tabular-nums; }

.facts div:first-child { background: var(--red); }

/* Mitmachen */
.join { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--red); color: #fff; }

.join .txt { display: flex; flex-direction: column; gap: 14px; justify-content: center; align-items: flex-start; min-width: 0; padding: clamp(28px, 5vw, 64px) var(--gutter); padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }

.join h2 { font: 700 clamp(34px, 4.6vw, 58px)/.95 var(--head); text-transform: uppercase; }

.join p { max-width: 44ch; font-size: 19px; }

.join .ph { min-height: 280px; position: relative; }

.join .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }

.steps li { counter-increment: step; min-width: 0; border-top: 4px solid var(--red); background: #fff; padding: 18px; }

.steps li::before { content: counter(step); display: block; font: 700 48px/1 var(--head); color: var(--red); }

.steps h3 { font: 700 26px/1.1 var(--head); text-transform: uppercase; margin-block: 4px 6px; }

/* ===== Unterseiten ===== */
.page-head { background: var(--ink); color: #fff; }

.page-head .w { padding-block: 36px 32px; }

.page-head .tag { color: var(--yellow); margin-bottom: 6px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 14px; font-size: 15px; }

.crumbs a { color: #d5d8dc; }

.crumbs a::after { content: "›"; margin-inline: 8px; color: #8b9199; }

.page-head h1 { font: 700 clamp(38px, 6vw, 68px)/.95 var(--head); text-transform: uppercase; text-wrap: balance; }

.page-head p { margin-top: 10px; max-width: 60ch; font-size: 19px; color: #d5d8dc; }

.prose { max-width: 72ch; }

.prose > * + * { margin-top: 14px; }

.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--head); line-height: 1.1; text-transform: uppercase; margin-top: 32px; overflow-wrap: anywhere; }

.prose h1 { font-size: 36px; }

.prose h2 { font-size: 30px; }

.prose h3 { font-size: 24px; }

.prose h4 { font-size: 21px; }

.prose > :first-child { margin-top: 0; }

.prose ul { list-style: disc; padding-left: 22px; }

.prose ul li + li { margin-top: 4px; }

.prose a { overflow-wrap: anywhere; }

.note { background: var(--soft); border-left: 4px solid var(--yellow); padding: 14px 18px; margin-bottom: 28px; }

.vehicle { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }

.vehicle > * { min-width: 0; }

.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; margin-block: 18px; }

.facts-list dt, .facts-list dd { padding-block: 9px; border-top: 1px solid var(--line); }

.facts-list dt { font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }

.gallery img:first-child { grid-column: 1 / -1; }

.gallery.single { grid-template-columns: 1fr; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

.people li { min-width: 0; border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 16px; }

.people small { display: block; color: var(--red); font-size: 15px; font-weight: 600; }

.people b { display: block; font: 700 26px/1.15 var(--head); }

.people a { display: inline-block; margin-top: 6px; font-size: 16px; overflow-wrap: anywhere; }

.group + .group { margin-top: 40px; }

.group > h2 { font: 700 30px/1 var(--head); text-transform: uppercase; margin-bottom: 14px; }

/* Einsätze */
.alerts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.alert-card { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }

.alert-card:hover { color: var(--ink); }

.alert-card .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; margin-bottom: 10px; background: var(--soft); }

.alert-card .ph img { width: 100%; height: 100%; object-fit: cover; }

.alert-card h3 { font: 600 23px/1.2 var(--head); margin-top: 4px; }

.alert-card:hover h3 { color: var(--red); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 15px; }

.badge { display: inline-block; background: #2f6f9f; color: #fff; border-radius: 3px; font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1.2; padding: 4px 8px; text-transform: uppercase; }

.badge-danger { background: var(--red); }

.badge-secondary { background: #5a5e64; }

.detail-img { border-radius: 4px; margin-bottom: 20px; width: 100%; }

.side-list li { padding-block: 12px; border-top: 1px solid var(--line); }

.side-list a { color: var(--ink); font-weight: 600; text-decoration: none; }

.side-list a:hover { color: var(--red); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }

.pagination a, .pagination span { display: block; min-width: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; text-align: center; color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }

.pagination a:hover { border-color: var(--red); color: var(--red); }

.pagination [aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

.pagination [aria-disabled] { color: #a9aaab; }

/* Formulare (Anmeldung) */
.form { max-width: 440px; display: grid; gap: 16px; }

.form label { display: block; font-weight: 600; margin-bottom: 4px; }

.form input[type="email"], .form input[type="password"] { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #9a9c9f; border-radius: 4px; background: #fff; color: var(--ink); }

.form .check { display: flex; align-items: center; gap: 8px; }

.form .check label { margin: 0; font-weight: 400; }

.form .error { color: var(--red); font-size: 15px; font-weight: 600; margin-top: 4px; }

.form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.status { background: #e7f3ea; border-left: 4px solid #1f7a3d; padding: 12px 16px; margin-bottom: 20px; max-width: 440px; }

/* ===== Fuß ===== */
.foot { background: var(--ink); color: #b9bdc2; font-size: 15px; }

.foot .w { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-block: 24px; }

.foot a { color: #fff; text-decoration: none; }

.foot a:hover { text-decoration: underline; }

.foot ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ===== Schmale Bildschirme ===== */
@media (max-width: 900px) {
    .nav-toggle { display: block; }

    .js .links { display: none; }

    .links { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }

    .js .links.open { display: flex; }

    .links a:not(.btn) { padding-block: 12px; border-bottom: 1px solid var(--line); }

    .links .btn { margin-top: 14px; text-align: center; padding: 12px 16px; }

    .strip .w, .cards, .join, .split, .steps, .vehicle { grid-template-columns: 1fr; }

    .strip .w > * { border-left: 0; border-top: 1px solid #33373c; padding-inline: var(--gutter); }

    .hero { min-height: 460px; }

    .hero > img { object-position: 28% 60%; }

    .hero p { font-size: 18px; }

    .sec { padding-block: 40px; }

    .join .ph { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }

    .brand { font-size: 22px; }

    .brand img { width: 30px; }

    .top { font-size: 14px; }

    .facts-list { grid-template-columns: 1fr; }

    .facts-list dd { border-top: 0; padding-top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .veh, .btn, .linklist a { transition: box-shadow .15s, background-color .15s, color .15s, border-color .15s; }
}

.meta + .prose { margin-top: 14px; }

/* ===== Interner Bereich ===== */
.subnav { background: var(--soft); border-bottom: 1px solid var(--line); }

.subnav .w { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding-block: 10px; font-weight: 600; }

.subnav a { color: var(--ink); text-decoration: none; padding-block: 4px; border-bottom: 3px solid transparent; }

.subnav a:hover, .subnav a[aria-current="page"] { border-bottom-color: var(--red); }

.subnav form { margin-left: auto; }

.subnav button, .link-btn { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

.subnav + .w .status { margin: 24px 0 0; max-width: none; }

.toolbar { margin-bottom: 28px; }

.hint { color: var(--muted); font-size: 15px; margin-top: 4px; }

.muted { color: var(--muted); }

.admin-group { border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 18px 20px; }

.admin-group + .admin-group { margin-top: 24px; }

.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 20px; margin-bottom: 8px; }

.admin-head h2 { font: 700 30px/1 var(--head); text-transform: uppercase; }

.admin-list { margin-bottom: 14px; }

.admin-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; padding-block: 10px; border-top: 1px solid var(--line); }

.admin-list li > div:first-child { min-width: 0; }

.admin-list b { display: block; }

.admin-list span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-weight: 600; }

.icon-btn { width: 36px; height: 36px; background: #fff; border: 1px solid #9a9c9f; border-radius: 4px; color: var(--ink); font: 600 18px/1 var(--body); cursor: pointer; }

.icon-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }

.icon-btn:disabled { opacity: .35; cursor: default; }

.form input[type="text"], .form select, .copy { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #9a9c9f; border-radius: 4px; background: #fff; color: var(--ink); }

.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }

.form legend { font-weight: 600; margin-bottom: 6px; padding: 0; }

.copy { margin-top: 10px; font-size: 15px; }

.btn.outline { background: #fff; color: var(--red); }

.btn.outline:hover { background: var(--red); color: #fff; }

.danger { max-width: 440px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }

.danger h2 { font: 700 24px/1 var(--head); text-transform: uppercase; }

.admin-list .private { display: block; }

/* ===== Social Media ===== */
.editor { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px clamp(24px, 4vw, 56px); align-items: start; }

.editor .danger { grid-column: 1; margin-top: 16px; }

.form.wide { max-width: none; gap: 28px; }

.form textarea, .form input[type="datetime-local"] { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #9a9c9f; border-radius: 4px; background: #fff; color: var(--ink); }

.form textarea { resize: vertical; line-height: 1.5; }

.form input[type="file"] { font: inherit; max-width: 100%; }

.form fieldset.step { gap: 16px; border-top: 4px solid var(--red); padding-top: 14px; }

.form fieldset.step > legend { font: 700 26px/1.1 var(--head); text-transform: uppercase; margin-bottom: 0; float: left; width: 100%; }

.form fieldset.step > legend + * { clear: both; }

.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }

.thumbs img { width: 120px; height: 90px; object-fit: cover; border-radius: 4px; }

.thumbs label { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 15px; margin: 4px 0 0; }

.photo-list { display: grid; gap: 12px; margin-bottom: 10px; }

.photo-list li { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: start; padding-top: 12px; border-top: 1px solid var(--line); }

.photo-list img { width: 160px; height: 107px; object-fit: cover; border-radius: 4px; }

.photo-list .row-actions { margin-top: 8px; }

.photo-list label.inline { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 15px; margin: 0; }

@media (max-width: 560px) {
    .photo-list li { grid-template-columns: 1fr; }
}

.text-tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-block: 4px 8px; font-size: 15px; }

.text-tools .hint { margin: 0; margin-right: auto; }

.hint.over { color: var(--red); font-weight: 600; }

.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.bullets { list-style: disc; padding-left: 20px; margin-top: 6px; }

.suggestion { border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; display: grid; gap: 12px; }

.suggestion-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.suggestion h3 { font: 700 24px/1 var(--head); text-transform: uppercase; }

.suggestion .tag { color: var(--red); font-size: 12px; }

.btn.small { padding: 7px 12px; font-size: 15px; }

.previews { position: sticky; top: 16px; display: grid; gap: 18px; }

.previews > h2 { font: 700 26px/1.1 var(--head); text-transform: uppercase; border-top: 4px solid var(--ink); padding-top: 14px; }

.preview .tag { color: var(--muted); margin-bottom: 6px; }

.preview-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(23, 25, 28, .08); font-size: 15px; line-height: 1.45; }

.preview-card > * { margin: 12px 14px; }

.preview-head { display: flex; align-items: center; gap: 10px; }

.preview-head img { width: 36px; height: 36px; object-fit: contain; }

.preview-head b, .preview-head small { display: block; line-height: 1.25; }

.preview-head small { color: var(--muted); }

.preview-card > .preview-image { margin-inline: 0; background: var(--soft); }

.preview-image img { width: 100%; max-height: 420px; object-fit: cover; }

/* Instagram zeigt das Bild quadratisch und über dem Text. */
.preview-instagram .preview-image img { aspect-ratio: 1; max-height: none; }

/* WhatsApp: Nachricht als Sprechblase. */
.preview-whatsapp .preview-card { background: #e7f6e1; border-color: #cfe6c6; border-radius: 4px 14px 14px 14px; max-width: 340px; }

.preview-whatsapp .preview-head { display: none; }

@media (max-width: 900px) {
    .editor { grid-template-columns: 1fr; }

    .previews { position: static; }
}

.form input[type="password"] { font: inherit; }

.admin-list .badge { color: #fff; font-size: 12px; vertical-align: 2px; margin-left: 6px; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

.published { background: #e7f3ea; border-left: 4px solid #1f7a3d; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }

.published .undo { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 15px; margin: 0 0 0 auto; }

.form input[disabled] { background: var(--soft); color: var(--muted); }

.group .form { margin-top: 20px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.working { background: #fff6cc; border-left: 4px solid var(--yellow); padding: 10px 14px; }

/* Ein Kreis, der sich dreht, solange etwas arbeitet: vor gelben Hinweisen und im geklickten Knopf. */
.working::before, button.busy::before {
    content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.1em;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: spin .8s linear infinite;
}

.working.reload-note::before { content: none; }

button.busy { cursor: progress; }

button[disabled]:not(.busy) { opacity: .6; }

.elapsed { color: var(--muted); font-variant-numeric: tabular-nums; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .working::before, button.busy::before { animation-duration: 2.4s; }
}

.reload-note { grid-column: 1 / -1; }

/* ===== Redaktionskalender ===== */
.cal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 16px; }

.cal-bar h2 { font: 700 36px/1 var(--head); text-transform: uppercase; }

.cal-bar .icon-btn { display: grid; place-items: center; text-decoration: none; }

.cal { border: 1px solid var(--line); border-top: 4px solid var(--red); }

.cal-head, .cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

.cal-head span { padding: 8px 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.cal-day { min-height: 118px; padding: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }

.cal-day:first-child { border-left: 0; }

.cal-day.other { background: var(--soft); }

.cal-day.other .cal-date span { color: #9a9c9f; }

.cal-date { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.cal-weekday { display: none; }

.cal-day.today .cal-date > span { background: var(--red); color: #fff; border-radius: 3px; padding: 0 6px; }

.cal-date a { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; color: var(--muted); font-size: 18px; text-decoration: none; opacity: .45; }

.cal-day:hover .cal-date a, .cal-date a:focus-visible { opacity: 1; background: var(--red); color: #fff; }

.cal-post, .cal-event { display: block; border-radius: 3px; padding: 4px 6px; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }

.cal-post { border-left: 4px solid var(--muted); background: #e8e8e6; color: var(--ink); font-weight: 600; text-decoration: none; }

.cal-post small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

.cal-post.geplant { border-left-color: #d9a900; background: #fff3c2; }

.cal-post.veroeffentlicht { border-left-color: #1f7a3d; background: #dff0e3; }

.cal-post.extern { border-left-color: #2f6f9f; background: #e3edf5; font-weight: 500; }

.published .stats { font-weight: 600; }

a.cal-post:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }

.cal-event { border: 1px dashed #9a9c9f; color: var(--muted); }

.cal-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px 44px; }

.cal-legend > * { display: inline-block; font-size: 13px; }

@media (max-width: 760px) {
    /* Schmal wird aus dem Raster eine Liste der Tage, an denen etwas ansteht. */
    .cal-head { display: none; }

    .cal-week { grid-template-columns: 1fr; }

    .cal-day { min-height: 0; border-left: 0; padding: 10px; }

    .cal-day.empty:not(.today), .cal-day.other { display: none; }

    .cal-weekday { display: inline; }

    .cal-date a { opacity: 1; }
}

.cal-event-actions { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: 13px; font-weight: 600; }

.cal-event-actions a { text-decoration: none; white-space: nowrap; }

.cal-event-actions a:hover { text-decoration: underline; }

.step .note { margin-bottom: 0; }

/* Ein Beitrag auf Facebook oder Instagram mit seinen Zahlen */
.post-text { margin: 0; padding: 14px 18px; border-left: 4px solid #2f6f9f; background: var(--soft); max-width: 65ch; overflow-wrap: anywhere; }

.stat-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; margin-top: 14px; }

.stat-chart { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; min-width: 0; }

.stat-chart figcaption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }

.stat-chart figcaption span { font: 600 22px/1 var(--head); font-variant-numeric: tabular-nums; }

.stat-chart svg { display: block; width: 100%; height: auto; }

.stat-chart .grid { stroke: var(--line); stroke-width: 1; }

.stat-chart .axis { fill: var(--muted); font: 15px var(--body); font-variant-numeric: tabular-nums; }

.stat-chart polyline { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; }

.stat-chart circle { fill: var(--paper); stroke: var(--red); stroke-width: 2; }

.cal-past { display: block; padding: 2px 6px; border-left: 4px dotted #2f6f9f; color: var(--muted); font-size: 12px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }

.cal-past:hover { color: var(--ink); background: var(--soft); }

.post-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 14px; }

.post-media img, .post-media video { display: block; width: 100%; max-height: 520px; object-fit: contain; background: var(--soft); border-radius: 3px; }

.post-media:has(> :only-child) { grid-template-columns: minmax(0, 520px); }
