/*
Theme Name: Drohneneinheit Teck
Theme URI: https://drohneneinheit-teck.de
Description: Kindtheme von Twenty Twenty-Five für die gemeinsame Drohneneinheit der Feuerwehren Dettingen unter Teck und Stadt Owen. Farbrollen, lokale Schriften, Hell/Dunkel-Darstellung.
Author: Drohneneinheit Teck
Template: twentytwentyfive
Version: 0.2.0
Requires at least: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: tt5-drohne
*/

/* =============================================================================
   1. Dark mode: the SAME colour roles from theme.json, overridden.
   Patterns and templates only use roles (never hex), so this block is all it takes.
   States: no attribute = follow the device; data-theme="light" | "dark" = visitor's choice.
   ========================================================================== */
:root {
	--drohne-img-dim: 1;
	--drohne-show-light: block;
	--drohne-show-dark: none;
	--drohne-ctrl: #7A776E;
	--drohne-focus: #0B6BA8;
	--drohne-chip: #1A1A1A;
	--drohne-green: #1E7B34;
	color-scheme: light;
}
:root[data-theme="dark"] {
	--wp--preset--color--bg: #131417;
	--wp--preset--color--surface: #1C1E22;
	--wp--preset--color--alt: #0E0F11;
	--wp--preset--color--ink: #F1EFE9;
	--wp--preset--color--text: #DAD8D1;
	--wp--preset--color--muted: #A9A69D;
	--wp--preset--color--line: #34373C;
	--wp--preset--color--red: #C8262B;
	--wp--preset--color--red-text: #F27074;
	--wp--preset--color--blue: #1B77B8;
	--wp--preset--color--blue-text: #6DB8EA;
	--wp--preset--color--blue-bg: #15263A;
	--wp--preset--color--band: #0B0C0E;
	--wp--preset--color--base: #131417;
	--wp--preset--color--contrast: #F1EFE9;
	--drohne-img-dim: .88;
	--drohne-show-light: none;
	--drohne-show-dark: block;
	--drohne-ctrl: #8E8B83;
	--drohne-focus: #8CCBF5;
	--drohne-chip: #2A2C31;
	--drohne-green: #5CC17A;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--wp--preset--color--bg: #131417;
		--wp--preset--color--surface: #1C1E22;
		--wp--preset--color--alt: #0E0F11;
		--wp--preset--color--ink: #F1EFE9;
		--wp--preset--color--text: #DAD8D1;
		--wp--preset--color--muted: #A9A69D;
		--wp--preset--color--line: #34373C;
		--wp--preset--color--red: #C8262B;
		--wp--preset--color--red-text: #F27074;
		--wp--preset--color--blue: #1B77B8;
		--wp--preset--color--blue-text: #6DB8EA;
		--wp--preset--color--blue-bg: #15263A;
		--wp--preset--color--band: #0B0C0E;
		--wp--preset--color--base: #131417;
		--wp--preset--color--contrast: #F1EFE9;
		--drohne-img-dim: .88;
		--drohne-show-light: none;
		--drohne-show-dark: block;
		--drohne-ctrl: #8E8B83;
		--drohne-focus: #8CCBF5;
		--drohne-chip: #2A2C31;
		--drohne-green: #5CC17A;
		color-scheme: dark;
	}
}

/* =============================================================================
   2. Base
   ========================================================================== */
body { -webkit-font-smoothing: antialiased; text-wrap: pretty; }
img { filter: brightness(var(--drohne-img-dim)); }
:where(.drohne-logo, .drohne-logo-main, .drohne-toggle) img { filter: none; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.005em; }
a { text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--drohne-focus); outline-offset: 3px; border-radius: 4px; }
.wp-block-button__link:focus-visible { outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--wp--preset--color--band); color: #fff; padding: .75rem 1.25rem; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 1rem; top: 1rem; }
.drohne-inner { max-width: 1440px; margin-inline: auto; padding-inline: clamp(20px, 8.33vw, 120px); box-sizing: border-box; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border: 2px solid var(--wp--preset--color--ink); }
.wp-block-button.is-style-yellow .wp-block-button__link { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--on-yellow); }
.wp-block-button .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
:root :where(.wp-block-button.is-style-outline) .wp-block-button__link { padding: 0.85rem 1.5rem; }

