/* =======================================================================
   Kleiner Chor Husum – Stylesheet
   Farben (CD): Schwarz Hintergrund, #09098b Überschriften, #ebadc5 Akzent
   (dezent), #05a59e Zweitakzent/Links
   Hinweis Kontrast: #09098b auf reinem Schwarz liest sich sehr dunkel.
   Für Fließ-Überschriften wird daher ein aufgehellter Farbton derselben
   Blaufamilie genutzt (--heading-tint); der Original-Ton (--heading) bleibt
   als Marke auf Buttons, Badges und großflächigen Elementen führend.
   ======================================================================= */

@font-face {
	font-family: 'Addington CF';
	src: url('../fonts/Addington-CF-Regular-Italic.otf') format('opentype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'Graphik';
	src: url('../fonts/Graphik-400-Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Joyride';
	src: url('../fonts/Joyride-Standard.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #000000;
	/* Oberflächen tragen einen dezenten Hauch von Kirstens eigener CD-Farbe
	   Mitternacht (#0B1622), damit sich die beiden Seiten leise verwandt anfühlen. */
	--surface: #070b10;
	--surface-2: #0d141b;

	--heading: #09098b;
	--heading-tint: #9797d6;
	--accent-pink: #ebadc5;
	--accent-teal: #05a59e;

	/* Kirstens eigene Petrol-Farbe (#1F5C5A) - jetzt bewusst prominent für
	   Titel-Typografie eingesetzt, nicht mehr nur als dezenter Unterton. */
	--color-petrol: #1F5C5A;
	/* "Lachsfarbe" = das bereits definierte CD-Rosé #ebadc5. */
	--color-lachs: #ebadc5;

	/* Fließtext in Kirstens Nude-Ton (#E7D9C9) statt neutralem Weiß. */
	--text: #e7d9c9;
	--text-muted: #b9b7ae;
	/* Rahmen/Trennlinien mit einem Hauch von Kirstens Petrol (#1F5C5A). */
	--border: #222b30;

	--font-display: 'Addington CF', 'Times New Roman', serif;
	--font-script: 'Joyride', cursive;
	--font-body: 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--container: 1180px;
	--radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-pink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--accent-teal);
	outline-offset: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	color: var(--heading-tint);
	line-height: 1.15;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

p { margin: 0 0 1.2em; }
.kch-lead { font-size: 1.2rem; color: var(--text-muted); }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

.kch-skip-link {
	position: absolute; left: -999px; top: 0; z-index: 1000;
	background: var(--accent-teal); color: #000; padding: 0.75em 1.25em;
}
.kch-skip-link:focus { left: 1em; top: 1em; }

.kch-container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* -----------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------- */
.kch-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(0,0,0,0.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--border);
}
.kch-header__inner {
	max-width: var(--container); margin: 0 auto; padding: 0.75rem 1.5rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.kch-header__brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text); }
.kch-header__logo { height: 42px; width: auto; }
.kch-header__title { font-family: var(--font-script); font-size: 1.3rem; color: var(--accent-pink); }

.kch-nav__list {
	list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0;
	font-size: 0.95rem; letter-spacing: 0.02em;
}
.kch-nav__list a { color: var(--text); text-decoration: none; }
.kch-nav__list a:hover { color: var(--accent-teal); }

.kch-nav__toggle {
	display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.kch-nav__toggle-bar { width: 24px; height: 2px; background: var(--text); }

@media (max-width: 780px) {
	.kch-nav__toggle { display: flex; }
	.kch-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
	.kch-nav.is-open { display: block; }
	.kch-nav__list { flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1.5rem; }
	.kch-nav__list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
}

/* -----------------------------------------------------------------------
   Sections / Layout
   -------------------------------------------------------------------- */
.kch-section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.kch-section--alt { background: var(--surface); }
.kch-section__head { max-width: 700px; margin: 0 0 2.5rem; }

/* Akzente (Kicker-Zeile über Titeln, "a-cappella" im Hero): Addington
   kursiv in Lachsfarbe. */
.kch-kicker,
.kch-accent-italic {
	font-family: var(--font-display);
	font-style: italic;
	color: var(--color-lachs);
	font-size: 1.15rem;
	margin: 0 0 0.4em;
}

/* Titel-Typografie: Joyride in Petrol, Zeichen nur als Rahmen (Outline).
   Fallback fuer Browser ohne text-stroke-Unterstuetzung: gefuellter Petrol-Text. */
.kch-title-outline {
	font-family: var(--font-script);
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--color-petrol);
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: 1.5px var(--color-petrol);
}

.kch-grid { display: grid; gap: 2rem; }
.kch-grid--2 { grid-template-columns: repeat(2, 1fr); }
.kch-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .kch-grid--2, .kch-grid--3 { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------
   Farbige Felder (Onepager): jede Sektion ein eigener Farbblock mit Bild.
   Textfarben werden pro Feld ueber lokale Custom Properties umdefiniert,
   damit Fliesstext/Kicker/Ueberschriften automatisch lesbar bleiben.
   -------------------------------------------------------------------- */
.kch-field { padding: clamp(3.5rem, 8vw, 7rem) 0; }

.kch-field--black { background: var(--bg); }
.kch-field--navy  { background: var(--heading); --text: #f4f2ec; --text-muted: #c9c6de; }
.kch-field--teal  { background: var(--accent-teal); --text: #04201e; --text-muted: #0f3733; }
.kch-field--lachs { background: var(--color-lachs); --text: #3a1526; --text-muted: #6b3550; }

.kch-field { color: var(--text); }

/* Auf mittelhellen/hellen Feldern braucht es dunkle statt helle Ueberschriften. */
.kch-field--teal h1, .kch-field--teal h2, .kch-field--teal h3,
.kch-field--lachs h1, .kch-field--lachs h2, .kch-field--lachs h3 {
	color: var(--heading);
}
/* Auf dem Lachs-Feld selbst muss der Lachs-Kicker/Akzent auf Navy wechseln,
   sonst waere er auf gleichfarbigem Grund unsichtbar. */
.kch-field--lachs .kch-kicker,
.kch-field--lachs .kch-accent-italic {
	color: var(--heading);
}

.kch-field__inner {
	display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}
.kch-field__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 20%; }
.kch-field--reverse .kch-field__media { order: 2; }
.kch-field--reverse .kch-field__text { order: 1; }
@media (max-width: 860px) {
	.kch-field__inner { grid-template-columns: 1fr; }
	.kch-field--reverse .kch-field__media,
	.kch-field--reverse .kch-field__text { order: initial; }
}

/* Buttons auf farbigen Feldern brauchen eigenen Kontrast statt der
   Standard-Navy-Buttons (die auf Navy-/Teal-Grund untergehen wuerden). */
.kch-field--navy .kch-btn, .kch-field--teal .kch-btn {
	background: #fff; color: var(--bg); border-color: #fff;
}
.kch-field--navy .kch-btn:hover, .kch-field--teal .kch-btn:hover {
	background: var(--color-lachs); border-color: var(--color-lachs); color: #2b0f1c;
}
.kch-field--lachs .kch-btn {
	background: var(--heading); color: #fff; border-color: var(--heading);
}
.kch-field--lachs .kch-btn:hover {
	background: var(--bg); border-color: var(--bg); color: #fff;
}
.kch-field--navy .kch-btn--ghost, .kch-field--teal .kch-btn--ghost, .kch-field--lachs .kch-btn--ghost {
	background: transparent; color: inherit; border-color: currentColor;
}

/* -----------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.kch-hero {
	position: relative;
	min-height: 78vh;
	display: flex; align-items: flex-end;
	background-color: var(--bg);
	background-size: cover; background-position: center;
	padding: 3rem 0;
}
.kch-hero::before {
	content: ""; position: absolute; inset: 0;
	/* Verlauf mit einem Hauch Mitternachtsblau statt reinem Schwarz. */
	background: linear-gradient(180deg, rgba(11,22,34,0.15) 0%, rgba(8,15,24,0.6) 55%, #000 100%);
}
.kch-hero__inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.kch-hero h1 { margin-bottom: 0.25em; font-size: clamp(3rem, 8vw, 6.5rem); }
.kch-hero__claim { font-size: 1.4rem; max-width: 42em; }
.kch-hero__since { font-family: var(--font-script); font-style: normal; font-size: 1.1rem; }
.kch-hero__since-fill { color: var(--color-petrol); }
.kch-hero__since-rest { color: var(--color-lachs); }

/* -----------------------------------------------------------------------
   Buttons / CTAs
   -------------------------------------------------------------------- */
.kch-btn {
	display: inline-flex; align-items: center; gap: 0.5em;
	background: var(--heading); color: #fff; text-decoration: none;
	padding: 0.85em 1.6em; border-radius: var(--radius);
	font-size: 0.95rem; letter-spacing: 0.03em;
	border: 1px solid var(--heading);
	transition: background-color .15s ease, color .15s ease;
}
.kch-btn:hover { background: var(--accent-teal); border-color: var(--accent-teal); color: #000; }
.kch-btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.kch-btn--ghost:hover { border-color: var(--accent-teal); color: var(--accent-teal); background: transparent; }

/* -----------------------------------------------------------------------
   Karten (Teaser: Der Chor / Chorleitung / Projekte)
   -------------------------------------------------------------------- */
.kch-card {
	background: var(--surface); border: 1px solid var(--border);
	display: flex; flex-direction: column;
}
.kch-card__media { aspect-ratio: 4/3; overflow: hidden; }
.kch-card__media img { width: 100%; height: 100%; object-fit: cover; }
.kch-card__body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.kch-card__body h3 { margin-bottom: 0.2em; }
.kch-card__body p { color: var(--text-muted); flex: 1; }

/* -----------------------------------------------------------------------
   Termine
   -------------------------------------------------------------------- */
.kch-termin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.kch-termin {
	display: grid; grid-template-columns: 160px 1fr auto; gap: 1.5rem; align-items: center;
	padding: 1.5rem 0; border-bottom: 1px solid var(--border);
}
.kch-termin__date { font-family: var(--font-display); font-style: italic; color: var(--heading-tint); font-size: 1.3rem; }
.kch-termin__place { color: var(--text-muted); }
@media (max-width: 640px) {
	.kch-termin { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* -----------------------------------------------------------------------
   Projekte-Archiv
   -------------------------------------------------------------------- */
.kch-archiv-jahr { margin: 0 0 0.75rem; border-bottom: 1px solid var(--accent-teal); padding-bottom: 0.25rem; display: inline-block; }
.kch-archiv-gruppe { margin-bottom: 3rem; }
.kch-archiv-liste { display: flex; flex-direction: column; gap: 1.5rem; }

/* Bild links, Text rechts (Desktop) fuer die Projekte-Archiv-Reihen. */
.kch-card--horizontal { flex-direction: row; align-items: stretch; }
.kch-card--horizontal .kch-card__media { flex: 0 0 38%; aspect-ratio: auto; }
.kch-card--horizontal .kch-card__body { justify-content: center; }
.kch-card--horizontal .kch-card__body p {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden; flex: 0 1 auto;
}
@media (max-width: 700px) {
	.kch-card--horizontal { flex-direction: column; }
	.kch-card--horizontal .kch-card__media { flex: none; width: 100%; aspect-ratio: 4/3; }
}

/* -----------------------------------------------------------------------
   Verbands-/Vereinslogos
   -------------------------------------------------------------------- */
.kch-logos { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.kch-logos__item img { max-height: 56px; width: auto; filter: grayscale(0%); background: #fff; padding: 6px 10px; }
.kch-logos__note {
	list-style: none; margin: 0.9rem 0 0; padding: 0;
	display: flex; flex-direction: column; gap: 0.3rem;
	font-size: 0.85rem; color: var(--text-muted);
}
.kch-logos__note a { color: var(--text-muted); text-decoration-color: var(--border); }
.kch-logos__note a:hover { color: var(--accent-teal); }

/* -----------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.kch-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3.5rem 0 1.5rem; }
.kch-footer__inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.kch-footer__brand { font-family: var(--font-script); color: var(--accent-pink); font-size: 1.3rem; }
.kch-social { list-style: none; display: flex; gap: 0.9rem; margin: 1rem 0 0; padding: 0; }
.kch-social__item {
	display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	color: var(--text-muted); border: 1px solid var(--border);
	transition: color .15s ease, border-color .15s ease;
}
.kch-social__item:hover { color: var(--accent-teal); border-color: var(--accent-teal); }
.kch-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.kch-footer__list a { color: var(--text-muted); text-decoration: none; }
.kch-footer__list a:hover { color: var(--accent-teal); }
.kch-footer__copy { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 2.5rem 0 0; }
@media (max-width: 780px) { .kch-footer__inner { grid-template-columns: 1fr; text-align: center; } .kch-logos { justify-content: center; } }

/* -----------------------------------------------------------------------
   Redaktioneller Inhalt (the_content) auf Unterseiten
   -------------------------------------------------------------------- */
.kch-content { max-width: 68ch; }
.kch-content ul, .kch-content ol { padding-left: 1.3em; color: var(--text-muted); }
.kch-content li { margin-bottom: 0.4em; }
.kch-content blockquote {
	margin: 2em 0; padding-left: 1.5em; border-left: 2px solid var(--accent-pink);
	font-family: var(--font-display); font-style: italic; color: var(--heading-tint); font-size: 1.2rem;
}
.kch-content figcaption { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5em; }

/* -----------------------------------------------------------------------
   Legal / Fließtext-Seiten (Impressum, Datenschutz, generische Seiten)
   -------------------------------------------------------------------- */
.kch-legal { max-width: 780px; margin: 0 auto; padding: 6rem 1.5rem 5rem; }
.kch-legal h2 { color: var(--heading-tint); margin-top: 2em; }
.kch-legal a { word-break: break-word; }
.kch-legal__todo {
	background: rgba(235,173,197,0.1); border: 1px dashed var(--accent-pink);
	color: var(--accent-pink); padding: 1rem 1.25rem; font-size: 0.9rem; margin: 1.5rem 0;
}

/* -----------------------------------------------------------------------
   404
   -------------------------------------------------------------------- */
.kch-404 { text-align: center; padding: 8rem 1.5rem; }
