/* Zentrale style.css für heinsberg-sauerland-zeitfenster.de */

body {
  margin: 0;
  padding: 2vw;
  padding-top: 80px; /* Inhalt unter Header platzieren */
  background-color: #2D6F3A;
  font-family: sans-serif;
}

/* Bilder */
img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  margin: 40px auto 60px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2vw;
  max-width: 900px;
  margin: 0 auto;
}

.grid a {
  display: block;
  width: 100%;
}

.grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.grid img:hover {
  transform: scale(1.02);
}

/* Footer (wird aktuell nicht verwendet) */
footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  background-color: #2D6F3A;
  color: white;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: none;
}

/* Zurück-Button */
.back-button {
  background-color: #ffffff22;
  border: 1px solid white;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-bottom: 20px;
}

.back-button:hover {
  background-color: #ffffff44;
}

/* Content-Box (z. B. für Texte mit weißem Hintergrund – aktuell nicht genutzt) */
.content {
  margin-top: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  white-space: pre-line;
  color: #222;
  background-color: #f4f4f4;
  padding: 2vw;
  border-radius: 6px;
}

.content h1, .content h2, .content h3 {
  color: #2D6F3A;
}

.content h1 {
  font-size: 2em;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

.content h2 {
  font-size: 1.5em;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.content h3 {
  font-size: 1.2em;
  margin-top: 0.8em;
  margin-bottom: 0.4em;
}


/* Menü-Button (Hamburger-Menü) */
#menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1202;
}

#menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: 0.3s;
}

/* Seitenmenü */
#side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  transition: left 0.3s ease;
  z-index: 1000;
  padding-top: 4rem;
}

#side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#side-menu ul li a {
  display: block;
  padding: 1rem;
  color: white;
  text-decoration: none;
}

#side-menu ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Menü geöffnet */
#side-menu.open {
  left: 0;
}

/* Overlay für Menü */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

#menu-overlay.active {
  display: block;
}

/* Fixierter Header */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #2D6F3A;
  z-index: 1100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Logo im Header */
#site-header img {
  height: 40px;
  width: auto;
  margin-top: 61px;
  margin-right: 20px;
}

/* Impressum-Bereich mit weißer Schrift */
.impressum {
  max-width: 800px;
  margin: 10px auto;
  padding: 2vw;
  background-color: transparent;
  color: white;
  line-height: 1.5;
  white-space: pre-line;
}

.impressum h1,
.impressum h2,
.impressum h3 {
  color: white;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

.impressum strong {
  color: white;
}

.impressum p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.impressum br {
  display: none;
}

.impressum br::after {
  content: "\A";
  white-space: pre;
}

.impressum a {
  color: white;
  text-decoration: underline;
}

.impressum a:hover {
  color: #ccc;
  text-decoration: none;
}

