/* ==========================================================================
   Eltern gegen Rechts - Static Site Theme
   Clean, modern, responsive & accessible
   ========================================================================== */

:root {
  --primary: #c92a2a;         /* Vibrant, strong accent red */
  --primary-hover: #a61e1e;
  --primary-light: #fff5f5;
  --dark: #1f2937;            /* Charcoal body text */
  --dark-heading: #111827;    /* Deep heading */
  --light-bg: #f9fafb;        /* Soft page background */
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --text-muted: #6b7280;
  --radius: 8px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --max-width: 1080px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--dark);
  background-color: var(--light-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--dark-heading);
}

.brand-badge {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link, .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.85rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}

.nav-link:hover, .dropdown-toggle:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.nav-item.active .nav-link {
  color: var(--primary);
  font-weight: 600;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0.25rem 0 0 0;
  padding: 0.5rem 0;
  z-index: 1000;
}

.dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.15s ease;
}

.dropdown-link:hover, .dropdown-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Hover on desktop */
@media (min-width: 769px) {
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    display: block;
  }
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 2rem;
  height: 0.25rem;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s linear;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-main {
  flex: 1;
  padding: 2.5rem 0;
}

.content-article {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.content-article h1 {
  font-size: 2.25rem;
  color: var(--dark-heading);
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.content-article h2 {
  font-size: 1.65rem;
  color: var(--dark-heading);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.4rem;
}

.content-article h3 {
  font-size: 1.35rem;
  color: var(--dark-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-article p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.content-article a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-article a:hover {
  color: var(--primary-hover);
}

.content-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.content-article blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
  background: var(--primary-light);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.content-article th, .content-article td {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

.content-article th {
  background-color: var(--light-bg);
  font-weight: 600;
}

.content-article pre {
  background: #27272a;
  color: #f4f4f5;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.25rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-tagline {
  margin: 0.25rem 0 0 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

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

.footer-links .sep {
  color: var(--border-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  background: var(--light-bg);
}

/* ==========================================================================
   Responsive / Mobile
   ========================================================================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
    padding: 1rem;
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background-color: var(--light-bg);
    margin-left: 1rem;
    padding: 0.25rem 0;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .content-article {
    padding: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
