/*
Theme Name:  Kelterdricker 2025
Description: Child-Theme für den CVPO Kelterdricker e.V. – schnell, barrierearm, ohne externe Dienste.
Template:    Divi
Version:     1.0.0
Text Domain: kelterdricker
*/

/* ---------- Schriften (lokal, SIL OFL) ---------- */
@font-face { font-family: "Abril Fatface"; src: url("fonts/abril-fatface-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Design-Tokens ---------- */
:root {
	--kd-orange: #fb8500;      /* Flächen, mit dunkler Schrift */
	--kd-orange-dark: #9a4a00; /* Text/Links auf Weiß, Kontrast 6,5:1 */
	--kd-black: #111111;
	--kd-ink: #262626;
	--kd-muted: #4d4d4d;
	--kd-cream: #fff6ea;
	--kd-line: #eadfce;
	--kd-radius: 18px;
	--kd-shadow: 0 10px 30px rgba(17, 17, 17, .08);
	--kd-font-head: "Abril Fatface", Georgia, "Times New Roman", serif;
	--kd-font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
body, body .et_pb_module, body input, body textarea, body select, body button {
	font-family: var(--kd-font-body);
}
body { color: var(--kd-ink); font-size: 17px; line-height: 1.75; font-weight: 400; background: #fff; }
#page-container, #main-content { background: #fff; }
h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3, .et_pb_module h4,
.entry-title, .et_pb_post .entry-title {
	font-family: var(--kd-font-head);
	font-weight: 400;
	color: var(--kd-black);
	line-height: 1.15;
	padding-bottom: .35em;
	letter-spacing: .005em;
}
h1, .et_pb_module h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2, .et_pb_module h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3, .et_pb_module h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
p { padding-bottom: 1em; }
a { color: var(--kd-orange-dark); text-underline-offset: .18em; }
.et_pb_text a, .entry-content a, .kd-prose a { text-decoration: underline; }
a:hover { color: var(--kd-black); }
strong { font-weight: 600; }
img { height: auto; }

/* Sichtbarer Tastaturfokus */
:focus { outline: none; }
:focus-visible,
.mobile_menu_bar:focus-visible {
	outline: 3px solid var(--kd-orange-dark) !important;
	outline-offset: 3px !important;
	border-radius: 4px;
}
.kd-dark :focus-visible, #main-footer :focus-visible { outline-color: #fff !important; }

/* Sprunglink */
.kd-skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 100000;
	background: var(--kd-black); color: #fff !important; padding: 12px 18px; border-radius: 8px;
	font-weight: 600; text-decoration: none;
}
.kd-skip-link:focus { top: 12px; }
.screen-reader-text, .kd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
#main-header { box-shadow: 0 1px 0 var(--kd-line) !important; background: rgba(255,255,255,.97); }
#main-header .container { width: min(1200px, 92%); max-width: none; }
.logo_container { display: flex; align-items: center; }
#logo { max-height: 64px !important; width: auto; }
.logo_container a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo_container a::after {
	content: "Kelterdricker e.V." / "";
	font-family: var(--kd-font-head); font-size: 22px; color: var(--kd-black); white-space: nowrap;
}
#top-menu li { padding-right: 6px; }
#top-menu a {
	font-weight: 500; font-size: 15px; color: var(--kd-ink) !important;
	padding: 8px 12px !important; border-radius: 999px; opacity: 1 !important;
	transition: background-color .2s, color .2s;
}
#top-menu a:hover { background: var(--kd-cream); }
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a { background: var(--kd-black); color: #fff !important; }
#top-menu li.kd-menu-cta > a { background: var(--kd-orange); color: var(--kd-black) !important; font-weight: 600; }
#top-menu li.kd-menu-cta > a:hover { background: #ff9a26; }
#et_top_search { display: none; }
.mobile_menu_bar { cursor: pointer; padding: 6px; border-radius: 8px; }
.mobile_menu_bar:before { color: var(--kd-black) !important; }
.et_mobile_menu { border-top-color: var(--kd-orange) !important; border-radius: 0 0 var(--kd-radius) var(--kd-radius); }
.et_mobile_menu li a { color: var(--kd-ink) !important; font-weight: 500; font-size: 17px; padding: 12px 5% !important; }
.et_mobile_menu li.current-menu-item > a { color: var(--kd-orange-dark) !important; }
@media (min-width: 981px) and (max-width: 1220px) {
	.logo_container a::after { content: none; }
	#top-menu a { padding: 8px 10px !important; font-size: 14.5px; }
}
@media (max-width: 980px) {
	.logo_container a::after { font-size: 19px; }
	#logo { max-height: 52px !important; }
}

/* ---------- Abschnitte ---------- */
.et_pb_section { padding: clamp(56px, 8vw, 110px) 0; }
.et_pb_row { width: min(1200px, 90%); max-width: none; padding: 0; }
.kd-cream { background: var(--kd-cream) !important; }
.kd-dark { background: var(--kd-black) !important; color: #e9e9e9; }
.kd-dark h1, .kd-dark h2, .kd-dark h3, .kd-dark p { color: #fff; }
.kd-dark a { color: #ffb15c; }
.kd-orange { background: var(--kd-orange) !important; color: var(--kd-black); }
.kd-orange h2, .kd-orange p, .kd-orange a { color: var(--kd-black); }
.kd-eyebrow {
	display: inline-block; font-family: var(--kd-font-body); font-size: 13px; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase; color: var(--kd-orange-dark); padding-bottom: 10px;
}
.kd-dark .kd-eyebrow { color: #ffb15c; }
.kd-orange .kd-eyebrow { color: var(--kd-black); }
.kd-lead { font-size: 1.15em; color: var(--kd-muted); max-width: 62ch; }
.kd-center { text-align: center; }
.kd-center .kd-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.kd-btn, .et_pb_button.kd-btn, body .et_pb_contact_submit {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--kd-font-body) !important; font-weight: 600 !important; font-size: 16px !important;
	line-height: 1.2 !important; padding: 14px 26px !important; border-radius: 999px !important;
	border: 2px solid var(--kd-orange) !important; background: var(--kd-orange) !important;
	color: var(--kd-black) !important; text-decoration: none !important;
	transition: transform .15s ease, background-color .2s;
}
.kd-btn:hover, body .et_pb_contact_submit:hover { background: #ff9a26 !important; transform: translateY(-2px); padding: 14px 26px !important; }
.kd-btn::after, body .et_pb_contact_submit::after { display: none !important; }
.kd-btn--ghost { background: transparent !important; color: #fff !important; border-color: #fff !important; }
.kd-btn--ghost:hover { background: #fff !important; color: var(--kd-black) !important; }
.kd-btn--dark { background: var(--kd-black) !important; border-color: var(--kd-black) !important; color: #fff !important; }
.kd-btn--dark:hover { background: #333 !important; }
.kd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* ---------- Hero (hell, Fasnacht) ---------- */
.kd-hero {
	position: relative; min-height: min(80vh, 720px); display: flex; align-items: center;
	background-color: #fff8ee;
	background-image: url("img/hero-fasnacht.svg"), linear-gradient(120deg, #fffaf3 0%, #fff1dc 55%, #ffe3bd 100%);
	background-size: cover, auto; background-position: right center, center; background-repeat: no-repeat;
	padding: 110px 0 90px !important; overflow: hidden;
}
.kd-hero .et_pb_row { width: min(1200px, 90%); }
.kd-hero h1 { color: var(--kd-black); font-size: clamp(2.8rem, 7.5vw, 5.6rem); max-width: 11ch; }
.kd-hero h1 .kd-accent { color: #c2410c; }
.kd-hero p { color: var(--kd-ink); font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 38ch; }
.kd-hero .kd-eyebrow { color: var(--kd-orange-dark); }
.kd-hero .kd-btn--ghost { color: var(--kd-black) !important; border-color: var(--kd-black) !important; background: rgba(255,255,255,.7) !important; }
.kd-hero .kd-btn--ghost:hover { background: var(--kd-black) !important; color: #fff !important; }
.kd-hero :focus-visible { outline-color: var(--kd-orange-dark) !important; }
@media (min-width: 981px) and (max-width: 1360px) {
	/* Kappe kleiner und weiter rechts, damit sie den Text nicht verdeckt */
	.kd-hero { background-size: 78vw auto, auto; background-position: right -20px center, center; }
}
@media (max-width: 980px) {
	/* Text liegt über der Illustration: Fläche dahinter aufhellen */
	.kd-hero {
		background-image: linear-gradient(180deg, rgba(255,248,238,.92) 0%, rgba(255,248,238,.78) 100%), url("img/hero-fasnacht.svg"), linear-gradient(120deg, #fffaf3 0%, #ffe3bd 100%);
		background-size: auto, cover, auto; background-position: center, 70% center, center;
		min-height: 0; padding: 70px 0 64px !important;
	}
}
.kd-page-hero {
	background-color: #fff8ee !important;
	background-image: linear-gradient(90deg, rgba(255,248,238,1) 0%, rgba(255,248,238,.96) 45%, rgba(255,248,238,.55) 100%), url("img/hero-fasnacht.svg"), linear-gradient(120deg, #fffaf3 0%, #ffe3bd 100%) !important;
	background-size: auto, cover, auto !important; background-position: center, right 30%, center !important; background-repeat: no-repeat !important;
	border-bottom: 1px solid var(--kd-line);
	padding: 64px 0 52px !important;
}
.kd-page-hero h1 { color: var(--kd-black); font-size: clamp(2.2rem, 5.5vw, 4rem); padding-bottom: 0; }
.kd-page-hero p { color: var(--kd-ink); max-width: 60ch; padding: 12px 0 0; }
.kd-breadcrumb { font-size: 14px; color: var(--kd-muted) !important; padding-bottom: 6px !important; }
.kd-breadcrumb a { color: var(--kd-orange-dark) !important; }

/* ---------- Karten ---------- */
.kd-grid { display: grid; gap: clamp(18px, 2.5vw, 30px); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; padding: 0 !important; margin: 0; }
.kd-grid > li, .et_pb_text ul.kd-grid > li, .et_pb_text ul.kd-timeline > li { list-style: none; margin: 0; }
.kd-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kd-card {
	position: relative; background: #fff; border-radius: var(--kd-radius); overflow: hidden;
	box-shadow: var(--kd-shadow); display: flex; flex-direction: column; height: 100%;
	transition: transform .2s ease, box-shadow .2s ease;
}
.kd-card:hover, .kd-card:focus-within { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17,17,17,.14); }
.kd-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kd-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kd-card__meta { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--kd-orange-dark); padding: 0; }
.kd-card h3, .kd-card h2, .kd-card__title { font-size: 1.4rem !important; padding: 0; }
.kd-card p { color: var(--kd-muted); font-size: 15.5px; padding: 0; }
.kd-card a { color: var(--kd-black); text-decoration: none !important; }
.kd-card a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.kd-dark .kd-card h3, .kd-dark .kd-card a { color: var(--kd-black); }
.kd-dark .kd-card p { color: var(--kd-muted); }

/* Bild mit Rahmen */
.kd-photo img { border-radius: var(--kd-radius); box-shadow: var(--kd-shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kd-photo figcaption { font-size: 14px; color: var(--kd-muted); padding-top: 10px; }

/* Fließtext-Seiten */
.kd-prose { max-width: 72ch; }
.kd-prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); padding-top: .8em; }
.kd-prose h3 { font-size: 1.35rem; padding-top: .6em; }
.kd-prose ul, .kd-prose ol { padding: 0 0 1em 1.3em; }
.kd-prose li { padding-bottom: .35em; }
.kd-box { background: var(--kd-cream); border-left: 5px solid var(--kd-orange); border-radius: 12px; padding: 22px 24px 8px; margin: 1.2em 0 1.6em; }

/* Zeitleiste Vereinsgeschichte */
.kd-timeline { list-style: none; padding: 0 !important; margin: 0; border-left: 3px solid var(--kd-orange); }
.kd-timeline li { position: relative; padding: 0 0 26px 28px !important; }
.kd-timeline li::before { content: ""; position: absolute; left: -10px; top: 7px; width: 17px; height: 17px; border-radius: 50%; background: var(--kd-orange); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--kd-orange); }
.kd-timeline .kd-year { font-family: var(--kd-font-head); font-size: 1.6rem; color: var(--kd-black); display: block; line-height: 1.2; }

/* ---------- Galerie ---------- */
.kd-gallery .et_pb_gallery_items { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(140px, 42vw), 1fr)); gap: clamp(8px, 1.5vw, 14px); }
@media (min-width: 768px) { .kd-gallery .et_pb_gallery_items { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.kd-gallery .et_pb_gallery_item { width: auto !important; margin: 0 !important; clear: none !important; float: none !important; }
.kd-gallery .et_pb_gallery_image img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.kd-gallery .et_overlay { border-radius: 12px; background: rgba(17,17,17,.35); border: 0; }
.kd-gallery .et_overlay:before { color: #fff !important; }
.kd-gallery .et_pb_gallery_pagination { border-top: 0; margin-top: 26px; }
.kd-gallery .et_pb_gallery_pagination a,
.kd-gallery .et_pb_gallery_pagination li a { display: inline-block; min-width: 42px; padding: 8px 12px; border-radius: 999px; color: var(--kd-ink) !important; text-decoration: underline; }
.kd-gallery .et_pb_gallery_pagination a.active { background: var(--kd-black); color: #fff; }
.mfp-bg { opacity: .92 !important; background: #0b0b0b; }
/* Lightbox-Pfeile ohne Icon-Schrift (Divis Teil-Schrift enthält sie nicht) */
.mfp-arrow { opacity: 1 !important; width: 64px !important; height: 64px !important; margin-top: -32px !important; }
.mfp-arrow::before { display: none !important; }
.mfp-arrow::after {
	content: "" !important; font-size: 0 !important; position: absolute !important; top: 50% !important; left: 50% !important;
	width: 26px !important; height: 26px !important; margin: 0 !important;
	border: solid #fff !important; border-width: 0 5px 5px 0 !important; border-radius: 3px;
	background: none !important; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
}
.mfp-arrow-left::after { transform: translate(-30%, -50%) rotate(135deg) !important; }
.mfp-arrow-right::after { transform: translate(-70%, -50%) rotate(-45deg) !important; }
.mfp-arrow:hover::after, .mfp-arrow:focus-visible::after { border-color: var(--kd-orange) !important; }
.mfp-close { font-family: var(--kd-font-body) !important; font-size: 40px !important; opacity: 1 !important; }

/* ---------- Video (Zwei-Klick) ---------- */
.kd-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--kd-radius); overflow: hidden; background: #000; box-shadow: var(--kd-shadow); }
.kd-video img, .kd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.kd-video__btn {
	position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; text-align: left;
	background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.05) 100%);
	display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; font: inherit;
}
.kd-video__play {
	position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%);
	width: 64px; height: 64px; border-radius: 50%; background: var(--kd-orange);
	display: grid; place-items: center; transition: transform .15s;
}
.kd-video__play svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--kd-black); }
.kd-video__btn:hover .kd-video__play, .kd-video__btn:focus-visible .kd-video__play { transform: translate(-50%, -50%) scale(1.08); }
.kd-video__title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.kd-videos .kd-grid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.kd-video__note { font-size: 12.5px; line-height: 1.45; opacity: .92; margin-top: 4px; }
.kd-video-item h3 { font-family: var(--kd-font-body); font-weight: 600; font-size: 1.05rem; padding: 12px 0 0; }

/* ---------- Blog / Aktuelles ---------- */
.kd-blog .et_pb_post { border-radius: var(--kd-radius); overflow: hidden; box-shadow: var(--kd-shadow); border: 0 !important; background: #fff; padding: 0 0 22px !important; }
.kd-blog .et_pb_post .entry-featured-image-url { margin-bottom: 18px; }
.kd-blog .et_pb_post img { aspect-ratio: 4 / 3; object-fit: cover; }
.kd-blog .et_pb_post .entry-title, .kd-blog .et_pb_post .post-meta, .kd-blog .et_pb_post .post-content { padding-left: 22px; padding-right: 22px; }
.kd-blog .et_pb_post .entry-title, .kd-blog .et_pb_post h2.entry-title { font-size: 1.35rem !important; }
.kd-blog .et_pb_post .entry-title a { color: var(--kd-black); text-decoration: none; }
.kd-blog .post-meta { color: var(--kd-orange-dark) !important; font-weight: 600; font-size: 13px !important; text-transform: uppercase; letter-spacing: .06em; }
.kd-blog .post-content p { color: var(--kd-muted); font-size: 15.5px; }
.kd-blog .more-link { font-weight: 600; color: var(--kd-orange-dark); text-decoration: underline; }
.single-post #main-content .container { width: min(820px, 90%); padding-top: 60px; }
.single-post #main-content .container::before, .single-post #sidebar { display: none; }
.single-post #left-area { width: 100%; padding: 0 !important; float: none; }
.single-post .et_post_meta_wrapper img { border-radius: var(--kd-radius); }
.single-post .post-meta { color: var(--kd-orange-dark); font-weight: 600; }

/* ---------- Formular ---------- */
.et_pb_contact_form_container { background: #fff; border-radius: var(--kd-radius); box-shadow: var(--kd-shadow); padding: clamp(22px, 4vw, 42px); }
.et_pb_contact_form_container .et_pb_contact_main_title { font-size: 1.8rem; }
.et_pb_contact p input, .et_pb_contact p textarea, .et_pb_contact_captcha {
	background: #fff !important; border: 2px solid #8a8a8a !important; border-radius: 12px !important;
	color: var(--kd-black) !important; font-size: 16px !important; padding: 14px 16px !important;
}
.et_pb_contact p input:focus, .et_pb_contact p textarea:focus { border-color: var(--kd-orange-dark) !important; }
.et_pb_contact ::placeholder { color: #5c5c5c; opacity: 1; }
.et_pb_contact_form_label { display: block !important; position: static !important; width: auto !important; height: auto !important; clip: auto !important; font-weight: 600; color: var(--kd-ink); padding-bottom: 6px; }
.et-pb-contact-message { font-weight: 600; color: var(--kd-black); }
.et_contact_error { border-color: #b00020 !important; }
.et_pb_contact_right p { color: var(--kd-ink); }
.kd-form-hint { font-size: 14px; color: var(--kd-muted); padding-top: 14px; }

/* ---------- Footer ---------- */
#main-footer { background: var(--kd-black); color: #d9d9d9; }
.kd-footer { width: min(1200px, 90%); margin: 0 auto; padding: 64px 0 28px; display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr; }
.kd-footer h2 { color: #fff; font-size: 1.35rem; padding-bottom: 12px; }
.kd-footer p { color: #d9d9d9; font-size: 15px; padding-bottom: .6em; }
.kd-footer ul { list-style: none; padding: 0; margin: 0; }
.kd-footer li { padding: 3px 0; }
.kd-footer a { color: #ffb15c; text-decoration: none; }
.kd-footer a:hover { color: #fff; text-decoration: underline; }
.kd-footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.kd-footer__brand img { width: 64px; height: auto; flex: 0 0 auto; }
.kd-footer__bottom { border-top: 1px solid #2c2c2c; }
.kd-footer__bottom p { width: min(1200px, 90%); margin: 0 auto; padding: 18px 0; font-size: 14px; color: #bdbdbd; }
@media (max-width: 860px) { .kd-footer { grid-template-columns: 1fr; } }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.kd-card:hover, .kd-btn:hover { transform: none; }
}
