/* =============================================
   RECHTLICHE SEITEN - OPTIMIERTES CSS
   Impressum & Datenschutz im Index-Design
   ============================================= */

:root {
  --primary-color: #027bb6;
  --primary-dark: #015a87;
  --dark-bg: #191515;
  --light-bg: #f8f9fa;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  padding-top: 70px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5em;
  line-height: 1.2;
}

/* =============================================
   NAVBAR FIX - Funktioniert auf allen Seiten
   Füge dies zu style.css, style-katog.css, legal-style.css hinzu
   ============================================= */

/* NAVBAR - Einheitlich für alle Seiten */
.navbar {
  padding: 0.8rem 0;
  background-color: #fff !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(2, 123, 182, 0.15);
  border-bottom-color: #027bb6;
}

/* Navbar Brand */
.navbar-brand img {
  height: 45px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Navbar Links */
.navbar-nav {
  gap: 0.5rem;
}

.navbar-nav .nav-link {
  color: #2c3e50 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #027bb6;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #027bb6 !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

/* WICHTIG: Burger Menu - Dunkle Farbe für Sichtbarkeit */
.navbar-toggler {
  border-color: #027bb6 !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(2, 123, 182, 0.25);
}

/* Burger Icon - Dunkle Streifen */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23027bb6' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.5em;
  height: 1.5em;
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #fff;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* =========================
   LEGAL HEADER
   ========================= */
.legal-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  padding: 100px 0 80px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.legal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
  opacity: 0.5;
}

.legal-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.legal-header .lead {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* =========================
   LEGAL CONTENT
   ========================= */
.legal-content {
  padding-bottom: 80px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 3rem;
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  padding-bottom: 0.8rem;
  position: relative;
}

.legal-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
}

.legal-section h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-section h4 {
  font-size: 1.2rem;
  color: #555;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.legal-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.2rem;
}

.legal-section ul,
.legal-section ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-section li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.legal-section a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.legal-section a:hover {
  color: var(--primary-dark);
}

.legal-section a:hover::after {
  width: 100%;
}

.legal-section strong {
  color: #222;
  font-weight: 600;
}

/* =========================
   HIGHLIGHT BOXEN
   ========================= */
.legal-highlight {
  background: linear-gradient(135deg, #f8f9fa 0%, rgba(2, 123, 182, 0.02) 100%);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.legal-highlight p {
  margin-bottom: 0;
}

/* =========================
   BACK BUTTON
   ========================= */
.legal-back {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
  text-align: center;
}

.btn-back-legal {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-back-legal:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 123, 182, 0.3);
}

.btn-back-legal i {
  transition: transform 0.3s ease;
}

.btn-back-legal:hover i {
  transform: translateX(-3px);
}

/* =========================
   FOOTER (wie Index)
   ========================= */
.footer {
  background: var(--dark-bg);
  color: #e0e0e0;
  padding: 2.5rem 0;
  border-top: 3px solid var(--primary-color);
}

.footer .rights-reserved {
  color: #adb5bd;
  font-size: 0.9rem;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 991px) {
  .legal-header h1 {
    font-size: 2.5rem;
  }
  .legal-section h2 {
    font-size: 1.8rem;
  }
  .legal-section h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 60px;
  }
  .legal-header {
    padding: 60px 0 40px;
  }
  .legal-header h1 {
    font-size: 2rem;
  }
  .legal-header .lead {
    font-size: 1.1rem;
  }
  .legal-section {
    padding: 1.5rem;
  }
  .legal-section h2 {
    font-size: 1.6rem;
  }
  .legal-section h3 {
    font-size: 1.2rem;
  }
  .legal-section h4 {
    font-size: 1.1rem;
  }
  .legal-section p,
  .legal-section li {
    font-size: 1rem;
  }
  .btn-back-legal {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   PRINT STYLES
   ========================= */
@media print {
  .navbar,
  .legal-back,
  .footer {
    display: none;
  }
  .legal-header {
    background: none;
    color: #000;
  }
  .legal-header h1 {
    color: #000;
  }
  .legal-section a {
    color: #000;
    text-decoration: underline;
  }
  body {
    background: #fff;
  }
}
