/* ===== Root Variablen ===== */
:root {
  --bg: #1b1b1b;
  --panel: #2a2a2a;
  --text: #f0f0f0;
  --muted: #9a9a9a;
  --accent: #0077ff;
  --instagram-margin-top: 0.9rem;    /* HIER: Wert kleiner machen, Button rückt nach oben */
  --instagram-margin-bottom: -1.99rem;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0.8rem 1.6rem; background: #222; border-bottom: 2px solid var(--accent);
}
.logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  height: 148px; object-fit: contain;
}
nav { display: flex; gap: 1.2rem; }
nav a { color: var(--text); font-weight: 500; transition: color .2s ease; }
nav a:hover { color: var(--accent); }

/* ===== Carousel Preise-Seite ===== */
main { padding: 1.5rem 1rem 3rem; }
.carousel-container {
  position: relative; margin: 1.5rem auto 1.2rem; max-width: 600px;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.carousel {
  width: 100%; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,119,255,.12);
  position: relative;
}
.carousel img {
  width: 100%; display: none; object-fit: cover; max-height: 700px; border-radius: 12px;
}
.carousel img.active {
  display: block; animation: fade .8s ease;
}
@keyframes fade { from { opacity: .3 } to { opacity: 1 } }
.nav-btn {
  background: rgba(0,0,0,.5); color: #fff; border: none; border-radius: 50%;
  font-size: 1.6rem; width: 40px; height: 40px; cursor: pointer; transition: background .2s;
}
.nav-btn:hover { background: var(--accent); }

/* Instagram-Button für Preise-Seite */
.instagram-link {
  display: block;
  width: 100%;
  text-align: center;
  margin: var(--instagram-margin-top) 0 var(--instagram-margin-bottom) 0;
}
.instagram-link a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.instagram-link a:hover { filter: brightness(0.9); }

/* ===== Footer ===== */
footer {
  margin-top: 0.5rem; /* HIER ändern: Wert verkleinern bringt Footer näher ans Karussell */
  padding: 1.1rem 1rem;
  background: #222;
  color: var(--muted);
  border-top: 2px solid var(--accent);
  text-align: center;
}
.footer-links a { color: var(--muted); margin: 0 .2rem; }
.footer-links a:hover { color: var(--accent); }

/* ===== Modals (sections) ===== */
.section-modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(10,10,10,.86); backdrop-filter: blur(5px); z-index: 2000; padding: 1rem;
}
.section-modal.active { display: flex; }
.section-content {
  width: min(740px, 92vw); background: var(--panel); border-radius: 14px; padding: 1.6rem;
  box-shadow: 0 20px 60px rgba(0,119,255,.12); position: relative;
}
.close-btn {
  position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--text);
  font-size: 1.6rem; cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  header { flex-direction: column; gap: .4rem; }
  .logo { position: static; transform: none; height: 56px; }
  nav { order: 2; }
  .carousel img.active { max-height: 420px; }
}
@media (max-width: 420px) {
  .nav-btn { width: 36px; height: 36px; font-size: 1.4rem; }
  .carousel img.active { max-height: 380px; }
}
