/*
Theme Name: Der Fliegerclub
Theme URI: https://der-fliegerclub.de
Author: der-fliegerclub.de
Author URI: https://der-fliegerclub.de
Description: Editorial-meets-utility FSE-Theme für das deutschsprachige Verzeichnis von Flugschulen, Fliegervereinen und ATOs. Warm-Paper-Palette mit Signal-Orange-Akzent, Instrument Serif für Headlines, Inter für Body, JetBrains Mono für technische Daten (ICAO, Lizenzcodes, Stats).
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: der-fliegerclub
Tags: full-site-editing, block-templates, block-patterns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, translation-ready, wide-blocks
*/

/* Web fonts — lokal gehostet (DSGVO-konform, kein externer Google-Aufruf) */
@import url('assets/fonts/local-fonts.css');

/* Link defaults */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Headings widow/orphan reduction */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/* Mono utility class for ICAO / codes / stat-values */
.dfc-mono {
	font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0.04em;
}

/* Editorial accent rule — used in section eyebrows */
.dfc-eyebrow {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-mute);
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.dfc-eyebrow::before {
	content: '';
	display: inline-block;
	width: 32px;
	height: 1px;
	background: var(--wp--preset--color--accent);
}

/* Tag/chip pill — used as meta in club cards */
.dfc-tag {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
	border: 1px solid var(--wp--preset--color--rule);
	color: var(--wp--preset--color--ink);
	background: transparent;
	white-space: nowrap;
}
.dfc-tag--solid { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--bg); border-color: var(--wp--preset--color--ink); }
.dfc-tag--accent { background: var(--wp--preset--color--accent); color: #fff; border-color: var(--wp--preset--color--accent); }
.dfc-tag--soft { background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--accent); border-color: transparent; }
.dfc-tag--ghost { background: var(--wp--preset--color--bg-alt); color: var(--wp--preset--color--ink-soft); border-color: transparent; }

/* Search-bar style with offset shadow (used on Hero) */
.dfc-search-bar {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--ink);
	box-shadow: 6px 6px 0 var(--wp--preset--color--ink);
	display: flex;
	align-items: stretch;
	max-width: 580px;
}

/* Stat tile — for club card meta grid */
.dfc-stat-tile {
	background: var(--wp--preset--color--surface);
	padding: 8px 10px;
}
.dfc-stat-tile__label {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 9px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-mute);
}
.dfc-stat-tile__value {
	font-size: 14px;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	margin-top: 2px;
}

/* Long-form prevention (avoid scrollbars on pre blocks) */
:where(pre) { overflow-x: auto; }

/* More-block: full block layout */
.more-link { display: block; }

/* === Frontend-only Styles für Startseite-Blöcke === */
/* Diese CSS-Regeln rendern die Cards visuell wie früher; die Block-Markup
 * bleibt aber Gutenberg-konform (kein Inline-CSS außer dem was Gutenberg-
 * Block-Attribute ohnehin generieren).
 */

/* Hero-H1 — accent-em via Theme statt inline-style */
.dfc-hero-h1 em {
	font-style: italic;
	color: var(--wp--preset--color--accent);
}

/* DE-Bundeslaender-Map */
.dfc-de-map img {
	width: 100%;
	display: block;
}

/* Disziplin-Cards */
.dfc-disz-card { position: relative; }
.dfc-disz-card__img img {
	aspect-ratio: 4/3;
	object-fit: cover;
	width: 100%;
	display: block;
}
.dfc-disz-card a {
	text-decoration: none;
	color: inherit;
}
/* Ganze Card klickbar via overlay-link auf dem Heading */
.dfc-disz-card h4 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.dfc-disz-card:hover {
	border-color: var(--wp--preset--color--ink);
}

/* Methodik-Glider-Image */
.dfc-methodik-img img {
	aspect-ratio: 4/5;
	object-fit: cover;
	width: 100%;
	display: block;
}

/* Claim-Page H1 — accent-em via Theme statt inline-style */
.dfc-claim-h1 em {
	font-style: italic;
	color: var(--wp--preset--color--accent);
}
