:root {
  --blue: #005ea8;
  --blue-dark: #003f73;
  --blue-light: #eaf4fb;
  --text: #17324d;
  --muted: #5d7184;
  --white: #ffffff;
  --border: #d9e4ec;
  --shadow: 0 12px 30px rgba(0, 61, 115, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f7fbfd;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
span,
a {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================
   Header / Navigation
========================== */

.topbar {
  min-height: 76px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand__circle {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  flex: 0 0 50px !important;

  border-radius: 50% !important;
  overflow: hidden !important;

  background: white;
  border: 2px solid #005ea8;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 !important;
  box-sizing: border-box;
}

.brand__mark {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 50% !important;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__text { font-size: 24px; line-height: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue);
}

/* ==========================
   Buttons
========================== */

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  color: blue !important;
}

.btn--primary {
  background: #f28c28;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 5px rgba(242, 140, 40, 0.35);
}

.btn--primary {
  background: #e67600;
  transform: translateY(-2px);
   box-shadow: 0 4px 5px rgba(242, 140, 40, 0.35);
}

.btn--submit {
  font-size: 1.05rem;
}

.btn--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================
   Hero Startseite
========================== */

.hero {
  padding: 90px 6%;
  max-width: 100%;
}

.hero--blue {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 94, 168, 0.96), rgba(0, 63, 115, 0.96)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 30%);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 600px);
  gap: 40px;
  align-items: start;
  max-width: 100%;
}

.hero__content {
  max-width: none;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.9;
}

.hero h1,
.pageHero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
}

.hero p,
.pageHero p {
  max-width: 720px;
  font-size: 1.15rem;
}

.hero p {
  opacity: 0.95;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================
   Rechte Hero-Boxen
========================== */

.hero__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #fff;
  max-width: 100%;
}

.hero__box {
  background: rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 12px;
  max-width: 100%;
}

.hero__box h2,
.hero__box h3 {
  margin: 0 0 14px;
  color: #f28c00;
}

.hero__box .hint-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 65px;
  margin-bottom: 8px;
  align-items: start;
}

.hero__box .label {
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.95;
}

.hero__box .value {
  text-align: left;
  opacity: 0.95;
}



/* ==========================
   Page Hero
========================== */

.pageHero {
  padding: 70px 6%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

/* ==========================
   Sections / Boxen
========================== */

.section {
  padding: 64px 6%;
}

.section--compact {
  padding-top: 48px;
}

.section h2 {
  margin-top: 0;
  font-size: 2rem;
}

.cols,
.infoGrid {
  display: grid;
  gap: 22px;
}

.cols {
  grid-template-columns: repeat(3, 1fr);
}

.infoGrid {
  grid-template-columns: repeat(2, 1fr);
}

.box,
.ctaBox,
.formBox {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.box,
.ctaBox {
  padding: 26px;
}

.formBox {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
}

.box h2,
.box h3,
.formBox h2 {
  margin-top: 0;
  color: var(--blue-dark);
}

.formBox h2 {
  margin-top: 34px;
}

.formBox h2:first-child {
  margin-top: 0;
}

.box p:last-child {
  margin-bottom: 0;
}

.textlink {
  color: var(--blue);
  font-weight: 700;
}

.textlink:hover {
  text-decoration: underline;
}

.ctaBox {
  margin-top: 28px;
  background: var(--blue-light);
}

/* ==========================
   Formulare
========================== */

.formGrid,
.addressGrid {
  display: grid;
  gap: 20px;
}

.formGrid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.addressGrid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}

input,
select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 14px;
}

legend {
  padding: 0 8px;
  font-weight: 700;
  color: var(--blue-dark);
}

.radioGroup {
  display: flex;
  gap: 24px;
}

.radioGroup label,
.privacyCheck {
  flex-direction: row;
  align-items: center;
}

.radioGroup input,
.privacyCheck input {
  width: 18px;
  height: 18px;
}

/* ==========================
   Kursliste / Preise
========================== */

