/* Longevity Map — Basis-Stylesheet
   Farbwelt und Schriftpaarung sind aus der Vorgänger-App übernommen,
   damit die Marke beim Plattformwechsel gleich bleibt. */

:root {
	--bg: #fefefe;
	--fg: #1a1a2e;
	--dark: #1a1a1a;
	--dark-2: #2a2a2a;
	--accent: #c83a3a;
	--accent-hover: #b33232;
	--accent-light: #fef2f2;
	--muted: #64748b;
	--muted-light: #94a3b8;
	--border: #e8e8ed;
	--border-dark: #333;
	--surface: #f8f8fa;

	--wrap: 1140px;
	--wrap-narrow: 760px;
	--radius: 14px;
	--radius-sm: 8px;

	--sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

.lgm-skip {
	position: absolute;
	left: -9999px;
}
.lgm-skip:focus {
	left: 16px; top: 16px; z-index: 10000;
	padding: 10px 16px; background: var(--dark); color: #fff;
	border-radius: var(--radius-sm);
}

/* ---------- Raster ---------- */

.lgm-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.lgm-wrap--narrow { max-width: var(--wrap-narrow); }

.lgm-section { padding-block: 72px; }
.lgm-section--tight { padding-block: 44px 20px; }
.lgm-section--surface { background: var(--surface); }

.lgm-grid { display: grid; gap: 26px; }
.lgm-grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.lgm-grid--4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.lgm-split { display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
	.lgm-split { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* ---------- Typografie ---------- */

.lgm-h1 {
	font-family: var(--serif);
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: .2em 0 .35em;
}
.lgm-h1__count {
	display: block;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: 0;
	margin-top: .5rem;
}

.lgm-h2 {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.015em;
	margin: 0 0 .4em;
}
.lgm-h2__count {
	font-family: var(--sans);
	font-size: .95rem;
	font-weight: 500;
	color: var(--muted);
	margin-left: .5rem;
	white-space: nowrap;
}

.lgm-eyebrow {
	display: inline-block;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: .55rem;
}

.lgm-lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1rem; max-width: 62ch; }

.lgm-head { margin-bottom: 34px; }
.lgm-head--center { text-align: center; }
.lgm-head--center .lgm-lead { margin-inline: auto; }

.lgm-prose { max-width: 68ch; }
.lgm-prose h2 { font-family: var(--serif); font-size: 1.65rem; margin: 1.8em 0 .5em; }
.lgm-prose h3 { font-size: 1.22rem; margin: 1.6em 0 .4em; }
.lgm-prose p { margin: 0 0 1.1em; }
.lgm-prose ul, .lgm-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.lgm-prose li { margin-bottom: .45em; }
.lgm-prose img { border-radius: var(--radius); margin-block: 1.4em; }

/* ---------- Kopf ---------- */

.lgm-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--dark);
	border-bottom: 1px solid var(--border-dark);
}
.lgm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 68px; }
.lgm-header__brand { color: #fff; text-decoration: none; }

.lgm-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.lgm-logo__word { font-family: var(--serif); font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
.lgm-logo__word em { font-style: italic; font-weight: 500; color: var(--accent); }

.lgm-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.lgm-nav__list a {
	color: var(--muted-light); text-decoration: none;
	font-size: .93rem; font-weight: 500;
	transition: color .15s ease;
}
.lgm-nav__list a:hover { color: #fff; }
@media (max-width: 860px) { .lgm-nav { display: none; } }

.lgm-header__cta { padding: 9px 18px; font-size: .88rem; }
@media (max-width: 520px) { .lgm-header__cta { display: none; } }

/* ---------- Buttons ---------- */

.lgm-btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 999px;
	font-size: .95rem; font-weight: 600;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
}
.lgm-btn--accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.lgm-btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.lgm-btn--outline { background: transparent; color: #fff; border: 1px solid #555; }
.lgm-btn--outline:hover { border-color: #fff; }
.lgm-btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.lgm-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */

.lgm-hero { position: relative; padding-block: 96px; overflow: hidden; }
.lgm-hero--dark { background: var(--dark); color: #fff; }
.lgm-hero--dark .lgm-lead, .lgm-hero__lead { color: #cbd5e1; }
.lgm-hero__bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	opacity: .28;
}
.lgm-hero--dark .lgm-hero__bg { opacity: .3; }
.lgm-hero__inner { position: relative; }
.lgm-hero__title {
	font-family: var(--serif);
	font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.7rem);
	font-weight: 700; line-height: 1.08; letter-spacing: -.025em;
	margin: .1em 0 .3em; max-width: 18ch;
}
.lgm-hero__lead { font-size: 1.15rem; max-width: 56ch; margin: 0 0 2rem; }
.lgm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Karten ---------- */

.lgm-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.lgm-card:hover { border-color: #d8d8e0; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26,26,46,.07); }
.lgm-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lgm-card__body { padding: 20px 22px 24px; }
.lgm-card__kicker {
	font-size: .72rem; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--muted-light);
}
.lgm-card__title { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; margin: .35em 0 .4em; }
.lgm-card__title a { color: inherit; text-decoration: none; }
.lgm-card__title a:hover { color: var(--accent); }
.lgm-card__text { color: var(--muted); font-size: .94rem; margin: 0; }
.lgm-card__meta { color: var(--muted); font-size: .88rem; margin: .2em 0; }

.lgm-badge {
	display: inline-block; vertical-align: middle;
	margin-left: .4em; padding: 2px 8px;
	border-radius: 999px; font-family: var(--sans);
	font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.lgm-badge--verified { background: var(--accent-light); color: var(--accent); }

.lgm-rating strong { font-size: 1rem; }
.lgm-rating span { color: var(--muted-light); }

.lgm-taglist { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.lgm-taglist--spaced { margin-top: 30px; }
.lgm-taglist li {
	padding: 3px 11px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--border);
	font-size: .78rem; color: var(--muted);
}
.lgm-taglist a { color: inherit; text-decoration: none; }

/* Kacheln */
.lgm-tile {
	display: flex; flex-direction: column;
	border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; text-decoration: none; color: inherit; background: #fff;
	transition: border-color .15s ease, transform .15s ease;
}
.lgm-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.lgm-tile__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lgm-tile__body { padding: 20px 22px 24px; }
.lgm-tile__title { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; margin-bottom: .3em; }
.lgm-tile__text { display: block; color: var(--muted); font-size: .92rem; }

/* Städte */
.lgm-citycard {
	display: block; padding: 22px;
	border: 1px solid var(--border); border-radius: var(--radius);
	text-decoration: none; color: inherit; background: #fff;
	transition: border-color .15s ease;
}
.lgm-citycard:hover { border-color: var(--accent); }
.lgm-citycard__name { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.lgm-citycard__count { display: block; color: var(--muted); font-size: .86rem; margin-top: .25em; }

.lgm-chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }
.lgm-chips a {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 7px 15px; border-radius: 999px;
	background: #fff; border: 1px solid var(--border);
	color: var(--fg); text-decoration: none; font-size: .9rem; font-weight: 500;
	transition: border-color .15s ease, color .15s ease;
}
.lgm-chips a:hover { border-color: var(--accent); color: var(--accent); }
.lgm-chips span { color: var(--muted-light); font-size: .8rem; }

.lgm-filters { display: grid; gap: 30px; }
@media (min-width: 760px) { .lgm-filters { grid-template-columns: 1fr 1fr; } }
.lgm-filters__title { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* ---------- Abschnitte ---------- */

.lgm-panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 20px;
}
.lgm-panel__title { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

.lgm-checklist { list-style: none; margin: 0; padding: 0; }
.lgm-checklist li { position: relative; padding-left: 24px; margin-bottom: .6em; font-size: .95rem; }
.lgm-checklist li::before {
	content: ""; position: absolute; left: 4px; top: .62em;
	width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.lgm-linklist { list-style: none; margin: 0; padding: 0; }
.lgm-linklist li { margin-bottom: .5em; }
.lgm-linklist a { color: var(--fg); text-decoration: none; font-size: .95rem; }
.lgm-linklist a:hover { color: var(--accent); }

.lgm-contact { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.lgm-contact li { margin-bottom: .85em; }
.lgm-contact span {
	display: block; font-size: .72rem; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light);
	margin-bottom: .15em;
}
.lgm-contact a { color: var(--fg); text-decoration: none; }
.lgm-contact a:hover { color: var(--accent); }

.lgm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lgm-steps__num { font-family: var(--serif); font-size: 2rem; color: var(--accent); opacity: .35; line-height: 1; }
.lgm-steps__title { font-size: 1.08rem; margin: .4em 0 .3em; }
.lgm-steps__text { color: var(--muted); font-size: .93rem; margin: 0; }

.lgm-stats { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.lgm-stats__item { text-align: center; }
.lgm-stats__value { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.lgm-stats__label { margin: .4em 0 0; color: var(--muted); font-size: .88rem; }

.lgm-faq__item { border-bottom: 1px solid var(--border); }
.lgm-faq__q {
	cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.03rem;
	list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.lgm-faq__q::-webkit-details-marker { display: none; }
.lgm-faq__q::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.lgm-faq__item[open] .lgm-faq__q::after { content: "–"; }
.lgm-faq__a { padding-bottom: 20px; color: var(--muted); }
.lgm-faq__a p { margin: 0 0 .8em; }

.lgm-media { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .lgm-media { grid-template-columns: 1fr 1fr; } }
.lgm-media--flip .lgm-media__figure { order: 2; }
.lgm-media__figure img { border-radius: var(--radius); width: 100%; }

.lgm-cta {
	background: var(--dark); color: #fff;
	border-radius: var(--radius); padding: 54px 32px; text-align: center;
}
.lgm-cta__title { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); margin: 0 0 .4em; }
.lgm-cta__text { color: #cbd5e1; max-width: 52ch; margin: 0 auto 1.8em; }

.lgm-provider__head { display: grid; gap: 30px; align-items: start; }
@media (min-width: 860px) { .lgm-provider__head { grid-template-columns: 1fr 320px; } }
.lgm-provider__image img { border-radius: var(--radius); }
.lgm-provider__rating { font-size: 1rem; }

.lgm-breadcrumbs { font-size: .84rem; color: var(--muted-light); margin-bottom: 6px; }
.lgm-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.lgm-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.lgm-breadcrumbs a { color: var(--muted); text-decoration: none; }
.lgm-breadcrumbs a:hover { color: var(--accent); }

.lgm-empty { color: var(--muted); font-size: .98rem; padding: 30px 0; }
.lgm-more { margin-top: 32px; }
.lgm-404 { text-align: center; padding-block: 40px; }
.lgm-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.page-numbers {
	display: inline-block; padding: 8px 14px;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	text-decoration: none; color: var(--fg); font-size: .92rem;
}
.page-numbers.current { background: var(--dark); color: #fff; border-color: var(--dark); }
.page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent); }

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

.lgm-footer { background: var(--dark); color: #cbd5e1; padding-block: 60px 30px; margin-top: 40px; }
.lgm-footer__grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.lgm-footer__claim { font-size: .92rem; color: var(--muted-light); margin: 14px 0 0; max-width: 34ch; }
.lgm-footer__title { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.lgm-footer__list { list-style: none; margin: 0; padding: 0; }
.lgm-footer__list li { margin-bottom: .55em; }
.lgm-footer__list a { color: var(--muted-light); text-decoration: none; font-size: .93rem; }
.lgm-footer__list a:hover { color: #fff; }
.lgm-footer__bottom {
	margin-top: 46px; padding-top: 22px;
	border-top: 1px solid var(--border-dark);
	display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
	font-size: .84rem; color: var(--muted-light);
}
.lgm-footer__bottom p { margin: 0; }
.lgm-footer__note { max-width: 52ch; }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}
