/* ================================
   IT Service Level1 – Legal Styles
   Gilt für: impressum, datenschutz (+ EN)
   Optik beibehalten (neutral/dunkel)
==================================*/
:root {
  --bg-dark: #0d1117;
  --bg-card: #151b23;
  --accent: #16a085;
  --accent-light: #19b394;
  --text-light: #e5e7eb;
  --text-muted: #cbd5e1;
  --border-soft: rgba(255,255,255,0.08);
}

/* ====== Grundstruktur ====== */
html, body {
  margin: 0;
  padding: 0;
}
body {
  background: radial-gradient(circle at top left, var(--bg-dark), #0e1726);
  color: var(--text-light);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* ===============================
   🌍 Sprachumschalter (einheitlich)
================================= */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  margin: 0 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.lang-switch a:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.lang-switch img {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}
@media (max-width: 768px) {
  .lang-switch {
    justify-content: center;
    margin: 10px auto 0;
  }
}

/* ===============================
   Header (identisch zu style.css)
================================= */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(120%) blur(8px);
  background: rgba(12, 17, 24, 0.95);
  border-bottom: 1px solid var(--border-soft);
}
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 8%;
  gap: 10px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}
.brand img { width: 36px; height: 36px; }
.brand span { letter-spacing: .2px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  padding: .4rem .6rem;
  border-radius: 8px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.site-nav a:hover { background: rgba(255, 255, 255, .06); }
.site-nav a.active {
  color: #eaf2ff;
  box-shadow: inset 0 -2px 0 0 var(--accent);
}

/* ===============================
   Hauptinhalt (Legal Box)
================================= */
main {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 25px 80px;
}
h1 {
  text-align: center;
  color: var(--accent-light);
  font-size: 2.3rem;
  margin-bottom: 50px;
  letter-spacing: .5px;
}
.legal-box {
  background: linear-gradient(160deg, var(--bg-card), #10151d);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 25px rgba(0,0,0,.45);
  padding: 40px;
  transition: all .3s ease;
}
.legal-box:hover {
  box-shadow: 0 10px 40px rgba(0,255,180,.2);
  border-color: rgba(22,160,133,.4);
}
.legal-box h2 {
  color: var(--accent);
  margin: 30px 0 10px;
  font-size: 1.3rem;
}
.legal-box p, .legal-box li {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 1rem;
}
ul { padding-left: 20px; }
a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color .3s ease;
  word-break: break-word;
}
a:hover { color: #0cf5c1; text-decoration: underline; }

/* ===============================
   Footer
================================= */
footer.site-footer {
  border-top: 1px solid var(--border-soft);
  text-align: center;
  padding: 25px 15px;
  color: #aaa;
  background: #0b0f15;
}
footer nav a {
  color: var(--accent-light);
  margin: 0 8px;
  text-decoration: none;
}
footer nav a:hover { color: #0cf5c1; }

/* ===============================
   Responsive Design
================================= */
@media (max-width: 900px) {
  main { margin: 60px auto; padding: 0 15px 60px; }
  .legal-box { padding: 25px; }
  h1 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
  body { font-size: 15px; line-height: 1.7; }
  header.site-header { padding: 12px 15px; }
  .header-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .brand img { width: 32px; height: 32px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { font-size: .95rem; padding: 6px 8px; }
  .lang-switch { justify-content: center; margin-top: 5px; }
  .legal-box { padding: 22px 18px; border-radius: 14px; }
  .legal-box h2 { font-size: 1.15rem; margin-top: 25px; }
  footer.site-footer { font-size: 13px; padding: 20px 10px; }
}

/* ===============================
   Toggle-Menü (mobil)
================================= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  z-index: 2000;
}
.nav-toggle .bar {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; order: 3; }
  .site-nav {
    display: none;
    flex-direction: column;
    background: rgba(12,17,24,0.98);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 10px 0;
    text-align: center;
    position: absolute;
    top: 65px;
    right: 8%;
    width: 230px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 12px 0; border-radius: 0; }
  .site-nav.active {
    display: flex;
    animation: slideDown .3s ease forwards;
  }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
