/* ============================================================================
 *  KodeMed Common CSS — shared across all kodemed.ch sites
 *  Used by: www, impressum, datenschutz, support, ticket system (future)
 *
 *  Include via: <link rel="stylesheet" href="/common.css">
 *  Cross-domain: <link rel="stylesheet" href="https://www.kodemed.ch/common.css">
 *
 *  © 2026 KodeMed AG
 * ============================================================================ */

/* ── Variables ── */

:root {
  --navy: #004078;
  --navy-light: #005a9e;
  --orange: #F05008;
  --orange-dark: #d04400;
  --bg: #f5f7fa;
  --text: #1e293b;
  --text-light: #5a6b80;
  --card-bg: #ffffff;
  --border: #e2e8f0;
}

/* ── Base Reset ── */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ── Header (navy bar) ── */

.header {
  background: var(--navy);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.header-left img {
  height: 36px;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-kode { color: #fff; }
.brand-med { color: var(--orange); }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: var(--orange); text-decoration: none; }
.nav-active { color: var(--orange) !important; }

/* ── Language Switch ── */

.lang-switch {
  display: flex;
  gap: 0.3rem;
}

.lang-switch button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-switch button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.lang-switch button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ── Footer ── */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
}

.footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer a:hover { color: #ffffff; text-decoration: none; }

.footer-main { margin-bottom: 0.8rem; }

.impressum {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.impressum strong { color: rgba(255,255,255,0.7); }

/* ── i18n ── */

[data-lang] { display: none; }
[data-lang].active { display: revert; }

/* ── Content Card (for impressum, datenschutz, etc.) ── */

.content {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.content h1 { color: var(--navy); margin-bottom: 1.5rem; font-size: 1.8rem; }
.content h2 { color: var(--navy); margin: 1.5rem 0 0.5rem; font-size: 1.2rem; }
.content h3 { color: var(--navy); margin: 1rem 0 0.3rem; font-size: 1rem; }
.content p, .content li { color: #374151; margin-bottom: 0.5rem; }
.content ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }

.placeholder {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 0.8rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #856404;
}

.updated { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1rem; }

/* ── Responsive ── */

@media (max-width: 700px) {
  .header { flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 1rem; }
  .header-right { gap: 0.8rem; }
  .nav a { font-size: 0.8rem; }
  .content { margin: 1rem; padding: 1.2rem; }
}
