/*
Theme Name: Der Köppel (Ultra Child)
Theme URI: https://www.derkoeppel.de
Template: themify-ultra
Author: con|ZENTRIERT
Author URI: https://conzentriert.eu
Description: Child-Theme von Themify Ultra für die Wald- und Wandergaststätte „Der Köppel" (MyDearCaptain). Marke: Naturtöne, genau ein Cranberry-Akzent, Fraunces + Instrument Sans (self-hosted, DSGVO), Höhenlinien-Signatur. Sektions-Styles als Custom-CSS-Klassen für Themify-Builder-Zeilen und -Module. Schema über geo-seo-optimizer, Öffnungszeiten über builder-geoseo-nap.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: koeppel-ultra
*/

/* =========================================================
   Schriften (lokal, self-hosted, kein Google-CDN)
   ========================================================= */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("assets/fonts/Fraunces-Variable.woff2") format("woff2-variations");
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url("assets/fonts/Fraunces-Italic-Variable.woff2") format("woff2-variations");
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("assets/fonts/InstrumentSans-Variable.woff2") format("woff2-variations");
}

/* =========================================================
   Marken-Tokens
   ========================================================= */
:root {
	--koeppel-moss-deep: #2A331F;
	--koeppel-moss: #3B4A2F;
	--koeppel-fern: #6B7B54;
	--koeppel-fog: #DDE1D6;
	--koeppel-paper: #F5F2EA;
	--koeppel-bark: #241E17;
	--koeppel-cranberry: #A6402E;
	--koeppel-cranberry-dark: #8C3324;
	--koeppel-line: rgba(36, 30, 23, 0.14);
	--koeppel-shadow: 0 1px 2px rgba(36, 30, 23, 0.06), 0 12px 40px rgba(36, 30, 23, 0.08);
	--koeppel-font-display: "Fraunces", Georgia, serif;
	--koeppel-font-body: "Instrument Sans", system-ui, sans-serif;
}

/* =========================================================
   Globale Typografie (markenweit; bei Bedarf entfernen,
   wenn Themify-Customizer-Fonts gewünscht sind)
   ========================================================= */
body {
	font-family: var(--koeppel-font-body);
	color: var(--koeppel-bark);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--koeppel-font-display);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.08;
	color: var(--koeppel-moss-deep);
}
h1, h2, h3 { text-wrap: balance; }

/* =========================================================
   Zugänglichkeit (Quality-Floor)
   ========================================================= */
:where(a, button, input, select, textarea, summary, .koeppel-btn, [tabindex]):focus-visible {
	outline: 2px solid var(--koeppel-cranberry);
	outline-offset: 2px;
	border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
.koeppel-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100000;
}
.koeppel-skip-link:focus {
	left: 8px; top: 8px; padding: 0.7rem 1.2rem;
	background: var(--koeppel-moss-deep); color: var(--koeppel-paper);
	font-weight: 600; text-decoration: none; border-radius: 2px;
}

/* =========================================================
   Buttons (als Custom-CSS-Klasse auf Themify-Buttons/Links)
   ========================================================= */
.koeppel-btn, a.koeppel-btn {
	display: inline-block;
	background: var(--koeppel-moss); color: var(--koeppel-paper);
	padding: 0.7rem 1.4rem; border: 1px solid var(--koeppel-moss);
	border-radius: 2px; font-family: var(--koeppel-font-body);
	font-size: 0.88rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer;
}
.koeppel-btn:hover { background: var(--koeppel-moss-deep); border-color: var(--koeppel-moss-deep); color: var(--koeppel-paper); }
.koeppel-btn-ghost, a.koeppel-btn-ghost { background: transparent; color: var(--koeppel-moss); border-color: var(--koeppel-moss); }
.koeppel-btn-ghost:hover { background: var(--koeppel-moss); color: var(--koeppel-paper); }
@media (prefers-reduced-motion: no-preference) {
	.koeppel-btn { transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease; }
	.koeppel-btn:hover { transform: translateY(-1px); }
}

/* =========================================================
   Eyebrow / Akzent
   ========================================================= */
