/* ============================================================
   KREISKRANKENHAUS HOLZKIRCHEN — styles.css
   Farben: Tiefblau (#0d2a4a), Mittelblau (#1a5276), Hellblau (#d6eaf8),
           Rot (Notfall #c0392b), Weiß, Grau
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #064476;
  --blue:       #064476;
  --blue-mid:   #1087ba;
  --blue-light: #d6eef8;
  --red:        #f77211;
  --red-light:  #fde8d5;
  --bg:         #f4f8fb;
  --bg-alt:     #e8f0f8;
  --white:      #ffffff;
  --text:       #0d1f30;
  --text-muted: #4a6070;
  --radius:     6px;
  --shadow:     0 4px 20px rgba(6,68,118,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 56px;
}

/* ── EMERGENCY BAR ───────────────────────────────────────── */
.emergency-bar {
  background: var(--red);
  color: var(--white);
  padding: 0.4rem 1.5rem;
}
.emergency-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.emergency-label {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.emergency-label i { margin-right: 0.4rem; }
.emergency-num a { color: var(--white); font-weight: 700; text-decoration: none; font-size: 1rem; }
.emergency-sep { color: rgba(255,255,255,0.4); }
.emergency-house { color: rgba(255,255,255,0.85); }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--blue-mid);
  box-shadow: 0 2px 12px rgba(13,42,74,0.10);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img {
  height: 72px;
  width: auto;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active { background: var(--blue-light); color: var(--navy); }
.nav-cta {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  margin-left: 0.5rem;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue); }
.nav-cta i { margin-right: 0.3rem; font-size: 0.75rem; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,42,74,0.75) 0%, rgba(26,82,118,0.50) 55%, rgba(13,42,74,0.70) 100%),
    url('Pic/hero-background.jpg') center/cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding: 5rem 2rem;
  margin-left: 8%;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.hero-title span { color: #5dade2; }
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-mid);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--blue); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.hero-notfall {
  position: absolute;
  top: 50%;
  right: 3rem;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--red);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  min-width: 130px;
}
.hero-notfall i { font-size: 1.8rem; color: var(--white); margin-bottom: 0.5rem; }
.notfall-main { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.notfall-num { font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1.1; text-decoration: none; }
.notfall-sub { font-size: 0.72rem; color: rgba(255,255,255,0.75); margin-top: 0.3rem; }

/* ── KPI STRIP ───────────────────────────────────────────── */
.kpi-strip {
  background: var(--navy);
  display: flex;
  justify-content: center;
}
.kpi {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.kpi:last-child { border-right: none; }
.kpi-num { font-family: 'Source Serif 4', serif; font-size: 1.9rem; font-weight: 700; color: #5dade2; }
.kpi-label { font-size: 0.74rem; color: rgba(255,255,255,0.55); text-align: center; margin-top: 0.15rem; }

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-light { background: var(--white); }
.section-alt   { background: var(--bg-alt); }

.section-inner { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── KLINIKEN GRID ───────────────────────────────────────── */
.klinik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.klinik-card {
  background: var(--bg);
  border: 1px solid rgba(13,42,74,0.08);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.klinik-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.klinik-card--accent { border-top: 3px solid var(--blue-mid); }
.klinik-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.klinik-card h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.klinik-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; }
.klinik-chef { font-size: 0.78rem; color: var(--blue-mid); border-top: 1px solid var(--blue-light); padding-top: 0.6rem; }

/* ── LEISTUNGEN COLS ─────────────────────────────────────── */
.leistung-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.leistung-col {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 2px 8px rgba(13,42,74,0.07);
}
.leistung-col h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.leistung-col h3 i { color: var(--blue-mid); }
.leistung-col ul { list-style: none; }
.leistung-col ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 0.87rem;
  color: var(--text-muted);
}
.leistung-col ul li::before { content: "›"; color: var(--blue-mid); margin-right: 0.5rem; font-weight: 700; }
.leistung-col ul li:last-child { border-bottom: none; }

/* ── TEAM GRID ───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.team-card:hover { transform: translateY(-4px); }
.team-photo {
  height: 220px;
  background: var(--navy);
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-info { padding: 1.5rem; }
.team-name { font-family: 'Source Serif 4', serif; font-size: 1rem; font-weight: 700; color: var(--navy); }
.team-title { font-size: 0.78rem; color: var(--blue-mid); margin-top: 0.2rem; }
.team-rule { width: 32px; height: 2px; background: var(--blue-mid); margin: 0.75rem 0; }
.team-bio { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.team-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.team-badges span {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--blue-light);
  color: var(--navy);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* ── INFO COLS ───────────────────────────────────────────── */
.info-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 2px 8px rgba(13,42,74,0.07);
  border-top: 3px solid var(--blue-mid);
}
.info-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.info-card h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.info-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; }

/* ── KONTAKT ─────────────────────────────────────────────── */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.kontakt-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.kontakt-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.emergency-icon { background: var(--red); }
.kontakt-block h4 { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.kontakt-block p, .kontakt-block a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }
.kontakt-block a:hover { color: var(--navy); text-decoration: underline; }
.notfall-link { color: var(--red) !important; font-weight: 700; font-size: 1rem !important; }

.hours-table { font-size: 0.84rem; border-collapse: collapse; }
.hours-table td { padding: 0.15rem 1rem 0.15rem 0; color: var(--text-muted); }
.hours-table td:first-child { font-weight: 600; color: var(--text); }

.kontakt-form-wrap h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(13,42,74,0.18);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue-mid); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.80);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-logo i { font-size: 1.2rem; color: #5dade2; }
.footer-col p { font-size: 0.84rem; line-height: 1.7; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5dade2;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { font-size: 0.84rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.79rem; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-links span { color: rgba(255,255,255,0.25); }
.footer-copy { font-size: 0.79rem; color: rgba(255,255,255,0.4); }
.footer-copy a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-copy a:hover { color: var(--white); }

/* ── DISCLAIMER ──────────────────────────────────────────── */
.escape-disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(13,42,74,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(41,128,185,0.4);
}
.escape-disclaimer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.escape-disclaimer__inner a { color: #5dade2; text-decoration: none; }
.escape-disclaimer__inner a:hover { text-decoration: underline; }

/* ── FADE-IN ─────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--bg-alt); padding: 1rem 1.5rem; gap: 0.25rem; }
  .site-nav.open { display: flex; }
  .burger { display: flex; }
  .site-header { position: relative; }
  .hero-notfall { display: none; }
  .leistung-cols { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .kpi-strip { flex-wrap: wrap; }
}
@media (max-width: 580px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .emergency-inner { gap: 0.5rem; font-size: 0.78rem; }
}

/* ═══════════════════════════════════════════════════════════
   KRANKENHAUS — ABTEILUNGSPORTAL & KLINIK-REDESIGN
   ═══════════════════════════════════════════════════════════ */

.dept-portal {
  background: #0d2a4a;
  border-top: 3px solid #c0392b;
}
.dept-portal-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
.dp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.1rem 0.5rem;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, color 0.2s;
}
.dp-item:last-child { border-right: none; }
.dp-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.dp-item i { font-size: 1.35rem; }
.dp-item--emergency {
  background: rgba(192,57,43,0.25);
  color: #ff8a80 !important;
}
.dp-item--emergency:hover { background: rgba(192,57,43,0.45); color: #fff !important; }

/* Klinik-Cards als horizontale Zeilen */
.klinik-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.klinik-card {
  display: grid !important;
  grid-template-columns: 60px 1fr !important;
  column-gap: 1.5rem !important;
  row-gap: 0.2rem !important;
  padding: 1.4rem 2rem !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(13,42,74,0.1) !important;
  box-shadow: none !important;
  transition: background 0.2s !important;
  background: white !important;
}
.klinik-card:nth-child(even) { background: #f5f8fc !important; }
.klinik-card:hover { background: #e8eef8 !important; transform: none !important; }
.klinik-card .klinik-icon {
  grid-row: 1 / 4 !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  margin-top: 0.25rem !important;
  font-size: 1.3rem !important;
}
.klinik-card h3,
.klinik-card p,
.klinik-card .klinik-chef { grid-column: 2 !important; }
.klinik-card h3  { align-self: end !important; margin-bottom: 0.15rem !important; }
.klinik-card p   { font-size: 0.88rem !important; color: #444 !important; margin-bottom: 0.25rem !important; }
.klinik-chef     { font-size: 0.78rem !important; color: #666 !important; }
.klinik-card--accent .klinik-icon { background: #c0392b !important; }

@media (max-width: 860px) {
  .dept-portal-inner { grid-template-columns: repeat(4, 1fr); }
  .dp-item:nth-child(4) { border-right: none; }
  .klinik-card { padding: 1rem !important; }
}
@media (max-width: 500px) {
  .dept-portal-inner { grid-template-columns: repeat(4, 1fr); }
  .dp-item { padding: 0.8rem 0.3rem; font-size: 0.66rem; }
  .dp-item i { font-size: 1.1rem; }
}
