/* ==========================================================================
   dahlia – Website  ·  eigenständiges Stylesheet
   Farben und Schrift 1:1 von dahlia.ch:
   Rot #B3071B · Orange #ED7704 · Gelb #FBBA00 · Text #1D1D1D · Grund #FCFCFC
   Schrift: Inter (Google Fonts)
   ========================================================================== */

:root {
	--c-primary: #B3071B;
	--c-primary-dark: #8f0516;
	--c-secondary: #ED7704;
	--c-accent: #FBBA00;
	--c-text: #1D1D1D;
	--c-muted: #5a5a5a;
	--c-bg: #FCFCFC;
	--c-surface: #ffffff;
	--c-tint: rgba(237, 119, 4, 0.09);   /* #ED770417 */
	--c-line: #e8e4de;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(29, 29, 29, 0.08);
	--container: 1200px;
	--header-h: 84px;
	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.dah-site {
	margin: 0;
	font-family: var(--font);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: -0.3px;
	line-height: 1.68;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}
.dah-site img { max-width: 100%; height: auto; display: block; }
.dah-site a { color: var(--c-primary); text-decoration: none; }
.dah-site a:hover { text-decoration: underline; }
.dah-site ul { padding-left: 1.2em; }

.dah-site h1, .dah-site h2, .dah-site h3, .dah-site h4 {
	font-family: var(--font);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -1.3px;
	margin: 0 0 0.5em;
	color: var(--c-text);
}
.dah-site h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.dah-site h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.dah-site h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.448px; }
.dah-site h4 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.3px; }
.dah-site p { margin: 0 0 1em; }

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

