/* ===========================================================
   Klinikum Forchheim – Behandlungen / EpiLeads LeadGateway
   Layout an das Klinik-Theme (forchheim2023) angelehnt.
   Design-Tokens aus klinikumforchheim.de extrahiert.
   =========================================================== */

:root {
  --c-text:        #606060;  /* Fließtext / Überschriften Klinik */
  --c-text-dark:   #313131;
  --c-cta:         #1f6cdf;  /* Primärfarbe / Buttons Klinik */
  --c-cta-hover:   #1857b4;
  --c-nav:         #ffe353;  /* gelbe Navigationsleiste */
  --c-nav-hover:   #ffea7c;
  --c-emergency:   #e2231a;  /* Notfall-Rot */
  --c-bg-light:    #f8f8f8;
  --c-border:      #e3e3e3;
  --c-white:       #ffffff;
  --shadow:        0 2px 14px rgba(0,0,0,.08);
  --radius:        5px;
  --maxw:          1180px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Roboto", Arial, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-cta); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Roboto", Arial, sans-serif;
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.3rem; font-weight: 500; }
p  { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 56px 0; }
.section--light { background: var(--c-bg-light); }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header { background: var(--c-white); border-bottom: 1px solid var(--c-border); }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 22px; max-width: var(--maxw); margin: 0 auto;
}
.header-logo img { max-height: 74px; width: auto; }
.header-meta { display: flex; align-items: center; gap: 26px; }
.header-phone {
  font-weight: 700; color: var(--c-text-dark); font-size: 1.05rem;
  white-space: nowrap;
}
.header-phone span { display: block; font-weight: 400; font-size: .72rem; color: var(--c-text); }