.koeppel-eyebrow {
	font-family: var(--koeppel-font-body);
	font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
	font-weight: 600; color: var(--koeppel-fern);
}
.koeppel-accent { font-style: italic; color: var(--koeppel-cranberry); }

/* =========================================================
   Signatur: Höhenlinien als Zeilen-Hintergrund
   Klasse .koeppel-hero bzw. .koeppel-cta auf die Themify-Zeile.
   ========================================================= */
.koeppel-hero, .koeppel-cta { position: relative; overflow: hidden; }
.koeppel-hero::before, .koeppel-cta::before {
	content: ""; position: absolute; inset: 0; z-index: 0;
	pointer-events: none;
	background-repeat: no-repeat; background-position: center; background-size: 100% 100%;
}
.koeppel-hero::before { background-image: url("assets/topo-light.svg"); opacity: 0.5; }
.koeppel-cta::before { background-image: url("assets/topo-dark.svg"); opacity: 0.15; }
.koeppel-hero > *, .koeppel-cta > * { position: relative; z-index: 1; }

/* =========================================================
   Hero
   ========================================================= */
.koeppel-hero { background: linear-gradient(180deg, var(--koeppel-paper) 0%, var(--koeppel-fog) 100%); }
.koeppel-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.koeppel-lede { font-size: 1.18rem; color: var(--koeppel-bark); opacity: 0.85; max-width: 34ch; }
.koeppel-elev {
	display: inline-flex; align-items: center; gap: 0.6rem;
	font-size: 0.82rem; letter-spacing: 0.05em; color: var(--koeppel-fern); font-weight: 600;
}
.koeppel-elev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--koeppel-cranberry); flex: none; }

/* Bildkarte: Container-Klasse auf Holder/Column, mit Bild + optionalem Tag */
.koeppel-hero-card {
	position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
	background: var(--koeppel-moss-deep); box-shadow: var(--koeppel-shadow);
}
.koeppel-hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.koeppel-tag {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	padding: 2.4rem 1.3rem 1.2rem; color: var(--koeppel-paper); font-size: 0.85rem;
	background: linear-gradient(180deg, rgba(42, 51, 31, 0) 0%, rgba(42, 51, 31, 0.85) 100%);
}
.koeppel-tag * { color: var(--koeppel-paper); margin: 0; }
@media (max-width: 900px) { .koeppel-hero-card { aspect-ratio: 16 / 10; } }

/* =========================================================
   Öffnungszeiten-Band (Klasse auf die Zeile mit dem
   geoseo-nap-Modul bzw. dem Zeiten-Streifen)
   ========================================================= */
.koeppel-hours { background: var(--koeppel-moss-deep); color: var(--koeppel-fog); }
.koeppel-hours :where(p, span, td, th, a) { color: var(--koeppel-fog); }
.koeppel-hours-days { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.koeppel-day { display: flex; flex-direction: column; gap: 0.1rem; }
.koeppel-day-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--koeppel-fern); }
.koeppel-day-time { font-family: var(--koeppel-font-display); font-size: 1.15rem; color: var(--koeppel-paper); line-height: 1.15; }
.koeppel-hours-note { font-size: 0.85rem; color: var(--koeppel-fog); }
.koeppel-hours-note strong { color: var(--koeppel-cranberry); }

/* =========================================================
   Angebot-Karten (Klasse auf Text-Module/Holder)
   ========================================================= */
.koeppel-card {
	background: #ffffff; border: 1px solid var(--koeppel-line); border-radius: 4px;
	padding: 2rem 1.7rem; height: 100%;
}
.koeppel-card-num { font-family: var(--koeppel-font-display); color: var(--koeppel-cranberry); font-weight: 600; font-size: 0.9rem; }
.koeppel-card h3 { font-size: 1.4rem; margin: 0.6rem 0; }
@media (prefers-reduced-motion: no-preference) {
	.koeppel-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
	.koeppel-card:hover { transform: translateY(-4px); box-shadow: var(--koeppel-shadow); }
}

/* =========================================================
   Story „Der Berg"
   ========================================================= */