/* Skip-Link + Scroll-Fortschritt */
.dah-skip {
	position: absolute; left: -9999px; top: 0; z-index: 300;
	background: var(--c-primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.dah-skip:focus { left: 0; }
.dah-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 250; pointer-events: none;
}
.dah-progress span {
	display: block; height: 100%; width: 0;
	background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.dah-header {
	position: sticky; top: 0; z-index: 200;
	background: rgba(252, 252, 252, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.dah-header.is-stuck { border-color: var(--c-line); box-shadow: 0 4px 24px rgba(29,29,29,0.06); }
.dah-header__inner {
	display: flex; align-items: center; gap: 28px;
	min-height: var(--header-h);
}
.dah-logo img { height: 56px; width: auto; }
.dah-nav { margin-left: auto; }
.dah-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.dah-nav a {
	color: var(--c-text); font-weight: 500; font-size: 16px; letter-spacing: -0.2px;
	padding: 6px 0; position: relative; text-decoration: none;
}
.dah-nav a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
	background: var(--c-primary); transition: right 0.25s ease;
}
.dah-nav a:hover::after { right: 0; }
.dah-header__cta { white-space: nowrap; }

.dah-burger {
	display: none; flex-direction: column; gap: 5px; margin-left: auto;
	background: none; border: 0; padding: 10px; cursor: pointer;
}
.dah-burger span {
	width: 26px; height: 2.5px; background: var(--c-text); border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.dah-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.dah-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dah-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.dah-mobile-nav { display: none; border-top: 1px solid var(--c-line); background: var(--c-bg); }
.dah-mobile-nav ul { list-style: none; margin: 0; padding: 14px 24px 22px; }
.dah-mobile-nav li + li { margin-top: 4px; }
.dah-mobile-nav a {
	display: inline-block; padding: 9px 0; color: var(--c-text);
	font-weight: 500; font-size: 18px; text-decoration: none;
}
.dah-mobile-nav .dah-btn { margin-top: 10px; color: #fff; }

@media (max-width: 980px) {
	.dah-nav, .dah-header__cta { display: none; }
	.dah-burger { display: flex; }
	.dah-mobile-nav.is-open { display: block; }
	.dah-logo img { height: 46px; }
}

/* --------------------------------------------------------------------------
   Knöpfe
   -------------------------------------------------------------------------- */
.dah-btn {
	display: inline-block;
	background: var(--c-primary); color: #fff !important;
	font-weight: 600; font-size: 16px; letter-spacing: -0.2px;
	padding: 12px 26px; border-radius: 999px; border: 2px solid var(--c-primary);
	text-decoration: none !important; cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.dah-btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); transform: translateY(-1px); }
.dah-btn--ghost { background: transparent; color: var(--c-primary) !important; }
.dah-btn--ghost:hover { background: var(--c-primary); color: #fff !important; }
.dah-btn--small { padding: 7px 18px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Hero (Startseite + Unterseiten)
   -------------------------------------------------------------------------- */
.dah-hero {
	position: relative;
	background: linear-gradient(180deg, var(--c-tint) 0%, rgba(255,255,255,0.09) 100%);
	overflow: hidden;
}
.dah-hero__inner {
	display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
	padding: 72px 24px 64px;
}
.dah-hero__text .dah-kicker { margin-bottom: 18px; }
.dah-hero__text h1 span { color: var(--c-primary); }
.dah-hero__lead { font-size: 20px; color: var(--c-muted); max-width: 34em; }
.dah-hero__img img {
	border-radius: var(--radius); box-shadow: var(--shadow); width: 100%;
	object-fit: cover;
}
@media (max-width: 900px) {
	.dah-hero__inner { grid-template-columns: 1fr; padding: 44px 24px 40px; }
}

/* Foto-Hero mit Diashow (Standort-Seiten) */
.dah-photo-hero {
	position: relative; min-height: min(66vh, 620px);
	display: flex; align-items: flex-end; overflow: hidden; color: #fff;
}
.dah-photo-hero__slides, .dah-photo-hero__slides .slide { position: absolute; inset: 0; }
.dah-photo-hero__slides .slide {
	background-size: cover; background-position: center; opacity: 0;
	transition: opacity 1.4s ease;
	transform: scale(1.06);
}
.dah-photo-hero__slides .slide.is-active {
	opacity: 1;
	animation: dah-kenburns 9s ease-out forwards;
}
@keyframes dah-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.dah-photo-hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(29,29,29,0) 30%, rgba(29,29,29,0.62) 100%);
}
.dah-photo-hero__content { position: relative; z-index: 2; padding: 90px 24px 46px; width: 100%; }
.dah-photo-hero__content h1, .dah-photo-hero__content h2 { color: #fff; margin-bottom: 0.2em; }
.dah-photo-hero__content p { color: rgba(255,255,255,0.92); font-size: 20px; max-width: 36em; }

/* Kicker / Vortitel */
.dah-kicker {
	display: inline-block; font-size: 15px; font-weight: 600; letter-spacing: 0.06em;
	text-transform: uppercase; color: var(--c-secondary); margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */
.dah-section { padding: 72px 0; }
.dah-section--tint { background: var(--c-tint); }
.dah-section--tight { padding: 48px 0; }
.dah-section__head { max-width: 760px; margin-bottom: 40px; }
.dah-section__head p { color: var(--c-muted); font-size: 19px; }

/* Zweispaltiger Inhalt (Text + Bild) */
.dah-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.dah-split--rev > :first-child { order: 2; }
.dah-split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 900px) {
	.dah-split { grid-template-columns: 1fr; }
	.dah-split--rev > :first-child { order: 0; }
}

/* --------------------------------------------------------------------------
   Karten (Standorte, Dienstleistungen, News, Downloads)
   -------------------------------------------------------------------------- */
.dah-grid { display: grid; gap: 28px; }
.dah-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dah-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dah-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .dah-grid--3, .dah-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .dah-grid--2, .dah-grid--3, .dah-grid--4 { grid-template-columns: 1fr; } }

.dah-card {
	background: var(--c-surface); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); display: flex; flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.dah-card { color: inherit; text-decoration: none !important; }
.dah-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(29,29,29,0.12); }
.dah-card__img { aspect-ratio: 3 / 2; overflow: hidden; }
.dah-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.dah-card:hover .dah-card__img img { transform: scale(1.04); }
.dah-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dah-card__body h3 { margin: 0; }
.dah-card__body p { margin: 0; color: var(--c-muted); font-size: 16.5px; }
.dah-card__more { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--c-primary); }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.dah-team-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px;
}
.dah-team-card {
	background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 0 0 22px; text-align: center; overflow: hidden;
}
.dah-team-photo { aspect-ratio: 1 / 1.05; overflow: hidden; margin-bottom: 16px; }
.dah-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.dah-team-name { font-size: 1.15rem; margin: 0 14px 4px; }
.dah-team-role { font-size: 14.5px; color: var(--c-muted); margin: 0 14px 12px; line-height: 1.45; }

/* --------------------------------------------------------------------------
   Kennzahlen (Count-up)
   -------------------------------------------------------------------------- */
.dah-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; text-align: center; }
@media (max-width: 800px) { .dah-stats { grid-template-columns: repeat(2, 1fr); } }
.dah-stat__num {
	font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -1.3px;
	color: var(--c-primary); line-height: 1;
}
.dah-stat__label { margin-top: 8px; color: var(--c-muted); font-weight: 500; }

