/* ==========================================================================
   Kiosk Stadtmitte — Swiss Modernism 2.0
   12-Spalten-Grid · Inter/Helvetica · ein Akzent · 3D-Tilt & Scroll-Motion
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--grid-columns: 12;
	--grid-gap: 1rem;
	--base-unit: 8px;

	--font-primary: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

	--color-bg: #ffffff;
	--color-bg-alt: #f5f5f3;
	--color-text: #131210;
	--color-text-muted: #55534d;
	--color-border: #e3e0d9;
	--accent: #b3492e;
	--accent-ink: #ffffff;
	--accent-soft: rgba(179, 73, 46, 0.08);

	--shadow-soft: 0 1px 2px rgba(19, 18, 16, 0.04), 0 12px 24px -12px rgba(19, 18, 16, 0.14);
	--shadow-lift: 0 4px 8px rgba(19, 18, 16, 0.05), 0 24px 48px -16px rgba(19, 18, 16, 0.22);

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-fast: 180ms;
	--dur-base: 320ms;
	--dur-slow: 600ms;

	--nav-height: 76px;
}

/* -------------------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

.icon { width: 1.4em; height: 1.4em; flex: 0 0 auto; vertical-align: middle; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-text);
	color: #fff;
	padding: 0.75rem 1.25rem;
	z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   Grid System — 12 Spalten, mathematischer Rhythmus (8px base unit)
   ------------------------------------------------------------------------- */
.grid-wrap {
	max-width: 1400px;
	margin-inline: auto;
	padding-inline: clamp(1.5rem, 4vw, 4rem);
}

.grid-12 {
	display: grid;
	grid-template-columns: repeat(var(--grid-columns), 1fr);
	gap: var(--grid-gap);
}

.grid-index {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	font-weight: 600;
	margin: 0 0 0.75rem;
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { margin: 0 0 1rem; color: var(--color-text); max-width: 62ch; }
.section-head p.grid-index { max-width: none; }

.section { padding-block: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--color-border); }
.section:first-of-type { border-top: none; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { margin: 0; }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.9rem 1.6rem;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 2px;
	transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
	cursor: pointer;
	border: 1px solid transparent;
	min-height: 44px;
}
.btn-primary {
	background: var(--accent);
	color: var(--accent-ink);
}
.btn-primary:hover { box-shadow: var(--shadow-lift); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
	background: transparent;
	border-color: var(--color-text);
	color: var(--color-text);
}
.btn-outline:hover { background: var(--color-text); color: #fff; }
.btn-outline:active { transform: scale(0.98); }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--color-border);
	transition: padding var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
	box-shadow: var(--shadow-soft);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-height);
	transition: height var(--dur-base) var(--ease-out);
	gap: 2rem;
}
.site-header.is-scrolled .header-inner { height: calc(var(--nav-height) - 16px); }

.brand-link { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: var(--color-text);
	color: #fff;
	font-weight: 800;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }

.primary-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list { display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2.25rem); }
.nav-list a {
	font-weight: 500;
	font-size: 0.95rem;
	padding: 0.4rem 0.1rem;
	position: relative;
}
.nav-list a::after {
	content: '';
	position: absolute;
	left: 0; right: 100%;
	bottom: -2px;
	height: 2px;
	background: var(--accent);
	transition: right var(--dur-base) var(--ease-out);
}
.nav-list a:hover::after,
.nav-list a:focus-visible::after { right: 0; }

.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: transparent;
	border: none;
	cursor: pointer;
}
.burger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-text);
	transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100dvh;
	width: min(84vw, 360px);
	background: #fff;
	z-index: 200;
	padding: calc(var(--nav-height) + 1rem) 2rem 2rem;
	transform: translateX(100%);
	transition: transform var(--dur-base) var(--ease-out);
	box-shadow: var(--shadow-lift);
}
.mobile-drawer.is-open { transform: translateX(0); }
.nav-list-mobile { display: flex; flex-direction: column; gap: 1.5rem; }
.nav-list-mobile a { font-size: 1.15rem; font-weight: 600; display: block; padding: 0.4rem 0; }

.drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(19, 18, 16, 0.4);
	z-index: 150;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--dur-base) var(--ease-out);
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero-inner {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--grid-gap);
	align-items: center;
}
.hero-text { grid-column: 1 / span 6; }
.hero-media { grid-column: 7 / span 6; }

