/* =========================================================================
   Café Rih – Startseite (front-page.php)
   Layout aus dem freigegebenen Claude-Design, markentreu auf die Brand-Tokens
   gemappt. Wird ausschließlich auf der Startseite geladen. Namespace: crh-.
   Header/Footer bleiben hand-codiert (header.css/footer.css); diese Datei
   gestaltet nur den Inhalt zwischen beiden.
   ========================================================================= */

/* Header-Höhe spiegeln, damit der Hero unter den transparenten Sticky-Header
   bleibt (entspricht der Höhe aus header.css: Logo + vertikales Padding). */
.crh-home {
	--crh-header-h: calc(clamp(38px, 4.4vw, 56px) + 2 * clamp(.7rem, 1.8vw, 1.1rem));
}

/* --- Reveal-on-scroll (ruhiger Fade-up) ---
   Verstecken nur, wenn JS aktiv ist (html.crh-js). Ohne JS bleibt der Inhalt
   vollständig sichtbar (Progressive Enhancement, Barrierefreiheit). */
.crh-js .crh-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 1.1s var(--cr-ease), transform 1.1s var(--cr-ease);
}
.crh-js .crh-reveal.is-in { opacity: 1; transform: none; }

/* --- Layout-Grundbausteine --- */
.crh-wrap { max-width: var(--cr-maxw); margin: 0 auto; padding: 0 28px; }
.crh-section { position: relative; }

/* --- Eyebrow / Label --- */
.crh-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: var(--cr-font-body);
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: 12px;
	margin-bottom: 24px;
}
.crh-eyebrow--gold { color: var(--cr-gold); }
.crh-eyebrow--teal { color: var(--cr-teal); }
.crh-star { flex: none; display: block; }

/* --- Überschriften & Text --- */
.crh-h2 {
	font-family: var(--cr-font-display);
	font-weight: 400;
	font-size: clamp(2rem, 4.2vw, 3.2rem);
	line-height: 1.06;
	margin: 0 0 26px;
}
.crh-h2--lg { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; }
.crh-body {
	font-family: var(--cr-font-body);
	font-weight: 300;
	font-size: var(--cr-body-size);
	line-height: var(--cr-body-line);
	color: var(--cr-text-muted);
}

/* --- Buttons (outline Gold, Hover Türkis) --- */
.crh-btn {
	display: inline-flex;
	align-items: center;
	padding: 16px 34px;
	border: 1px solid var(--cr-gold);
	color: var(--cr-text);
	font-family: var(--cr-font-body);
	font-size: 12.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	transition: background-color .5s var(--cr-ease),
	            color .5s var(--cr-ease),
	            border-color .5s var(--cr-ease);
}
/* Spezifitaet bewusst hoeher als „.cafe-rih a:hover" (brand.css Z. 88),
   sonst gewinnt die globale Tuerkis-Linkfarbe und der Text wird
   tuerkis-auf-tuerkis = unlesbar (1.0:1). Dunkel auf Tuerkis = 5.84:1, PASS AA. */
.cafe-rih a.crh-btn:hover,
.cafe-rih a.crh-btn:focus-visible {
	background: var(--cr-teal);
	border-color: var(--cr-teal);
	color: var(--cr-bg);
}
.crh-btn--sm { padding: 15px 30px; font-size: 12px; }
.crh-btn--ghost { border-color: rgba(247, 247, 245, .22); color: var(--cr-text-muted); }
.crh-btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- Niere (ton-in-ton Hintergrundform) --- */
.crh-niere {
	position: absolute;
	height: auto;
	pointer-events: none;
	z-index: 0;
}

/* --- Bildrahmen (Fotos; Platzhalter-Streifen als Lade-Hintergrund) --- */
.crh-frame {
	position: relative;
	overflow: hidden;
	background-color: var(--cr-bg);
	background-image: repeating-linear-gradient(122deg, rgba(247, 247, 245, .05) 0 1px, transparent 1px 13px);
	display: flex;
	align-items: flex-end;
	padding: 18px;
}
.crh-frame--4-5 { aspect-ratio: 4 / 5; justify-content: center; }
.crh-frame--4-3 { aspect-ratio: 4 / 3; }
.crh-frame--photo { padding: 0; }
.crh-frame__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.crh-frame__label {
	font-family: var(--cr-font-body);
	font-size: 10.5px;
	letter-spacing: .2em;
	color: rgba(247, 247, 245, .32);
	text-transform: uppercase;
}

