/* =========================================================
   MediNavi AG — Stylesheet
   Einfache, statische Seite (kein Framework, keine Build-Tools)
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-ink: #1c2b35;
  --color-muted: #5b7480;
  --color-accent: #3f7c94;
  --color-accent-dark: #2c5a6c;
  --color-nav-link: #86a9b8;
  --color-nav-link-active: #1c2b35;
  --color-line: #e6eaec;
  --color-table-stripe: #f4f6f7;
  --color-footer-top: #4f7885;
  --color-footer-bottom: #23414a;
  --color-footer-text: #d7e4e8;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}

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

a { color: var(--color-accent); text-decoration: underline; }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, .brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--color-accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-nav-link);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.brand img { height: 34px; width: auto; }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: var(--color-nav-link);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-nav-link-active);
}

.lang-switch { margin-left: 8px; line-height: 0; }
.lang-switch img { height: 18px; width: auto; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #1c2b35;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  /* Abdunkelung über dem Foto, damit der weiße Text lesbar bleibt */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,25,32,0.86) 0%, rgba(20,45,55,0.72) 45%, rgba(20,45,55,0.4) 100%);
}
.hero .container { position: relative; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: #cfe3ea;
  margin-bottom: 14px;
}
.hero h1 { color: #fff; margin-bottom: 0.3em; }
.hero p.tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #e4eef1;
  max-width: 32ch;
}
/* ---------- Generic page sections ---------- */
.page-header {
  padding: 64px 0 24px;
}
.section {
  padding: 24px 0 64px;
}
.section--narrow .container { max-width: 820px; }
.lede { color: var(--color-muted); margin-bottom: 1.6em; }

.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Team cards ---------- */
.team-heading { text-align: center; margin-top: 48px; }
.team-heading:first-child { margin-top: 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}
.team-card { text-align: center; }
.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: #dfe6e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-muted);
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name { font-weight: 700; margin-bottom: 0.2em; }
.team-role { color: var(--color-accent); font-size: 0.95rem; margin-bottom: 0.8em; }
.team-bio { color: var(--color-muted); font-size: 0.92rem; }

/* ---------- Tables (Reports / Events) ---------- */
.table-wrap { overflow-x: auto; margin-top: 12px; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}
table.data-table th,
table.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}
table.data-table th {
  background: var(--color-ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
table.data-table tr:nth-child(even) td { background: var(--color-table-stripe); }

.notice-entry { margin-bottom: 22px; }
.notice-date { font-weight: 700; color: var(--color-muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: var(--color-table-stripe);
  border-radius: 10px;
  padding: 28px;
}
.contact-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.5em; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--color-footer-top) 0%, var(--color-footer-bottom) 100%);
  color: var(--color-footer-text);
  padding: 56px 0 28px;
  margin-top: 64px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.footer-cols a {
  display: block;
  color: var(--color-footer-text);
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.95rem;
}
.footer-cols a:hover { color: #fff; }
.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 0.82rem;
  color: rgba(215, 228, 232, 0.75);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: #1c2b35;
  color: #eef3f4;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn {
  border: 0;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-accept { background: #3f7c94; color: #fff; }
.btn-decline { background: #7a2f33; color: #fff; }
.btn-info { background: #46545c; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {

  .site-header .container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .brand {
    order: 1;
  }

  .menu-toggle {
    order: 2;
  }

  .main-nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--color-line);
    margin-top: 15px;
    padding: 0;
    gap: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 16px 8px;
    text-decoration: none;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-nav-link-active);
  }

  .main-nav a:hover {
    background: #f5f7f8;
  }

  .lang-switch {
    display: none;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}