.hero-title { margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--color-text-muted); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin: 1.75rem 0 1.25rem; }
.hero-meta { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-text-muted);
}
.status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--color-text-muted);
	position: relative;
}
.status-badge.is-open .status-dot { background: #3a7d44; }
.status-badge.is-open .status-label { color: #2c5e34; }
.status-badge.is-open .status-dot::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1.5px solid #3a7d44;
	animation: pulse-ring 2.2s var(--ease-out) infinite;
}
.status-badge.is-closed .status-dot { background: #9a3b34; }
.status-badge.is-closed .status-label { color: #7a2f29; }

@keyframes pulse-ring {
	0% { transform: scale(0.7); opacity: 0.9; }
	100% { transform: scale(1.6); opacity: 0; }
}

.hero-media-frame {
	perspective: 1200px;
}
.tilt {
	transform-style: preserve-3d;
	transition: transform var(--dur-slow) var(--ease-out);
	will-change: transform;
}
.hero-media-frame video {
	border-radius: 4px;
	box-shadow: var(--shadow-lift);
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

/* -------------------------------------------------------------------------
   Slider (Aktuelles)
   ------------------------------------------------------------------------- */
.slider { position: relative; }
.slider-track {
	display: flex;
	gap: var(--grid-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0 clamp(1.5rem, 4vw, 4rem) 1.5rem;
	scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.slide {
	scroll-snap-align: start;
	flex: 0 0 min(560px, 82vw);
	background: var(--color-bg-alt);
	border-radius: 4px;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: box-shadow var(--dur-base) var(--ease-out);
}
.slide:hover { box-shadow: var(--shadow-lift); }
.slide-media { aspect-ratio: 4 / 3; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.slide:hover .slide-media img { transform: scale(1.04); }
.slide-caption { padding: 1.5rem; }
.slide-caption h3 { margin-bottom: 0.4rem; }
.slide-caption p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

.slider-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
}
.slider-dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: var(--color-border);
	cursor: pointer;
	padding: 0;
	transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.slider-dots button.is-active { background: var(--accent); transform: scale(1.25); }

/* -------------------------------------------------------------------------
   Services — Bento (asymmetrisch, exakt 4 Zellen)
   ------------------------------------------------------------------------- */
.bento-services {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--grid-gap);
}
.service-card { grid-column: span 7; }
.service-card:nth-child(2) { grid-column: span 5; }
.service-card:nth-child(3) { grid-column: span 5; }
.service-card:nth-child(4) { grid-column: span 7; }

.service-card-link {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--color-bg-alt);
	border-radius: 4px;
	overflow: hidden;
	height: 100%;
	box-shadow: var(--shadow-soft);
	transition: box-shadow var(--dur-base) var(--ease-out);
}
.service-card:hover .service-card-link,
.service-card:focus-within .service-card-link { box-shadow: var(--shadow-lift); }

.service-media { aspect-ratio: 16 / 9; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.service-card:hover .service-media img { transform: scale(1.05); }

.service-body { padding: clamp(1.25rem, 2vw, 1.75rem); }
.service-body p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.service-link-label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--accent);
}
.service-link-label .icon { transition: transform var(--dur-base) var(--ease-out); }
.service-card:hover .service-link-label .icon { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */
.about-inner {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--grid-gap);
	align-items: center;
}
.about-media { grid-column: 1 / span 5; perspective: 1200px; }
.about-media img { border-radius: 4px; box-shadow: var(--shadow-lift); aspect-ratio: 3 / 4; object-fit: cover; }
.about-text { grid-column: 7 / span 6; }
.about-text p { color: var(--color-text-muted); }

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact-inner {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--grid-gap);
	align-items: start;
}
.contact-text { grid-column: 1 / span 5; }
.contact-map { grid-column: 6 / span 7; }
.contact-line {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.9rem;
	color: var(--color-text);
}
.contact-line .icon { color: var(--accent); flex-shrink: 0; }
.contact-hours { align-items: flex-start; }
.contact-hours .icon { margin-top: 2px; }

.contact-map iframe {
	width: 100%;
	height: clamp(320px, 32vw, 460px);
	border: 0;
	border-radius: 4px;
	filter: grayscale(0.35) contrast(1.02);
}

/* -------------------------------------------------------------------------
   Scroll-Reveal (nur transform, kein opacity:0 — bleibt sichtbar ohne JS)
   ------------------------------------------------------------------------- */
.reveal {
	transform: translateY(28px);
	transition: transform var(--dur-slow) var(--ease-out);
}
.reveal.in-view { transform: translateY(0); }

/* -------------------------------------------------------------------------
   Generic Page Content (Gutenberg-Blöcke)
   ------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-banner { margin-bottom: clamp(2rem, 4vw, 3rem); }
.page-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.page-body { padding-bottom: clamp(3rem, 6vw, 6rem); max-width: 900px; }
.page-body h2 { margin-top: 2.5rem; }
.page-body h3 { margin-top: 1.75rem; }
.page-body ul.wp-block-list { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.25rem; }
.page-body ul.wp-block-list li { margin-bottom: 0.5rem; }
.page-body .wp-block-columns { gap: var(--grid-gap); }
.page-body .wp-block-group { background: var(--color-bg-alt); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 4px; margin-block: 2rem; }
.page-body .wp-block-separator { border: none; border-top: 1px solid var(--color-border); margin-block: 2.5rem; }

/* wpcf7 Kontaktformular */
.wpcf7-form p { margin-bottom: 1rem; }
.wpcf7-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.wpcf7-form input:not([type=submit]),
.wpcf7-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	font-family: inherit;
	font-size: 1rem;
	background: #fff;
	color: var(--color-text);
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--accent); outline: none; }
.wpcf7-form input[type=submit] {
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 0.9rem 1.8rem;
	font-weight: 600;
	border-radius: 2px;
	cursor: pointer;
	min-height: 44px;
	transition: transform var(--dur-fast) var(--ease-out);
}
.wpcf7-form input[type=submit]:active { transform: scale(0.98); }
.wpcf7-not-valid-tip { color: #9a3b34; font-size: 0.85rem; margin-top: 0.3rem; }
.wpcf7-response-output { border-radius: 2px; padding: 0.85rem 1rem; margin-top: 1rem; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); padding-top: clamp(3rem, 5vw, 4.5rem); }
.footer-inner {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--grid-gap);
	padding-bottom: 2.5rem;
}
.footer-brand { grid-column: 1 / span 4; }
.footer-brand p { margin: 0.75rem 0 0; color: var(--color-text-muted); font-size: 0.9rem; }
.footer-nav { grid-column: 6 / span 3; }
.footer-contact { grid-column: 9 / span 4; }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-menu-list { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-menu-list a { color: var(--color-text-muted); font-size: 0.95rem; }
.footer-menu-list a:hover { color: var(--color-text); }
.footer-contact .contact-line { font-size: 0.95rem; margin-bottom: 0.7rem; }
.social-links { display: flex; gap: 0.9rem; margin-top: 1rem; }
.social-links a { color: var(--color-text-muted); transition: color var(--dur-base) var(--ease-out); }
.social-links a:hover { color: var(--accent); }
.footer-bottom {
	border-top: 1px solid var(--color-border);
	padding-block: 1.5rem;
	font-size: 0.85rem;
	color: var(--color-text-muted);
}
.footer-bottom p { margin: 0; max-width: none; }

/* -------------------------------------------------------------------------
   Tablet ≤ 900px
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.primary-nav { display: none; }
	.burger { display: flex; }

	.site-header { background: #fff; }

	.hero-inner,
	.about-inner,
	.contact-inner {
		grid-template-columns: 1fr;
	}
	.hero-text, .hero-media,
	.about-media, .about-text,
	.contact-text, .contact-map {
		grid-column: 1 / -1;
	}
	.hero-media { order: -1; margin-bottom: 1.5rem; }
	.about-media { max-width: 420px; }

	.bento-services { grid-template-columns: 1fr; }
	.service-card,
	.service-card:nth-child(2),
	.service-card:nth-child(3),
	.service-card:nth-child(4) { grid-column: 1 / -1; }

	.footer-brand, .footer-nav, .footer-contact { grid-column: 1 / -1; }
	.footer-inner { gap: 2rem; }
}

/* -------------------------------------------------------------------------
   Mobile ≤ 600px
   ------------------------------------------------------------------------- */
@media (max-width: 600px) {
	:root { --nav-height: 64px; }
	body { font-size: 16px; }
	.section { padding-block: 3rem; }
	.hero-actions { flex-direction: column; align-items: flex-start; }
	.slide { flex-basis: 88vw; }
	.contact-map iframe { height: 280px; }
	.site-header.is-scrolled .header-inner { height: var(--nav-height); }
}

/* -------------------------------------------------------------------------
   Reduced Motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.tilt { transform: none !important; }
	.reveal { transform: none !important; }
}
