@import url('https://fonts.googleapis.com/css2?family=DM+Sans&display=swap');

:root {
  --gold: #d4af37;
  --dark-blue: #0a0f3c;
  --black: #000000;
  --white: #ffffff;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-image: url('../assets/bg3.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  background-color: #000000; /* Optional: als Füllfarbe an Rändern */
  color: var(--white);
  margin: 0;
  padding: 0;
}

/* Zentrale schwarze Box für Inhalte */
.content-box {
  background-color: rgba(0, 0, 0, 0.95);
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

/* Header */
header {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
}

/* Grid-System für die Startseite */
.main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Genau 5 Spalten ab einer Breite von 1200px */
@media (min-width: 1200px) {
  .main-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Boxen auf der Startseite */
.button-box {
  background: linear-gradient(to bottom right, var(--dark-blue), var(--black));
  border: 2px solid var(--gold);
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  min-height: 150px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.8rem, 1.2vw, 1.2rem);
  font-weight: 600;
  text-align: center;
}

.button-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(to bottom right, var(--dark-blue), #111);
}

.button-box img {
  height: 48px;
  margin: 0 auto 0.75rem;
  flex-shrink: 0;
}

/* Headerbox */
.header-box {
  background-color: rgba(212, 175, 55, 0.2);
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  margin: 2rem auto;
  max-width: 1200px;
}

/* Suchformular */
.search-form {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-form input {
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  border: none;
  background: #222;
  color: white;
  border: 1px solid var(--gold);
}

.search-form button {
  background: var(--gold);
  color: black;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.search-form button:hover {
  background: #b89b30;
}

/* Responsive Textgrößen & Layout */
@media (max-width: 800px) {
  .button-box {
    font-size: clamp(0.7rem, 2vw, 1rem);
    padding: 1.5rem;
  }

  .button-box img {
    height: 40px;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 500px) {
  .button-box {
    font-size: clamp(0.6rem, 3vw, 0.9rem);
    padding: 1rem;
  }

  .button-box img {
    height: 36px;
    margin-bottom: 0.5rem;
  }
}
/* Gesetzesartikel – Absätze und Unterpunkte */
.paragraph p {
  margin: 0.75rem 0;
  line-height: 1.6;
}

.subhead {
  display: block;
  font-weight: bold;
  font-style: italic;
  color: var(--gold);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.indent {
  display: block;
  margin-left: 1.5rem;
  text-indent: 0;
}
.gesetz-liste {
  margin-left: 1.5rem;
  padding-left: 1rem;
  list-style-type: disc;
  color: var(--white);
}

.gesetz-liste li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.gesetz-abschnitt {
  font-size: 1.75rem;
  color: var(--gold);
  font-weight: bold;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  text-align: left;
}