/* =========================================================================
   Alpenmosaik App — design tokens
   Farben aus dem Vereinslogo extrahiert (verein_logo_transparent.png):
   Tiefes Teal, Terrakotta, Amber/Gold, Olive.
   ========================================================================= */
:root {
	--teal-900: #0b3d4a;
	--teal-800: #0f4a59;
	--teal-700: #145a6e;
	--teal-600: #1a6a80;
	--teal-500: #2a86a0;
	--teal-300: #7fb8c9;
	--teal-100: #dcedf1;

	--terracotta: #c2431f;
	--terracotta-600: #a63a1b;
	--terracotta-100: #f7e2da;

	--amber: #d68a10;
	--amber-100: #f8e8cc;

	--olive: #6b8a2e;
	--olive-100: #e7edd8;

	--cream: #f7f2e6;
	--cream-2: #eee5d0;
	--white: #ffffff;

	--ink: #17242c;
	--ink-soft: #4c5c63;
	--ink-faint: #7c8b91;

	--border: rgba(11, 61, 74, 0.14);
	--border-soft: rgba(11, 61, 74, 0.08);

	--radius-lg: 20px;
	--radius: 14px;
	--radius-sm: 9px;

	--shadow-sm: 0 1px 2px rgba(11, 61, 74, 0.08);
	--shadow-md: 0 10px 28px rgba(11, 61, 74, 0.14);
	--shadow-lg: 0 20px 48px rgba(11, 61, 74, 0.22);

	--header-h: 68px;
	--footer-h: 52px;

	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

	--container: 1180px;
}

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--teal-500) transparent; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--teal-300); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-500); }

html { overflow-x: hidden; }
body.ft-app {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15.5px;
	line-height: 1.6;
	scrollbar-width: thin;
	scrollbar-color: var(--teal-500) transparent;
	overflow-x: hidden;
	max-width: 100vw;
}

.ft-container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 28px;
}

/* =========================================================================
   App shell — topbar
   ========================================================================= */
.ft-topbar {
	flex: 0 0 auto;
	position: sticky;
	top: 0;
	z-index: 60;
	height: var(--header-h);
	background: linear-gradient(180deg, var(--teal-900), #0a3542);
	color: var(--white);
	box-shadow: var(--shadow-md);
}

.ft-topbar-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
	justify-content: space-between;
}

.ft-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: 8px;
	flex: 0 0 auto;
}

.ft-brand img { height: 36px; width: auto; }

.ft-brand-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: 0.2px;
	line-height: 1.15;
	white-space: nowrap;
}

.ft-brand-name small {
	display: block;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 10.5px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--teal-300);
}

.ft-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 1 1 auto;
}

.ft-nav a {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
	transition: background 0.15s ease, color 0.15s ease;
}

.ft-nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.ft-nav a.is-active { background: var(--terracotta); color: var(--white); }

.ft-topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.ft-lang-switch {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}

.ft-lang-switch a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 30px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.4px;
	color: rgba(255, 255, 255, 0.65);
	transition: background 0.15s ease, color 0.15s ease;
}

.ft-lang-switch a.is-active { background: var(--amber); color: var(--teal-900); }
.ft-lang-switch a:not(.is-active):hover { color: var(--white); }

.ft-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid transparent;
	white-space: nowrap;
}

.ft-btn-ghost {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.2);
	color: var(--white);
}
.ft-btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

.ft-btn-primary { background: var(--terracotta); color: var(--white); }
.ft-btn-primary:hover { background: var(--terracotta-600); }

.ft-btn-outline {
	background: transparent;
	border-color: var(--border);
	color: var(--teal-800);
}
.ft-btn-outline:hover { background: var(--teal-100); }

.ft-menu-toggle {
	display: none;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	border: none;
	color: var(--white);
	align-items: center;
	justify-content: center;
}