.koeppel-story { background: #ffffff; border-top: 1px solid var(--koeppel-line); border-bottom: 1px solid var(--koeppel-line); }
.koeppel-media { border-radius: 4px; overflow: hidden; box-shadow: var(--koeppel-shadow); }
.koeppel-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 5 / 4; }
.koeppel-facts { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.koeppel-fact-num { font-family: var(--koeppel-font-display); font-size: 2rem; color: var(--koeppel-cranberry); line-height: 1; }
.koeppel-fact-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--koeppel-fern); margin-top: 0.3rem; }

/* =========================================================
   Übernachten
   ========================================================= */
.koeppel-stay { background: var(--koeppel-fog); }
.koeppel-stay-card { position: relative; border-radius: 4px; overflow: hidden; box-shadow: var(--koeppel-shadow); }
.koeppel-stay-card img { width: 100%; display: block; aspect-ratio: 16 / 11; object-fit: cover; }
.koeppel-cap {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.4rem; color: var(--koeppel-paper);
	background: linear-gradient(180deg, rgba(42, 51, 31, 0) 0%, rgba(42, 51, 31, 0.82) 100%);
}
.koeppel-cap :where(h3, p) { color: var(--koeppel-paper); margin: 0; }
.koeppel-cap p { font-size: 0.88rem; margin-top: 0.2rem; }
@media (prefers-reduced-motion: no-preference) {
	.koeppel-stay-card img { transition: transform 0.5s ease; }
	.koeppel-stay-card:hover img { transform: scale(1.04); }
}

/* =========================================================
   CTA
   ========================================================= */
.koeppel-cta { background: var(--koeppel-moss-deep); color: var(--koeppel-paper); text-align: center; }
.koeppel-cta :where(h1, h2, h3, p) { color: var(--koeppel-paper); }
.koeppel-cta .koeppel-btn { background: var(--koeppel-cranberry); border-color: var(--koeppel-cranberry); }
.koeppel-cta .koeppel-btn:hover { background: var(--koeppel-cranberry-dark); border-color: var(--koeppel-cranberry-dark); }

/* =========================================================
   Speisekarte (eigene Seite)
   ========================================================= */
.koeppel-menu-intro { color: var(--koeppel-bark); opacity: 0.8; max-width: 60ch; margin-left: auto; margin-right: auto; }
.koeppel-menu-section-title {
	display: flex; align-items: center; gap: 1rem;
	font-family: var(--koeppel-font-body);
	font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
	color: var(--koeppel-fern);
}
.koeppel-menu-section-title::before, .koeppel-menu-section-title::after { content: ""; flex: 1; height: 1px; background: rgba(36, 30, 23, 0.16); }
.koeppel-dish { margin-bottom: 1.4rem; }
.koeppel-dish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.koeppel-dish-name { font-family: var(--koeppel-font-display); font-size: 1.15rem; font-weight: 500; color: var(--koeppel-moss-deep); }
.koeppel-dish-price { font-family: var(--koeppel-font-display); font-size: 1.1rem; font-weight: 500; color: var(--koeppel-moss-deep); white-space: nowrap; }
.koeppel-dish-desc { font-size: 0.92rem; color: var(--koeppel-bark); opacity: 0.7; margin-top: 0.25rem; max-width: 62ch; }
.koeppel-menu-note { font-size: 0.8rem; color: var(--koeppel-fern); }

/* =========================================================
   Header/Footer-Akzente (optional, falls Themify-Header/Footer
   mit diesen Klassen versehen werden)
   ========================================================= */
.koeppel-brand-alt { font-family: var(--koeppel-font-body); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--koeppel-fern); }
.koeppel-footer { background: var(--koeppel-bark); color: var(--koeppel-fog); }
.koeppel-footer :where(p, li, a) { color: var(--koeppel-fog); }
.koeppel-footer a { text-decoration: none; opacity: 0.82; }
.koeppel-footer a:hover { opacity: 1; color: var(--koeppel-paper); }
.koeppel-foot-brand { font-family: var(--koeppel-font-display); font-size: 1.6rem; font-weight: 600; color: var(--koeppel-paper); }
.koeppel-foot-brand span { color: var(--koeppel-cranberry); }
