/* ================================
   Einsatzdatenbank.de – Hauptlayout
   ================================ */

/* Grundstruktur */
body {
  background-color: #e9edf2;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333333;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background-color: rgba(31, 58, 95, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  color: #ffffff;
  position:relative;
  height:50px;
}

header img.logo {
  height: 80px;
  position:absolute;
  top:20px;
  left:30px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* Login-Icon */
.login-icon {
  width: 24px;
  height: 24px;
  background: url('../images/login-icon.svg') center/contain no-repeat;
  margin-left: 20px;
}

/* Banner */
.banner {
  background: url('../images/rettungsdienst-banner.png') center/cover no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 40px 0;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: -50px;
  height:300px
}

.center {
  margin-top: -100px;
  width: 100%;
  align-items: center;
  display: flex;
  flex-direction:column;
}
/* Boxen */
.box {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #b0b8c4;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width:1200px;
  margin-bottom:10px;
  }

.box1 {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #b0b8c4;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom:10px;
  }

.box h2 {
  color: #1f3a5f;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.boxbox{
  display:grid;
  grid-template-columns: auto auto auto;
  gap:30px;
  width:1200px;
  grid-auto-columns:600px;
}

/* Buttons */
.button {
  background-color: #c62828;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #8e0000;
}

/* Einsatzkarten */
.case-card {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #b0b8c4;
  border-radius: 6px;
  padding: 15px;
  margin: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.case-card h3 {
  color: #c62828;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: rgba(31, 58, 95, 0.95);
  color: #ffffff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* ================================
   Responsive Anpassungen
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
  header {
    padding: 10px 20px;
  }
  .box {
    padding: 15px;
  }
  .banner {
    font-size: 1.2rem;
  }
}

/* Smartphone */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav a {
    margin: 10px 0;
  }
  .banner {
    padding: 20px 0;
    font-size: 1rem;
  }
  .box {
    width: 90%;
    margin: 10px auto;
  }
  .button {
    width: 100%;
  }
  .login-icon {
    width: 20px;
    height: 20px;
  }
}