/* Übersicht aller Reisen */

.overview { padding: 0 var(--edge); }

.overview-head { padding: 28px 0 4px; }

.overview-head .intro { margin-top: 6px; max-width: 42rem; color: var(--muted); }
.overview-head .intro p { margin: 0 0 0.6em; }

/* Gruppe (meist ein Jahr): große, leichte Ziffern mit durchlaufender Linie */
.group { margin-top: 28px; }
.group-title {
	display: flex; align-items: center; gap: 18px;
	margin: 0 0 14px;
	font-size: clamp(1.9rem, 7vw, 3.1rem);
	font-weight: 200; line-height: 1; letter-spacing: -0.025em;
	font-variant-numeric: tabular-nums;
}
.group-title a { color: var(--text); text-decoration: none; }
.group-title a:hover { color: var(--route); }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.tiles {
	display: grid; gap: 12px; align-items: start;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

/* Kachel: Bild links, Text rechts, auf iPhone wie am Laptop */
.reise-card {
	background: var(--surface);
	border: 1px solid transparent;
	border-radius: var(--radius);
}
.tile {
	display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start;
	padding: 10px;
	border-radius: var(--radius);
	color: inherit; text-decoration: none;
}
.tile:hover { background: var(--surface-2); color: inherit; }
.tile-image {
	display: block; width: 112px; aspect-ratio: 4 / 3;
	border-radius: 4px; overflow: hidden; background: var(--surface-2);
}
.tile-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-text { min-width: 0; }
.tile-title { margin: 0 0 4px; font-size: 1.15rem; font-weight: 600; line-height: 1.2; color: var(--text); }
.tile-desc {
	margin: 0; font-size: 0.85rem; line-height: 1.35; color: var(--muted);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Rückkehr von der Reiseseite (#slug): Kachel dezent markieren */
.reise:target > .reise-card, .trip:target > .tile { border-color: var(--route); }

/* Trips: hängen wie Etappen an einer Routenlinie unter der Reise */
/* Trips: Der Schalter liegt halbtransparent auf dem Kachelbild, so bleiben alle Karten gleich hoch.
   Aufgeklappt erscheinen die Trips unter dem Kopf der Karte, an einer Routenlinie aufgereiht. */
.reise-card { position: relative; --img-w: 112px; --img-h: calc(var(--img-w) * 3 / 4); }
.trips { margin: 0; }
.trips[open] { margin: 0 10px 8px 14px; }
.trips > summary {
	position: absolute; z-index: 2;
	left: 16px; top: calc(10px + var(--img-h) - 32px);
	display: inline-flex; align-items: center; gap: 6px;
	height: 26px; padding: 0 10px 0 8px;
	list-style: none; cursor: pointer; user-select: none;
	color: #fff; font-size: 0.78rem; font-weight: 600; line-height: 1;
	background: rgba(14, 20, 18, 0.66);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	border-radius: 13px;
}
.trips > summary::after { content: ""; position: absolute; inset: -9px -6px; } /* größere Tippfläche */
.trips > summary::-webkit-details-marker { display: none; }
.trips > summary::before {
	content: ""; width: 6px; height: 6px;
	border-right: 2px solid var(--route); border-bottom: 2px solid var(--route);
	transform: translateY(-1px) rotate(45deg); transition: transform 0.15s ease;
}
.trips[open] > summary::before { transform: translateY(1px) rotate(-135deg); }
.trips > summary:hover { background: rgba(14, 20, 18, 0.85); }

.trip-list {
	position: relative; display: grid; gap: 10px;
	margin: 4px 0 6px 6px; padding-left: 22px;
	border-left: 2px dotted var(--route);
}
.trip { position: relative; }
.trip::before {
	content: ""; position: absolute; left: -29px; top: 22px;
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--surface); border: 2px solid var(--route);
}
.tile--trip { grid-template-columns: 88px 1fr; background: var(--surface-2); border: 1px solid var(--line); }
.tile--trip:hover { background: var(--line); }
.tile--trip .tile-image { width: 88px; }
.tile--trip .tile-title { font-size: 1.05rem; }

.empty { margin: 40px 0; max-width: 36rem; color: var(--muted); }

@media (min-width: 900px) {
	.overview-head { padding-top: 40px; }
	.group { margin-top: 44px; }
}

/* Gruppenseite */
.crumb-back { margin: 0; font-size: 0.9rem; }
.group-intro { margin: -4px 0 14px; max-width: 42rem; color: var(--muted); }

/* Titelbild: bleibt stehen, Name, Menü und Inhalt fahren beim Scrollen darüber nach oben */
.hero-wrap {
	--hero-h: min(calc(var(--hero-max, 50) * 1vh), calc(100vw * var(--hero-ratio, 0.5)));
}
@supports (height: 1svh) {
	.hero-wrap { --hero-h: min(calc(var(--hero-max, 50) * 1svh), calc(100vw * var(--hero-ratio, 0.5))); }
}
.hero-bg {
	position: fixed; top: 0; left: 0; right: 0; z-index: 0;
	height: calc(var(--hero-h) + env(safe-area-inset-top, 0px));
	overflow: hidden; background: var(--surface);
}
.hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgba(8, 12, 10, var(--hero-scrim, 0.3)), rgba(8, 12, 10, 0) 45%),
		linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0) 30%);
}
.hero {
	position: relative; z-index: 1;
	display: flex; flex-direction: column; justify-content: flex-end;
	height: var(--hero-h);
	padding: 0 var(--edge) 22px;
	color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero-title { margin: 0; font-size: clamp(2.6rem, 10vw, 5rem); font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.hero-tagline { margin: 8px 0 0; font-size: 1.05rem; letter-spacing: 0.04em; }
@media (min-width: 900px) { .hero { padding-bottom: 44px; } }
.has-hero .site-header { border-top: 0; }

.hero-title a { color: inherit; text-decoration: none; }
