/* ==========================================================================
   HERSA – Aussehen nach dem Screendesign (Stand 1.12.2026)
   Wird als Letztes geladen und überschreibt main.css.
   Farben, Schriften und Größen stehen in variablen.css.
   Inhalt: 1 Schrift · 2 Etikett und Aufteilung · 3 Knöpfe · 4 Kopf und Hero
           5 Kacheln, Punkte, Listen · 6 Kontakt-Box · 7 Fuß · 8 Menü
   ========================================================================== */

:root {
	--h-linie-dunkel: #2b2f63;   /* Linien auf Dunkelblau */
	--h-text-dunkel:  #b4beda;   /* Nebentext auf Dunkelblau */
	--h-ausklang-dunkel: #8d98be;
	--h-foto: #1d2350;           /* Fläche hinter Fotos, solange keins da ist */
}

/* 1. Schrift -------------------------------------------------------------- */

h1, h2 { color: var(--farbe-dunkel); letter-spacing: -0.03em; }
h2 { font-weight: 400; line-height: 1.18; letter-spacing: -0.025em; max-width: 56rem; }
h3 { font-weight: 600; letter-spacing: -0.01em; color: var(--farbe-dunkel); }
.hg-dunkel :is(h1, h2, h3), .hg-akzent :is(h1, h2, h3), .hero--bild-hintergrund h1, .fuss :is(h2, h3) { color: inherit; }

