/*!
 * Gastroenterologie am Claraplatz - Impressum Page
 * Mobile-First Responsive Design
 * Based on Figma design (node 1532:695)
 *
 * Architecture Principles:
 * ✅ Mobile-First (320px base → progressive enhancement)
 * ✅ NO fixed heights (content determines size)
 * ✅ Flexbox/Grid layouts (NO absolute positioning)
 * ✅ Shared components (navigation.css, footer.css imported)
 * ✅ CSS Custom Properties (Design Tokens)
 */

/* ========================================
   IMPORTS - Shared Components
   ======================================== */

@import url('components/navigation.css');
@import url('components/footer.css');

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */

:root {
  /* Colors - Brand Palette */
  --color-primary: #003974;
  --color-secondary: #6dc8bf;
  --color-accent: #bbd976;
  --color-text: #003974;
  --color-background: #ffffff;
  --color-gray-light: #f8f9fa;
  --color-gray-border: #e0e0e0;
  --color-link: #00a88e;
  --color-link-hover: #007a6b;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Container */
  --container-max: 1440px;
  --container-padding: 1.25rem; /* 20px mobile */

  /* Typography Scale */
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-base: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;

  /* Font Families */
  --font-primary: 'Roboto', sans-serif;
  --font-heading: 'Dosis', sans-serif;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 40px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100vh;
}

body {
  font-family: var(--font-primary);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-background);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-sm);
  background: var(--color-primary);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   MAIN CONTAINER
   ======================================== */

.impressum {
  position: relative;
  background-color: var(--color-background);
  width: 100%;
  min-width: 320px;
  max-width: var(--container-max);
  margin: 0 auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ========================================
   TITLE SECTION
   ======================================== */

.title-section {
  padding: var(--space-2xl) var(--container-padding) var(--space-lg);
  width: 100%;
}

.title-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1.369;
  margin: 0;
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.content-section {
  padding: 0 var(--container-padding) var(--space-2xl);
  width: 100%;
}

.content-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-text {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 48px;
  margin-bottom: var(--space-xl);
}

/* Content Articles */
.content-article {
  margin-bottom: var(--space-xl);
  margin-left: 0;
  padding-left: 0;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: #6dc8bf;
  line-height: 32px;
  margin-bottom: var(--space-md);
}

.section-content {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  white-space: normal;
  text-indent: 0;
  margin-left: 0;
  padding-left: 0;
}

.section-content a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-text);
  transition: var(--transition-fast);
}

.section-content a:hover {
  color: var(--color-link);
  text-decoration-color: var(--color-link);
}

/* Lists */
.section-list {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.section-list li {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

/* Subsections */
.subsection {
  margin-bottom: var(--space-lg);
}

.subsection-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-link);
  line-height: 28px;
  margin-bottom: var(--space-sm);
}

.subsection-content {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-text);
}

/* ========================================
   TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
  :root {
    --container-padding: 2.5rem; /* 40px */
  }

  .page-title {
    font-size: var(--font-size-3xl);
  }
}

/* ========================================
   DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
  :root {
    --container-padding: 6rem; /* 96px */
  }

  .page-title {
    font-size: var(--font-size-4xl);
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .navigation,
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .footer-phone-button {
    display: none;
  }

  .impressum {
    max-width: 100%;
  }

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

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: var(--font-size-xs);
    color: #666;
  }
}
