/* ==========================================================================
   Atemhain – Theme-Stylesheet
   Farben & Typografie nach markenhandbuch.md
   ========================================================================== */

:root {
	--color-primary: #24483C;    /* Waldgrün */
	--color-secondary: #4F7A5B;  /* Moosgrün */
	--color-accent: #E08A5F;     /* Terrakotta – nur als Akzent, nie flächig */
	--color-light: #9CBF7A;      /* Frischgrün */
	--color-text-light: #7E8A72; /* Salbei */
	--color-bg: #F4F1E8;         /* Creme */
	--color-white: #FFFFFF;
	--color-text: #20261F;

	--font-base: 'Work Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--radius: 14px;
	--wrap-width: 1120px;
	--shadow-soft: 0 12px 32px rgba(36, 72, 60, 0.10);
}

/* Selbst gehostete Schriftarten (Work Sans). Dateien nach
   assets/fonts/ ablegen (siehe DEPLOYMENT.md) – bis dahin greift der
   System-Font-Fallback oben in --font-base, die Seite bleibt voll nutzbar. */
@font-face {
	font-family: 'Work Sans';
	src: url('../fonts/work-sans-latin-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Work Sans';
	src: url('../fonts/work-sans-latin-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-primary);
	color: var(--color-white);
	padding: 12px 20px;
	z-index: 1000;
	border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
	font-weight: 600;
	color: var(--color-primary);
	line-height: 1.2;
	margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2.section-title, .content-section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.eyebrow {
	text-transform: lowercase;
	letter-spacing: 0.16em;
	color: var(--color-accent);
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 0.6em;
}

/* ----- Header ----- */
.site-header {
	background: var(--color-white);
	border-bottom: 1px solid rgba(36, 72, 60, 0.08);
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
	gap: 24px;
}
.site-logo img { width: 200px; height: auto; }

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle__bar {
	width: 26px;
	height: 2px;
	background: var(--color-primary);
	border-radius: 2px;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
.primary-nav__list {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
}
.primary-nav__list a {
	text-decoration: none;
	color: var(--color-text);
	font-weight: 500;
}
.primary-nav__list a:hover { color: var(--color-primary); }

/* ----- Buttons ----- */
.button {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button--accent {
	background: var(--color-accent);
	color: var(--color-white);
}
.button--accent:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.button--ghost {
	background: transparent;
	border-color: var(--color-primary);
	color: var(--color-primary);
}
.button--small { padding: 9px 18px; font-size: 0.9rem; }

/* ----- Hero ----- */
.hero, .page-hero {
	background: linear-gradient(180deg, var(--color-bg) 0%, #EDE8D9 100%);
	padding: 72px 0 56px;
	text-align: left;
}
.hero__inner { max-width: 720px; }
.hero__claim {
	text-transform: lowercase;
	letter-spacing: 0.18em;
	color: var(--color-secondary);
	font-weight: 600;
	margin: 0 0 20px;
}
.hero__lead { font-size: 1.1rem; color: var(--color-text); max-width: 560px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.page-hero { padding: 56px 0 40px; }
.page-hero__lead { font-size: 1.05rem; max-width: 620px; color: var(--color-text); }

/* ----- Photo block (ganzflächiges Bild auf Angebots-/Über-mich-Seiten) ----- */
.photo-block {
	margin: 0 0 8px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}
.photo-block img {
	width: 100%;
	height: clamp(220px, 38vw, 420px);
	object-fit: cover;
	display: block;
}

/* ----- Pillars ----- */
.pillars { padding: 64px 0; }
.pillars__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 32px;
}
.pillar-card {
	display: block;
	background: var(--color-white);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	box-shadow: var(--shadow-soft);
	border: 1px solid rgba(36, 72, 60, 0.06);
	transition: transform 0.15s ease;
}
.pillar-card:hover { transform: translateY(-4px); }
.pillar-card--accent { box-shadow: 0 0 0 3px var(--color-accent), var(--shadow-soft); }
.pillar-card__media { height: 170px; }
.pillar-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar-card__body { padding: 24px 28px 28px; }
.pillar-card__title { color: var(--color-primary); margin-bottom: 10px; }
.pillar-card__text { color: var(--color-text-light); margin-bottom: 18px; }
.pillar-card__link { color: var(--color-accent); font-weight: 600; }

/* ----- About teaser / content sections ----- */
.about-teaser { padding: 16px 0 80px; }
.about-teaser__inner {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 40px;
	align-items: center;
}
.about-teaser__media img {
	width: 100%;
	height: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}
@media (max-width: 780px) {
	.about-teaser__inner { grid-template-columns: 1fr; }
	.about-teaser__media img { max-height: 260px; }
}
.content-section { padding: 56px 0; }
.content-section__narrow { max-width: 760px; }
.content-section__cta { margin-top: 36px; }
.feature-list { padding-left: 1.2em; color: var(--color-text); }
.feature-list li { margin-bottom: 0.5em; }
.text-link { color: var(--color-accent); font-weight: 600; text-decoration: none; }

.cta-band {
	background: var(--color-primary);
	color: var(--color-white);
	padding: 56px 0;
	text-align: center;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: #DDE6DF; max-width: 520px; margin: 0 auto 24px; }

/* ----- Kurse ----- */
.kursliste {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin: 24px 0;
}
.kurs-card {
	background: var(--color-white);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow-soft);
}
.kurs-card__title { margin-bottom: 8px; }
.kurs-card__excerpt { color: var(--color-text-light); font-size: 0.95rem; }
.kurs-card__meta {
	list-style: none;
	padding: 0;
	margin: 14px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.kurs-card__meta li {
	background: var(--color-bg);
	color: var(--color-secondary);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.82rem;
}
.kursliste__empty { color: var(--color-text-light); }

/* ----- Buchung / Konto ----- */
.booking-placeholder {
	background: var(--color-white);
	border-radius: var(--radius);
	padding: 32px;
	box-shadow: var(--shadow-soft);
}
.booking-placeholder__admin-note {
	margin-top: 20px;
	font-size: 0.85rem;
	color: var(--color-text-light);
	border-top: 1px dashed rgba(36, 72, 60, 0.2);
	padding-top: 14px;
}
.account-hint { margin-top: 40px; }

/* ----- Forms ----- */
.contact-form, .booking-placeholder { max-width: 560px; }
.contact-form p { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--color-primary); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(36, 72, 60, 0.25);
	border-radius: 10px;
	font-family: inherit;
	font-size: 1rem;
	background: var(--color-white);
}
.contact-form textarea { resize: vertical; }
.contact-form__consent { font-weight: 400; font-size: 0.92rem; }
.contact-form__consent label { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; }
.contact-form__honeypot { position: absolute; left: -9999px; }
.form-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 24px; }
.form-notice--success { background: #E4EFE2; color: var(--color-primary); }
.form-notice--error { background: #FBE4DA; color: #8A3E1F; }
.contact-details { margin-top: 40px; }

/* ----- Mein Konto ----- */
.account-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}
.account-grid__col {
	background: var(--color-white);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow-soft);
}
.account-form__hint {
	font-size: 0.85rem;
	color: var(--color-text-light);
	margin: -6px 0 18px;
}
.account-form__remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.account-form__lost { margin-top: 14px; font-size: 0.9rem; }
.account-form__lost a { color: var(--color-accent); }
.account-bookings { margin-top: 48px; }
.account-logout { margin-top: 32px; }
@media (max-width: 780px) {
	.account-grid { grid-template-columns: 1fr; }
}

/* ----- Legal ----- */
.legal-text h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal-text p { color: var(--color-text); }

/* ----- Footer ----- */
.site-footer {
	background: var(--color-primary);
	color: #DCE6DF;
	padding: 56px 0 24px;
	margin-top: 40px;
}
.site-footer__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255,255,255,0.15);
}
.site-footer__claim { text-transform: lowercase; letter-spacing: 0.12em; color: var(--color-light); margin-top: 10px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__list a { color: #DCE6DF; text-decoration: none; }
.site-footer__list a:hover { color: var(--color-accent); }
.site-footer__contact { font-style: normal; color: #DCE6DF; }
.site-footer__copy { text-align: center; font-size: 0.85rem; color: #A9BBB0; margin-top: 24px; }

/* ----- Responsive ----- */
@media (max-width: 780px) {
	.nav-toggle { display: flex; }
	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-white);
		flex-direction: column;
		align-items: flex-start;
		padding: 20px 24px 28px;
		gap: 18px;
		display: none;
		border-bottom: 1px solid rgba(36, 72, 60, 0.08);
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav__list { flex-direction: column; gap: 14px; }
	.primary-nav__cta { align-self: flex-start; }
}
