/* 🌍 Basislayout */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f5f7;
  color: #222;
  margin: 0;
  padding: 0;
}

h1, h2 {
  color: #005073;
}

a {
  color: #007c91;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
}

.btn-hellblau {
  background-color: #e6eff2;
  color: #005073;
  border: 2px solid #005073;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.btn-grau {
  background-color: #f4f4f4;
  color: #333;
  border: 2px solid #999;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}


/* 🧱 Container */
.public-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

/* ✅ Abschnittsrahmen */
.suchbereich {
  background-color: #e0e7eb;
  padding: 1rem 1.2rem;
  border: 2px solid #005073;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.suchbereich.platzhalter {
  opacity: 0.7;
}

/* 🔘 Buttons in der Mitte */
.button-duo {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.button-duo a {
  text-decoration: none;
  font-weight: bold;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1.05rem;
  text-align: center;
  display: inline-block;
  min-width: 220px;
}

.btn-rea {
  background-color: #a30000;
  color: white;
  border: none;
}
.btn-rea:hover {
  background-color: #7a0000;
}

.btn-glossar {
  background-color: #e6eff2;
  color: #005073;
  border: 2px solid #005073;
}
.btn-glossar:hover {
  background-color: #d0e3ea;
}

.rea-buttons-unterhalb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.rea-buttons-unterhalb button {
  min-width: 280px;
  padding: 1.3rem 2rem;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 12px;
  background-color: #a30000;
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(163,0,0,0.10);
  transition: background 0.2s;
  margin-bottom: 0.7rem;
}

.rea-buttons-unterhalb button:last-child {
  background-color: #005073;
  color: #fff;
}

.rea-buttons-unterhalb button:hover {
  background-color: #7a0000;
}

.rea-buttons-unterhalb button:last-child:hover {
  background: #003b5c;
}

/* 📋 Formular & Dokumentation */
.formular-und-doku {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.2rem;
  margin-top: 0.4rem;
}

.formular-bereich {
  flex: 2;
}

.dokumentation-sektion {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.dokumentation-sektion.klein {
  align-self: flex-start;
  max-height: 500px; /* oder z. B. 60vh, je nach gewünschter Größe */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* 🔷 Allgemeine Rahmen */
.framed-blue {
  background-color: #e0e7eb;
  border: 2px solid #005073;
  border-radius: 8px;
  padding: 0.7rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.framed-red {
  background-color: #fbeeee;
  border: 2px solid #a30000;
  padding: 0.7rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.framed-blue,
.framed-red {
  margin-bottom: 0.5rem !important; /* vorher 1.2rem oder 0.8rem */
  padding: 0.7rem 0.8rem !important; /* ggf. auch das Padding etwas enger */
}


/* Gleiche Höhe für alle Haupt-Kacheln */
.framed-blue,
.suchbereich,
.rea-kachel {
  min-height: 170px; /* gleiche Mindesthöhe für alle */
}

.such-und-rea,
.framed-blue,
.framed-blue.platzhalter {
  margin-bottom: 2rem;
}

.full-row {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  max-width: 1060px; /* 850 + 200 + 1.2rem Abstand */
  margin: 0 auto 1.2rem auto;
  flex-wrap: wrap;
}
.full-row > .framed-blue {
  flex: 1;
  margin: 0;
}


/* 📋 Buttons */
.doku-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary {
  background-color: #005073;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 5px;
}

.btn-danger {
  background-color: #a30000;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 5px;
}

#copy-confirmation {
  font-size: 0.9rem;
  color: green;
  margin-left: 0.5rem;
}

/* 📌 Zusatzinfos */
.bold {
  font-weight: 600;
}
.section-info {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #444;
  font-weight: 600;
}

/* ☑️ Checkbox-Grid */
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* 📥 Alarmierung */
.alarmierungs-block {
  margin-bottom: 0.8rem;
}
.hidden {
  display: none;
}

/* ✍️ Eingabefelder */
textarea {
  width: 100%;
  padding: 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #bbb;
  background-color: white;
  resize: vertical;
  box-sizing: border-box;
}

/* 🌐 Header */
.header-logo {
  height: 80px;
  margin-right: 1.5rem;
  border-radius: 10px;
}

.public-header {
  background-color: #005073;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 2rem;
  padding-right: 2rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text h1 {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0;
  color: white;
}

.subtitle {
  margin: 0;
  font-size: 1rem;
  color: #ccea5f;
}

/* 🌐 Navigation */
.public-nav {
  background-color: #e6eff2;
  display: flex;
  gap: 1.5rem;
  padding: 0.6rem 2rem;
  border-bottom: 2px solid #007c91;
}

.public-nav a {
  color: #005073;
  text-decoration: none;
  font-weight: bold;
}
.public-nav a:hover {
  text-decoration: underline;
}

/* 🏠 Startseite */
.startseite-grid {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 3rem;
}

.start-links {
  flex: 2;
}

.start-rechts {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.bildrahmen {
  background-color: #f0f4f7;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  max-width: 350px;
  height: auto;
}

.startbild {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 📋 Textblöcke */
.intro-text h1 {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  color: #005073;
}
.subtitle-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
}

.intro-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.intro-logo {
  height: 60px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-bereich {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.header-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-bild {
  max-width: 100%;
  height: auto;
  max-height: 220px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header-rechts {
  flex: 2;
}

.header-titel {
  font-size: 2.4rem;
  color: #005073;
  margin-bottom: 0.5rem;
}

.header-subtext {
  font-size: 1.2rem;
  color: #333;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #005073;
  margin-bottom: 0.4rem;
}

.rea-schnellzugriff {
  display: flex;
  align-items: stretch;
}

.such-und-rea {
  display: flex;
  align-items: stretch;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.such-und-rea .suchbereich {
  flex: 1;
  margin: 0;
}

.rea-kachel {
  background-color: #fbeeee;
  color: #a30000;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  width: 200px;
  height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 2px solid #005073;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: background-color 0.3s, color 0.3s;
}
.rea-kachel:hover {
  background-color: #ffe5e5;
  color: #7a0000;
  text-decoration: none;
}

/* 🔎 Suchfeld */

.suchzeile {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.search-form {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.8rem;
}
.search-form input[type="text"] {
  flex: 1;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.search-form input[type="submit"] {
  background-color: #005073;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
.search-form input[type="submit"]:hover {
  background-color: #003b5c;
}

/* 🔄 Responsive */
@media (max-width: 900px) {
  .startseite-grid {
    flex-direction: column;
  }

  .start-rechts {
    justify-content: center;
    margin-top: 2rem;
  }

  .bildrahmen {
    max-width: 400px;
    margin: 0 auto;
  }

  .startbild {
    width: 100%;
    height: auto;
  }

  .suchzeile {
    justify-content: center;
  }
}

.kachel-breit {
  width: calc(850px + 200px + 1.2rem); /* exakt Breite der oberen Zeile */
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  gap: 1.2rem;
}

/* 👇 Gleiche Breite wie Notfall + REA zusammen */
.gleiche-breite {
  display: flex;
  justify-content: space-between;
  max-width: calc(850px + 200px + 1.2rem); /* Suchfeld + REA + Abstand */
  margin: 0 auto 2rem auto;
}

.fullwidth {
  flex: 1;
}

/* 📏 Einheitliche Zeilenbreite für Startseite */
.zeilenbreite {
  width: calc(850px + 200px + 1.2rem); /* suchbereich + rea-kachel + Abstand */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem; /* Abstand zwischen den Kacheln */
}

.zeilenbreite .framed-blue {
  margin-bottom: 0; /* Abstand wird jetzt durch gap geregelt */
}

/* 🧩 Abstand zwischen gestapelten Kachel-Blöcken */
.kachel-breit + .kachel-breit {
  margin-top: 0; /* passt zur Lücke oberhalb (REA/Notfall) */
}

.kachel-breit .framed-blue {
  margin-bottom: 0;
}
/* Schriftgrößen & Padding optimiert */
.section-title {
  font-size: 1.2rem;
}

.framed-blue p,
.suchbereich p {
  font-size: 1.05rem;
}

/* Eingabefelder */
.search-form input[type="text"] {
  padding: 0.8rem;
  font-size: 1.05rem;
}

/* Buttons */
.search-form input[type="submit"],
.btn-glossar,
.btn-rea {
  font-size: 1.1rem;
  padding: 0.7rem 1.4rem;
}

/* Kompaktes Notruf-Layout */
.framed-blue,
.framed-red,
.suchbereich,
.rea-kachel {
  min-height: 0 !important;         /* Mindesthöhe aufheben */
  padding: 0.5rem 0.7rem !important;
  margin-bottom: 0.3rem !important;
}

.public-container {
  max-width: 1150px;
  padding: 1.2rem;
}

.formular-und-doku {
  gap: 0.7rem;
}

.formular-bereich {
  flex: 1.6;
}

.doku-bereich {
  flex: 1;
}

/* Schrift in Formular kleiner */
.form-section h2,
.form-section p,
.checkbox-group,
.section-info {
  font-size: 0.97rem;
}

/* Checkboxen und Radios etwas kleiner */
.checkbox-grid label,
input[type="checkbox"], input[type="radio"] {
  font-size: 0.95rem;
  transform: scale(0.92);
}

/* Abstand zwischen Checkboxen noch enger */
.checkbox-grid {
  gap: 0.1rem 0.3rem;
}

/* Alarmierungsblock enger */
.alarmierungs-block {
  margin-bottom: 0.3rem;
}

/* Textarea kompakter */
textarea {
  padding: 0.7rem;
  font-size: 0.97rem;
}

/* Einheitliche Schriftgröße */
body,
.form-section h2,
.form-section p,
.checkbox-group,
.section-info,
.checkbox-grid label,
input[type="checkbox"], input[type="radio"],
textarea,
input[type="text"] {
  font-size: 1rem;
}

/* Doku-Buttons modern */
.doku-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.btn-doku-erstellen {
  background-color: #005073;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-doku-erstellen:hover {
  background-color: #003b5c;
}

.btn-doku-kopieren {
  background-color: #d0e3ea;
  color: #005073;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-doku-kopieren:hover {
  background-color: #005073;
  color: #fff;
}

/* === REA-Anleitung Styles (nur für /rea-anleitung) === */

.rea-anleitung h1 {
  text-align: center;
  color: #a30000;
}

.rea-schritt-box {
  background: #fffbe7;
  border: 2px solid #ffd600;
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1.3rem;
  color: #b97b00;
  font-size: 1.18rem;
  text-align: center;
}

.rea-ergebnis-box {
  background: #e0e7eb;
  border-radius: 7px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.8rem;
  display: inline-block;
  font-size: 1.04rem;
}

.rea-schritte {
  margin: 1.5rem 0 1.3rem 1.5rem;
  font-size: 1.13rem;
}

.rea-anweisung {
  margin: 0 0 1.1rem 2.2rem;
  font-size: 1.08rem;
}

.rea-klein {
  font-size: 0.94rem;
  color: #555;
}

.rea-ueberzeugung {
  margin-left: 2.2rem;
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
.rea-ueberzeugung ul {
  margin: 0.2rem 0 0 0.8rem;
}

.rea-doku-felder {
  margin-bottom: 2rem;
}
.rea-doku-felder > div {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.rea-doku-felder label {
  min-width: 180px;
  font-weight: bold;
}
.rea-doku-felder input[type="text"] {
  font-size: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #bbb;
  margin-right: 0.2rem;
}

.taktgeber-banner {
  margin: 2rem 0 1.5rem 0;
  padding: 1.3rem 2rem;
  background: #fbeeee;
  color: #a30000;
  font-weight: bold;
  font-size: 1.6rem;
  text-align: center;
  border-radius: 14px;
  border: 2px solid #a30000;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 4px 12px rgba(163,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.rea-doku-zusammenfassung {
  margin-top: 2.5rem;
}
.rea-doku-zusammenfassung button {
  margin-top: 0.7rem;
  background: #005073;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
}

/* 🌐 public.css – Styles für Schnellauswahl & Startseite */

/* 🔘 Schnellauswahl-Buttons unter dem Suchfeld */
.schnellwahl-buttonzeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

/* 🔴 Rote Buttons für häufige Notfälle */
.btn-rot {
  background-color: #a30000;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.05rem;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn-rot:hover {
  background-color: #7a0000;
}

/* 🟦 Blaue Buttons für andere Schnellaufrufe */
.btn-schnell {
  background-color: #005073;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.05rem;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn-schnell:hover {
  background-color: #003b5c;
}

/* 🧾 Spezieller Button für ZM/RM */
.btn-zmrm {
  background-color: #fbeeee;
  color: #a30000;
  border: 2px solid #a30000;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.btn-zmrm:hover {
  background-color: #ffdada;
  color: #7a0000;
}

/* 📦 Kachel-Grid für Schnellauswahlseite */
.schnellauswahl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

/* 📦 Kachel jetzt mit vertikalem Layout */
.schnellkachel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.8rem;
  border: 2px solid #004466;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #002b36;
  transition: transform 0.1s ease;
  min-height: 85px;
  text-align: center;
}

.schnellkachel:hover {
  background-color: #d3e2eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none;
}

.schnellkachel-button {
  background-color: #005073;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 1rem;
  text-align: center;
  min-width: 90px;
  max-width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

/* 🔖 Zentrierte Buttons */
.schnellkachel .btn-label {
  margin-bottom: 0.4rem;
  min-width: auto;
  padding: 0.3rem 0.6rem;
  font-weight: bold;
  border-radius: 0.4rem;
  font-size: 0.9rem;
}

/* 🧾 Beschreibung zentriert */
.schnellkachel p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 🔴 Für rote Schnellkacheln */
.schnellkachel-rot {
  background-color: #fbeeee;
  border: 2px solid #a30000;
}
.schnellkachel-rot .schnellkachel-button {
  background-color: #a30000;
}

/* 📝 Beschreibungstext neben Buttons */
.schnellkachel-beschreibung {
  flex: 1;
  font-size: 1rem;
  color: #222;
}

/* Hintergrundfarben für die Schnellkacheln */
.btn-rot-hintergrund {
  background-color: #f7dcdc;
}

.btn-blau-hintergrund {
  background-color: #dceaf7;
}


/* 🧱 Abstand zwischen Gruppen */
.trenner {
  height: 1.2rem;
}

/* 📱 Responsives Verhalten */
@media (max-width: 700px) {
  .schnellkachel {
    flex-direction: column;
    align-items: flex-start;
  }
  .schnellkachel-button {
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
  }
  .schnellkachel-beschreibung {
    font-size: 0.95rem;
  }
}

.branding h1 a {
  color: #e1ecf3;
}
.branding h1 a:hover {
  color: #ffffff;
}
.public-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #f1f1f1;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ccc;
}

.branding-with-image {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.branding-logo {
  height: 50px;
  width: auto;
}

.branding-logo.large-logo {
  height: 160px; /* oder z.B. 100px – nach Geschmack anpassen */
  margin-right: 1rem;
}

/* Navigation dezenter */
.public-nav {
  background-color: transparent;
  padding: 0.4rem 2rem;
  border-bottom: none;
}


.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.disabled-button {
  pointer-events: none;
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  display: inline-block;
  opacity: 0.6;
}

/* Archiv-Details kompakter darstellen */
.toggle-box {
  margin-top: 0.3rem;
}

.toggle-button {
  background: none;
  border: none;
  color: #005fa3;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.2rem;
}

.toggle-inhalt {
  margin-left: 0.2rem;
  padding-left: 0.5rem;
  border-left: 2px solid #ddd;
}



/* Optional: Responsive Anpassung für kleine Bildschirme */
@media (max-width: 700px) {
  .rea-anleitung h1 { font-size: 1.25rem; }
  .rea-schritte, .rea-anweisung, .rea-ueberzeugung { font-size: 1rem; }
  .taktgeber-banner { font-size: 1.1rem; }
  .rea-doku-felder label { min-width: 105px; }
}