/* Sections: full-width bands with a constrained inner column */
.drohne-section { padding-block: clamp(2.5rem, 5.5vw, 5rem); }
.drohne-section--alt { background: var(--wp--preset--color--alt); }
.drohne-section--band { background: var(--wp--preset--color--band); color: #E6E4DD; }
.drohne-section--band :where(h1, h2, h3, p) { color: #fff; }
.drohne-overline { font-size: 0.9375rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--red-text); margin: 0; }
.drohne-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); line-height: 1.5; }
.drohne-stripe { height: 8px; background: repeating-linear-gradient(135deg, #B81E22 0 12px, #F5C518 12px 24px); }

/* "Letzter Einsatz" is removed server-side while there is none (see Blocks::hide_if_no_einsatz);
   let its sibling column take the full row instead of staying narrow next to empty space. */
.wp-block-columns > .wp-block-column:only-child { flex-basis: 100%; }

/* Components ----------------------------------------------------------------*/
.drohne-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; box-sizing: border-box; border: 1px solid transparent; border-radius: 4px; font-size: 0.875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1; text-decoration: none; }
.drohne-chip--einsatz { background: var(--wp--preset--color--red); color: #fff; }
.drohne-chip--uebung { background: var(--wp--preset--color--blue); color: #fff; }
.drohne-chip--termin { background: var(--drohne-chip); color: #F5C518; }
.drohne-chip--public { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--on-yellow); }
.drohne-chip--intern { background: var(--wp--preset--color--alt); color: var(--wp--preset--color--text); border-color: var(--wp--preset--color--line); }
.drohne-chip--geraet { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); }
.drohne-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 8px; overflow: hidden; }
.drohne-card--pad { padding: 1.75rem; }
.drohne-badge { width: 76px; height: 88px; box-sizing: border-box; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; text-align: center; }
.drohne-badge .wd { font-size: 0.8125rem; font-weight: 700; letter-spacing: .08em; color: var(--wp--preset--color--muted); }
.drohne-badge .day { font-family: var(--wp--preset--font-family--barlow); font-weight: 700; font-size: 2.5rem; color: var(--wp--preset--color--ink); margin: 4px 0 2px; }
.drohne-badge .mon { font-size: 0.875rem; font-weight: 700; letter-spacing: .08em; color: var(--wp--preset--color--red-text); }
.drohne-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 8px; overflow: hidden; }
.drohne-fact { padding: 1rem 1.25rem; border-right: 1px solid var(--wp--preset--color--line); }
.drohne-fact:last-child { border-right: 0; }
.drohne-fact .k { font-size: 0.875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0; }
.drohne-fact .v { margin: 4px 0 0; font-weight: 700; color: var(--wp--preset--color--ink); line-height: 1.3; }
.drohne-spec { width: 100%; border-collapse: collapse; line-height: 1.4; }
.drohne-spec th, .drohne-spec td { padding: 12px 0; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; vertical-align: top; font-size: 1.0625rem; }
.drohne-spec th { width: 42%; color: var(--wp--preset--color--muted); font-weight: 600; padding-right: 1rem; }
.drohne-spec td { color: var(--wp--preset--color--ink); font-weight: 600; }
.drohne-credit { white-space: nowrap; margin-left: .2rem; color: var(--wp--preset--color--muted); font-size: 80%; }
figure.wp-block-image figcaption, .wp-block-gallery figcaption { display: flex; justify-content: space-between; gap: 1.5rem; padding-top: 0.6rem; margin: 0; text-align: left; }
.wp-block-gallery figcaption { position: static; background: none; color: var(--wp--preset--color--muted); font-size: 0.9375rem; }
.drohne-postmeta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; color: var(--wp--preset--color--muted); }
.drohne-year-filter { display: flex; gap: .5rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.drohne-year-filter a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; text-decoration: none; font-family: var(--wp--preset--font-family--barlow); font-weight: 700; font-size: 1.5rem; color: var(--wp--preset--color--muted); border-bottom: 4px solid transparent; }
.drohne-year-filter a[aria-current="page"] { color: var(--wp--preset--color--ink); border-bottom-color: var(--wp--preset--color--red); }
.drohne-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.75rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.drohne-row h3 { margin: .4rem 0 0; }
.drohne-row--plain { grid-template-columns: minmax(0, 1fr); }
.drohne-gear { display: flex; flex-direction: column; height: 100%; }
.drohne-gear .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.drohne-gear .facts { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: 1rem; }
.drohne-gear .facts span:first-child { color: var(--wp--preset--color--muted); }
.drohne-gear .facts strong { color: var(--wp--preset--color--ink); }
.drohne-noimage { background: var(--wp--preset--color--alt); border-bottom: 1px solid var(--wp--preset--color--line); height: 200px; display: flex; align-items: center; justify-content: center; color: var(--wp--preset--color--muted); font-size: 0.9375rem; }

