/* ====================================================================
   QRfrog – website styles (navigation, footer, legal pages)
   Builds on the variables and components from assets/css/style.css.
   The QR generator itself (inside .generator-section) is untouched and
   keeps using style.css only.
   ==================================================================== */

/* ---------- Page shell ---------- */

body.site {
  background: var(--accent-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 28px;
}

.site-frame {
  position: relative;
  width: 100%;
  max-width: var(--outer-box-width);
  margin: 0 auto;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 30px 80px rgba(70, 30, 130, 0.35);
}

/* ---------- Logo (used in header + footer) ---------- */

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* ---------- Header / nav ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
}

.site-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.active {
  color: var(--accent-1);
  background: rgba(173, 98, 254, 0.12);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--accent-1);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.breadcrumb .current {
  color: var(--accent-1);
}

/* ---------- Generator section ---------- */

/* No horizontal padding here: .page already provides the same 24px
   side gutter that .content uses, so both stay the same width at
   every viewport instead of being inset twice on the generator side. */
.generator-section {
  padding: 32px 0 64px;
}

/* In diesem Breitenbereich ist das 4-spaltige Typ-Raster so schmal, dass
   "Soziale Medien" umbricht und die ganze Reihe (App/Video/Soziale
   Medien/Ereignis) dadurch höher wird als die anderen. 3 Spalten geben
   genug Platz, damit alle Labels einzeilig bleiben. */
@media (min-width: 481px) and (max-width: 599px) {
  .generator-section .type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 24px 40px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 18px;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal-links a:hover {
  color: var(--accent-1);
}

.footer-credit {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0 40px 20px;
  margin: 0;
}

.footer-credit a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--accent-1);
}

/* ---------- Legal / content pages ---------- */

.page-hero {
  text-align: center;
  padding: 48px 24px 32px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

.content {
  width: 100%;
  max-width: var(--inner-box-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  box-sizing: border-box;
}

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.content-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 22px 0 8px;
}

.content-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
  margin: 0 0 14px;
}

.content-card ul {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
  margin: 0 0 14px;
  padding-left: 20px;
}

.content-card li {
  margin-bottom: 4px;
}

.content-card strong {
  color: var(--text);
}

/* ---------- Info sections (how-to / FAQ / troubleshooting) ---------- */

.info-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.howto-steps {
  list-style: none;
  counter-reset: howto-step;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.howto-steps > li {
  position: relative;
  padding-inline-start: 40px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.howto-steps > li::before {
  counter-increment: howto-step;
  content: counter(howto-step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.howto-steps h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.howto-steps p {
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-1);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  body.site {
    padding: 0;
  }

  .site-frame {
    border-radius: 0;
  }

  .site-header {
    padding: 18px 20px;
  }

  .content-card {
    padding: 24px;
  }

  .site-footer {
    padding: 20px;
    justify-content: center;
    text-align: center;
  }
}
