/* ==========================================================================
   KKW MV – Basis-Styles
   Nachbau des bisherigen Divi-Layouts ohne Page Builder.

   Layout-Bausteine (verhalten sich exakt wie Divi Section / Row / Column / Module):
     .sec          = Sektion (volle Breite)          .sec--bg = dunkler Hintergrund mit Textur
     .row          = Zeile (80 %, max. 1080px)        .g2 = schmaler Spaltenabstand, .eq = gleich hohe Spalten
     .col.c-1-2 …  = Spalte (stapelt sich ≤ 980px)
     .mod          = Modul (Abstand nach unten wie Divi)
     .txt          = Textmodul   .btn-wrap / .btn = Button
   Breakpoints wie Divi: ≤ 767px Handy, ≤ 980px Tablet, ≥ 981px Desktop, ≥ 1350px groß.

   Farben:   Anthrazit #1E1E1C · Lime #CADF00 · Lila #AF39BE (Buttons) / #A447BD (Formular)
   Schriften: Cubano (Überschriften) · Oscine Regular / Bold / xBold
   ========================================================================== */

/* ---------- Schriften (Namen wie im alten Divi-Setup, damit alle Styles 1:1 greifen) ---------- */
@font-face { font-family: "Cubano"; font-display: swap; src: url("../fonts/Cubano.woff2") format("woff2"); }
@font-face { font-family: "Oscine_Regular"; font-display: swap; src: url("../fonts/Oscine-Regular.woff2") format("woff2"); }
@font-face { font-family: "Oscine_Bold"; font-display: swap; src: url("../fonts/Oscine-Bold.woff2") format("woff2"); }
@font-face { font-family: "Oscine_xBold"; font-display: swap; src: url("../fonts/Oscine-XBold.woff2") format("woff2"); }

:root {
	--anthrazit: #1e1e1c;
	--lime: #cadf00;
	--lila: #af39be;
	--weiss: #fff;
	--f-head: "Cubano", Helvetica, Arial, Lucida, sans-serif;
	--f-reg: "Oscine_Regular", Helvetica, Arial, Lucida, sans-serif;
	--f-bold: "Oscine_Bold", Helvetica, Arial, Lucida, sans-serif;
	--f-xbold: "Oscine_xBold", Helvetica, Arial, Lucida, sans-serif;
}

/* ---------- Reset / Grundtypo (Divi-Werte) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7em;
	color: #666;
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
html, body, #page-container { overflow-x: hidden; }
#page-container { position: relative; }
img { max-width: 100%; height: auto; }
a { color: #2ea3f2; text-decoration: none; }
p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding-bottom: 10px; line-height: 1em; font-weight: 500; color: #333; }
h1 { font-size: 30px; } h2 { font-size: 26px; } h3 { font-size: 22px; } h4 { font-size: 18px; } h5 { font-size: 16px; } h6 { font-size: 14px; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }
ul, ol { margin: 0; }
table { border-collapse: collapse; }
button, input { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Sektion ---------- */
.sec {
	position: relative;
	padding: 50px 0;
	background-color: #fff;
	background-position: 50%;
	background-size: cover;
}
@media (min-width: 981px)  { .sec { padding: 4% 0; } }
@media (min-width: 1350px) { .sec { padding: 54px 0; } }

/* Dunkler Hintergrund mit Sprenkel-Textur (Kachel, Originalgröße) */
.sec--bg {
	background-image: url("../img/back_bunt.webp");
	background-size: initial;
	background-repeat: repeat;
}

/* ---------- Zeile ---------- */
.row {
	position: relative;
	width: 80%;
	max-width: 1080px;
	margin: auto;
	padding: 30px 0;
}
.row::after { content: ""; display: block; clear: both; visibility: hidden; height: 0; line-height: 0; }
@media (min-width: 981px)  { .row { padding: 2% 0; } }
@media (min-width: 1350px) { .row { padding: 27px 0; } }

/* ---------- Spalten (Floats wie Divi, damit Abstände/Ränder identisch rechnen) ---------- */
.col {
	position: relative;
	z-index: 2;
	min-height: 1px;
	background-position: 50%;
	background-size: cover;
	float: left;
	width: 100%;
	margin-bottom: 30px;
}
.col:last-child { margin-bottom: 0; }

@media (min-width: 981px) {
	.col { margin-bottom: 0; margin-right: 5.5%; }
	.col:last-child { margin-right: 0; }
	.c-4-4 { width: 100%; }
	.c-1-2 { width: 47.25%; }
	.c-1-3 { width: 29.6667%; }
	.c-2-5 { width: 36.7%; }
	.c-3-5 { width: 57.8%; }
	.g2 > .col { margin-right: 3%; }
	.g2 > .col:last-child { margin-right: 0; }
	.g2 > .c-1-3 { width: 31.3333%; }
	.g2 > .c-1-2 { width: 48.5%; }

	/* Gleich hohe Spalten */
	.row.eq { display: flex; }
	.row.eq > .col { float: none; }
}

