/* ========== Basislayout & Schrift ========== */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0rem;
  background: #f9f9f9;
  color: #333;
}

/* ========== Kopf- & Fußbereich ========== */
header {
  background-color: #B0C4DE;   /* Helles Stahlblau */
  padding: 0.1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
main {
  flex: 1;
  padding-bottom: 1rem; /* Platz für Footer wenn nötig */
}

footer {
  background-color: #B0C4DE;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}
}
/* ========== Überschriften ========== */
h1, h2 {
  color: #004080;
  font-size: clamp(1.5rem, 2.5vw, 2rem); /* dynamische Größe */
}

/* ========== Links ========== */
a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ========== Rasterlayouts ========== */

/* grid1 = 1 Spalte (immer) */
.grid1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1200px;
}

/* grid2 = 2 Spalten ab Tablet-Breite */
.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1200px;
}
@media (min-width: 600px) {
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* grid3 = 3 Spalten ab Desktop-Breite */
.grid3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1200px;
}
@media (min-width: 768px) {
  .grid3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* grid3 = 3 Spalten ab Desktop-Breite */
.grid6 {
  display: grid;
  grid-template-columns:  1fr 1fr 1fr;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1200px;
}
@media (min-width: 768px) {
  .grid6 {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  }
}


/* grids = 1–2–1 Layout ab Desktop */
.grids {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1200px;
}
@media (min-width: 768px) {
  .grids {
    grid-template-columns: 1fr 2fr;
  }
}

/* ========== Boxen mit weißem Hintergrund ========== */
.box {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.box p {
  line-height: 1.5; /* kleiner als Standard (1.5–1.6) */
}
/* ========== Bilder mit Hover-Zoom ========== */
img {
  width: 100%;
  height: auto;
  /* Bilder im Originalformat 4:3 – kein Zuschnitt nötig */
  border-radius: 12px;
  transition: transform 0.3s ease;
}
img:hover {
  transform: scale(1.02);
}

/* ========== Buttons als Links ========== */
.link-button {
  display: inline-block;
  margin-top: 1rem;
  background: #0066cc;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}
.link-button:hover {
  background: #004f99;
}
.highlight {
  font-weight: bold;
  color: #004f99;
}
.table-clean {
  width: 100%;               /* volle Breite der .box */
  border-collapse: collapse; /* keine doppelten Linien */
  table-layout: auto;        /* automatische Zellgröße */
}

.table-clean td {
  border: none;              /* unsichtbare Zellen */
  padding: 0.25rem 0.5rem;   /* gleichmäßiger Innenabstand */
  vertical-align: top;       /* schöner Textfluss */
}

.top-nav {
  background-color: #A2B7CE;  /* etwas dunkler als Header (#B0C4DE) */
  text-align: center;
  padding: 0.5rem 0;
  font-size: 1rem;
}

.top-nav a {
  color: #003366;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}

.top-nav a:hover {
  text-decoration: underline;
  color: #002244;
}

  body { 
    font-family: Arial, sans-serif; 
    background: #f5f5f5; 
    margin:0; 
  }
  main { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
  }
  h2 { 
    text-align: center; 
    margin: 20px 0; 
    color: #004080; 
  }
  .miet-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1rem; 
  }
  .miet-spalte { 
    background: #f9f9f9; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    padding: 15px; 
  }
  .spalten-titel { 
    text-align: center; 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
    color: #006600; 
  }
  .miet-card { 
    border: 1px solid #ccc; 
    border-radius: 6px; 
    background: #fff; 
    padding: 10px; 
    margin-bottom: 10px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
  }
  .miet-card h4 { 
    margin: 0 0 5px; 
    font-size: 1rem; 
  }
  .miet-card p { 
    margin: 3px 0; 
    font-size: 0.9rem; 
  }
  .miet-card ul {
    margin: 4px 0 8px;
    padding-left: 40px; /* Einrückung der Bullet-Liste */
    font-size: 0.9rem;
  }
  .status-row {
    display: flex;
    justify-content: space-between; /* Status links, Button rechts */
    align-items: center;
    margin-top: 8px;
  }
  .status {
    font-weight: bold;
    font-size: 0.95rem;
    padding: 2px 6px;
    border-radius: 4px;
  }
  .status.vermietet { 
    color: #fff;
    background-color: #d40000; /* Rot für vermietet */
  }
  .status.frei { 
    color: #fff;
    background-color: #009900; /* Grün für frei */
  }
  .bilder-btn { 
    padding:5px 8px; 
    background:#f0f8ff; 
    border:1px solid #0077cc; 
    border-radius:4px; 
    color:#0077cc; 
    text-decoration:none; 
    font-size:0.85rem; 
  }
  .bilder-btn:hover { 
    background:#0077cc; 
    color:white; 
  }
  @media (max-width: 900px) { 
    .miet-container { grid-template-columns: 1fr; } 
  }