/**
 * Skamander – Gestaltung auf Basis von GeneratePress.
 *
 * Nachbau des Skybox-Designs (Referenz: migration/skybox-referenz.css),
 * behutsam modernisiert: größere Schrift, Burger-Menü, Fußzeile.
 */

/* ---------- Schriften (lokal) ---------- */

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-700-italic.woff2") format("woff2");
}

@font-face {
	font-family: "TeX Gyre Pagella";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/tex-gyre-pagella-regular.woff2") format("woff2");
}

@font-face {
	font-family: "TeX Gyre Pagella";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/tex-gyre-pagella-italic.woff2") format("woff2");
}

:root {
	--skamander-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
	--skamander-font-text: Verdana, Geneva, "DejaVu Sans", sans-serif;
	--skamander-font-hero: "TeX Gyre Pagella", "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

/* ---------- Grundlayout ---------- */

body {
	background: var(--base-3) url("../images/hintergrund.jpg") center top / 2000px auto no-repeat;
	color: var(--contrast);
	font-family: var(--skamander-font-text);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-size: 15px;
	line-height: 1.75;
}

/* Inhalt auf voller Breite weiß hinterlegen (wie im Original). */
.site.grid-container {
	width: 100%;
	box-shadow: 0 0 0 100vmax var(--base-3);
	clip-path: inset(0 -100vmax);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---------- Kopf und Navigation ---------- */

.site-header {
	background: transparent;
}

.site-logo img {
	width: 300px;
	height: auto;
}

.main-navigation,
.main-navigation ul ul {
	background: transparent;
}

.main-navigation .inside-navigation {
	position: relative;
	padding-left: 18px;
}

/* Feine Schattenlinie unter dem Menü (ersetzt shadow-full.png). */
.main-navigation .inside-navigation::after {
	position: absolute;
	right: 40px;
	bottom: 0;
	left: 40px;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(0, 51, 102, 0.25) 15%, rgba(0, 51, 102, 0.25) 85%, transparent);
	content: "";
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
	font-family: var(--skamander-font-head);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	box-shadow: inset 0 -2px 0 var(--accent);
}

/* ---------- Startbild ---------- */

.skamander-hero-wrap {
	width: 100%;
	padding: 0;
}

.skamander-hero {
	min-height: 350px;
	margin: 0;
	padding: 48px 40px 40px;
	color: #fff;
	font-family: var(--skamander-font-hero);
	text-shadow: 0 1px 2px rgba(0, 30, 70, 0.25);
}

.skamander-hero .wp-block-group__inner-container {
	max-width: none;
	margin: 0;
}

.skamander-hero p {
	max-width: 46em;
	margin: 0 0 0.6em;
	color: inherit;
}

.skamander-hero .wp-block-quote {
	margin: 0 0 1.2em;
	padding: 0;
	border: 0;
	font-size: inherit;
	font-style: normal;
}

.skamander-hero .wp-block-quote p {
	margin: 0;
	font-style: normal;
	font-size: clamp(24px, 3.4vw, 38px);
	line-height: 1.12;
}

.skamander-hero .wp-block-quote cite {
	display: block;
	margin-top: 0.7em;
	font-size: 14px;
	font-style: italic;
	letter-spacing: 0.04em;
}

.skamander-hero__text {
	font-size: clamp(16px, 1.6vw, 18px);
	line-height: 1.45;
}

/* Einblenden von links wie im Original-Slider (Animation „sfl“). */
@media (prefers-reduced-motion: no-preference) {
	.skamander-hero .wp-block-group__inner-container > * {
		animation: skamander-einblenden 0.7s ease-out both;
	}

	.skamander-hero .wp-block-group__inner-container > :nth-child(2) {
		animation-delay: 0.3s;
	}

	.skamander-hero .wp-block-group__inner-container > :nth-child(3) {
		animation-delay: 0.6s;
	}
}

@keyframes skamander-einblenden {
	from {
		opacity: 0;
		transform: translateX(-40px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Inhalt ---------- */

.entry-header .entry-title,
.page-header .page-title {
	color: var(--accent-2);
	font-family: var(--skamander-font-head);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.3;
	text-transform: uppercase;
}

.inside-article .entry-content {
	margin-top: 1em;
}

.entry-content > p {
	margin-bottom: 1.2em;
}

/* Galerie (Portfolio): Logos mit grauem Rahmen. */
.entry-content .gallery {
	margin: 1.6em 0 0;
}

.entry-content .gallery .gallery-item {
	margin: 0 0 20px;
	text-align: left;
}

.entry-content .gallery img {
	border: 2px solid var(--contrast-3) !important;
	background: var(--base-3);
}

/* ---------- Seitenleiste ---------- */

.sidebar .widget {
	background: transparent;
	color: var(--contrast-2);
	font-family: var(--skamander-font-head);
	font-size: 14px;
	line-height: 1.7;
}

.sidebar .widget-title {
	margin-bottom: 12px;
	color: #505050;
	font-family: var(--skamander-font-head);
	font-size: 17px;
	font-weight: 700;
	text-transform: uppercase;
}

.sidebar .widget p {
	margin-bottom: 1.4em;
}

.sidebar .widget img {
	display: block;
	float: none;
	margin: 0 0 6px;
}

/* ---------- Fußzeile ---------- */

.site-footer {
	flex: 1 0 auto;
	background:
		linear-gradient(to bottom, rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0) 160px),
		url("../images/hintergrund.jpg") center 70% / cover no-repeat,
		#0a4a94;
}

.site-footer .site-info {
	min-height: 220px;
	background: transparent;
	font-size: 13px;
}

.site-footer .inside-site-info {
	justify-content: flex-start;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 6px 24px;
}

/* Fußzeilenmenü steht hinter dem Copyright. */
.skamander-footer-nav {
	order: 2;
}

.skamander-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.skamander-footer-menu a {
	color: var(--base-3);
	text-decoration: none;
}

.skamander-footer-menu a:hover,
.skamander-footer-menu a:focus,
.skamander-footer-menu .current-menu-item > a {
	text-decoration: underline;
}

/* ---------- Mobil ---------- */

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

	.site-logo img {
		width: 240px;
	}

	.main-navigation .inside-navigation {
		padding-left: 0;
	}

	.main-navigation .inside-navigation::after {
		right: 20px;
		left: 20px;
	}

	.main-navigation.toggled .main-nav ul ul,
	.main-navigation.toggled .main-nav > ul {
		background: var(--base-3);
	}

	.skamander-hero {
		min-height: 0;
		padding: 32px 20px 24px;
	}

	.skamander-hero br {
		display: none;
	}

	.site-footer .site-info {
		min-height: 120px;
	}

	.skamander-footer-nav {
		width: 100%;
	}

	.skamander-footer-menu {
		justify-content: center;
	}
}