/* ---------- Module ---------- */
.mod { margin-bottom: 30px; }
.mod:last-child { margin-bottom: 0; }
@media (min-width: 981px) {
	.c-4-4 > .mod { margin-bottom: 2.75%; }
	.c-1-2 > .mod { margin-bottom: 5.82%; }
	.c-1-3 > .mod { margin-bottom: 9.27%; }
	.c-2-5 > .mod { margin-bottom: 7.493%; }
	.c-3-5 > .mod { margin-bottom: 4.758%; }
	.g2 > .c-4-4 > .mod { margin-bottom: 1.5%; }
	.g2 > .c-1-3 > .mod { margin-bottom: 4.787%; }
	.col > .mod:last-child { margin-bottom: 0; }
}

.txt { word-wrap: break-word; position: relative; }
.txt ul, .txt ol { padding-bottom: 1em; }

/* ---------- Buttons (Divi-Buttons: 3px Rand, rund, 18px) ---------- */
.btn-wrap { text-align: center; }
.btn-wrap--left { text-align: left; }
.btn,
.wp-block-button__link {
	position: relative;
	display: inline-block;
	font-family: var(--f-xbold);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.7em;
	padding: 4px 1em;
	border: 3px solid var(--anthrazit);
	border-radius: 100px;
	background-color: var(--lila);
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: all 300ms ease 0ms;
	cursor: pointer;
}
.btn--full { width: 100%; }
.btn--lila  { background-color: var(--lila); color: #fff; }
.btn--weiss { background-color: #fff; color: var(--anthrazit); }
.btn--lime  { background-color: var(--lime); color: var(--anthrazit); }

/* Button-Blöcke aus dem Editor (Stile "Lila", "Weiß", "Grün") */
.wp-block-buttons { display: block; }
.wp-block-button { display: block; margin: 0; }
.wp-block-button .wp-block-button__link { display: block; width: 100%; }
.wp-block-button.is-style-kkw-lila .wp-block-button__link  { background-color: var(--lila); color: #fff; }
.wp-block-button.is-style-kkw-weiss .wp-block-button__link { background-color: #fff; color: var(--anthrazit); }
.wp-block-button.is-style-kkw-lime .wp-block-button__link  { background-color: var(--lime); color: var(--anthrazit); }

/* Sichtbarkeit je Gerät (wie Divi "Deaktivieren auf …") */
.hide-phone, .show-phone { display: block; }
@media (max-width: 767px) { .hide-phone { display: none !important; } }
@media (min-width: 768px) { .show-phone { display: none !important; } }

/* ---------- Text-Hilfsklassen (aus kkw.css) ---------- */
.boldy { font-family: var(--f-xbold) !important; font-weight: 700; margin: 0; padding: 0; color: var(--anthrazit) !important; }
.boldygreen { font-family: var(--f-xbold) !important; font-weight: 700; margin: 0; padding: 0; color: var(--lime) !important; }
.adrezze { padding-bottom: 10px !important; }


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer.sec { padding-top: 22px; margin-top: 0; background-color: #fff; }
.site-footer .row { width: 88%; }
.site-footer__text { font-family: var(--f-bold); font-size: 18px; height: 36px; }
.site-footer__logos { margin-top: 40px !important; }
.site-footer__partner { margin-top: 40px !important; text-align: left; margin-left: 0; line-height: 0; }
.site-footer__partner img { width: auto; }
.site-footer__row2 { margin-top: 12px !important; }
@media (min-width: 981px) {
	.site-footer__text:not(.site-footer__text--support) { width: 500px; }
	.site-footer__partner { width: 445px; }
}
@media (max-width: 980px) {
	.site-footer__text:not(.site-footer__text--support) { width: 500px; }
	.site-footer__partner { width: 445px; }
}
@media (max-width: 767px) {
	.site-footer__text:not(.site-footer__text--support) { height: auto; width: 100%; }
	.site-footer__logos { margin-top: 12px !important; margin-bottom: 42px !important; }
	.site-footer__text--support { height: 12px; }
	.site-footer__partner { width: 100%; }
}

/* Zwei Logos nebeneinander */
.kkw-bilder { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.kkw-bilder img { display: block; height: 98px !important; width: auto !important; max-width: none !important; }

/* Footer-Logos: Ministerium (MV) und 13° als SVG nebeneinander */
.kkw-logos { display: flex; align-items: flex-start !important; gap: 50px; flex-wrap: wrap; }
.kkw-logos img { display: block; height: 98px !important; width: auto !important; max-width: none !important; }
.kkw-logos img[src*="mv-wimi"] { height: 120px !important; }
.kkw-logos img[src*="dreizehn"] { height: 88px !important; }

/* Footer-Links */
.kkw-footer-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; border-top: 3px solid var(--anthrazit); padding-top: 20px; }
.kkw-footer-links a { font-family: var(--f-xbold) !important; font-weight: 700 !important; font-size: 18px; color: var(--anthrazit) !important; text-decoration: none !important; white-space: nowrap; margin-right: 16px; transition: opacity .2s; }
.kkw-footer-links a:last-child { margin-right: 0; }
.kkw-footer-links a:hover { opacity: .6; }
@media (max-width: 600px) {
	.kkw-footer-links { justify-content: flex-start; padding-top: 14px; }
	.kkw-footer-links a { width: 50%; margin: 0 0 10px; font-size: 14px; box-sizing: border-box; padding-right: 8px; }
	.kkw-footer-links a:nth-child(even) { text-align: right; padding-right: 0; padding-left: 8px; }
}


/* ==========================================================================
   Animierte Grafiken (unverändert aus kkw.css)
   ========================================================================== */
.kkw-flacker { position: relative; display: block; width: 100%; }
.kkw-flacker img { display: block; width: 100% !important; height: auto !important; max-width: none !important; }
.kkw-flacker-outline { position: absolute; top: 0; left: 0; opacity: 0; animation: kkw-flacker-outline 7.5s infinite; }
.kkw-flacker-bunt { animation: kkw-flacker-bunt 7.5s infinite; }
@keyframes kkw-flacker-outline { 0%, 39.9% { opacity: 0 } 40%, 41.9% { opacity: 1 } 42%, 43.9% { opacity: 0 } 44%, 83.9% { opacity: 1 } 84%, 85.9% { opacity: 0 } 86%, 87.9% { opacity: 1 } 88%, 100% { opacity: 0 } }
@keyframes kkw-flacker-bunt { 0%, 39.9% { opacity: 1 } 40%, 41.9% { opacity: 0 } 42%, 43.9% { opacity: 1 } 44%, 83.9% { opacity: 0 } 84%, 85.9% { opacity: 1 } 86%, 87.9% { opacity: 0 } 88%, 100% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .kkw-flacker-outline { animation: none; opacity: 0 } .kkw-flacker-bunt { animation: none; opacity: 1 } }

.kkw-mund { position: relative; display: block; width: 100%; }
.kkw-mund img { display: block; width: 100% !important; height: auto !important; max-width: none !important; }
.kkw-mund-zu { position: absolute; top: 0; left: 0; opacity: 0; animation: kkw-mund-zu 11.5s infinite; }
.kkw-mund-offen { animation: kkw-mund-offen 11.5s infinite; }
@keyframes kkw-mund-zu { 0%, 17.3% { opacity: 0 } 17.4%, 34.7% { opacity: 1 } 34.8%, 43.4% { opacity: 0 } 43.5%, 47.7% { opacity: 1 } 47.8%, 91.2% { opacity: 0 } 91.3%, 100% { opacity: 1 } }
@keyframes kkw-mund-offen { 0%, 17.3% { opacity: 1 } 17.4%, 34.7% { opacity: 0 } 34.8%, 43.4% { opacity: 1 } 43.5%, 47.7% { opacity: 0 } 47.8%, 91.2% { opacity: 1 } 91.3%, 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .kkw-mund-zu { animation: none; opacity: 0 } .kkw-mund-offen { animation: none; opacity: 1 } }

.kkw-auge { position: relative; display: block; width: 100%; }
.kkw-auge img { display: block; width: 100% !important; height: auto !important; max-width: none !important; }
.kkw-auge-unten, .kkw-auge-rechts { position: absolute; top: 0; left: 0; opacity: 0; }
.kkw-auge-links { animation: kkw-auge-links 8.5s infinite; }
.kkw-auge-unten { animation: kkw-auge-unten 8.5s infinite; }
.kkw-auge-rechts { animation: kkw-auge-rechts 8.5s infinite; }
@keyframes kkw-auge-links { 0%, 23.4% { opacity: 1 } 23.5%, 47% { opacity: 0 } 47.1%, 58.7% { opacity: 1 } 58.8%, 100% { opacity: 0 } }
@keyframes kkw-auge-unten { 0%, 23.4% { opacity: 0 } 23.5%, 47% { opacity: 1 } 47.1%, 94% { opacity: 0 } 94.1%, 100% { opacity: 1 } }
@keyframes kkw-auge-rechts { 0%, 58.7% { opacity: 0 } 58.8%, 94% { opacity: 1 } 94.1%, 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .kkw-auge-links { animation: none; opacity: 1 } .kkw-auge-unten, .kkw-auge-rechts { animation: none; opacity: 0 } }

/* Divi hatte auf Desktop eine leere 1px-Kopfzeile über dem Inhalt (verschiebt alles um 1px). */
@media (min-width: 981px) { #main-content { padding-top: 1px; } }