/* Die Einleitung läuft als grauer zweiter Satz direkt unter der Überschrift weiter. */
.sektion h2 + .vorspann {
	margin-top: calc(-1 * var(--abstand-s));
	max-width: 56rem;
	font-size: var(--groesse-h2); line-height: 1.18; letter-spacing: -0.025em;
	color: var(--farbe-ausklang);
}
.hg-dunkel h2 + .vorspann { color: var(--h-ausklang-dunkel); opacity: 1; }
.hg-akzent h2 + .vorspann { color: #cfe3f6; opacity: 1; }

.hg-dunkel { color: var(--farbe-auf-dunkel); }
.hg-dunkel .fliesstext, .hg-dunkel p:not(.vorspann):not(.etikett) { color: var(--h-text-dunkel); }

/* 2. Etikett und Aufteilung ---------------------------------------------- */

.etikett { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--abstand-s); font-size: 0.9375rem; font-weight: 600; color: var(--farbe-dunkel); }
.etikett::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; background: var(--farbe-akzent); }
.hg-dunkel .etikett::before { background: #6fb1ec; }
.hg-akzent .etikett::before { background: currentColor; }

/* Ab Tablet quer: Etikett links, Inhalt rechts. */
@media (min-width: 62rem) {
	.sektion:not(.sektion--cta):not(.sektion--text-bild) > .container {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: 2rem;
		max-width: calc(var(--breite-seite) + 2 * var(--abstand-rand));
	}
	.sektion:not(.sektion--cta):not(.sektion--text-bild) > .container > * { grid-column: 2; }
	.sektion:not(.sektion--cta):not(.sektion--text-bild) > .container > .etikett { grid-column: 1; grid-row: 1; align-self: start; margin: 0; padding-top: 0.75rem; }
	.sektion--text .fliesstext { max-width: var(--breite-schmal); }
}

.zweispaltig { align-items: start; }

/* 3. Knöpfe: Pille mit Pfeil im Kreis ------------------------------------- */

.button {
	gap: 1rem; min-height: 3.25rem; padding: 0.375rem 0.375rem 0.375rem 1.5rem;
	border-width: 1px; font-weight: 600;
}
.button::after {
	content: "→"; flex: none; display: grid; place-items: center;
	width: 2.5rem; height: 2.5rem; border-radius: 50%;
	background: var(--farbe-auf-akzent); color: var(--farbe-akzent); font-weight: 400; font-size: 1.125rem;
}
.button--klein { min-height: 2.75rem; padding-left: 1.125rem; }
.button--klein::after { width: 2rem; height: 2rem; }
.kopf__telefon::after { content: none; }

.button--rahmen { background: var(--farbe-hell); border-color: var(--farbe-dunkel); color: var(--farbe-dunkel); }
.button--rahmen::after, .button--hell::after { background: var(--farbe-dunkel); color: #fff; }
.button--rahmen:hover { background: #e3ecf7; border-color: var(--farbe-dunkel); color: var(--farbe-dunkel); }
.button--hell { border-color: var(--farbe-hell); color: var(--farbe-dunkel); }
.button--hell:hover { background: #e3ecf7; border-color: #e3ecf7; color: var(--farbe-dunkel); }

.hg-akzent .button--rahmen, .hg-dunkel .button--rahmen, .hero--bild-hintergrund .button--rahmen { background: transparent; border-color: rgb(255 255 255 / 0.6); color: #fff; }
.hg-akzent .button--rahmen::after, .hg-dunkel .button--rahmen::after, .hero--bild-hintergrund .button--rahmen::after { background: #fff; color: var(--farbe-dunkel); }
.hero--bild-hintergrund .button:not(.button--rahmen) { background: #fff; border-color: #fff; color: var(--farbe-dunkel); }
.hero--bild-hintergrund .button:not(.button--rahmen)::after { background: var(--farbe-dunkel); color: #fff; }
.hero--bild-hintergrund .button:not(.button--rahmen):hover { background: #e3ecf7; border-color: #e3ecf7; }

/* 4. Kopf der Seiten und Hero -------------------------------------------- */

.breadcrumbs li + li::before { content: "/"; }

.hero { background: var(--farbe-hell); }
.hero__text { max-width: 60rem; }
.hero .vorspann { max-width: 30rem; color: var(--farbe-text); }
.hero .buttons { margin-top: var(--abstand-l); }

.hero--bild-hintergrund { min-height: min(88vh, 46rem); background: var(--h-foto); }
.hero--bild-hintergrund .vorspann { color: #e4e9f5; }
.hero__hintergrund::after { background: linear-gradient(to top, rgb(0 0 51 / 0.86), rgb(0 0 51 / 0.3)); }
.kopf-osmo-mega #inhalt > .hero--bild-hintergrund:first-child { padding-bottom: var(--abstand-l); }

.seitenkopf { padding-block: var(--abstand-l); }
.seitenkopf .vorspann { max-width: 30rem; color: var(--farbe-text); }

/* Kopf einer Leistung: blaue Titelfläche neben dem Foto */
.leistungskopf .zweispaltig { gap: 0; align-items: stretch; }
.leistungskopf .zweispaltig:not(:has(.zweispaltig__bild)) { grid-template-columns: 1fr; }
.leistungskopf .zweispaltig__text {
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: clamp(18rem, 40vw, 32rem); padding: clamp(1.75rem, 4vw, 3.5rem);
	background: var(--farbe-akzent); color: #fff;
}
.leistungskopf h1, .leistungskopf .vorspann { color: inherit; }
.leistungskopf .vorspann { max-width: 28rem; }
.leistungskopf .button { background: #fff; border-color: #fff; color: var(--farbe-dunkel); }
.leistungskopf .button::after { background: var(--farbe-dunkel); color: #fff; }
.leistungskopf .button:hover { background: #e3ecf7; border-color: #e3ecf7; }
.leistungskopf .zweispaltig__bild { background: var(--farbe-grau); }
.leistungskopf .zweispaltig__bild img { height: 100%; object-fit: cover; }

/* 5. Kacheln, Punkte, Listen: Raster aus feinen Linien -------------------- */

.kacheln, .vorteile { --h-l: var(--farbe-linie); gap: 0; border-top: 1px solid var(--h-l); border-left: 1px solid var(--h-l); }
.hg-dunkel :is(.kacheln, .vorteile) { --h-l: var(--h-linie-dunkel); }
.hg-akzent :is(.kacheln, .vorteile) { --h-l: rgb(255 255 255 / 0.4); }
.kacheln { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }

.karte {
	justify-content: flex-end; min-height: 12rem; padding-top: 4.5rem;
	border: 0; border-right: 1px solid var(--h-l); border-bottom: 1px solid var(--h-l);
	background: transparent; color: inherit; transition: background-color 0.15s;
}
.karte:hover, .karte:focus-within { box-shadow: none; transform: none; background: var(--farbe-grau); }
.hg-grau .karte:hover, .hg-grau .karte:focus-within { background: var(--farbe-hell); }
.hg-dunkel .karte:hover, .hg-dunkel .karte:focus-within { background: #0b0f4a; }
.hg-akzent .karte:hover, .hg-akzent .karte:focus-within { background: var(--farbe-akzent-dunkel); }
.karte::before {
	content: "→"; position: absolute; top: 1.5rem; right: 1.5rem;
	display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
	background: var(--farbe-dunkel); color: #fff; font-size: 1.125rem;
}
.hg-dunkel .karte::before { background: var(--h-linie-dunkel); }
.hg-akzent .karte::before { background: #fff; color: var(--farbe-akzent); }
.karte__bild { display: none; }
.karte__titel { font-size: 1.25rem; font-weight: 500; }
.hg-dunkel .karte p { color: var(--h-text-dunkel); }
.hg-akzent .karte p { color: inherit; }

.vorteil { padding: 1.75rem; min-height: 10.5rem; border: 0; border-right: 1px solid var(--h-l); border-bottom: 1px solid var(--h-l); }
/* Genau vier Punkte (z. B. ein Ablauf) stehen in einer Reihe. */
@media (min-width: 62rem) { .vorteile:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vorteil p { color: var(--farbe-text-leise); }
.hg-akzent .vorteil p { color: inherit; }

.faq__eintrag summary { min-height: 4.75rem; }
.faq__frage { font-weight: 500; color: var(--farbe-dunkel); }
.hg-dunkel .faq__frage, .hg-akzent .faq__frage { color: inherit; }
.hg-dunkel :is(.faq, .faq__eintrag, .liste, .liste__zeile) { border-color: var(--h-linie-dunkel); }

.liste__zeile { min-height: 4.75rem; }
.liste__titel { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; color: var(--farbe-dunkel); }
.liste__text { font-size: 1rem; }
.liste__pfeil { color: var(--farbe-dunkel); font-size: 1.125rem; }
.hg-dunkel .liste__titel, .hg-akzent .liste__titel { color: inherit; }
.hg-dunkel .liste__text { color: var(--h-text-dunkel); }

.gruppe h2 { font-size: var(--groesse-h3); font-weight: 600; letter-spacing: -0.01em; }
.gruppe .kacheln { margin-top: var(--abstand-m); }

/* 6. Kontakt-Box: blaue Fläche, Text links, Knöpfe rechts ----------------- */

.sektion--cta { text-align: left; }
.sektion--cta > .container { max-width: calc(var(--breite-seite) + 2 * var(--abstand-rand)); }
.sektion--cta h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.75rem); line-height: 1.08; max-width: 44rem; }
.sektion--cta h2 + .vorspann { margin: 0; max-width: 34rem; font-size: var(--groesse-gross); line-height: 1.5; letter-spacing: 0; color: #e6f0fa; }
.sektion--cta .buttons { justify-content: flex-start; margin-top: var(--abstand-l); }
@media (min-width: 62rem) {
	.sektion--cta > .container { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 2rem; align-items: end; }
	.sektion--cta h2, .sektion--cta .vorspann { grid-column: 1; }
	.sektion--cta .buttons { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-start; margin-top: 0; }
}

/* 7. Fuß ------------------------------------------------------------------ */

.fuss { font-size: 1rem; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { color: #9cc8f0; }
.fuss__titel { margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 400; color: var(--h-ausklang-dunkel); }
.fuss__spalte:first-child .fuss__titel { margin-bottom: 1.75rem; font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.fuss__unten { border-color: var(--h-linie-dunkel); font-size: 0.875rem; }
@media (min-width: 56rem) { .fuss__spalten { grid-template-columns: 2fr 1fr 1fr; } }

/* 8. Menü (Mega Navigation) ----------------------------------------------- */

.mega-nav__bar-link { font-weight: 500; color: var(--farbe-dunkel); }
.mega-nav__logo-text { font-weight: 700; letter-spacing: -0.01em; color: var(--farbe-dunkel); }
.mega-nav__bar-cta { border-radius: 999px; font-weight: 600; }
.mega-nav__panel-label { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--farbe-dunkel); }