/* Mobile nav panel */
.ft-mobile-nav {
	display: none;
	position: fixed;
	inset: var(--header-h) 0 0 0;
	z-index: 55;
	background: var(--teal-900);
	padding: 18px 24px 28px;
	overflow-y: auto;
}
.ft-mobile-nav.is-open { display: block; }
.ft-mobile-nav a {
	display: flex;
	align-items: center;
	height: 50px;
	color: var(--white);
	font-size: 16px;
	font-weight: 600;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ft-mobile-nav a.is-active { color: var(--amber); }
.ft-mobile-nav .ft-lang-switch { margin-top: 20px; background: rgba(255,255,255,.08); width: max-content; }

/* =========================================================================
   Main content area — app "workspace" pane
   ========================================================================= */
.ft-main {
	flex: 1 1 auto;
	min-height: 0;
}

/* Lock every page to exactly one screen (no outer scrollbar) on
   desktop/tablet. Templates fill this with a `.ft-screen` flex column
   sized to fit; only a few, clearly-contained widgets (e.g. the
   calendar grid) may scroll internally. Phones fall back to normal
   document flow — see the responsive block at the end of this file. */
@media (min-width: 901px) {
	.ft-main {
		height: calc(100dvh - var(--header-h) - var(--footer-h));
		overflow: hidden;
	}

	/* Long-form pages (Impressum, Datenschutz, …) use the theme's generic
	   page.php template and can hold more text than fits one screen. Keep
	   the app-shell itself locked (no outer/body scrollbar) and let just
	   the prose block scroll internally instead. */
	body.ft-scrollable .ft-main {
		display: flex;
		flex-direction: column;
	}

	body.ft-scrollable .ft-main > .ft-section {
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
		padding-bottom: 32px;
	}

	body.ft-scrollable .ft-main > .ft-section > .ft-container {
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	body.ft-scrollable .ft-prose {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		padding-right: 10px;
	}
}

.ft-screen {
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.ft-screen-header {
	flex: 0 0 auto;
	position: relative;
	padding: 22px 0;
	color: var(--white);
	overflow: hidden;
}
.ft-screen-header .ft-hero-bg::after { background: linear-gradient(120deg, rgba(11,61,74,.94), rgba(11,61,74,.86)); }
.ft-screen-header .ft-container { position: relative; z-index: 2; }
.ft-screen-header .ft-eyebrow { color: var(--amber); margin-bottom: 4px; }
.ft-screen-header .ft-eyebrow::before { background: var(--amber); }
.ft-screen-header .ft-h1 { color: var(--white); font-size: clamp(22px, 2.6vw, 30px); }

.ft-screen-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 22px 0;
}
.ft-screen-body .ft-container { height: 100%; }

.ft-footer {
	flex: 0 0 auto;
	background: var(--teal-900);
	color: rgba(255, 255, 255, 0.72);
}

.ft-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--footer-h);
	padding: 10px 0;
	flex-wrap: wrap;
	font-size: 12.5px;
}

.ft-footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.ft-footer-brand img { height: 20px; }
.ft-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.ft-footer-links a:hover { color: var(--white); }
.ft-footer-legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ft-footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
.ft-footer-legal a:hover { color: var(--white); }
.ft-footer-social { display: flex; gap: 10px; }
.ft-footer-social a {
	width: 28px; height: 28px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.08);
}
.ft-footer-social a:hover { background: var(--terracotta); color: var(--white); }

/* =========================================================================
   Shared section / component patterns
   ========================================================================= */
.ft-section { padding: 56px 0; }
.ft-section-tight { padding: 36px 0; }
.ft-section-alt { background: var(--cream-2); }

.ft-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--terracotta);
	margin-bottom: 10px;
}
.ft-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--terracotta); border-radius: 2px; }

.ft-h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1.12; color: var(--teal-900); }
.ft-h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.18; color: var(--teal-900); }
.ft-h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--teal-900); }
.ft-lede { font-size: 17px; color: var(--ink-soft); max-width: 62ch; }

