/* ÖIF B1 Prüfung — Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #cc0000;
  --red-dark: #900000;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-mid: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  direction: rtl;
}

/* ── Header ── */
header {
  color: white;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}
header h1 { font-size: 1.5em; font-weight: 700; margin-bottom: 3px; letter-spacing: -0.015em; }
header p  { opacity: 0.82; font-size: 0.87em; font-weight: 400; }

/* ── Page nav ── */
nav {
  background: var(--navy-mid);
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
nav a {
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.80em;
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  transition: all 0.18s;
}
nav a:hover { background: rgba(255,255,255,0.16); color: white; }

/* ── Site-wide nav ── */
.site-nav {
  background: #080808;
  padding: 5px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  direction: ltr;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.site-nav a {
  color: #4b5563;
  text-decoration: none;
  padding: 4px 9px;
  font-size: 0.74em;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.site-nav a:hover { color: #f9fafb; background: rgba(255,255,255,0.09); }
.site-nav a.current { color: var(--red); background: rgba(204,0,0,0.12); }

/* ── Section cards ── */
section, .section {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  margin: 18px 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* ── Info / Tip / Warn boxes ── */
.info-box, .tip-box, .warn-box {
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 0.87em;
  line-height: 1.65;
}
.info-box { background: #eff6ff; border-right: 3px solid #3b82f6; color: #1e3a8a; }
.tip-box  { background: #f0fdf4; border-right: 3px solid #22c55e; color: #14532d; }
.warn-box { background: #fff7ed; border-right: 3px solid #f97316; color: #9a3412; }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 0.87em; }
th { background: var(--navy-mid); color: white; padding: 9px 12px; text-align: center; font-weight: 600; font-size: 0.86em; }
td { padding: 7px 12px; border-bottom: 1px solid var(--border); text-align: center; }
tr:nth-child(even) td { background: #f8fafc; }

ul li { margin: 4px 0 4px 18px; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.8rem;
  background: var(--navy);
  color: #4b5563;
  font-size: 0.78rem;
  margin-top: 2rem;
  letter-spacing: 0.03em;
}

@media print {
  header { position: static; }
  nav, .site-nav { display: none; }
  section, .section { break-inside: avoid; }
}
@media (max-width: 600px) {
  header h1 { font-size: 1.25em; }
}
