@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: contain;
  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;
  color: var(--white);
}

.gesetz-liste.nummerierte-liste {
  list-style-type: none;
}
.gesetz-liste:not(.nummerierte-liste) {
  list-style-type: disc;
}

.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;
}

/* 
ul.nummerierte-liste {
  list-style-type: none;
  padding-left: 1.5em;
  counter-reset: nummeriert;
}

ul.nummerierte-liste li::before {
  counter-increment: nummeriert;
  content: counter(nummeriert) ". ";
  margin-right: 0.25em;
}
*/

.preis-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 1rem;
    background-color: #0f0f0f;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}
.preis-tabelle th, .preis-tabelle td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #333;
    text-align: left;
}
.preis-tabelle th {
    background-color: #111c33;
    color: #ffd700;
    text-transform: uppercase;
}

.back-home {
  font-size: 0.75rem;
  color: #ccc;
  margin-left: 0.5rem;
  font-weight: 300;
}

#charCount {
  display: block;
  margin-top: 0.4rem;
  text-align: right;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

#charCount.limit-reached {
  color: #ff4d4d;
  font-weight: bold;
}

.minimal-footer {
  margin-top: 4rem;
  padding-bottom: 3rem;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  z-index: 1;
}

.footer-line {
  position: relative;
  height: 2px;
  background: var(--gold);
  width: 120px;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.footer-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: skewX(-20deg);
}

.minimal-footer:hover .footer-line::before {
  animation: shine 1.2s ease-out;
}

@keyframes shine {
  from {
    left: -100%;
  }
  to {
    left: 100%;
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 0px var(--gold);
  }
  50% {
    text-shadow: 0 0 8px var(--gold);
  }
  100% {
    text-shadow: 0 0 0px var(--gold);
  }
}

.minimal-footer:hover .footer-text,
.minimal-footer:hover .footer-note {
  animation: textGlow 1.2s ease-in-out;
}

.footer-text {
  font-size: 0.95rem;
  color: var(--gold);
  line-height: 1.6;
}

.footer-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}