/* ======================================================
   SUBPAGE LAYOUT (Minimal, unabhängig vom Hero-Layout)
   ======================================================

   Dieses Stylesheet ist nur für Nebenseiten gedacht, die kein Hero/Startseiten-Layout
   verwenden und stattdessen eine reduzierte Header-Navigation (Logo + Back-Link) zeigen.

   Anwendung: body.subpage + include ./includes/subpage-header.php
*/

body.subpage {
  background: var(--bg);
  color: var(--text);
}

/* ----- Header ----- */
.subpage-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 39, 71, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(194, 164, 109, 0.15);
}

.subpage-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.subpage-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.subpage-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Back link-style (minimal, freundlich, interaktiv) */
.subpage-backlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease;
  white-space: nowrap;
}

.subpage-backlink:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

/* ----- Main content wrapper ----- */
.subpage-main {
  padding: 42px 20px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Abstand für größere Displays */
@media (min-width: 1100px) {
  .subpage-main {
    padding: 52px 24px 100px;
  }
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .subpage-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .subpage-backlink {
    width: 100%;
    justify-content: center;
  }
}