/* =============================================================================
   3. Header (primary mark spanning the Notruf row and the navigation row)
   ========================================================================== */
.drohne-logo { display: inline-flex; align-items: center; line-height: 0; }
.drohne-logo img { width: auto; display: block; }
.drohne-112 { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 1.1rem; background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--on-yellow) !important; border-radius: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.drohne-bar { background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--line); }
/* One grid: the logo spans both rows (Notruf row + navigation row); on phones the Notruf button gets its own row on top. */
.drohne-bar__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo emerg" "logo nav"; grid-template-rows: 56px minmax(92px, auto); column-gap: 2rem; align-items: stretch; }
.drohne-bar__inner > * { margin: 0; }
.drohne-bar .drohne-112 { grid-area: emerg; justify-self: end; align-self: center; }
.drohne-bar .drohne-logo-main { grid-area: logo; align-self: center; }
.drohne-bar .drohne-logo-main img { height: 108px; }
.drohne-bar .wp-block-navigation { grid-area: nav; }
.drohne-logo-main { display: flex; align-items: center; }
.drohne-logo-main img { height: 56px; width: auto; }
.drohne-logo-main .dark { display: var(--drohne-show-dark); }
.drohne-logo-main .light { display: var(--drohne-show-light); }
.drohne-bar .wp-block-navigation { align-self: stretch; }
.drohne-bar .wp-block-navigation__container { align-items: stretch; gap: .25rem; }
.drohne-bar .wp-block-navigation-item { align-items: stretch; }
.drohne-bar .wp-block-navigation-item__content { display: flex; align-items: center; padding: 0 1rem; text-decoration: none; color: var(--wp--preset--color--ink); border-bottom: 3px solid transparent; }
.drohne-bar .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.drohne-bar .wp-block-navigation-item__content[aria-current="page"] { font-weight: 700; border-bottom-color: var(--wp--preset--color--red); }
.drohne-bar .wp-block-navigation__submenu-container { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-top: 3px solid var(--wp--preset--color--red); border-radius: 0 0 8px 8px; padding: .5rem; min-width: 300px; }
.drohne-bar .wp-block-navigation__submenu-container .wp-block-navigation-item__content { min-height: 48px; padding: .5rem 1rem; border-bottom: 0; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 48px; min-height: 48px; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); }
@media (max-width: 1100px) {   /* tablet: smaller logo and tighter menu so the navigation stays on one line as long as possible */
	.drohne-bar__inner { column-gap: 1rem; }
	.drohne-bar .drohne-logo-main img { height: 64px; }
	.drohne-bar .wp-block-navigation-item__content { padding: 0 .5rem; }
}
@media (max-width: 781px) {
	.drohne-bar__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "emerg emerg" "logo nav"; grid-template-rows: auto minmax(84px, auto); row-gap: .5rem; padding-top: .5rem; }
	.drohne-bar .drohne-112 { justify-self: stretch; justify-content: center; }
	.drohne-bar .drohne-logo-main img { height: 64px; }
	.drohne-bar .wp-block-navigation { align-self: center; }
}

/* =============================================================================
   4. Footer
   ========================================================================== */
