/* ===============================
   Farb- & Stil-Variablen
   =============================== */
:root {
  --brand: #0d5c63;
  --accent: #e5a100;
  --bg: #f6f8fa;
  --text: #1f2937;
}

/* ===============================
   Basis-Stile & Typografie
   =============================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.card a {
  text-decoration: underline;
}
.nav a {
  text-decoration: none;
}
.nav a:hover {
  text-decoration: underline;
}

/* ===============================
   Layout-Helfer
   =============================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* ===============================
   Navigation / Topbar
   =============================== */
.topbar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  padding: 10px 12px;
  border-radius: 10px;
}

.nav a.active,
.nav a:hover {
  background: #eef6f7;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  margin-right: auto;
  color: var(--brand);
}

/* ===============================
   Hero-Bereich
   =============================== */
.hero-header {
  position: relative;
  width: 100%;
  height: 300px; /* du kannst 250–400px wählen */
  background: url("heizwerk/vorstellung/heizwerk_main.jpg") center center / cover no-repeat;
}

/* dunkler Schleier, damit Text gut lesbar bleibt */
.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 1rem;
}

.hero-overlay h1 {
  font-size: 2.2rem;
  margin: 0;
}

.hero-overlay p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ===============================
   Karten / Content-Blöcke
   =============================== */
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin: 18px 0;
}

/* ===============================
   Grid-System (z. B. für Galerien)
   =============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* ===============================
   Tabellen
   =============================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
}

thead th {
  background: #f9fafb;
  font-weight: 600;
}

/* ===============================
   Footer & Kleintexte
   =============================== */
.footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  margin-top: 48px;
}

.small {
  font-size: 14px;
  color: #4b5563;
}

/* ===============================
   Typografie / Elemente
   =============================== */
h2 {
  margin-top: 18px;
}

.badge {
  display: inline-block;
  background: #fff6e0;
  color: #6b4b00;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  margin-left: 8px;
}

.note {
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
}

/* ===============================
   Bild-Darstellung auf "Über uns"
   =============================== */
.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.image-row img {
  width: 280px;           /* feste Breite für Einheitlichkeit */
  height: 190px;          /* gleichmäßige Höhe */
  object-fit: cover;      /* schneidet Überstand ab, verzerrt nicht */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.single-image {
  display: block;
  margin: 16px auto;      /* zentriert das Bild */
  width: 70%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  object-fit: cover;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9-Verhältnis */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-row img {
  cursor: pointer;
  transition: transform 0.2s;
}
.image-row img:hover {
  transform: scale(1.02);
}
dialog img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
dialog {
  border: none;
  padding: 0;
  background: rgba(0,0,0,0.8);
}
