/*
Theme Name:       Hafenschule
Theme URI:        https://wetemplate.de/
Author:           Hafenschule
Author URI:       https://wetemplate.de/
Description:      Block Theme (Full Site Editing) für die Grundschul-Homepage der Hafenschule. Maritime Farbwelt (Hafen-Blau, warmes Gelb, Akzent Rot), barrierearm, DSGVO-freundlich, ohne externe Schriften, Hostinger-Shared-Hosting-kompatibel.
Version:          1.0.0
Tested up to:     6.5
Requires at least: 6.4
Requires PHP:     8.0
License:          GNU General Public License v2 or later
License URI:      http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:      hafenschule
Tags:             block-theme, full-site-editing, education, school, accessibility-ready
*/

/* ------------------------------------------------------------------
   Globale Hilfen, die theme.json nicht abdeckt
   (Skip-Link, sichtbarer Fokus, sanfter Lese-Komfort)
------------------------------------------------------------------ */

/* Skip-Link: bei Fokus sichtbar machen */
.skip-link {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	padding: 0.75rem 1rem;
	z-index: 100000;
	text-decoration: none;
	font-weight: 700;
}

.skip-link:focus,
.skip-link:focus-visible {
	left: 1rem;
	top: 1rem;
	width: auto;
	height: auto;
	outline: 3px solid var(--wp--preset--color--secondary);
}

/* Sichtbarer Fokus auf interaktiven Elementen (Barrierefreiheit) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--secondary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Bilder verhalten sich responsiv */
img {
	max-width: 100%;
	height: auto;
}

/* Smooth scroll für Ankerlinks im Header-Menü */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Termine-Datum: kleine Visuelle Auszeichnung, falls Pattern verwendet wird */
.termin-datum {
	display: inline-block;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--neutral-dunkel);
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	font-weight: 700;
	font-size: 0.9em;
}

/* Lehrer-Kachel: weicher Schatten + Hover, falls Pattern verwendet wird */
.lehrer-kachel {
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--neutral-hell);
	border-radius: 8px;
	padding: 1rem;
	transition: transform 150ms ease, box-shadow 150ms ease;
}

@media (prefers-reduced-motion: no-preference) {
	.lehrer-kachel:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 18px rgba(14, 90, 138, 0.12);
	}
}