/* =========================================================================
   HERO
   ========================================================================= */

.crh-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	margin-top: calc(-1 * var(--crh-header-h));
	padding-top: var(--crh-header-h);
	/* Platz für den Scroll-Indikator am unteren Rand; hebt den zentrierten Text
	   zugleich leicht an, sodass er optisch mittig zwischen Header und Icon steht. */
	padding-bottom: clamp(72px, 10vh, 112px);
	background-color: var(--cr-surface); /* Fallback, bis das Bild geladen ist */
}
.crh-hero__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Hintergrundvideo liegt formatfüllend über dem Poster-Bild, unter dem Overlay.
   Bewusst OHNE prefers-reduced-motion-Ausblendung: Das Header-Video ist als
   Marken-/Design-Element gewollt und soll immer laufen (ruhige, langsame
   Kamerafahrt, kein hartes Flackern). Das Poster-Bild bleibt als Fallback, falls
   Autoplay der Browser einmal verweigert. */
.crh-hero__video {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
.crh-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(21, 25, 26, .62) 0%, rgba(21, 25, 26, .72) 55%, rgba(21, 25, 26, .94) 100%);
}
.crh-niere--hero { right: -12%; top: 8%; width: min(70vw, 780px); }
.crh-hero__inner-wrap { position: relative; z-index: 2; width: 100%; }
.crh-hero__inner { max-width: 880px; margin-inline: auto; text-align: center; }
.crh-hero .crh-eyebrow { margin-bottom: 30px; }
.crh-hero h1 {
	font-family: var(--cr-font-display);
	font-weight: 400;
	font-size: clamp(2.9rem, 8.5vw, 6rem);
	line-height: 1;
	letter-spacing: -.01em;
	margin: 0;
}
.crh-hero__lead {
	font-family: var(--cr-font-body);
	font-weight: 300;
	font-size: clamp(1.05rem, 1.4vw, 1.22rem);
	line-height: 1.75;
	color: var(--cr-text-muted);
	max-width: 54ch;
	margin: 34px auto 0;
}

/* --- Scroll-Indikator (unten mittig im Hero) ---
   Maus-Silhouette als feine Altgold-Haarlinie, darin ein Punkt, der ruhig nach
   unten wandert. Spezifitaet bewusst hoeher als „.cafe-rih a:hover" (brand.css),
   sonst gewinnt die globale Link-Farbe ueber currentColor. */
.cafe-rih a.crh-hero__scroll {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: clamp(20px, 3.5vh, 40px);
	transform: translateX(-50%);
	display: block;
	padding: 8px; /* groessere Trefferflaeche, ohne das Icon zu vergroessern */
	color: var(--cr-gold);
	transition: color .5s var(--cr-ease);
}
.cafe-rih a.crh-hero__scroll:hover,
.cafe-rih a.crh-hero__scroll:focus-visible { color: var(--cr-teal); }

.crh-hero__scroll-mouse {
	display: block;
	position: relative;
	width: 26px;
	height: 42px;
	border: 1px solid currentColor;
	border-radius: 13px;
	opacity: .85;
}
.crh-hero__scroll-dot {
	position: absolute;
	left: 50%;
	top: 9px;
	width: 3px;
	height: 6px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: currentColor;
	animation: crh-scroll-dot 2.6s var(--cr-ease) infinite;
}
@keyframes crh-scroll-dot {
	0%        { transform: translateY(0); opacity: 0; }
	18%       { opacity: 1; }
	62%       { transform: translateY(16px); opacity: 0; }
	100%      { transform: translateY(16px); opacity: 0; }
}

/* =========================================================================
   ÜBER UNS
   ========================================================================= */

/* Ziel des Scroll-Indikators: ruhig anfahren und nicht unter dem Sticky-Header
   landen. Beides gilt nur auf der Startseite, da home.css nur dort geladen wird. */
html { scroll-behavior: smooth; }
.crh-ueber { padding: clamp(90px, 13vh, 170px) 0; scroll-margin-top: var(--crh-header-h); }
.crh-ueber__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.crh-ueber .crh-eyebrow { margin-bottom: 26px; }
.crh-lead-serif {
	font-family: var(--cr-font-display);
	font-weight: 400;
	font-size: clamp(1.6rem, 3.4vw, 2.5rem);
	line-height: 1.4;
	margin: 0;
	color: var(--cr-text);
}
.crh-ueber__body { max-width: 60ch; margin: 32px auto 0; font-size: var(--cr-body-size); }