.ft-prose p + p { margin-top: 14px; }
.ft-prose { color: var(--ink-soft); font-size: 15.5px; }
.ft-prose a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.ft-prose h2 { font-family: var(--font-display); color: var(--teal-900); font-size: 21px; font-weight: 600; margin: 28px 0 10px; }
.ft-prose h2:first-child { margin-top: 0; }
.ft-prose h3 { font-family: var(--font-display); color: var(--teal-900); font-size: 18px; font-weight: 600; margin: 20px 0 8px; }
.ft-prose ol, .ft-prose ul { padding-left: 22px; margin: 10px 0; }
.ft-prose li { margin-bottom: 8px; }
.ft-prose li::marker { color: var(--terracotta); font-weight: 600; }

/* Hero */
.ft-hero {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	color: var(--white);
}
.ft-hero-bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	transform: scale(1.08);
	will-change: transform;
}
.ft-hero-bg::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(120deg, rgba(11,61,74,.92) 0%, rgba(11,61,74,.78) 45%, rgba(194,67,31,.55) 100%);
}
.ft-hero > .ft-container {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ft-hero-content { position: relative; z-index: 2; max-width: 620px; padding: 32px 0; }
.ft-hero .ft-eyebrow { color: var(--amber); }
.ft-hero .ft-eyebrow::before { background: var(--amber); }
.ft-hero h1 { color: var(--white); }
.ft-hero .ft-lede { color: rgba(255,255,255,.86); max-width: 52ch; }
.ft-hero .ft-lede p { margin: 0; }
.ft-hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.ft-hero-logo {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	z-index: 2;
	width: 300px;
	height: 300px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	opacity: 0.6;
	pointer-events: none;
}
.ft-hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 1s ease;
}
.ft-hero-slide.is-active { opacity: 1; }
.ft-hero-slide img { width: 100%; height: 100%; object-fit: contain; }
.ft-hero-logo-shine {
	position: absolute;
	inset: 0;
	mix-blend-mode: screen;
	background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 1) 0%, rgba(255, 240, 190, 0.85) 28%, transparent 60%);
	opacity: 0.2;
	animation: ft-logo-shine 4.5s ease-in-out infinite;
}

@keyframes ft-logo-shine {
	0%, 100% { opacity: 0.2; transform: scale(0.85); }
	50% { opacity: 0.95; transform: scale(1.25); }
}
.ft-hero-slide span {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	background: var(--cream);
	font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
	font-size: 69px;
	font-weight: 400;
}
.ft-hero-slide span.is-teal-700 { color: var(--teal-700); }
.ft-hero-slide span.is-terracotta { color: var(--terracotta); }
.ft-hero-slide span.is-amber { color: var(--amber); }
.ft-hero-slide span.is-olive { color: var(--olive); }
.ft-hero-slide span.is-teal-900 { color: var(--teal-900); }
.ft-hero-slide span.is-teal-500 { color: var(--teal-500); }