.drohne-footer { background: var(--wp--preset--color--surface); }
.drohne-footer__logos { display: flex; align-items: center; gap: 2.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--wp--preset--color--line); flex-wrap: wrap; }
.drohne-footer__logos .drohne-logo-main img { height: 112px; }
.drohne-footer__logos .note { margin-left: auto; max-width: 340px; text-align: right; font-size: 1rem; color: var(--wp--preset--color--muted); }
.drohne-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3.5rem; padding-block: 2.5rem; }
.drohne-footer h3 { font-size: 1.5rem; margin: 0 0 .75rem; }
.drohne-footer address { font-style: normal; line-height: 1.7; }
.drohne-footer a { color: var(--wp--preset--color--ink); }
.drohne-footer nav a { display: flex; align-items: center; min-height: 44px; }
.drohne-footer__bar { background: var(--wp--preset--color--band); color: #E6E4DD; }
.drohne-footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; padding-block: 1.5rem; font-size: 0.9375rem; line-height: 1.5; flex-wrap: wrap; }
.drohne-footer__bar strong { color: #F5C518; }
.drohne-toggle { display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0; border: 0; }
.drohne-toggle legend { float: left; padding: 0; margin-right: .6rem; font-size: 0.9375rem; }
.drohne-toggle__group { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #6B6E75; border-radius: 9px; }
.drohne-toggle label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; border-radius: 6px; font-weight: 600; font-size: 1rem; cursor: pointer; position: relative; }
.drohne-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drohne-toggle label:has(input:checked) { background: #F5C518; color: #1A1A1A; font-weight: 700; }
.drohne-toggle label:has(input:focus-visible) { outline: 3px solid #8CCBF5; outline-offset: 2px; }
@media (max-width: 900px) { .drohne-footer__cols { grid-template-columns: 1fr 1fr; gap: 2rem; } .drohne-footer__logos .note { margin-left: 0; text-align: left; } }
@media (max-width: 560px) { .drohne-footer__cols { grid-template-columns: 1fr; } }

/* =============================================================================
   5. Page furniture
   ========================================================================== */
.drohne-hero { align-items: center; gap: 1.5rem; }
:root .drohne-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.03; }
.drohne-hero .wp-block-image img { width: 100%; height: 520px; object-fit: cover; }
.drohne-wehren { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 8px; }
.drohne-wehren > div { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 2rem; }
.drohne-wehren > div + div { border-left: 1px solid var(--wp--preset--color--line); }
.drohne-wehren .drohne-logo { flex: 0 0 9rem; display: flex; justify-content: center; }
.drohne-wehren > div { flex-wrap: wrap; }
.drohne-wehren--stack > div + div { border-left: 0; border-top: 1px solid var(--wp--preset--color--line); }   /* one column: divider between the tiles goes on top */
.drohne-wehren > div > div { flex: 1 1 14rem; min-width: 0; }
.drohne-wehren p { margin: 0; font-family: var(--wp--preset--font-family--barlow); font-weight: 700; font-size: 1.5rem; line-height: 1.15; color: var(--wp--preset--color--ink); }
@media (max-width: 700px) { .drohne-wehren { grid-template-columns: 1fr; } .drohne-wehren > div + div { border-left: 0; border-top: 1px solid var(--wp--preset--color--line); } .drohne-hero .wp-block-image img { height: 300px; } }
.drohne-crumbs { font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.drohne-teaser .wp-block-image img { width: 100%; height: 220px; object-fit: cover; border-radius: 0; }
.drohne-timeline { list-style: none; padding: 0; margin: 0; }
.drohne-timeline li { display: grid; grid-template-columns: 140px 64px minmax(0, 1fr); padding-bottom: 3rem; position: relative; }
.drohne-timeline .year { text-align: right; font-family: var(--wp--preset--font-family--barlow); font-weight: 700; font-size: 2.75rem; line-height: 1; color: var(--wp--preset--color--red-text); }
.drohne-timeline .year small { display: block; font-family: var(--wp--preset--font-family--source-sans); font-weight: 400; font-size: 0.9375rem; color: var(--wp--preset--color--muted); margin-top: 4px; }
.drohne-timeline .dot { justify-self: center; margin-top: 10px; width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--wp--preset--color--red); background: var(--wp--preset--color--surface); box-sizing: border-box; z-index: 1; }
.drohne-timeline li::before { content: ""; position: absolute; left: 171px; top: 36px; bottom: -8px; width: 2px; background: var(--wp--preset--color--line); }
.drohne-timeline li:last-child::before { display: none; }
@media (max-width: 700px) { .drohne-timeline li { grid-template-columns: 1fr; } .drohne-timeline .year { text-align: left; } .drohne-timeline .dot, .drohne-timeline li::before { display: none; } }
.drohne-legal-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 1rem; border-left: 4px solid var(--wp--preset--color--line); text-decoration: none; color: var(--wp--preset--color--ink); font-weight: 600; }
.drohne-legal-nav a[aria-current="page"] { border-left-color: var(--wp--preset--color--red); background: var(--wp--preset--color--surface); font-weight: 700; }

/* 404 night scene: the picture is decorative, the "404" is real text */
.drohne-404 { position: relative; min-height: 780px; background: #050B1A url("assets/images/404-nacht.jpg") center top / cover no-repeat; color: #fff; overflow: hidden; }
.drohne-404 img { filter: none; }
.drohne-404__digits { position: absolute; left: 65.3%; top: 262px; transform: translateX(-50%); font-family: var(--wp--preset--font-family--barlow); font-weight: 700; font-size: clamp(6rem, 14vw, 12.5rem); line-height: 1; letter-spacing: .02em; color: #FFF4CF; text-shadow: 0 0 18px rgba(255,236,190,.8), 0 0 64px rgba(255,226,150,.5); margin: 0; }
.drohne-404__copy { position: absolute; left: clamp(20px, 8.33vw, 120px); top: 330px; width: min(600px, 84vw); display: flex; flex-direction: column; gap: 1.1rem; }
.drohne-404__copy h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0; }
.drohne-404__copy p { color: #E6E4DD; margin: 0; }
.drohne-404 .drohne-overline { color: #F5C518; }
.drohne-404__links { display: flex; gap: .75rem; flex-wrap: wrap; }
.drohne-404__links a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.4rem; border: 2px solid #fff; border-radius: 6px; color: #fff !important; font-weight: 700; text-decoration: none; }
.drohne-404__links a:first-child { background: #F5C518; border-color: #F5C518; color: #1A1A1A !important; }
@media (max-width: 800px) { .drohne-404 { min-height: 900px; } .drohne-404__digits { top: 120px; left: 50%; font-size: 6rem; } .drohne-404__copy { top: 300px; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }

/* =============================================================================
   6. Content-type components (drohne-inhalte blocks)
   ========================================================================== */
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; }
.drohne-muted { color: var(--wp--preset--color--muted); }
.drohne-row > * { margin: 0; }
.drohne-row > .wp-block-group > * + * { margin-top: .4rem; }
.drohne-row h3 a, .drohne-more { text-decoration: none; }
.drohne-row h3 a { color: var(--wp--preset--color--ink); }
.drohne-row h3 a:hover { text-decoration: underline; }
.drohne-row--compact { grid-template-columns: auto minmax(0, 1fr); padding: 1rem 0; gap: 1.25rem; }
.drohne-row--compact h3 { font-size: 1.1875rem; margin: .4rem 0 .15rem; }
.drohne-row--compact .drohne-postmeta { margin: 0; font-size: 1rem; }
.drohne-row .wp-block-post-featured-image { margin: 0; }
.drohne-row .wp-block-post-featured-image img { border-radius: 6px; }
.drohne-more { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; color: var(--wp--preset--color--red-text); text-decoration: underline; text-underline-offset: 4px; }
.drohne-ics { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.1rem; border: 2px solid var(--wp--preset--color--ink); border-radius: 6px; color: var(--wp--preset--color--ink) !important; font-weight: 700; font-size: 1rem; text-decoration: none; }
.drohne-ics:hover { background: var(--wp--preset--color--alt); }
.drohne-postmeta { margin: 0; }
.drohne-beitraege .drohne-card { display: flex; flex-direction: column; }
.drohne-beitraege .drohne-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.drohne-card__body { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.drohne-card__body h3 { margin: 0; font-size: 1.75rem; }
.drohne-card__body h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.drohne-card__body p { margin: 0; }
.drohne-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; counter-reset: drohne; }
.drohne-list li { display: flex; gap: 1rem; align-items: flex-start; font-size: 1.125rem; line-height: 1.5; counter-increment: drohne; }
.drohne-list--nummer { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.drohne-list--nummer li::before { content: counter(drohne); flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--barlow); font-weight: 700; font-size: 1.5rem; }
.drohne-list--haken li::before { content: "✓"; color: var(--wp--preset--color--red-text); font-weight: 700; }
.drohne-erkenntnisse { margin-top: 4rem; padding: 3rem 3.5rem; background: var(--wp--preset--color--blue-bg); border: 2px solid var(--wp--preset--color--blue-text); border-radius: 10px; }
.wp-block-post-template { list-style: none; padding: 0; }
.wp-block-post-template.is-layout-grid { gap: 2rem; }
.drohne-gear .wp-block-post-featured-image { margin: 0; }
.drohne-gear .wp-block-post-featured-image img { border-radius: 0; height: 200px; width: 100%; object-fit: cover; }
.drohne-gear .wp-block-post-title { font-size: 1.625rem; margin: .25rem 0 0; }
.drohne-gear .drohne-spec th, .drohne-gear .drohne-spec td { padding: .5rem 0; font-size: 1rem; }
.drohne-gear .body { padding: 1.5rem; gap: .6rem; }
.drohne-credits img { filter: none; }
.drohne-year-filter { margin: 2rem 0 .5rem; }
.wp-block-query-pagination { margin-top: 2rem; gap: .5rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border: 2px solid var(--wp--preset--color--ink); border-radius: 6px; text-decoration: none; font-weight: 700; color: var(--wp--preset--color--ink); }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--bg); }
.wp-block-image figcaption .drohne-caption-text:empty { display: none; }
.wp-block-image figcaption:has(.drohne-caption-text:empty) { justify-content: flex-end; }
@media (max-width: 700px) { .drohne-row:not(.drohne-row--plain) { grid-template-columns: auto minmax(0, 1fr); } .drohne-row .drohne-ics { grid-column: 1 / -1; } .drohne-credit { white-space: normal; margin-left: .75rem; } .drohne-erkenntnisse { padding: 2rem 1.5rem; } }

.drohne-card__body > .drohne-chip, .drohne-gear .body > .drohne-chip, .drohne-row .drohne-chip { align-self: flex-start; }
.wp-block-navigation__submenu-icon { margin-left: .25rem; }

/* Gallery: fixed two-column grid, every picture the same tile height (cropped to 3:2 - a normal photo ratio,
   not a square) so a row is always exactly two pictures, always equal height.
   Three earlier attempts at this all broke, each for a different reason - documented because the fixes below
   look redundant (`!important` almost everywhere) but each one blocks a specific, confirmed failure:
   (1) WordPress's own default (img height:100% inside a column-flex figure, relying on the row's height coming
   back down from its tallest item) is circular and collapses every image's rendered height to 0 beyond the
   first row on a gallery with more than a couple of pictures - a known Gutenberg gallery-v2 sizing bug, not a
   missing-image problem.
   (2) A flex-wrap "justified row" replacement (equal height, width from each picture's own aspect ratio) has
   the same circularity risk, AND every figure needs `flex-shrink: 0` - the flex default of 1 quietly re-shrinks
   figures toward equal-width thirds once a row's natural content is wider than the container.
   (3) Switching the figure back to a fixed-width grid cell still isn't enough on its own: WordPress's own
   gallery CSS sets an explicit `width: calc(50% - gap/2)` on the figure (sized for ITS flex layout, not our
   grid - needs `!important` to lose), and its `.is-cropped` variant sets `flex: 1 0 0%; height: 100%` on the
   img while the figure is still `display:flex; flex-direction:column`. That combination (img flex-basis 0 +
   figcaption also a flex child) is what produced the actual bug reported: the FIRST row rendered correctly
   but every image from the second row on rendered at 0 height while its figcaption silently expanded to fill
   the whole figure - confirmed as a genuine layout bug (not a lazy-loading timing issue: forcing every image
   to load eagerly, and even replacing them with freshly cloned <img> elements, changed nothing). Overriding the
   figure to plain block flow (`display:block`, not flex) removes the ambiguity entirely: the img gets a
   definite height from `aspect-ratio` alone, independent of any sibling, and the figcaption just follows it in
   normal flow - nothing left to fight over. Caption and credit sit UNDER each picture (not as an overlay). */
.wp-block-gallery.has-nested-images { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.5rem; }
.wp-block-gallery.has-nested-images figure.wp-block-image { display: block !important; width: 100% !important; margin: 0 !important; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { display: block !important; flex: none !important; width: 100% !important; height: auto !important; aspect-ratio: 3 / 2 !important; object-fit: cover !important; border-radius: 8px; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: static; max-height: none; overflow: visible; background: none; color: var(--wp--preset--color--muted); padding: .55rem 0 0; margin: 0; font-size: 0.9375rem; text-align: left; display: flex; justify-content: space-between; gap: 1rem; }

/* Footer switch on phones: label above, options share the width */
.drohne-toggle { flex-wrap: wrap; min-width: 0; }
@media (max-width: 560px) {
	.drohne-toggle { flex-direction: column; align-items: flex-start; gap: .4rem; width: 100%; }
	.drohne-toggle legend { float: none; margin: 0; }
	.drohne-toggle__group { width: 100%; box-sizing: border-box; }
	.drohne-toggle label { flex: 1 1 0; justify-content: center; padding: 0 .4rem; gap: .35rem; min-width: 0; }
	.drohne-footer__bar-inner { gap: 1.25rem; }
}

/* Equipment overview: block drohne/geraete – "gross" = one wide feature row, "karte" = card grid */
.drohne-geraete--karte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2rem; }
.drohne-gear__img { margin: 0; }
.drohne-gear__img img { display: block; width: 100%; height: 200px; object-fit: cover; }
.drohne-gear h3 { margin: .25rem 0 0; font-size: 1.625rem; }
.drohne-gear p { margin: 0; }
.drohne-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); height: auto; }
.drohne-feature .drohne-gear__img img { height: 100%; min-height: 420px; }
.drohne-feature .body { padding: 2.5rem; justify-content: center; }
.drohne-feature h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.drohne-feature .drohne-spec th, .drohne-feature .drohne-spec td { font-size: 1.0625rem; padding: .6rem 0; }
@media (max-width: 800px) { .drohne-feature { grid-template-columns: minmax(0, 1fr); } .drohne-feature .drohne-gear__img img { height: 260px; min-height: 0; } .drohne-feature .body { padding: 1.5rem; } }
.drohne-gear .drohne-spec th { width: auto; padding-right: 1rem; white-space: nowrap; }
.drohne-gear .drohne-spec td { text-align: right; }

/* Static map (OpenStreetMap screenshot) with two equal zone markers; positions come from the page as --x / --y */
.drohne-map { margin: 0 0 2.5rem; }
.drohne-map__stage { position: relative; overflow: hidden; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; background: #e9e6df; }
.drohne-map__stage img { display: block; width: 100%; height: auto; }
.drohne-map__zone { position: absolute; left: var(--x); top: var(--y); width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid var(--wp--preset--color--red); border-radius: 50%; background: rgba(184, 30, 34, .16); }
.drohne-map__tag { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: .5rem; padding: .3rem .75rem; border: 2px solid var(--wp--preset--color--red); border-radius: 6px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--barlow, inherit); font-weight: 700; line-height: 1.15; text-align: right; white-space: nowrap; }
.drohne-map figcaption { margin-top: .75rem; font-size: .9375rem; color: var(--wp--preset--color--muted); }
@media (max-width: 600px) { .drohne-map__tag { padding: .2rem .5rem; font-size: .8125rem; margin-right: .25rem; border-width: 1.5px; } .drohne-map__zone { border-width: 2px; } }

/* Long German words: keep headings inside the screen (fluid h1, automatic hyphenation) */
:root h1 { font-size: clamp(2.25rem, 9.5vw, 3.5rem); }
:root h1, :root h2, :root h3 { hyphens: auto; overflow-wrap: break-word; }

/* No "Erkenntnisse" box when the report has none */
.drohne-erkenntnisse:not(:has(.drohne-list)) { display: none; }

/* Förderer: name list in columns */
.drohne-foerderer { columns: 3 260px; column-gap: 2.5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.drohne-foerderer li { break-inside: avoid; margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }

/* Fire-brigade logos: transparent, no plate. Two files each (dark lettering for light pages, white lettering for dark mode), switched like the main logo.
   Sized by visual weight, not by equal image height. With the capital F of "FEUERWEHR" equally tall (Dettingen 72 px / Owen 62 px) Dettingen looked much
   smaller (compact, italic, less wide than the Owen banner), so Dettingen is scaled up: 100 px against 62 px. */
.drohne-logo--ff img.dark { display: var(--drohne-show-dark); }
.drohne-logo--ff img.light { display: var(--drohne-show-light); }
.drohne-logo--d img { height: 100px; margin-top: -2.5em}
.drohne-logo--o img { height: 62px; }
.drohne-wehren .drohne-logo--ff { flex: 0 0 19rem; justify-content: center; min-height: 100px; }   /* same band height, so both name lines start at the same y */   /* wide enough for the Owen banner, so the text column lines up */