/* =========================================================================
   SPEISEN & GETRÄNKE
   ========================================================================= */

.crh-speisen { padding: clamp(70px, 9vh, 120px) 0; background: var(--cr-surface); }
.crh-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: clamp(40px, 6vw, 90px);
	align-items: center;
}
.crh-speisen .crh-body { max-width: 52ch; margin: 0 0 22px; }
.crh-speisen .crh-body:last-of-type { margin-bottom: 36px; }
.crh-speisen__media { position: relative; min-height: 380px; }
.crh-niere--speisen { left: -14%; top: -10%; width: 128%; }

/* =========================================================================
   GALERIE
   ========================================================================= */

.crh-galerie { padding: clamp(70px, 9vh, 120px) 0; background: var(--cr-surface); }
.crh-galerie__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 48px;
}
.crh-galerie__head .crh-eyebrow { margin-bottom: 18px; }
.crh-galerie__head .crh-h2 { margin: 0; }
.crh-galerie__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}
.crh-link-underline {
	font-family: var(--cr-font-body);
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cr-text-muted);
	border-bottom: 1px solid var(--cr-gold);
	padding-bottom: 6px;
	transition: color .4s var(--cr-ease);
}
.crh-link-underline:hover,
.crh-link-underline:focus-visible { color: var(--cr-teal); }

/* =========================================================================
   DAS HAUS  (Atmosphäre + Artefakt)
   ---------------------------------------------------------------------------
   Fassade als vollflächige, abgedunkelte Stimmung über die ganze Sektion;
   darüber Text links und das goldene Kunstvereins-Detail rechts als sauber
   gerahmtes Foto im natürlichen Seitenverhältnis (nicht beschnitten/gestreckt).
   Gleiche Behandlung/Logik wie auf der Über-uns-Seite, hier im Front-Page-Stil.
   ========================================================================= */

.crh-haus {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(80px, 12vh, 160px) 0;
	background-color: var(--cr-surface); /* Fallback hinter dem Bild */
}
.crh-haus__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	filter: saturate(.82) brightness(.66) blur(1px);
	transform: scale(1.06);
}
.crh-haus__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg,
			rgba(21, 25, 26, .9) 0%,
			rgba(21, 25, 26, .78) 34%,
			rgba(21, 25, 26, .5) 62%,
			rgba(21, 25, 26, .38) 100%),
		linear-gradient(180deg,
			rgba(21, 25, 26, .3) 0%,
			rgba(21, 25, 26, .16) 45%,
			rgba(21, 25, 26, .45) 100%);
}
.crh-haus .crh-wrap { position: relative; z-index: 2; }
.crh-haus__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
	gap: clamp(36px, 5vw, 80px);
	align-items: center;
	min-height: clamp(360px, 38vw, 520px);
}
.crh-haus__copy { display: flex; flex-direction: column; }
.crh-haus__copy .crh-eyebrow { margin-bottom: 22px; }
.crh-haus__copy .crh-h2 { margin: 0 0 26px; }
.crh-haus__copy .crh-body {
	max-width: 46ch;
	margin: 0 0 18px;
	color: rgba(247, 247, 245, .9);
}
.crh-haus__copy .crh-body:last-child { margin-bottom: 0; }
.crh-haus__media { display: flex; justify-content: center; }
.crh-haus__photo {
	display: block;
	width: 100%;
	height: auto;            /* natürliches Seitenverhältnis, nicht strecken */
	border: 1px solid rgba(161, 152, 127, .35); /* feine Altgold-Keylinie */
	box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
@media (max-width: 820px) {
	.crh-haus__grid {
		grid-template-columns: 1fr;
		gap: 32px;
		min-height: 0;
	}
	.crh-haus__photo { max-width: 32rem; margin: 0 auto; }
}

/* =========================================================================
   prefers-reduced-motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
	.crh-reveal,
	.crh-reveal.is-in {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	/* Scroll-Indikator bleibt sichtbar, nur ohne Wanderung. Ohne diese Regel
	   endet die Animation (brand.css kürzt sie global auf .001ms) auf dem
	   letzten Keyframe und der Punkt wäre unsichtbar. */
	.crh-hero__scroll-dot {
		animation: none;
		opacity: .9;
		transform: translateY(4px);
	}
}