.ft-hero-stars {
	position: absolute;
	inset: 0;
	z-index: 3;
	overflow: hidden;
	pointer-events: none;
}
.ft-hero-star {
	position: absolute;
	top: -10%;
	line-height: 1;
	animation-name: ft-star-fall;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
.ft-hero-star.is-teal-700 { color: var(--teal-700); }
.ft-hero-star.is-terracotta { color: var(--terracotta); }
.ft-hero-star.is-amber { color: var(--amber); }
.ft-hero-star.is-olive { color: var(--olive); }
.ft-hero-star.is-teal-900 { color: var(--teal-900); }
.ft-hero-star.is-teal-500 { color: var(--teal-500); }

@keyframes ft-star-fall {
	0%   { top: -10%; opacity: 0; transform: translateX(0) rotate(0deg); }
	10%  { opacity: 1; }
	20%  { transform: translateX(16px) rotate(50deg); }
	38%  { transform: translateX(-18px) rotate(-40deg); }
	56%  { transform: translateX(14px) rotate(70deg); }
	74%  { transform: translateX(-12px) rotate(-25deg); }
	85%  { opacity: 1; }
	100% { top: 108%; opacity: 0; transform: translateX(8px) rotate(100deg); }
}

.ft-hero-small { min-height: 300px; }

/* Feature / pillar grid */
.ft-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ft-grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.ft-card {
	background: var(--white);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	padding: 26px;
	box-shadow: var(--shadow-sm);
}

.ft-pillar-icon {
	width: 46px; height: 46px; border-radius: 12px;
	display: flex !important; align-items: center !important; justify-content: center !important;
	margin-bottom: 16px;
	font-size: 20px;
}
.ft-pillar-icon.is-teal { background: var(--teal-100); color: var(--teal-700); }
.ft-pillar-icon.is-amber { background: var(--amber-100); color: var(--amber); }
.ft-pillar-icon.is-olive { background: var(--olive-100); color: var(--olive); }

.ft-card h3 { margin-bottom: 8px; }
.ft-card p { color: var(--ink-soft); font-size: 14.5px; }

/* Card hover lift + icon glow */
.ft-card {
	position: relative;
	transition: transform .25s ease, box-shadow .25s ease;
}
.ft-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ft-card:hover .ft-pillar-icon { box-shadow: 0 0 0 8px rgba(11, 61, 74, 0.06); }
.ft-pillar-icon { transition: box-shadow .25s ease; }

/* Expandable "+" detail cards (pillars) */
.ft-card--expand { padding-right: 56px; }
.ft-card-toggle {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--cream-2);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .25s ease, background .25s ease;
}
.ft-card-toggle span { position: relative; width: 12px; height: 12px; }
.ft-card-toggle span::before,
.ft-card-toggle span::after {
	content: '';
	position: absolute;
	background: var(--teal-900);
	border-radius: 1px;
	transition: transform .25s ease;
}
.ft-card-toggle span::before { top: 50%; left: 0; width: 12px; height: 2px; margin-top: -1px; }
.ft-card-toggle span::after { left: 50%; top: 0; width: 2px; height: 12px; margin-left: -1px; }
.ft-card-toggle[aria-expanded="true"] { background: var(--teal-900); transform: rotate(90deg); }
.ft-card-toggle[aria-expanded="true"] span::before,
.ft-card-toggle[aria-expanded="true"] span::after { background: var(--white); }
.ft-card-toggle[aria-expanded="true"] span::after { transform: scaleY(0); }

.ft-card-more {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}
.ft-card-more p { padding-top: 12px; border-top: 1px solid var(--border-soft); margin-top: 2px; font-size: 13.5px; }
.ft-card-toggle[aria-expanded="true"] ~ .ft-card-more,
.ft-card--expand.is-expanded .ft-card-more { max-height: 220px; opacity: 1; margin-top: 10px; }

/* Entrance reveal (fades content in on load / on scroll into view on mobile) */
.ft-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.ft-reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.ft-reveal { opacity: 1; transform: none; transition: none; }
	.ft-card, .ft-card-toggle, .ft-card-more { transition: none; }
}

/* Stats */
.ft-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ft-stat { text-align: center; padding: 22px 10px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border-soft); }
.ft-stat strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--terracotta); }
.ft-stat span { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px; }

/* CTA banner */
.ft-cta {
	border-radius: var(--radius-lg);
	background: linear-gradient(120deg, var(--teal-900), var(--teal-700));
	color: var(--white);
	padding: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.ft-cta h2 { color: var(--white); }
.ft-cta p { color: rgba(255,255,255,.82); margin-top: 8px; }

/* Image frame */
.ft-image-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.ft-image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   Home — bottom dashboard strip (replaces long stacked sections so the
   whole page fits in one screen, app-style)
   ========================================================================= */
.ft-dash-strip {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 22px 0 26px;
	background: linear-gradient(180deg, rgba(11, 61, 74, 0) 0%, rgba(11, 61, 74, 0.55) 35%, rgba(11, 61, 74, 0.85) 100%);
}
.ft-dash-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr) 1.3fr auto;
	gap: 14px;
	align-items: stretch;
}
.ft-dash-pillar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 12px 10px;
	background: transparent;
	border-top: 2px solid var(--terracotta);
}
.ft-dash-pillar .ft-pillar-icon { width: 34px; height: 34px; margin-bottom: 0; font-size: 15px; flex: 0 0 auto; }
.ft-dash-pillar strong { display: block; font-size: 13.5px; color: var(--white); font-weight: 600; }
.ft-dash-pillar span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.72); }

