/* ═══════════════════════════════════════════════════════════
   shared.css – Gemeinsame Styles für alle SanctioDesk-Seiten
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────
   RESET & ROOT TOKENS
───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #185fa5;
  --primary-dark:   #004782;
  --primary-light:  #c1d9ff;
  --bg:             #f7f9fb;
  --bg-alt:         #eceef0;
  --white:          #ffffff;
  --text:           #191c1e;
  --text-muted:     #424751;
  --border:         #e0e3e5;
  --border-strong:  #c2c6d2;
  --outline:        #727782;
  --error:          #ba1a1a;
  --success:        #1a6e3c;
  --warning:        #92400e;
  --radius:         4px;
  --radius-lg:      8px;
  --radius-xl:      12px;
  --shadow-card:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-lg:      0 20px 60px rgba(0,0,0,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ─────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ─────────────────────────────────────────────────
   TYPOGRAPHY HELPERS
───────────────────────────────────────────────── */
.label-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: 32px; font-weight: 700;
  line-height: 1.2; letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px; line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
}
.mono { font-family: 'JetBrains Mono', monospace; }

@media (max-width: 640px) {
  .section-title { font-size: 24px; }
}

/* ─────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer; border: none;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, #1452a0 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 3px rgba(24,95,165,.4);
}
.btn-primary:hover {
  background: linear-gradient(180deg,#1c6dbf 0%,#1454a2 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 12px rgba(24,95,165,.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #f0f6ff; }
.btn-ghost {
  background: none; border: none;
  color: var(--text-muted); font-weight: 500;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-alt); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-white {
  background: #fff; color: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.btn-white:hover { background: #f0f6ff; transform: translateY(-1px); }
.btn-outline-white {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ─────────────────────────────────────────────────
   NAV
───────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  height: 58px; gap: 8px;
}
.nav-logo {
  font-size: 17px; font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -.02em;
  margin-right: 24px; flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 2px; flex: 1;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  padding: 7px 12px; border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-actions { display: flex; gap: 8px; margin-left: auto; }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 4px;
  margin-left: 8px;
  transition: background .15s;
}
.nav-hamburger:hover { background: var(--bg-alt); }
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all .25s ease;
}

/* Hamburger → X animation */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 199;
  padding: 16px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile a {
  display: block;
  font-size: 15px; font-weight: 500;
  color: var(--text-muted);
  padding: 11px 14px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav-mobile a:hover { color: var(--text); background: var(--bg-alt); }
.nav-mobile .nav-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.nav-mobile .nav-mobile-actions {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 8px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-hamburger { display: flex; }
}

/* ─────────────────────────────────────────────────
   DIVIDER
───────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ─────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────── */
footer {
  background: var(--text);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-logo {
  font-size: 18px; font-weight: 700;
  color: #fff; letter-spacing: -.02em; margin-bottom: 10px;
}
.footer-brand-text {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,.4);
  max-width: 300px;
}
.footer-col-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom-left {
  font-size: 12px; color: rgba(255,255,255,.3);
}
.footer-bottom-left a { color: rgba(255,255,255,.4); }
.footer-bottom-left a:hover { color: #fff; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  font-size: 9px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.15);
  padding: 3px 9px; border-radius: 3px;
}

/* ─────────────────────────────────────────────────
   INNER PAGE LAYOUT
───────────────────────────────────────────────── */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}
.page-header-inner {
  max-width: 760px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--primary);
  transition: color .15s;
}
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb-sep {
  color: var(--border-strong);
  font-size: 12px;
}
.page-header h1 {
  font-size: 30px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}
.page-header-sub {
  font-size: 15px; color: var(--text-muted); line-height: 1.6;
}
@media (max-width: 640px) {
  .page-header { padding: 28px 0 24px; }
  .page-header h1 { font-size: 24px; }
}

.page-main {
  padding: 48px 0 80px;
}

/* Prose card */
.prose-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  max-width: 760px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 640px) {
  .prose-card { padding: 24px 20px; }
}

/* Prose content styles */
.prose h2 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin-top: 36px; margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 16px; font-weight: 600;
  color: var(--text);
  margin-top: 24px; margin-bottom: 8px;
}

.prose p {
  font-size: 15px; line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.prose li {
  font-size: 15px; line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.prose li:last-child { margin-bottom: 0; }

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--primary-dark); }

.prose strong {
  font-weight: 600;
  color: var(--text);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* Address block */
.address-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 16px 0;
  font-size: 14px; line-height: 1.8;
  color: var(--text-muted);
}

/* Info box */
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px; line-height: 1.7;
  color: var(--primary-dark);
}
.info-box strong {
  color: var(--primary-dark);
  font-weight: 600;
}