.courseList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.courseRow {
  display: grid;
  grid-template-columns: 32px 1fr 130px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.courseRow input[type="checkbox"] {
  width: 20px;
  height: 20px;
  justify-self: start;
}

.courseRow span:nth-child(2) {
  font-size: 1.12rem;
  font-weight: 700;
}

.priceText {
  justify-self: end;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.totalBox {
  margin: 28px 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--blue-light);
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ==========================
   Split Page
========================== */

.splitPage {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.splitLeft {
  display: grid;
  gap: 22px;
}

.splitRight {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 100%;
}

.splitRight h2 {
  margin-top: 0;
  color: var(--blue-dark);
}

.referentenList p {
  margin: 0 0 13px;
  line-height: 1.3;
  font-size: 0.95rem;
}

.referentenList strong {
  color: var(--blue);
}

/* ==========================
   Footer
========================== */

.footer {
  padding: 28px 6%;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--border);
  max-width: 100%;
}

.footer__links {
  display: flex;
  gap: 18px;
}

.footer a:hover {
  color: var(--blue);
}

/* ==========================
   Cookie Banner
========================== */

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
}

.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 500px;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #d9e4ec;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 61, 115, 0.14);
  z-index: 9999;
  text-align: center;
}

.cookie-banner .button-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.cookie-banner button {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.cookie-banner button:first-of-type {
  background: #f28c28;
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 140, 40, 0.35);
}

.cookie-banner button:first-of-type:hover {
  background: #e67600;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 118, 0, 0.45);
}

.cookie-banner button:last-of-type {
  background: #f5f5f5;
  color: #17324d;
  border: 1px solid #d9e4ec;
}

.cookie-banner button:last-of-type:hover {
  background: #ececec;
}

.pos_cookie {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Scrollen verhindern, wenn Cookie-Banner offen ist */
body.cookie-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  touch-action: none;
}

/* ==========================
   Responsive: Tablet
========================== */

@media (max-width: 1000px) {
  .splitPage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero__right {
    margin-top: 25px;
    font-size: 0.9rem;
  }

  .bilder {
    gap: 14px;
  }

  .bilder img {
    height: 170px;
  }

  .formGrid--4,
  .addressGrid,
  .cols,
  .infoGrid {
    grid-template-columns: 1fr;
  }

  .courseRow {
    grid-template-columns: 30px 1fr;
  }

  .priceText {
    grid-column: 2;
    justify-self: start;
  }

  .totalBox {
    flex-direction: column;
  }
}

@media (max-width: 800px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 16px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding: 64px 6%;
  }
}

/* ==========================
   Responsive: Handy
========================== */

@media (max-width: 600px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand__text {
    font-size: 0.95rem;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    width: 100%;
    text-align: center;
  }

  .hero,
  .pageHero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero h1,
  .pageHero h1 {
    font-size: 1.85rem;
    line-height: 1.15;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero p,
  .pageHero p {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
  }

  .hero__box .hint-row {
    grid-template-columns: 1fr;
    row-gap: 2px;
    column-gap: 0;
  }

  .hero__box .label {
    white-space: normal;
  }

  .hero__box .value {
    min-width: 0;
  }

  .hero__right {
    font-size: 0.9rem;
  }

.bilder {
  display: grid;
  grid-template-columns: repeat(3, 140px);
  gap: 12px;
  justify-content: center;
  margin: 30px auto 0;
}

.bilder img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .bilder {
    max-width: 520px;
    gap: 10px;
  }

  .bilder img {
    height: 100px;
  }
}

@media (max-width: 600px) {
  .bilder {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: 8px;
  }

  .bilder img {
    height: 82px;
    border-radius: 10px;
  }
}
	/* FIX: Ultraschall-Bilder wirklich klein machen */
.hero .bilder {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  max-width: 420px !important;
  margin: 24px auto 0 !important;
}

.hero .bilder img {
  width: 100% !important;
  max-width: none !important;
  height: 80px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
  margin: 0 !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 600px) {
  .hero .bilder {
    max-width: 300px !important;
    gap: 8px !important;
  }

  .hero .bilder img {
    height: 60px !important;
  }
}
  .box,
  .ctaBox,
  .formBox,
  .splitRight {
    padding: 20px;
    border-radius: 16px;
  }

  .formBox {
    padding: 20px;
  }

  .radioGroup {
    flex-direction: column;
    gap: 10px;
  }

  .footer {
    flex-direction: column;
  }

  .footer__links {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-banner {
    width: calc(100% - 32px);
    padding: 18px;
  }

  .cookie-banner .button-group {
    flex-direction: column;
  }
}