/* ==========================================================================
   Erfahrungsatlas Base Stylesheet (base.r1.css)
   ========================================================================== */

/* --- Self-hosted Fonts --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Document Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  line-height: 1.6;
  font-family: var(--ea-font-body);
  background-color: var(--ea-paper);
  color: var(--ea-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  hyphens: auto;
}

/* Tabular figures for numbers, ratings, times */
.ea-num, .ea-rating-val, .ea-hours-time, .ea-stat-number {
  font-variant-numeric: tabular-nums;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ea-font-heading);
  color: var(--ea-ink);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: var(--ea-space-4);
  hyphens: manual;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.65rem; font-weight: 600; margin-top: var(--ea-space-6); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p {
  margin-top: 0;
  margin-bottom: var(--ea-space-4);
  color: var(--ea-ink-2);
}

a {
  color: var(--ea-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover, a:focus-visible {
  color: var(--ea-brand-ink);
}

/* Focus indicator */
:focus-visible {
  outline: 3px solid var(--ea-focus);
  outline-offset: 2px;
}

/* Skip link */
.ea-skip-link {
  position: absolute;
  top: -999px;
  left: 16px;
  background: var(--ea-brand);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--ea-radius-card);
  z-index: 99999;
  text-decoration: none;
  font-weight: 600;
}
.ea-skip-link:focus {
  top: 16px;
}

/* Layout container */
.ea-container {
  width: 100%;
  max-width: var(--ea-width-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ea-space-4);
  padding-right: var(--ea-space-4);
}

.ea-main {
  flex: 1 0 auto;
}

/* Header */
.ea-header {
  height: 64px;
  background: var(--ea-surface);
  border-bottom: 1px solid var(--ea-line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ea-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.ea-logo {
  display: flex;
  align-items: center;
  gap: var(--ea-space-3);
  text-decoration: none;
  color: var(--ea-ink);
}

.ea-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.ea-logo-text {
  font-family: var(--ea-font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ea-nav {
  display: flex;
  align-items: center;
  gap: var(--ea-space-5);
}

.ea-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--ea-space-5);
}

.ea-nav-link {
  color: var(--ea-ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--ea-space-2) var(--ea-space-1);
}

.ea-nav-link:hover, .ea-nav-link:focus-visible {
  color: var(--ea-brand);
}

.ea-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ea-space-2);
  min-height: 44px;
  padding: 0 var(--ea-space-5);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--ea-radius-chip);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ea-btn-primary {
  background: var(--ea-brand);
  color: #ffffff;
}
.ea-btn-primary:hover, .ea-btn-primary:focus-visible {
  background: var(--ea-brand-ink);
  color: #ffffff;
}

.ea-btn-secondary {
  background: var(--ea-surface);
  color: var(--ea-ink);
  border-color: var(--ea-line);
}
.ea-btn-secondary:hover, .ea-btn-secondary:focus-visible {
  background: var(--ea-paper);
  border-color: var(--ea-muted);
}

/* Footer */
.ea-footer {
  background: var(--ea-surface);
  border-top: 1px solid var(--ea-line);
  margin-top: var(--ea-space-8);
  padding-top: var(--ea-space-7);
  padding-bottom: var(--ea-space-6);
  color: var(--ea-muted);
  font-size: 0.9rem;
}

.ea-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ea-space-6);
  margin-bottom: var(--ea-space-7);
}

@media (max-width: 860px) {
  .ea-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ea-footer-grid {
    grid-template-columns: 1fr;
  }
}

.ea-footer-col h4 {
  color: var(--ea-ink);
  font-family: var(--ea-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--ea-space-3);
  text-transform: none;
}

.ea-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ea-footer-links li {
  margin-bottom: var(--ea-space-2);
}

.ea-footer-links a {
  color: var(--ea-muted);
  text-decoration: none;
}

.ea-footer-links a:hover, .ea-footer-links a:focus-visible {
  color: var(--ea-brand);
  text-decoration: underline;
}

.ea-footer-bottom {
  border-top: 1px solid var(--ea-line);
  padding-top: var(--ea-space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ea-muted);
  font-size: 0.85rem;
}

/* Standard Editorial Page Template */
.ea-article {
  max-width: var(--ea-width-reading);
  margin: var(--ea-space-6) auto;
  padding: 0 var(--ea-space-4);
}

.ea-article-header {
  margin-bottom: var(--ea-space-6);
}

.ea-article-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ea-ink);
}

.ea-article-content h2 {
  border-bottom: 1px solid var(--ea-line);
  padding-bottom: var(--ea-space-2);
  margin-top: var(--ea-space-7);
}

.ea-article-content ul, .ea-article-content ol {
  padding-left: var(--ea-space-5);
  margin-bottom: var(--ea-space-5);
}

.ea-article-content li {
  margin-bottom: var(--ea-space-2);
}

/* Breadcrumbs */
.ea-breadcrumbs {
  font-size: 0.85rem;
  color: var(--ea-muted);
  margin: var(--ea-space-4) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ea-space-2);
}

.ea-breadcrumbs a {
  color: var(--ea-muted);
  text-decoration: none;
}
.ea-breadcrumbs a:hover {
  color: var(--ea-brand);
  text-decoration: underline;
}

.ea-breadcrumbs-sep {
  color: var(--ea-line);
  user-select: none;
}

/* Mobile Nav Toggle */
.ea-menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ea-ink);
  padding: var(--ea-space-2);
}

@media (max-width: 768px) {
  .ea-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .ea-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ea-surface);
    border-bottom: 1px solid var(--ea-line);
    flex-direction: column;
    padding: var(--ea-space-4);
    box-shadow: var(--ea-shadow-md);
  }
  .ea-nav.is-open {
    display: flex;
  }
  .ea-nav-list {
    flex-direction: column;
    width: 100%;
    gap: var(--ea-space-2);
  }
}

.ea-footer-h{color:var(--ea-ink);font-family:var(--ea-font-body);font-size:.95rem;font-weight:600;margin:0 0 12px}
