/* ==========================================================================
   SpinBara7.de – shared stylesheet
   Pure CSS, no JavaScript. Mobile-first-ish, adaptive for all viewports.
   ========================================================================== */

:root {
  --color-primary: #7b3ff2;
  --color-primary-dark: #4d1fa8;
  --color-primary-light: #a97bff;
  --color-accent: #6fc8ff;
  --color-gold: #ffb020;
  --color-gold-dark: #e0891a;
  --color-dark: #150f28;
  --color-dark-2: #1f1740;
  --color-text: #241c3d;
  --color-text-light: #59516f;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f3fb;
  --color-border: #e4defa;
  --max-width: 1200px;
  --radius: 12px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration-color: rgba(123, 63, 242, 0.35);
}

a:hover {
  text-decoration-color: currentColor;
}

h1, h2, h3, h4 {
  color: var(--color-dark);
  line-height: 1.25;
  font-weight: 800;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; }

p { margin: 1em 0; }

ul, ol { padding-left: 1.3em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: #ffffff;
}

.btn-solid {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
}

.btn-solid:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #2b1a00;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  box-shadow: 0 10px 24px rgba(224, 137, 26, 0.35);
}

.btn-cta:hover {
  filter: brightness(1.05);
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, var(--color-dark), var(--color-dark-2));
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
  position: relative;
}

.logo {
  display: block;
  flex-shrink: 0;
  order: 0;
}

.logo img {
  height: 46px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 1.5rem;
  order: 1;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  opacity: 0.9;
}

.site-nav ul a:hover {
  opacity: 1;
  text-decoration: underline;
}

.nav-cta {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  order: 2;
}

.nav-toggle-checkbox {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  flex-shrink: 0;
  order: 3;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.4rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
  color: var(--color-text-light);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-bg-alt);
}

.hero-inner {
  position: relative;
  padding: 1.5rem 1.25rem;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-dark);
}

.hero-media img {
  width: 100%;
  height: auto;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 1.25rem;
  height: calc(100% - 0px);
  width: 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.5rem 1.5rem 1.5rem 2.25rem;
  color: #ffffff;
}

.hero-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-text {
  margin: 0;
  color: #ece8fb;
  font-size: 0.98rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-content .btn-cta {
  align-self: flex-start;
}

/* ---------- Article / content ---------- */
main {
  display: block;
}

article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

article section {
  margin-top: 1.5rem;
}

main aside {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* TOC accordion */
article > nav[aria-label] details,
article > nav[aria-label] {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

article > nav[aria-label] {
  padding: 0;
  margin: 1.5rem 0;
}

article > nav[aria-label] details {
  border: none;
  padding: 0.9rem 1.25rem;
}

article > nav[aria-label] summary {
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-dark);
  list-style: revert;
}

article > nav[aria-label] summary::marker {
  color: var(--color-primary);
}

article > nav[aria-label] ol,
article > nav[aria-label] ul {
  margin: 0.9rem 0 0.2rem;
  padding-left: 1.2em;
}

article > nav[aria-label] li {
  margin: 0.35em 0;
}

article > nav[aria-label] a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
}

article > nav[aria-label] a:hover {
  text-decoration: underline;
}

/* Generic <details> FAQ styling */
details {
  margin: 0.9rem 0;
}

section#faq details,
section[id*="faq" i] details {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
}

section#faq summary,
section[id*="faq" i] summary {
  cursor: pointer;
  font-weight: 700;
}

/* Definition lists (FAQ) */
dl dt {
  font-weight: 700;
  margin-top: 1.1em;
  color: var(--color-dark);
}

dl dd {
  margin: 0.3em 0 0;
  color: var(--color-text-light);
}

/* Tables – no horizontal scroll on mobile */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

thead th {
  background: var(--color-bg-alt);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(120deg, var(--color-dark), var(--color-dark-2));
  color: #cfc8e6;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 2rem;
  padding: 2.5rem 1.25rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #b3aad1;
  margin: 0;
}

.footer-nav h3,
.footer-legal h3 {
  color: #ffffff;
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav a {
  color: #cfc8e6;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal p {
  font-size: 0.82rem;
  color: #a99fc9;
  margin: 0 0 0.7rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: #9184b3;
}

/* ==========================================================================
   Responsive – tablet
   ========================================================================== */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Responsive – mobile (burger nav, stacked hero, single-row header)
   ========================================================================== */
@media (max-width: 768px) {
  .header-inner {
    min-height: 60px;
    gap: 0.6rem;
  }

  .logo img {
    height: 32px;
  }

  .burger {
    display: flex;
    width: 26px;
    height: 26px;
    gap: 4px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-dark-2);
    max-height: 0;
    overflow: hidden;
    gap: 0;
    transition: max-height 0.25s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.25rem;
  }

  .site-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav ul a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-toggle-checkbox:checked ~ .site-nav {
    max-height: 260px;
  }

  /* CTA buttons stay put in the header row; only the page links collapse */
  .nav-cta {
    margin-left: auto;
    gap: 0.4rem;
  }

  .nav-cta .btn {
    padding: 0.42rem 0.65rem;
    font-size: 0.72rem;
    border-radius: 6px;
  }

  /* Hero stacks under the banner, image never cropped */
  .hero-inner {
    padding: 1rem 1.25rem;
  }

  .hero-media {
    position: static;
  }

  .hero-content {
    position: static;
    width: 100%;
    height: auto;
    padding: 1.25rem 0.25rem 0.25rem;
    color: var(--color-text);
    text-align: left;
  }

  .hero-title {
    color: var(--color-dark);
    text-shadow: none;
  }

  .hero-text {
    color: var(--color-text-light);
    text-shadow: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  article {
    padding: 1.5rem 1rem 2.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-inner {
    padding: 0.75rem 1rem;
  }

  .header-inner {
    gap: 0.4rem;
  }

  .logo img {
    height: 28px;
  }

  .nav-cta {
    gap: 0.3rem;
  }

  .nav-cta .btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.68rem;
  }

  .burger {
    width: 24px;
    height: 24px;
  }
}
