/*
Theme Name: KVS Ulm BKF
Description: BKF Weiterbildung und Anmeldung
Version: 2.0.7
*/

/* Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 175px; }
body { margin: 0; color: #15263c; background: #f7f9fc; font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 25px; }

/* Kopfzeile: bleibt beim Scrollen vollständig sichtbar.
   Höhere Spezifität, da front-page.php eigene CSS-Regeln enthält. */
body > header.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: #fff;
  box-shadow: 0 2px 18px #101d3010;
  overflow: visible;
}
body > header.nav > .navin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  padding-top: 12px;
  padding-bottom: 12px;
}
body > header.nav .logo {
  display: block;
  width: 290px;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
body > header.nav .links {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 14px;
  font-weight: 700;
}
body > header.nav .links a:hover { color: #1463af; }

/* Schaltflächen und Titel */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 23px; background: #f4b740; border-radius: 7px; font-weight: 800; color: #16273c; border: 0; cursor: pointer; font-size: 15px; }
.btn.blue { background: #1665ae; color: #fff; }
.btn.outline { background: #fff; border: 1px solid #d7e0ea; }
.hero { min-height: 550px; position: relative; display: flex; align-items: center; }
.hero .wrap { width: 100%; }
.hero h1 { font-size: clamp(36px, 5vw, 65px); max-width: 680px; color: #fff; line-height: 1.08; margin: 15px 0 20px; }
.hero p { font-size: 20px; color: #e6eef8; max-width: 570px; line-height: 1.55; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 2.5px; font-weight: 900; color: #f2bb51; }
.heroactions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 30px; }
section { padding: 75px 0; }
.sectiontop { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 27px; }
.sectiontop h2, h2 { font-size: clamp(28px, 3vw, 38px); margin: 9px 0; color: #15283e; }
.muted { color: #64758a; line-height: 1.65; }

/* Karten, Module und Termine */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid #e2e9f1; border-radius: 13px; overflow: hidden; box-shadow: 0 10px 28px #0a23400b; }
.card img { width: 100%; height: 220px; object-fit: cover; }
.cardbody { padding: 25px; }
.card h3 { font-size: 22px; margin: 0 0 12px; }
.card p { line-height: 1.6; color: #5c6b7d; }
.card a { font-weight: 800; color: #1364a8; }
.tag { display: inline-block; background: #eaf2fb; color: #185f9f; border-radius: 50px; padding: 7px 12px; font-size: 12px; font-weight: 800; }
.white { background: #fff; }
.band { background: #0e2a49; color: #fff; }
.band h2, .band .muted { color: #fff; }
.band .muted { opacity: .8; }
.modules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.mod { background: #fff; border: 1px solid #e3e9f1; border-radius: 12px; overflow: hidden; }
.mod img, .symbol { width: 100%; height: 145px; object-fit: cover; }
.symbol { background: linear-gradient(145deg, #e7f0fa, #bed5eb); display: flex; align-items: center; justify-content: center; font-size: 100px; font-weight: 800; color: #17518a; }
.mod .inside { padding: 17px; }
.mod h3 { font-size: 17px; margin: 8px 0; }
.mod p { font-size: 13px; color: #64758a; line-height: 1.5; }
.schedule { background: #fff; border: 1px solid #dfe8f0; border-radius: 12px; padding: 25px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 15px; }
.schedule h3 { margin: 8px 0; }
.schedule p { margin: 5px 0; color: #5e6e7d; }

/* Formulare */
.form { background: #fff; border: 1px solid #e0e8f0; border-radius: 15px; padding: 30px; box-shadow: 0 10px 30px #091d300c; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cbd8e4; padding: 13px 12px; border-radius: 7px; font-size: 15px; background: #fff; }
.full { grid-column: 1 / -1; }
.checks { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.check { border: 1px solid #cbd8e4; border-radius: 8px; padding: 12px 14px; background: #f8fafc; cursor: pointer; }
.check input { margin-right: 8px; }
.form.kvs-booking { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0 !important; max-width: 750px; margin: 20px auto; padding: 28px; grid-template-columns: none !important; }
.form.kvs-booking > label { display: block !important; width: 100%; margin: 15px 0 6px; font-weight: 700; }
.form.kvs-booking > input:not([type=checkbox]), .form.kvs-booking > select, .form.kvs-booking > textarea { display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0; padding: 12px; border: 1px solid #cbd8e4; border-radius: 7px; background: #fff; color: #15263c; }
.form.kvs-booking label:has(input[type=checkbox]) { display: flex !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 12px !important; width: 100%; font-weight: 400; line-height: 1.5; text-align: left !important; word-spacing: normal !important; letter-spacing: normal !important; }
.form.kvs-booking input[type=checkbox] { flex: 0 0 auto !important; width: 18px !important; height: 18px !important; margin: 3px 0 0 !important; padding: 0 !important; }
.form.kvs-booking fieldset { display: block !important; width: 100% !important; min-width: 0; margin: 18px 0; padding: 16px; border: 1px solid #cbd8e4; border-radius: 8px; }
.form.kvs-booking fieldset label { margin: 10px 0; }
.form.kvs-booking > p { width: 100%; line-height: 1.6; }
.form.kvs-booking > button { align-self: flex-start; margin-top: 18px; }

/* Fußbereich */
.footer { background: #0c213a; color: #d7e2ee; padding: 38px 0; font-size: 13px; }
.footer img { display: block; float: none; width: 140px; background: #fff; padding: 7px; border-radius: 5px; margin-bottom: 25px; }
.footer p { margin-left: 0; text-align: left; }
.footer .kvs-address { display: block; text-align: left; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid #54677d; line-height: 1.6; }
.hidden { display: none !important; }
.note { padding: 13px 17px; background: #fff8e7; border-left: 4px solid #e8b13c; color: #594820; border-radius: 4px; font-size: 13px; line-height: 1.6; margin-top: 15px; }

/* Responsive */
@media (max-width: 900px) {
  body > header.nav .links { gap: 12px; flex-wrap: wrap; }
  .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 180px; }
  body > header.nav > .navin { align-items: flex-start; flex-direction: column; padding-top: 10px; padding-bottom: 12px; gap: 10px; }
  body > header.nav .logo { width: 150px; max-height: none; }
  body > header.nav .links { font-size: 12px; gap: 12px; }
  .hero { min-height: 500px; }
  .grid2, .grid3, .fields { grid-template-columns: 1fr; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule { grid-template-columns: 1fr; }
  .sectiontop { display: block; }
  section { padding: 50px 0; }
  .form.kvs-booking { padding: 18px; }