/* gelbe Navigationsleiste */
.site-nav { background: var(--c-nav); }
.site-nav ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw);
  display: flex; flex-wrap: wrap;
}
.site-nav li { border-right: 1px solid rgba(0,0,0,.10); }
.site-nav li:first-child { border-left: 1px solid rgba(0,0,0,.10); }
.site-nav a {
  display: block; padding: 15px 22px; color: var(--c-text-dark);
  font-weight: 500; font-size: .98rem;
}
.site-nav a:hover { background: var(--c-nav-hover); text-decoration: none; }
.site-nav a.is-active { background: var(--c-nav-hover); }
.site-nav .nav-emergency { margin-left: auto; border: 0; }
.site-nav .nav-emergency a {
  background: var(--c-emergency); color: #fff; font-weight: 700;
}
.site-nav .nav-emergency a:hover { background: #c01a12; }

/* mobile nav toggle */
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #fbfbfb 0%, #f1f1f1 100%);
  border-bottom: 1px solid var(--c-border);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  align-items: center; padding: 50px 22px;
}
.hero h1 { font-size: 2.35rem; margin-bottom: .4em; }
.hero .lead { font-size: 1.12rem; }
.hero-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--c-cta); color: #fff;
  font-weight: 700; font-size: 1rem; padding: 13px 26px;
  border-radius: var(--radius); border: 0; cursor: pointer;
  text-align: center; transition: background .15s ease;
  white-space: nowrap;
}
.btn:visited { color: #fff; }
.btn:hover { background: var(--c-cta-hover); text-decoration: none; color: #fff; }
.btn--block { display: block; width: 100%; }
.btn--lg { font-size: 1.08rem; padding: 16px 30px; }

/* ---------- Karten / Inhalte ---------- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: var(--c-text-dark); }
.card-body .btn { margin-top: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split--img-right { direction: ltr; }

.expert {
  display: flex; gap: 26px; align-items: flex-start;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 26px;
}
.expert img { width: 150px; border-radius: var(--radius); flex-shrink: 0; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 8px 0 8px 32px; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-cta);
}

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 700; color: var(--c-cta); margin-bottom: 8px;
}

/* ---------- Kontaktformular ---------- */
.form-section { background: var(--c-bg-light); border-top: 1px solid var(--c-border); }
.form-box {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 720px; margin: 0 auto; padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 5px; font-size: .95rem; }
.field .req { color: var(--c-emergency); }
.field input[type=text],
.field input[type=tel],
.field input[type=email],
.field select,
.field textarea {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--c-text);
  border: 1px solid #c9c9c9; border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--c-cta); box-shadow: 0 0 0 3px rgba(31,108,223,.15);
}
.radio-row { display: flex; gap: 22px; flex-wrap: wrap; }
.radio-row label { font-weight: 400; display: flex; align-items: center; gap: 7px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.consent input { margin-top: 3px; }
.form-hint { font-size: .82rem; color: #8a8a8a; margin-top: 14px; }
.form-error {
  background: #fdecea; border: 1px solid #f5c6c2; color: #b3261e;
  padding: 11px 14px; border-radius: var(--radius); margin-bottom: 16px;
  display: none; font-size: .92rem;
}

/* Honeypot – fuer Menschen unsichtbar, fuer Bots ein Koeder */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- LeadGateway-Originalformular (zend_form) ---------- */
/* Das Formular stammt aus der LeadGateway; hier nur die optische
   Anpassung an das Klinik-Layout. Feldnamen/Struktur bleiben unveraendert. */
.zend_form .control-group,
.zend_form .form-group { margin-bottom: 16px; }
.zend_form .control-label {
  display: block; font-weight: 500; margin-bottom: 5px; font-size: .95rem;
}
.zend_form .control-label.required::after {
  content: " *"; color: var(--c-emergency); font-weight: 700;
}
.zend_form input[type=text],
.zend_form input[type=tel],
.zend_form input[type=email],
.zend_form select.form-control {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--c-text);
  border: 1px solid #c9c9c9; border-radius: var(--radius); background: #fff;
}
.zend_form input:focus,
.zend_form select:focus {
  outline: 0; border-color: var(--c-cta);
  box-shadow: 0 0 0 3px rgba(31,108,223,.15);
}
.zend_form .controls { display: flex; gap: 22px; flex-wrap: wrap; }
.zend_form .radio-inline {
  display: flex; align-items: center; gap: 7px; font-weight: 400;
}
.zend_form .radio-inline input { width: auto; }
.zend_form .checkbox#datenschutz-label,
.zend_form label.checkbox {
  display: block; position: relative; padding-left: 28px;
  font-weight: 400; font-size: .9rem; line-height: 1.55;
}
.zend_form label.checkbox input[type=checkbox] {
  position: absolute; left: 0; top: 3px; width: auto; margin: 0;
}
.zend_form .form-actions { margin-top: 22px; }
.zend_form .btn-warning {
  display: block; width: 100%; background: var(--c-cta); color: #fff;
  font-weight: 700; font-size: 1.08rem; padding: 16px 30px;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background .15s ease;
}
.zend_form .btn-warning:hover { background: var(--c-cta-hover); }
/* Honeypot-Feld der LeadGateway-Form: Klasse "h" -> unsichtbar */
.zend_form .form-control.h {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff; border-top: 3px solid var(--c-nav);
  padding: 44px 0 0; color: var(--c-text); font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; }
.site-footer h4 { color: var(--c-text-dark); font-size: 1rem; }
.footer-logo img { max-height: 64px; margin-bottom: 12px; }
.footer-bar {
  border-top: 1px solid var(--c-border); margin-top: 34px;
  padding: 16px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: .85rem;
}
.footer-bar nav a { color: var(--c-text); margin-right: 18px; }

/* ---------- Trust-Leiste ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: center; }
.trust .trust-item { text-align: center; max-width: 220px; }
.trust .trust-num { font-size: 2rem; font-weight: 700; color: var(--c-cta); }

/* ---------- Danke-Seite ---------- */
.danke-wrap { max-width: 620px; margin: 0 auto; text-align: center; padding: 70px 22px; }
.danke-check {
  width: 84px; height: 84px; border-radius: 50%; background: #e8f3ec;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.danke-check svg { width: 44px; height: 44px; }
.danke-count { font-weight: 700; color: var(--c-cta); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 25px 22px; gap: 20px; }
  .hero-img { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .header-meta .header-link { display: none; }
  .header-meta .btn { padding: 10px 16px; font-size: .92rem; }
  .header-logo img { max-height: 54px; }
  .header-top { gap: 14px; }

  .nav-toggle {
    display: block; width: 100%; background: var(--c-nav); border: 0;
    padding: 14px 22px; font: inherit; font-weight: 700; text-align: left;
    color: var(--c-text-dark); cursor: pointer;
  }
  .site-nav ul { display: none; flex-direction: column; }
  .site-nav ul.is-open { display: flex; }
  .site-nav li, .site-nav li:first-child { border: 0; border-top: 1px solid rgba(0,0,0,.10); }
  .site-nav .nav-emergency { margin-left: 0; }
}

@media (max-width: 520px) {
  h1, .hero h1 { font-size: 1.7rem; }
  h2 { font-size: 1.45rem; }
  .section { padding: 40px 0; }
  .form-box { padding: 22px; }
  .expert { flex-direction: column; }
}