.ft-dash-event {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px 10px;
	background: transparent;
	border-top: 2px solid var(--terracotta);
}
.ft-dash-event .ft-info-icon { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.ft-dash-event strong { display: block; font-size: 13px; color: var(--white); font-weight: 600; }
.ft-dash-event span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.72); }

.ft-dash-cta { display: flex; align-items: center; }

/* =========================================================================
   Tabbed single-screen panels (About page)
   ========================================================================= */
.ft-tabs {
	flex: 0 0 auto;
	display: flex;
	gap: 4px;
	padding: 10px 0 0;
}
.ft-tab-btn {
	border: none;
	background: var(--cream-2);
	color: var(--ink-soft);
	font-size: 13.5px;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 10px 10px 0 0;
}
.ft-tab-btn.is-active { background: var(--white); color: var(--teal-900); }

.ft-tab-panels {
	flex: 1 1 auto;
	min-height: 0;
	background: var(--white);
	border-radius: 0 var(--radius) var(--radius) var(--radius);
	padding: 26px 30px;
	display: flex;
	align-items: center;
}
.ft-tab-panel { display: none; width: 100%; height: 100%; overflow: hidden; }
.ft-tab-panel.is-active { display: block; }
.ft-tab-panel .ft-grid-2 {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: stretch;
	gap: 32px;
}
.ft-tab-panel .ft-grid-2 > .ft-prose { flex: 1.1 1 0; min-width: 0; max-height: 100%; overflow-y: auto; padding-right: 6px; }
.ft-tab-panel .ft-grid-2 > .ft-image-frame { flex: 0.9 1 0; aspect-ratio: auto; height: auto; }

.ft-screen-cta {
	flex: 0 0 auto;
	margin-top: 14px;
}
.ft-screen-cta .ft-cta { padding: 18px 30px; border-radius: var(--radius); }
.ft-screen-cta .ft-cta h2 { font-size: 18px; }
.ft-screen-cta .ft-cta p { font-size: 13px; margin-top: 2px; }

/* =========================================================================
   Contact page
   ========================================================================= */
.ft-contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; height: 100%; }
.ft-contact-grid .ft-card { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.ft-contact-grid .ft-card form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }

.ft-form-row { margin-bottom: 10px; }
.ft-form-row label { display: block; font-size: 12.5px; font-weight: 600; color: var(--teal-900); margin-bottom: 4px; }
.ft-form-row input, .ft-form-row textarea {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 9px 13px;
	font: inherit;
	font-size: 14px;
	background: var(--cream);
	color: var(--ink);
}
.ft-form-row input:focus, .ft-form-row textarea:focus { outline: 2px solid var(--teal-500); outline-offset: 1px; background: var(--white); }
.ft-form-row textarea { resize: vertical; min-height: 0; flex: 1 1 auto; }
.ft-form-row:has(textarea) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ft-hp-field { position: absolute; left: -9999px; opacity: 0; }