/* --------------------------------------------------------------------------
   Galerie + Lightbox
   -------------------------------------------------------------------------- */
.dah-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.dah-gallery a { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.dah-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.3s ease; }
.dah-gallery a:hover img { transform: scale(1.05); }

.dah-lightbox {
	position: fixed; inset: 0; z-index: 400; display: none;
	background: rgba(20, 18, 16, 0.92); align-items: center; justify-content: center; padding: 4vmin;
}
.dah-lightbox.is-open { display: flex; }
.dah-lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 8px; }
.dah-lightbox button {
	position: absolute; top: 18px; right: 22px; font-size: 30px; line-height: 1;
	background: none; border: 0; color: #fff; cursor: pointer; padding: 8px;
}

/* --------------------------------------------------------------------------
   Akkordeon (Marte Meo)
   -------------------------------------------------------------------------- */
.dah-acc { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); margin-bottom: 14px; overflow: hidden; }
.dah-acc summary {
	list-style: none; cursor: pointer; padding: 20px 24px;
	font-weight: 600; font-size: 1.15rem; display: flex; align-items: center; justify-content: space-between;
}
.dah-acc summary::-webkit-details-marker { display: none; }
.dah-acc summary::after { content: "+"; font-size: 1.5rem; color: var(--c-primary); transition: transform 0.2s ease; }
.dah-acc[open] summary::after { transform: rotate(45deg); }
.dah-acc__body { padding: 0 24px 22px; }

/* --------------------------------------------------------------------------
   Download-Listen
   -------------------------------------------------------------------------- */
.dah-dl-group { margin-bottom: 44px; }
.dah-dl-group__head { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; margin-bottom: 18px; }
.dah-dl-group__head img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 640px) { .dah-dl-group__head { grid-template-columns: 1fr; } }
.dah-dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dah-dl-list a {
	display: flex; align-items: center; gap: 12px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 10px;
	padding: 13px 18px; color: var(--c-text); font-weight: 500; text-decoration: none;
	transition: border-color 0.2s ease, transform 0.15s ease;
}
.dah-dl-list a:hover { border-color: var(--c-primary); transform: translateX(3px); }
.dah-dl-list a::before { content: "📄"; }

/* --------------------------------------------------------------------------
   Kontakt-Blöcke
   -------------------------------------------------------------------------- */
.dah-contact-card {
	background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 26px 28px;
}
.dah-contact-card h2, .dah-contact-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.dah-contact-card p { margin-bottom: 6px; color: var(--c-muted); }

