@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --den-blue: #008ece;
  --den-blue-dark: #0077b3;
  --text-body: #333333;
  --text-muted: #374151;
  --text-light: #4b5563;
  --max-width: 80rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', Roboto, 'Source Sans Pro', sans-serif;
  line-height: 1.6;
  color: var(--text-body);
  background: #ffffff;
}

a {
  color: var(--den-blue);
}

a:hover {
  color: var(--den-blue-dark);
}

.container-custom {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Header – entspricht dem gescrollten Header der Startseite */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--den-blue);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

@media (min-width: 640px) {
  .site-header__row {
    min-height: 5rem;
  }
}

@media (min-width: 1024px) {
  .site-header__row {
    min-height: 6rem;
  }
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo-img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 640px) {
  .site-header__logo-img {
    height: 3rem;
  }
}

@media (min-width: 1024px) {
  .site-header__logo-img {
    height: 4rem;
  }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #e5e7eb;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.menu-toggle:hover {
  color: #e5e7eb;
}

.menu-toggle:focus {
  outline: none;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle.is-open .icon-menu {
  display: none;
}

.menu-toggle.is-open .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__panel {
  padding: 0.5rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 0.5rem 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem;
  border-radius: 0.375rem;
  transition: color 0.2s, background-color 0.2s;
}

.mobile-nav a:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.1);
}

/* Inhalt – Typografie wie Campusnetze / AboutDen */
.legal-main {
  flex: 1;
  padding: 2rem 0 3rem;
  background: #ffffff;
}

@media (min-width: 640px) {
  .legal-main {
    padding: 3rem 0 4rem;
  }
}

@media (min-width: 1024px) {
  .legal-main {
    padding: 4rem 0 5rem;
  }
}

.legal-content {
  max-width: 56rem;
}

.legal-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--den-blue);
  line-height: 1.25;
}

@media (min-width: 640px) {
  .legal-title {
    font-size: 1.875rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .legal-title {
    font-size: 2.25rem;
  }
}

.content-section {
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .content-section {
    font-size: 0.875rem;
    margin-bottom: 2rem;
  }
}

.content-heading {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--den-blue);
  line-height: 1.35;
}

@media (min-width: 640px) {
  .content-heading {
    font-size: 1.25rem;
  }
}

.content-subheading {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.content-section p,
.content-section li {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.content-section ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.content-section strong {
  font-weight: 700;
  color: #1f2937;
}

.content-section a {
  text-decoration: underline;
  font-weight: 500;
}

/* Footer – identisch zur React-Footer-Komponente */
.site-footer {
  margin-top: auto;
  background-color: var(--den-blue);
  color: #ffffff;
}

.site-footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__row {
    flex-direction: row;
    gap: 1.5rem;
    font-size: 0.875rem;
  }
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #e5e7eb;
}

.site-footer__divider {
  display: none;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
  .site-footer__divider {
    display: inline;
  }
}