.ft-notice { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.ft-notice-success { background: var(--olive-100); color: #3a4d18; }
.ft-notice-error { background: var(--terracotta-100); color: var(--terracotta-600); }

.ft-info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.ft-info-list li:last-child { border-bottom: none; }
.ft-info-icon {
	flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px;
	background: var(--teal-100); color: var(--teal-700);
	display: flex !important; align-items: center !important; justify-content: center !important; font-size: 16px;

}
.ft-info-label { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-faint); }
.ft-info-value { font-size: 14.5px; color: var(--ink); font-weight: 500; }

/* =========================================================================
   Login page
   ========================================================================= */
.ft-login-shell {
	height: 100%;
	min-height: calc(100dvh - var(--header-h) - var(--footer-h));
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.ft-login-visual {
	position: relative;
	color: var(--white);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 48px;
	overflow: hidden;
}
.ft-login-visual::after { content:''; position:absolute; inset:0; background: linear-gradient(160deg, rgba(11,61,74,.9), rgba(194,67,31,.55)); }
.ft-login-visual > * { position: relative; z-index: 2; }
.ft-login-quote { font-family: var(--font-display); font-size: 24px; line-height: 1.35; max-width: 34ch; }
.ft-login-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.ft-login-card { width: 100%; max-width: 380px; }
.ft-login-card .ft-h2 { margin-bottom: 6px; }
.ft-login-card p.ft-lede { font-size: 14.5px; margin-bottom: 26px; }

.ft-login-card form { margin: 0; }
.ft-login-card label { display: block; font-size: 13px; font-weight: 600; color: var(--teal-900); margin-bottom: 6px; }
.ft-login-card .input, .ft-login-card input[type="text"], .ft-login-card input[type="password"], .ft-login-card input[type="email"] {
	width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
	padding: 11px 14px; font-size: 14.5px; background: var(--cream); color: var(--ink); margin-bottom: 16px;
}
.ft-login-card .forgetmenot { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.ft-login-card .forgetmenot input { width: auto; margin: 0; }
.ft-login-card p.submit { margin: 0; }
.ft-login-card .button-primary {
	width: 100%; border: none; background: var(--terracotta); color: var(--white);
	border-radius: 999px; height: 44px; font-weight: 600; font-size: 14.5px;
}
.ft-login-card .button-primary:hover { background: var(--terracotta-600); }
.ft-login-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13.5px; }
.ft-login-links a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.ft-already-in { text-align: center; padding: 40px 20px; }

/* =========================================================================
   Events page — blend the theme-verein-events plugin markup with the shell
   ========================================================================= */
.ft-events-page.ft-screen-body { display: flex; flex-direction: column; }
.ft-events-page .tv-events-calendar-wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ft-events-page .tv-events-title { flex: 0 0 auto; font-family: var(--font-display); color: var(--teal-900); font-size: 18px; margin-bottom: 10px; }
.ft-events-page .tv-events-fc {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	border-radius: var(--radius);
	border: 1px solid var(--border-soft);
	background: var(--white);
}

/* The "propose an event" form is a slide-over drawer, not part of the
   fixed-height flow, so the calendar screen never has to grow past
   the viewport to make room for it. */
.ft-events-page .tv-events-submit {
	position: fixed;
	top: 0; right: 0; bottom: 0;
	width: min(420px, 92vw);
	background: var(--white);
	border-left: 1px solid var(--border);
	box-shadow: var(--shadow-lg);
	padding: 90px 26px 26px;
	margin-top: 0;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	z-index: 70;
}
body.ft-events-drawer-open .tv-events-submit { transform: translateX(0); }
.ft-events-drawer-backdrop {
	display: none;
	position: fixed; inset: 0;
	background: rgba(11,61,74,.35);
	z-index: 65;
}
body.ft-events-drawer-open .ft-events-drawer-backdrop { display: block; }

.ft-events-drawer-close {
	position: absolute;
	top: 22px; right: 22px;
	width: 34px; height: 34px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--cream);
	font-size: 16px;
	color: var(--teal-900);
}
.ft-events-page .tv-events-form label { display: block; font-size: 13px; font-weight: 600; color: var(--teal-900); margin: 14px 0 6px; }
.ft-events-page .tv-events-form input, .ft-events-page .tv-events-form select, .ft-events-page .tv-events-form textarea {
	width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; background: var(--cream);
}
.ft-events-page .tv-events-form button {
	margin-top: 18px; border: none; background: var(--terracotta); color: var(--white);
	border-radius: 999px; height: 42px; padding: 0 22px; font-weight: 600;
}
.ft-events-page .tv-events-grid { display: grid; grid-template-columns: repeat(var(--tv-events-columns, 3), 1fr); gap: 16px; margin-top: 18px; }
.ft-events-page .tv-event-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; }
.ft-events-page .tv-event-title a { color: var(--teal-900); font-weight: 600; }
.ft-events-page .tv-event-meta li { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.ft-events-page .tv-event-link { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--terracotta); }