/* Formulare (Gravity Forms erbt Grundstil) */
.dah-form-wrap { max-width: 820px; }
.dah-form-fallback {
	background: var(--c-tint); border-radius: var(--radius); padding: 22px 26px;
}
.dah-site .gform_wrapper input[type="text"],
.dah-site .gform_wrapper input[type="email"],
.dah-site .gform_wrapper input[type="tel"],
.dah-site .gform_wrapper input[type="number"],
.dah-site .gform_wrapper input[type="date"],
.dah-site .gform_wrapper select,
.dah-site .gform_wrapper textarea {
	font-family: var(--font); font-size: 16px;
	border: 1px solid var(--c-line); border-radius: 8px; padding: 10px 14px; width: 100%;
	background: #fff;
}
.dah-site .gform_wrapper .gform_button {
	background: var(--c-primary); color: #fff; border: 0; border-radius: 999px;
	font-weight: 600; font-size: 16px; padding: 12px 28px; cursor: pointer;
}
.dah-site .gform_wrapper .gform_button:hover { background: var(--c-primary-dark); }

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */
.dah-news-card .dah-card__date { font-size: 14px; color: var(--c-secondary); font-weight: 600; }

/* Veranstaltungs-Liste (Startseite) */
.dah-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dah-events li {
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 10px;
	padding: 14px 18px;
}
.dah-events .when { font-size: 14px; color: var(--c-secondary); font-weight: 600; display: block; }
.dah-events .where { color: var(--c-muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Stellen-Tabs (Dualoo) – Stil an dahlia.ch angelehnt
   -------------------------------------------------------------------------- */
.job-tabs { width: 100%; }
.job-tab-buttons { display: flex; flex-wrap: wrap; background: #f2f2f2; border-bottom: 2px solid var(--c-primary); border-radius: 8px 8px 0 0; overflow: hidden; }
.job-tab-buttons button {
	position: relative; background: #f2f2f2; border: none; padding: 14px 22px;
	cursor: pointer; font-size: 14.5px; font-family: var(--font); font-weight: 500;
}
.job-tab-buttons button.active { background: var(--c-primary); color: #fff; font-weight: 600; }
.job-tab-content { display: none; width: 100%; min-height: 420px; }
.job-tab-content.active { display: block; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.dah-footer { background: #231f1c; color: #efece8; margin-top: 88px; }
.dah-footer a { color: #efece8; }
.dah-footer a:hover { color: var(--c-accent); }
.dah-footer__grid {
	display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px;
	padding-top: 58px; padding-bottom: 40px;
}
@media (max-width: 860px) { .dah-footer__grid { grid-template-columns: 1fr; gap: 30px; } }
.dah-site .dah-footer__logo { height: 62px; width: auto; max-width: 220px; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px 14px; margin-bottom: 16px; }
.dah-footer h3 { color: #fff; font-size: 1.1rem; letter-spacing: -0.3px; margin-bottom: 14px; }
.dah-footer ul { list-style: none; margin: 0; padding: 0; }
.dah-footer li + li { margin-top: 8px; }
.dah-social { display: flex; gap: 14px; margin-top: 14px; }
.dah-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
	transition: background 0.2s ease;
}
.dah-social a:hover { background: var(--c-primary); color: #fff; }
.dah-footer__bottom {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; padding-bottom: 26px;
	font-size: 15px; color: #c9c3bc;
}
.dah-footer__bottom p { margin: 0; }

/* Zurück nach oben */
.dah-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 150;
	width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--c-primary); color: #fff; font-size: 20px; box-shadow: var(--shadow);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.dah-top:hover { transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   Reveal-on-Scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.dah-photo-hero__slides .slide.is-active { animation: none; transform: none; }
	.dah-card, .dah-card__img img, .dah-btn { transition: none; }
}

/* Kleine Helfer */
.dah-lead { font-size: 20px; color: var(--c-muted); }
.dah-center { text-align: center; }
.dah-mt-0 { margin-top: 0; }
.dah-mb-24 { margin-bottom: 24px; }
.dah-note { font-size: 15px; color: var(--c-muted); }
