
/* ===== navigations.css ===== */

html, body {
  height: 100%;
  margin: 0;
}

html {
  font-size: 15px;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;   /* body scrollt NICHT */
}

header.site-header {
  background: #111;
  box-shadow: var(--shadow);
  /* KEIN position, KEIN sticky, KEIN fixed */
}

#scroll-root {
  flex: 1;             /* nimmt restliche Höhe */
  overflow-y: auto;    /* EINZIGER Scrollbereich */
  scroll-behavior: smooth;
  overflow-x: hidden;   /* ← FIX (kein horizontales Scrollen */
}

.site-header { 
	display: flex; 
	justify-content: space-between; 
	align-items: center; 
  padding-right: 1.0rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: none;
  color: #6bbcff;   /* hellblau */
  border: none;
  opacity: 0.9;
  transition: color 0.2s, opacity 0.2s;
  cursor: pointer;
}

.lang-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.lang-toggle svg {
  width: 1.6rem;   /* Desktop */
  height: 1.6rem;
}

@media (max-width: 768px) {
  .lang-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.lang-toggle:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  filter: grayscale(100%);
}

.lang-toggle:disabled:hover {
  background: inherit;
}

.lang-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 1000;
  min-width: 5.8rem;
  padding: 0.35rem;
  display: grid;
  gap: 0.15rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.lang-menu__panel[hidden] {
  display: none;
}

.lang-menu__panel button {
  border: none;
  background: none;
  color: #d7ecff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.lang-menu__panel button.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lang-menu__panel button.switch-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lang-menu__panel button:hover,
.lang-menu__panel button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

main {
  padding-bottom: 3rem;
}

.site-footer {
  margin: 0;
  padding: 0.6rem 1.2rem;   /* bewusst klein */
  min-height: 0;
  line-height: 1.4;
  background: #111;
  color: #bbb;
  font-size: 0.85rem;
  text-align: center;
}

.footer-mobile { display: none; }

@media (max-width: 600px) {
  .footer-desktop { display: none; }
  .footer-mobile  { display: block; }
  .site-footer {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .site-footer .social-links {
    display: none;
  }
}

.logo img { height: 48px; }

.nav { display: flex; align-items: center; gap: 1.2rem; }

.nav a {
    color: white;
    opacity: 0.85;
    font-weight: 600;
    font-size: 0.95rem;
	transition: 0.2s;
}

.nav a:hover,
.nav a.active {
    opacity: 1;
    color: var(--accent);
}

.nav-social-white { display: flex; align-items: center; gap: 6px; }
.nav-social-white img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1); /* white icon */
    opacity: 0.85;
    transition: 0.2s;
}
.nav-social-white:hover img {
    opacity: 1;
}

.nav-social { display: flex; align-items: center; gap: 6px; }
.nav-social img {
    width: 28px;
    height: 28px;
    opacity: 0.6;
    transition: 0.2s;
    filter: none;   /* ← DAS ist der entscheidende Fix */
}

.nav-social:hover img {
    opacity: 1;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    color: white;
    background: var(--accent);
    border-radius: 8px;
    font-weight: 600;
    /* margin-top: 1rem;*/
    transition: 0.2s;
}

.btn:hover {
    background: var(--accent-dark);
}

.btn.small {
  line-height: 1;
  height: auto;        /* explizit */
  box-sizing: border-box;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
}

.btn.dezent {
  display: inline-flex;
  align-items: center;

  padding: 0.1em 0.4em;
  line-height: 1.2;

  background: var(--accent);
  color: #fff;
  border-radius: 4px;

  font-weight: 500;
  font-size: 0.95em;
}

.btn.dezent:hover {
  background: var(--accent-dark);
}

.btn.classical-link {
  display: inline;
  padding: 0;
  background: none;
  border-radius: 0;

  color: var(--link-color, #0645ad);
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;

  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 0.08em;
  cursor: pointer;
}

.btn.classical-link:hover {
  color: #0b63ce;
}

.year-content { display: block; }
.panel { display: none; }
.panel.active { display: block; }
button.active { font-weight: 600; }

.mode-buttons button.active,
.block-buttons button.active,
.year-buttons button.active {
  color: var(--accent);
}

.switch-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