/* =========================================================================
   404
   ========================================================================= */
.ft-404 { height: 100%; min-height: calc(100dvh - var(--header-h) - var(--footer-h)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.ft-404 .ft-h1 { font-size: 96px; color: var(--terracotta); }

/* =========================================================================
   Responsive
   ========================================================================= */
/* Below the desktop "one screen" lock (see the 901px rule above): fall
   back to plain, natural block stacking everywhere the single-screen
   templates used flex/height tricks to fit a fixed viewport — on a
   phone-sized screen the page simply scrolls instead. */
@media (max-width: 900px) {
	.ft-main { flex-shrink: 0; }
	.ft-screen { display: block; height: auto; }
	.ft-screen-body { display: block !important; height: auto; }
	.ft-screen-body .ft-container { height: auto !important; }
	.ft-tab-panels { display: block; height: auto; }
	.ft-tab-panel { height: auto; max-height: none; overflow: visible; }
	.ft-contact-grid { height: auto !important; }
	.ft-contact-grid .ft-card { overflow: visible; }
	.ft-events-page .tv-events-calendar-wrap { display: block; }
	.ft-events-page .tv-events-fc { height: 70vh; max-height: 70vh; }
	.ft-hero { min-height: 720px; }
	.ft-hero-content { padding-bottom: 300px; }
	.ft-hero-logo { display: none; }
	.ft-dash-strip { padding: 18px 0 20px; }
}

@media (max-width: 960px) {
	.ft-grid-3 { grid-template-columns: 1fr 1fr; }
	.ft-grid-2 { grid-template-columns: 1fr; gap: 28px; }
	.ft-contact-grid { grid-template-columns: 1fr; }
	.ft-login-shell { grid-template-columns: 1fr; }
	.ft-login-visual { min-height: 220px; padding: 28px; }
	.ft-stats { grid-template-columns: repeat(2, 1fr); }
	.ft-hero-logo { width: 200px; height: 200px; }
	.ft-hero-slide span { font-size: 45px; padding: 16px; }

}
@media(max-width:1200px){
	.ft-footer{
		padding: 0 18px;
	}
}
@media (max-width: 720px) {
	.ft-container { padding: 0 18px; }
	.ft-nav { display: none; }
	.ft-menu-toggle { display: flex; }
	.ft-topbar-actions .ft-topbar-auth { display: none; }
	.ft-brand-name { font-size: 14.5px; }
	.ft-hero-actions { flex-direction: column; align-items: stretch; }
	.ft-hero-actions .ft-btn { width: 100%; justify-content: center; }
	.ft-grid-3 { grid-template-columns: 1fr; }
	.ft-grid-3--scroll {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		margin: 0 -18px;
		padding: 2px 18px 10px;
	}
	.ft-grid-3--scroll .ft-card { flex: 0 0 82%; scroll-snap-align: start; }
	.ft-cta { flex-direction: column; align-items: flex-start; text-align: left; }
	.ft-footer-inner { flex-direction: column; align-items: flex-start; padding: 14px 0; }
	.ft-section { padding: 40px 0; }

	.ft-dash-grid { grid-template-columns: 1fr; gap: 8px; }
	.ft-dash-cta .ft-btn { width: 100%; justify-content: center; }

	.ft-tabs { flex-wrap: wrap; max-width: 100%; }
	.ft-tab-btn { flex: 1 1 auto; min-width: 0; white-space: normal; }
	.ft-tab-panels { padding: 20px; align-items: flex-start; max-width: 100%; box-sizing: border-box; }
	.ft-tab-panel { overflow: visible; max-width: 100%; }
	.ft-tab-panel .ft-grid-2 { flex-direction: column; height: auto; max-width: 100%; }
	.ft-tab-panel .ft-grid-2 > .ft-image-frame { aspect-ratio: 16/10; height: auto; min-height: 160px; }
	.ft-tab-panel .ft-grid-2 > .ft-prose { max-width: 100%; max-height: none; overflow-y: visible; overflow-wrap: break-word; }
	.ft-events-page .tv-events-submit { width: 100%; }
}
