/*
Theme Name: Flughafen Heringsdorf
Template: twentytwentyfive
Description: Child-Theme für flughafen-heringsdorf.de auf Basis von Twenty Twenty-Five. Farben und Bildsprache nach der bisherigen CI, Sprachen DE/EN/PL über Polylang.
Author: WEBBYTE SYSTEMS
Author URI: https://www.web-byte.de
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: flughafen-heringsdorf
*/

/* Kopfzeile oben: Adresse und Sprachwahl */
.fh-sprachen ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.fh-sprachen a { display: inline-block; padding: 2px 10px; border-radius: 999px; text-decoration: none; color: inherit; font-weight: 600; font-size: 0.8125rem; }
.fh-sprachen .current-lang a { background: var(--wp--preset--color--accent-2); color: #fff; }

/* Hauptmenü (klassisches Menü, damit Polylang je Sprache ein eigenes Menü zuordnen kann) */
.fh-nav ul { list-style: none; margin: 0; padding: 0; }
.fh-nav > ul { display: flex; flex-wrap: nowrap; gap: 0; }
.fh-nav li { position: relative; }
.fh-nav a { display: block; padding: 8px 9px; border-radius: 8px; text-decoration: none; color: var(--wp--preset--color--accent-3); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.fh-nav a:hover, .fh-nav a:focus, .fh-nav .current-menu-item > a, .fh-nav .current-menu-ancestor > a { background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--accent-1); }
.fh-nav .menu-item-has-children > a::after { content: " \25BE"; font-size: 0.75em; opacity: 0.7; }
.fh-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 10px; box-shadow: 0 8px 24px rgba(11, 61, 99, 0.12); padding: 6px; z-index: 20; }
.fh-nav li:hover > .sub-menu, .fh-nav li:focus-within > .sub-menu { display: block; }
.fh-nav .sub-menu a { font-weight: 500; }

/* Handy: Menü über Aufklapper ohne JavaScript */
.fh-menue-mobil { display: none; }
.fh-menue-mobil summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.fh-menue-mobil summary::-webkit-details-marker { display: none; }
@media (max-width: 1180px) {
	.fh-nav-desktop { display: none; }
	.fh-menue-mobil { display: block; }
	.fh-menue-mobil[open] .fh-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--wp--preset--color--accent-6); padding: 8px 16px 16px; z-index: 30; }
	.fh-menue-mobil .fh-nav > ul { display: block; }
	.fh-menue-mobil .fh-nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.fh-adresse { display: none; }
}
.fh-kopf { position: relative; }

/* Karten mit Foto */
.fh-karte { border: 1px solid var(--wp--preset--color--accent-6); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(11, 61, 99, 0.06); height: 100%; }
.fh-karte .wp-block-image { margin: 0; }
.fh-karte .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* Schnellzugriff-Leiste */
.fh-schnell a { color: #fff; text-decoration: none; }
.fh-schnell .wp-block-column { border-right: 1px solid rgba(255, 255, 255, 0.18); }
.fh-schnell .wp-block-column:last-child { border-right: 0; }

/* Tabellen (Flugpläne, Preise) */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table thead { background: var(--wp--preset--color--accent-3); color: #fff; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--wp--preset--color--accent-6); padding: 0.6em 0.8em; text-align: left; vertical-align: top; }
.wp-block-table tbody tr:nth-child(even) { background: var(--wp--preset--color--accent-5); }
@media (max-width: 600px) { .wp-block-table { overflow-x: auto; } .wp-block-table table { min-width: 560px; } }

/* Hinweisbox */
.fh-hinweis { border-left: 4px solid var(--wp--preset--color--accent-2); border-radius: 10px; }

/* Fußmenü auf dunklem Grund */
.has-accent-3-background-color .fh-nav > ul { display: block; }
.has-accent-3-background-color .fh-nav a { color: inherit; padding: 4px 0; font-weight: 500; }
.has-accent-3-background-color .fh-nav a:hover { background: none; color: #fff; text-decoration: underline; }
.has-accent-3-background-color .fh-nav .current-menu-item > a { background: none; color: #fff; }
.fh-kopf .wp-block-site-title { white-space: nowrap; }
.wp-block-table td, .wp-block-table th { font-variant-ligatures: none; }

/* Links auf dunklem Grund (Kopfzeile, Fuß, blaue Leiste, Titelbild): beim Überfahren, Anklicken und Fokus lesbar bleiben */
.has-accent-3-background-color a:not(.wp-element-button),
.has-accent-1-background-color a:not(.wp-element-button),
.wp-block-cover a:not(.wp-element-button) { color: #fff; }
.has-accent-3-background-color a:not(.wp-element-button):is(:hover, :focus, :focus-visible, :active),
.has-accent-1-background-color a:not(.wp-element-button):is(:hover, :focus, :focus-visible, :active),
.wp-block-cover a:not(.wp-element-button):is(:hover, :focus, :focus-visible, :active) {
	color: #fff; background: none; text-decoration: underline; text-underline-offset: 3px;
}
.has-accent-3-background-color a:focus-visible, .has-accent-1-background-color a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.has-accent-3-background-color .fh-nav a:is(:hover, :focus, :active) { background: none; color: #fff; }
.fh-sprachen a:is(:hover, :focus) { background: rgba(255, 255, 255, 0.15); text-decoration: none; }
.fh-sprachen .current-lang a:is(:hover, :focus) { background: var(--wp--preset--color--accent-2); }

/* Hauptmenü: nach dem Klick (Fokus) gleiches Bild wie beim Überfahren */
.fh-nav a:active { background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--accent-1); }

/* Knöpfe: Text bleibt in jedem Zustand sichtbar */
.wp-element-button:is(:focus, :active) { color: var(--wp--preset--color--base); background-color: var(--wp--preset--color--accent-3); }
.is-style-outline .wp-element-button { border-color: currentColor; }
.is-style-outline .wp-element-button:is(:hover, :focus, :active) { color: var(--wp--preset--color--base); background-color: var(--wp--preset--color--accent-3); border-color: var(--wp--preset--color--accent-3); }
.wp-block-cover .wp-block-button.is-style-outline > .wp-element-button:is(:hover, :focus, :active) { background-color: rgba(255, 255, 255, 0.2) !important; color: #fff !important; border-color: #fff; }
.wp-block-cover .wp-block-button:not(.is-style-outline) > .wp-element-button:is(:hover, :focus, :active) { background-color: var(--wp--preset--color--accent-5) !important; }

/* Unterseiten als Knopfleiste */
.fh-unterseiten .wp-element-button { padding: 0.5rem 1rem; font-size: 0.9375rem; color: var(--wp--preset--color--accent-1); }

/* Partner-Logos: gleich große Kacheln, vier pro Reihe, am Handy zwei */
.fh-logo-raster { flex-wrap: wrap !important; gap: var(--wp--preset--spacing--40) !important; }
.fh-logo-raster > .wp-block-column { flex: 0 0 calc(25% - 1.5rem) !important; }
.fh-logo { border: 1px solid var(--wp--preset--color--accent-6); border-radius: 14px; background: #fff; padding: 20px 16px 12px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.fh-logo .wp-block-image { margin: 0 0 12px; }
.fh-logo .wp-block-image img { height: 110px; width: 100%; object-fit: contain; }
.fh-logo p { margin: 0; color: var(--wp--preset--color--accent-4); }
@media (max-width: 781px) { .fh-logo-raster > .wp-block-column { flex: 0 0 calc(50% - 1rem) !important; } }
