/* forrealz! — component styles. Consumes tokens.css custom properties only;
   never hardcode a color or font here. */

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-charcoal);
	background: var(--color-white);
	line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
body.nav-open { overflow: hidden; }
a { color: var(--color-coral-text); }
.brand-realz { color: var(--color-coral); }

.wrap {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Header / footer frame ---------- */
.site-header,
.site-footer {
	background: var(--color-charcoal);
	color: var(--color-bg);
}

/* Pinned while scrolling. z-index: 50 is deliberately below the mobile nav
   overlay's 60 — when that overlay opens it should still cover everything,
   including this sticky bar (whose own .logo/.header-right sit above it
   via their own z-index: 65, so the hamburger's X stays visible on top of
   both). */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

.header-bar {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 36px; width: auto; display: block; }

.site-nav { flex: 1; }
.site-nav ul {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav a {
	color: var(--color-bg);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
}
.site-nav a:hover { color: var(--color-coral); }

.header-right {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.lang-switch {
	color: var(--color-bg);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 999px;
	padding: 4px 12px;
}
.lang-switch:hover { border-color: var(--color-coral); color: var(--color-coral); }

.social-links {
	display: flex;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--color-bg);
}
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover { color: var(--color-coral); }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--color-bg);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-download {
	display: none;
	color: var(--color-charcoal);
	background: var(--color-coral);
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	border-radius: 999px;
	padding: 7px 14px;
	white-space: nowrap;
}
.header-download:hover { background: var(--color-white); }

/* Mobile-only home for the social icons (duplicated from .header-right into
   the nav overlay); hidden on the compact top bar and on desktop, where
   .header-right already shows the real ones. The language switch stays in
   .header-right at every width — there's room for it in the top bar. */
.nav-extra { display: none; }

/* Full-screen overlay nav on tablet/mobile, closer to an app-style menu
   than a header dropdown. Switches later (1180px, not the site's usual
   900px) because the inline desktop nav has 7 links plus the lang switch,
   social icons and download button all in one row — the German labels
   ("Wie funktioniert's", "Leute kennenlernen", "Expats in Berlin"...) need
   real room or they wrap mid-word. */
@media (max-width: 1180px) {
	/* .site-nav is fixed/out-of-flow here, leaving just the logo and
	   header-right as flex children — space-between pins the logo left
	   and the download button + hamburger right instead of them all
	   clustering together on the left. */
	.header-bar { gap: 14px; justify-content: space-between; }
	/* .logo and .header-right are SIBLINGS of .site-nav (all three are
	   direct children of .header-bar) — .site-nav's z-index: 60 would
	   otherwise paint over both of them once the overlay opens, hiding
	   the hamburger's X state entirely. Raising these above it is what
	   actually fixes that (a z-index on an ancestor like .site-header
	   does not: it only governs stacking one level too high, against
	   .site-header's own siblings, not against .site-nav). */
	.logo,
	.header-right {
		position: relative;
		z-index: 65;
	}
	.header-right { gap: 12px; }
	.nav-toggle { display: flex; }
	.header-download { display: inline-flex; }
	/* The lang switch stays put; only the social icons move into the
	   nav-extra overlay below — the top bar has room for the switch but
	   not for it plus 3 icons plus the download button and hamburger. */
	.header-right .social-links { display: none; }
	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 60;
		background: var(--color-charcoal);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: clamp(16px, 4vh, 32px);
		padding: 24px 0;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}
	.site-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	/* Direct-child selector: the main links list only. A plain ".site-nav
	   ul" would also match the nested .social-links list one level down
	   and force it into this same column via a higher-specificity clash,
	   which is exactly what was fighting the "icons side by side" fix. */
	.site-nav > ul {
		flex-direction: column;
		align-items: center;
		gap: 2px;
	}
	/* Same direct-child scoping as above: only the main nav links, not the
	   social icon links nested inside .nav-extra one level down. */
	.site-nav > ul a {
		display: block;
		padding: 8px 0;
		font-size: clamp(19px, 5.2vh, 26px);
		font-weight: 700;
	}
	/* Social icons side by side in one row — keeps the overlay shorter and
	   every icon (YouTube included) reliably reachable. */
	.nav-extra {
		display: flex;
		align-items: center;
		flex-shrink: 0;
	}
	.nav-extra .social-links { gap: 20px; }
}

@media (max-width: 380px) {
	.header-download { padding: 7px 10px; font-size: 12px; }
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 32px;
	padding-bottom: 32px;
	font-size: 14px;
}

.site-footer .legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .legal-links a {
	color: var(--color-bg);
	text-decoration: none;
}

.site-footer .legal-links a:hover { color: var(--color-coral); }

/* In portrait/narrow widths the three footer groups (copyright, legal
   links, social icons) stack and center instead of staying left/space-
   between — otherwise the legal-links row wraps its last item (Support/
   Datenschutz) onto its own ragged-left line. */
@media (max-width: 600px) {
	.site-footer .wrap { flex-direction: column; text-align: center; }
	.site-footer .legal-links,
	.site-footer .social-links { justify-content: center; }
}

/* ---------- Page content primitives ---------- */
main { display: block; }

