/* Spiced palette — sourced from NF-SP-brand-colours-reference.md */
:root {
  --brand: #3F0097;          /* Spiced Primary Purple */
  --brand-ink: #2E016D;      /* Spiced Primary Dark Purple */
  --brand-accent: #8236FF;   /* Spiced Accent Purple */
  --ink: #303030;            /* Black Text Color */
  --muted: #6F727B;          /* Text Gray */
  --rule: #EEEEEE;           /* Gray 2 */
  --bg: #FFFFFF;             /* Foam */
  --bg-soft: #F5F6F6;        /* Light Gray Background */
  --max-width: 720px;
  --pad: 1.5rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
a:hover { color: var(--brand-ink); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--pad) 3rem;
}

.container--text {
  max-width: 680px;
}

.brand {
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand a {
  border-bottom: none;
  display: inline-block;
}

.lang-toggle {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle a {
  color: var(--muted);
  border-bottom: none;
  padding: 0.15rem 0.25rem;
  text-transform: uppercase;
  font-weight: 500;
}

.lang-toggle a:hover {
  color: var(--brand);
}

.lang-toggle a.is-active {
  color: var(--brand);
  font-weight: 700;
  cursor: default;
}

.logo {
  display: block;
  height: auto;
  max-width: 220px;
  width: auto;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--brand);
}

.hero .lead {
  font-size: 1.1875rem;
  color: var(--ink);
  margin: 0;
  max-width: 36rem;
}

.section {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section p {
  margin: 0 0 1rem;
}

.program-accordion {
  margin: 1rem 0 0;
  border-top: 1px solid var(--rule);
}

.program-area {
  border-bottom: 1px solid var(--rule);
}

.program-area > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1rem 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--brand);
  background: var(--bg-soft);
  user-select: none;
  transition: background 0.15s ease;
}

.program-area > summary::-webkit-details-marker { display: none; }
.program-area > summary::marker { content: ""; }

.program-area > summary:hover {
  background: #ECE3FB; /* very light tint of Spiced purple */
}

.program-area[open] > summary {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
}

.program-area-name {
  flex: 1 1 auto;
}

.program-area-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  position: relative;
}

.program-area-icon::before,
.program-area-icon::after {
  content: "";
  position: absolute;
  background: var(--brand);
  border-radius: 1px;
  transition: transform 0.2s ease;
}

.program-area-icon::before {
  /* horizontal bar */
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
}

.program-area-icon::after {
  /* vertical bar — hidden when open */
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
}

.program-area[open] .program-area-icon::after {
  transform: scaleY(0);
}

.program-courses {
  list-style: none;
  padding: 0.5rem 0 0.75rem 1.25rem;
  margin: 0;
  background: #FFFFFF;
}

.program-courses li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}

.program-courses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.875rem;
  width: 0.375rem;
  height: 1px;
  background: var(--muted);
}

.program-courses a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  font-weight: 400;
  font-size: 0.9375rem;
  display: inline-block;
  padding: 0.125rem 0;
}

.program-courses a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.btn {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.625rem 1.25rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-bottom: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--brand-ink);
  color: #fff;
}

.contact-block {
  background: var(--bg-soft);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.contact-block address {
  font-style: normal;
  line-height: 1.7;
}

.impressum h1 {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.impressum h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 2rem 0 0.5rem;
}

.impressum p {
  margin: 0 0 1rem;
}

.impressum .copyright {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem var(--pad);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: var(--max-width);
  margin: 2rem auto 0;
}

.site-footer a {
  color: var(--muted);
  border-bottom-color: var(--rule);
}
.site-footer a:hover { color: var(--brand); border-bottom-color: var(--brand); }

@media (max-width: 480px) {
  .container { padding-top: 2.5rem; }
  .hero h1 { font-size: 1.625rem; }
  .logo { max-width: 180px; }
}
