/* ═══════════════════════════════════════════════════════════════════════════
   LEGAL PAGES (Impressum, Datenschutz)
   SamExpress Krankenfahrdienst
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reset & Variables */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0255A3;
  --primary-dark: #024482;
  --primary-50: #E6F0F9;

  --text: #1A1A2E;
  --text-secondary: #4A5568;
  --text-muted: #718096;

  --surface: #FFFFFF;
  --surface-muted: #F7FAFC;
  --border: #E2E8F0;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 200ms ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface-muted);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
}

.logo img {
  height: 36px;
  width: auto;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

.header-phone svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Main Content */
.main {
  flex: 1;
  padding: 3rem 0;
}

/* Legal Content */
.legal-content {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content section:last-of-type {
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: var(--text);
}

/* Back Button */
.legal-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-secondary {
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* Simple Footer */
.footer-simple {
  background: white;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-simple-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 1200px;
}

.footer-simple-links {
  display: flex;
  gap: 1.5rem;
}

.footer-simple-links a {
  color: var(--text-muted);
}

.footer-simple-links a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 640px) {
  .header-phone span {
    display: none;
  }

  .legal-content {
    padding: 1.5rem;
    border-radius: 0.75rem;
  }

  .legal-content h1 {
    font-size: 1.5rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }

  .main {
    padding: 1.5rem 0;
  }

  .footer-simple-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
