/* ===== Final Optimiert: default.css ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(180deg, #000000 30%, #1a0f08 60%, #e9670a 100%);
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-viewport {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
  background: transparent;
}

.content-container {
  max-width: 700px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 1.2em 0 0.4em 0;
  color: #ff5e00;
  letter-spacing: 0.02em;
}

p {
  margin: 0.8em 0;
  line-height: 1.6;
}

a {
  color: #ff5e00;
  text-decoration: underline;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: #fff;
  text-decoration: none;
}

ul, ol {
  margin: 0.7em 0 0.7em 1.4em;
}

img {
  max-width: 100%;
  border-radius: 7px;
  margin: 0.3em 0;
}

hr {
  border: 0;
  border-top: 1px solid #333;
  margin: 2em 0;
}

/* ✅ Heading-Abstände am Seitenanfang neutralisieren */
main h1:first-child,
main h2:first-child,
main h3:first-child {
  margin-top: 0 !important;
}

/* ============================================= */
/* 📱📲💻🖥 RESPONSIVE BREAKPOINTS – 5 STUFEN BASIS */
/* ============================================= */

/* 📱 1. XS – Kleine Smartphones */
@media (max-width: 480px) {
 main {
    position: static;
    padding-top: 150px; /* Header-Höhe */
    padding-bottom: 0;
    overflow-y: visible;
    margin-top: 0; /* Margin entfernen! */
  }
}

/* 📱 2. S – Normale Smartphones */
@media (min-width: 481px) and (max-width: 768px) {
 main {
    position: static;
    padding-top: 150px; /* Header-Höhe */
    padding-bottom: 0;
    overflow-y: visible;
    margin-top: 0; /* Margin entfernen! */
  }
}

/* 📲 3. M – Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
 main {
    position: static;
    padding-top: 150px; /* Header-Höhe */
    padding-bottom: 0;
    overflow-y: visible;
    margin-top: 0; /* Margin entfernen! */
  }
}

/* 💻 4. L – Laptops / kleine Desktops */
@media (min-width: 1025px) and (max-width: 1440px) {
  main {
    position: absolute;
    top: 150px;
    bottom: 90px;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 0 1.2rem;
    box-sizing: border-box;
  }
}

/* 🖥 5. XL – große Desktops */
@media (min-width: 1441px) {
  main {
    position: absolute;
    top: 150px;
    bottom: 90px;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 0 1.2rem;
    box-sizing: border-box;
  }
}


/* ===================================================== */
/* 🧪 Breakpoint Indicator (opt-in via ?debug=1)          */
/* - zeigt aktive Responsive-Stufe (XS/S/M/L/XL)          */
/* - rein visuell, beeinflusst kein Layout                */
/* ===================================================== */
body[data-debug="1"]::after {
  content: "XL";
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 999999;
  font: 700 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,94,0,0.7);
  border-radius: 10px;
  padding: 6px 10px 6px 28px;
  backdrop-filter: blur(4px);
}
body[data-debug="1"]::before {
  content: "";
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 14px;
  height: 14px;
  z-index: 1000000;
  background: no-repeat center/contain;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.7));
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b00'><path d='M4 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H13v2h3a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2h3v-2H6a2 2 0 0 1-2-2V5z'/></svg>");
}
@media (max-width: 1440px) { body[data-debug="1"]::after { content: "L"; } }
@media (max-width: 1024px) {
  body[data-debug="1"]::after { content: "M"; }
  body[data-debug="1"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b00'><path d='M7 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H7zm5 18a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/></svg>"); }
}
@media (max-width: 768px) {
  body[data-debug="1"]::after { content: "S"; }
  body[data-debug="1"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b00'><path d='M9 1a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H9zm3 20a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/></svg>"); }
}
@media (max-width: 480px) {
  body[data-debug="1"]::after { content: "XS"; }
  body[data-debug="1"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b00'><path d='M10 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-4zm2 18a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/></svg>"); }
}
