/* ============================================
   PILATERIE PILATES – Global Stylesheet
   ============================================ */

/* RESET & BASE
   ------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:     #f6f2ed;
  --navy:   #003153;
  --lime:   #a6fe57;
  --blue:   #055186;
  --forest: #427416;
  --stone:  #c8c4be;
  --sky:    #a0cded;
  --mint:   #bceb94;
}

body {
  font-family: 'Raleway', sans-serif;
  background: var(--bg);
  color: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER
   ------------------------------------------ */
header {
  background: var(--navy);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  height: 200px;
  width: auto;
}

@media (max-width: 600px) {
  .logo-link img {
    height: 120px;
  }
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

nav a:hover { opacity: 1; }

/* PAGE HERO
   ------------------------------------------ */
.page-hero {
  background: var(--bg);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.page-hero .accent-bar {
  width: 48px;
  height: 3px;
  background: var(--lime);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.page-hero .meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--stone);
}

/* TABLE OF CONTENTS
   ------------------------------------------ */
.toc-wrapper {
  max-width: 780px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
}

.toc {
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
}

.toc--lime { border-left: 3px solid var(--lime); }
.toc--sky  { border-left: 3px solid var(--sky); }

.toc p {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.toc ol,
.toc ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.toc li a {
  font-size: 0.875rem;
  color: var(--navy);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.toc li a:hover { opacity: 1; }

/* MAIN CONTENT
   ------------------------------------------ */
main {
  flex: 1;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--stone);
  margin: 2.5rem 0;
}

/* SECTIONS (Impressum & generic)
   ------------------------------------------ */
.section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 2rem;
}

.section h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section p,
.section address {
  font-size: 0.975rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--navy);
  font-style: normal;
}

/* PARAGRAPHS (AGB)
   ------------------------------------------ */
.para {
  margin-bottom: 2.75rem;
  scroll-margin-top: 2rem;
}

.para h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--stone);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.para h2 .para-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--lime);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}

.para p {
  font-size: 0.975rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.para p:last-child { margin-bottom: 0; }

/* DATENSCHUTZ SECTIONS
   ------------------------------------------ */
.ds-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 2rem;
}

.ds-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--stone);
}

.ds-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 1.25rem 0 0.5rem;
}

.ds-section p {
  font-size: 0.955rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.ds-section p:last-child { margin-bottom: 0; }

.ds-section ul,
.ds-section ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.ds-section li {
  font-size: 0.955rem;
  line-height: 1.8;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.ds-section strong { font-weight: 600; }

/* INFO BOX (Datenschutz)
   ------------------------------------------ */
.info-box {
  background: white;
  border-left: 3px solid var(--sky);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
}

.info-box p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* LINKS (shared)
   ------------------------------------------ */
.section a,
.para a,
.ds-section a,
.info-box a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--sky);
  transition: border-color 0.2s;
  word-break: break-all;
}

.section a:hover,
.para a:hover,
.ds-section a:hover,
.info-box a:hover {
  border-color: var(--blue);
}

/* FOOTER
   ------------------------------------------ */
footer {
  background: var(--navy);
  padding: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--lime); }

footer p {
  font-size: 0.8rem;
  color: var(--stone);
  opacity: 0.6;
}

/* RESPONSIVE
   ------------------------------------------ */
@media (max-width: 600px) {
  header { padding: 0 1.25rem; }

  main,
  .toc-wrapper { padding-left: 1.25rem; padding-right: 1.25rem; }
}
