/* Kopf- und Fußbereich aller Seiten von kdot.solutions (includes/layout.php) */
:root {
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --white: #ffffff;
  --orange: #F78E1E;
  --light-orange: #ffb347;
  --gray: #888888;
}

/* ---- Kopfbereich ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
  background-color: var(--darker-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-logo {
  display: flex;
  flex: none;
}
.site-logo img {
  display: block;
  width: auto;
  height: 80px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 1rem;
}
.site-nav a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--orange);
}
.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Sprachwahl: beide Sprachen direkt anklickbar (auch auf dem Handy, ohne Hover) */
.lang-switch {
  display: flex;
  flex: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.lang-switch a {
  padding: 0.2rem 0.55rem;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-switch a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.lang-switch a:hover {
  color: var(--orange);
}
.lang-switch a.is-active {
  color: var(--darker-bg);
  background-color: var(--orange);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -0.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

.site-nav a:focus-visible,
.lang-switch a:focus-visible,
.menu-toggle:focus-visible,
.site-logo:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.25rem 1rem 0.75rem;
    background-color: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .site-nav a:last-child {
    border-bottom: 0;
  }
  .site-nav a::after {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* ---- Fußbereich ---- */
.site-footer {
  padding: 3rem 0 2rem;
  background-color: var(--darker-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--gray);
  font-size: 0.9rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.site-footer__title {
  position: relative;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}
.site-footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--orange);
}
.site-footer__col p {
  margin-bottom: 0.75rem;
}
.site-footer__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-style: normal;
}
.site-footer__item i {
  min-width: 1.25rem;
  color: var(--orange);
}
.site-footer a {
  color: var(--gray);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}
.site-footer a:hover,
.site-footer a[aria-current] {
  color: var(--orange);
}
.site-footer__links {
  list-style: none;
}
.site-footer__links li {
  margin-bottom: 0.5rem;
}
.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}