.hero {
	background: var(--color-charcoal);
	color: var(--color-white);
	text-align: center;
	padding: 64px 0;
}

.hero h1 {
	font-weight: 700;
	font-size: clamp(34px, 6vw, 64px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 20px;
}

/* Homepage hero headline: short, punchy, uppercase — the same treatment
   used across the brand's print posters (bold grotesque, all-caps, tight
   tracking) rather than a sentence-style headline. */
.hero-grid h1 {
	text-transform: uppercase;
	letter-spacing: -0.02em;
	font-size: clamp(38px, 7vw, 72px);
}

.hero .sub-line {
	font-size: 18px;
	color: var(--color-bg);
	max-width: 640px;
	margin: 0 auto 32px;
}

.store-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.store-buttons img { height: 50px; width: auto; }

.btn-cta {
	display: inline-flex;
	align-items: center;
	color: var(--color-charcoal);
	background: var(--color-coral);
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	border-radius: 999px;
	padding: 14px 28px;
}
.btn-cta:hover { background: var(--color-white); }

.fine-print {
	font-size: 13px;
	color: var(--color-muted);
}
.hero .fine-print { color: var(--color-bg); opacity: 0.75; }

/* ---------- Homepage hero: copy beside a portrait (9:16) autoplaying
   teaser video, overlapping it slightly (Breeze-style). On mobile the two
   columns stack, with the video below the headline instead of beside it. ---------- */
.hero-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	align-items: center;
	gap: 40px;
	text-align: left;
}

.hero-copy { position: relative; z-index: 2; }

/* ---------- Download CTA (reusable): QR code on desktop/web, app-store
   badges on a phone — never both at once, toggled purely by CSS. Use
   render_download_cta() for the primary download moment on a page (usually
   the hero); a secondary/repeat CTA further down can just call
   render_store_buttons() alone. */
.download-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.download-cta .store-buttons { margin-bottom: 0; display: none; }
/* The homepage hero is the one asymmetric, left-aligned layout. */
.hero-grid .download-cta { justify-content: flex-start; }

.qr-block { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-block img { border-radius: 10px; background: var(--color-white); padding: 6px; }
.qr-block span {
	font-size: 13px;
	color: var(--color-bg);
	opacity: 0.8;
	line-height: 1.3;
	max-width: 160px;
	text-align: center;
}
.download-cta .qr-block { display: flex; }

.hero-media { position: relative; z-index: 1; }
.hero-video {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65);
	background: var(--color-charcoal);
}

@media (min-width: 901px) {
	.hero-copy { margin-right: -48px; }
}

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; text-align: center; gap: 8px; }
	.hero-copy { margin-right: 0; }
	.hero-grid .download-cta { justify-content: center; margin-bottom: 24px; }
	.hero-media { max-width: 240px; margin: -12px auto 0; }
}

/* The actual QR-vs-badges swap: desktop/web gets the QR, a phone gets the
   badges — applies to every render_download_cta(), hero-grid or plain hero. */
@media (max-width: 900px) {
	.download-cta .store-buttons { display: flex; }
	.download-cta .qr-block { display: none; }
}

.content-section {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 32px 24px 48px;
}

.content-section h2 {
	font-weight: 700;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin-bottom: 12px;
}

/* Breadcrumbs live inside the (dark) hero now, right above the h1, instead
   of as a separate light-colored strip above it. */
.hero .breadcrumb {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 0 16px;
	font-size: 14px;
	color: rgba(245, 244, 242, 0.6);
}
.hero .breadcrumb a { color: var(--color-bg); text-decoration: none; font-weight: 600; }
.hero .breadcrumb a:hover { color: var(--color-coral); }
.hero .breadcrumb strong { color: var(--color-white); font-weight: 700; }

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px 48px;
}

/* When a card grid opens its section directly (no render_section_heading()
   above it), it needs the same top padding content-section gets — otherwise
   the cards sit flush against the section's top edge. */
.card-grid:first-child {
	padding-top: 32px;
}

@media (max-width: 900px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.card-grid { grid-template-columns: 1fr; }
}

