:root {

  --sc-hub-color-primary: #4E4A99;
  --sc-hub-color-on-primary: #ffffff;
  --sc-hub-color-primary-shade: #5b5bb5;
  --sc-hub-color-secondary: #3bbfad;
  --sc-hub-color-on-secondary: #111111;
  --sc-hub-color-secondary-shade: #2d9184;
  --sc-hub-color-background: #ffffff;
  --sc-hub-color-on-background: #070059;
}


/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--sc-hub-color-background);
  color: var(--sc-hub-color-on-background);
  line-height: 1.6;
}

/* Layout */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--sc-hub-color-primary);
  color: var(--sc-hub-color-on-primary);
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}

.menu {
  display: flex;
  gap: 1rem;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Note Card */
.article {
  background: #f9f9fb;
  border-left: 5px solid var(--sc-hub-color-secondary);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
}

.article h2 {
  color: var(--sc-hub-color-primary);
}

.article ul {
  padding-left: 1.2rem;
  margin-top: 1rem;
}

.article li {
  margin-bottom: 0.3rem;
}

.article.text {
    display: flex;
    gap: 44px;
    flex-direction: column;
}

/* Image */
figure {
  margin: 1rem 0;
}

figure img {
  max-width: 100%;
  border-radius: 0.5rem;
  display: block;
}

/* Note Footer */
.article-footer {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 3rem;
}

.article-date {
  font-style: italic;
}

/* Footer */
.footer {
  background: var(--sc-hub-color-primary);
  color: var(--sc-hub-color-on-primary);
  padding: 3rem 2rem;
}

.footer a {
  color: var(--sc-hub-color-on-primary);
  text-decoration: underline;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.column {
  grid-column: span var(--columns);
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .column {
    grid-column: span 1;
  }

  .header {
    flex-direction: column;
    gap: 1rem;
  }
}

/**************************************************************************************/

/* Header Layout verbessern */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 2rem;
  background: var(--sc-hub-color-primary);
  color: var(--sc-hub-color-on-primary);
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: inherit;
  letter-spacing: 0.5px;
}

/* Hauptnavigation */
.menu {
  display: flex;
  gap: 1rem;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: var(--sc-hub-color-on-primary);
  padding: 0.4rem 0.6rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

/* Hover Effekt (Underline animiert) */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--sc-hub-color-secondary);
  transition: width 0.25s ease;
}

.menu a:hover::after {
  width: 100%;
}

.menu a:hover {
  opacity: 0.85;
}

/* Aktive Seite */
.menu a[aria-current="page"] {
  font-weight: 600;
}

.menu a[aria-current="page"]::after {
  width: 100%;
}

/* Sprachumschalter */
.languages {
  display: flex;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem;
  border-radius: 999px;
}

/* einzelne Sprach-Buttons */
.languages a {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--sc-hub-color-on-primary);
  opacity: 0.7;
  transition: all 0.2s ease;
}

/* Hover */
.languages a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

/* Aktive Sprache */
.languages a.active,
.languages a[aria-current="true"] {
  background: var(--sc-hub-color-secondary);
  color: var(--sc-hub-color-on-secondary);
  opacity: 1;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .menu {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
  }

  .languages {
    order: 2;
  }
}