.card-grid a,
.card-grid > div {
	display: block;
	padding: 24px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	text-decoration: none;
	color: var(--color-charcoal);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-grid a:hover {
	border-color: var(--color-coral);
	transform: translateY(-3px);
	box-shadow: 0 12px 24px -16px rgba(200, 50, 60, 0.45);
}

.card-grid h3 {
	margin: 0 0 8px;
	font-size: 19px;
	color: var(--color-coral-text);
}

.card-grid p { margin: 0; font-size: 15px; }

.card-grid .card-icon {
	display: block;
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	color: var(--color-coral-text);
}
.card-grid .card-icon svg { width: 100%; height: 100%; }

/* A small highlighted callout inside a section (e.g. the "Tip for the Drop
   text" example under a steps grid) — tinted so it reads as an aside without
   needing its own section/background band. */
.tip-callout {
	max-width: 640px;
	margin: 0 auto 48px;
	padding: 16px 24px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	font-size: 15px;
	text-align: center;
}
.section-tint .tip-callout { background: var(--color-white); }

/* A lightweight sub-heading introducing a block within a merged section
   (e.g. "Popular spots" above a venue card grid, inside the same section
   as the steps above it) — smaller and less padded than render_section_heading(). */
.subhead {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
	margin-bottom: 24px;
	font-size: clamp(21px, 2.6vw, 26px);
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* When a card grid ends with exactly one orphaned item on its own row of the
   3-column desktop layout (i.e. count % 3 === 1), center it instead of
   leaving it flush left. Only applies at the width where the grid is still
   3 columns; the 900px/600px breakpoints below reset it since there's no
   orphan once the grid drops to 2 or 1 columns. */
@media (min-width: 901px) {
	.card-grid > :last-child:nth-child(3n+1) { grid-column: 2; }
}

.faq-list {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px 48px;
}


.faq-list details {
	border-bottom: 1px solid var(--color-border);
	padding: 16px 0;
}

.faq-list summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 17px;
}

.faq-list p { margin: 12px 0 0; }

.closing-cta {
	background: var(--color-charcoal);
	color: var(--color-white);
	text-align: center;
	padding: 56px 0;
}

.closing-cta h2 {
	font-weight: 700;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 24px;
}

/* ---------- Feature grid (real app screenshots on the homepage) ---------- */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 24px 24px 48px;
}

.feature-card { text-align: center; }

.feature-card img {
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1080 / 2113;
	object-fit: cover;
	margin: 0 auto 20px;
	border-radius: 18px;
	box-shadow: 0 20px 36px -22px rgba(40, 40, 40, 0.35);
}

.feature-card h3 {
	font-weight: 700;
	font-size: clamp(19px, 2.4vw, 22px);
	margin: 0 0 8px;
}
.feature-card p { margin: 0; font-size: 15px; color: var(--color-muted); }

@media (max-width: 900px) {
	.feature-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}

@media (max-width: 560px) {
	.feature-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
	.feature-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
}

/* ---------- Audience grid ("who it's for", homepage) ---------- */
.audience-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px 48px;
}

.audience-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 16px;
	margin-bottom: 16px;
	box-shadow: 0 20px 36px -22px rgba(40, 40, 40, 0.35);
}

.audience-card h3 { font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.audience-card p { margin: 0; font-size: 15px; color: var(--color-muted); }

@media (max-width: 900px) {
	.audience-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}

@media (max-width: 560px) {
	.audience-grid { grid-template-columns: 1fr; }
}

/* ---------- Section background bands (charcoal/white/tint contrast alone
   marks the boundary between sections, no divider line needed) ---------- */
.section-white { background: var(--color-white); }
.section-tint { background: var(--color-bg); }

.steps-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 48px 24px;
}

@media (max-width: 900px) {
	.steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.steps-grid { grid-template-columns: 1fr; }
}

.steps-grid > div {
	padding: 24px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
}
.section-tint .steps-grid > div { background: var(--color-bg); }

.steps-grid .step-number {
	color: var(--color-coral-text);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.steps-grid h3 { margin: 8px 0 8px; font-size: 19px; }
.steps-grid p { margin: 0; font-size: 15px; }

/* ---------- Legal markdown pages ---------- */
.legal-md-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 24px;
}
.legal-md-content h1 { font-size: 32px; }
.legal-md-content h2 { font-size: 22px; margin-top: 32px; }
.legal-md-content a { color: var(--color-coral-text); }

/* ---------- Forms (delete-me, partner enquiry) ---------- */
.delete-me-form,
.partner-form {
	max-width: 480px;
	margin: 0 auto;
	padding: 0 24px 48px;
}
.delete-me-form label,
.partner-form label { font-weight: 600; }
.delete-me-form input[type="email"],
.partner-form input[type="text"],
.partner-form input[type="email"],
.partner-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-size: 16px;
	font-family: var(--font-body);
	margin-top: 6px;
}
.partner-form textarea { resize: vertical; }
.delete-me-form button,
.partner-form button {
	background: var(--color-coral);
	color: var(--color-charcoal);
	border: none;
	border-radius: 999px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 700;
	font-family: var(--font-body);
	cursor: pointer;
}
.delete-me-form button:hover,
.partner-form button:hover { background: var(--color-coral-text); color: var(--color-white); }

.form-notice {
	max-width: 480px;
	margin: 0 auto 24px;
	padding: 16px 24px;
	border-radius: 8px;
	text-align: center;
	font-weight: 600;
}
.form-notice.success { background: #D1FAE5; color: #047857; }
.form-notice.error { background: #FEE2E2; color: #B91C1C; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	background: var(--color-charcoal);
	color: var(--color-bg);
	box-shadow: 0 -12px 24px -12px rgba(0, 0, 0, 0.35);
}

.cookie-banner-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.cookie-banner p { margin: 0; font-size: 14px; max-width: 640px; }
.cookie-banner a { color: var(--color-coral); }

.cookie-banner button {
	background: var(--color-coral);
	color: var(--color-charcoal);
	border: none;
	border-radius: 999px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	font-family: var(--font-body);
	cursor: pointer;
	flex-shrink: 0;
}
.cookie-banner button:hover { background: var(--color-white); }
