:root {
  --primary: #006f6a;
  --secondary: #4edad9;
  --accent: #d1b28a;
  --terracotta: #b65c43;
  --muted-grey: #8e9d9a;
  --sage: #a3b29c;
  --background: #f0f2f5;
  --ink: #1f2a29;
  --font-head: "Playfair Display", serif;
  --font-body: "Lora", serif;
  --font-ui: "Montserrat", sans-serif;
  --font-small: "Open Sans", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

header.site-header {
  background: var(--primary);
  color: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.site-header .brand {
  font-family: var(--font-head);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

header.site-header .brand span {
  color: var(--secondary);
}

nav.site-nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav.site-nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  cursor: pointer;
}

nav.site-nav a:hover, nav.site-nav a.active {
  opacity: 1;
  border-bottom: 2px solid var(--secondary);
}

@media (max-width: 640px) {
  header.site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.2rem 1.2rem;
  }

  header.site-header .brand {
    font-size: 1.25rem;
  }

  .brand-logo {
    width: 1.9rem;
    height: 1.9rem;
  }

  nav.site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.9rem 1.1rem;
    font-size: 0.72rem;
  }
}

.badge.badge-kern {
  background: var(--terracotta);
  color: #fff;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--primary);
  margin-top: 0;
}

.hero {
  text-align: center;
  padding: 2rem 1rem 3rem;
}

.hero h1 {
  text-wrap: balance;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 640px;
  margin: 0.5rem auto 0;
  text-wrap: pretty;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.portal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: #fff;
  border-radius: 20px;
  padding: 2.2rem 2rem;
  min-height: 220px;
  box-shadow: 0 10px 30px rgba(31,42,41,0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(31,42,41,0.2);
}

.portal-choreo { background: linear-gradient(135deg, var(--terracotta), #d47a5f); }
.portal-wissen { background: linear-gradient(135deg, var(--primary), #00918a); }

.portal-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 0.7rem;
}

.portal-card h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.portal-card p {
  font-size: 0.95rem;
  opacity: 0.92;
  margin: 0 0 1.4rem;
  text-wrap: pretty;
}

.portal-cta {
  margin-top: auto;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 2px 8px rgba(31,42,41,0.06);
  border: 1px solid rgba(31,42,41,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.grid a.card { text-decoration: none; color: inherit; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(31,42,41,0.12);
}

.kapitel-nummer {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.9rem;
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.card .untertitel {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
  opacity: 0.85;
}

.card p {
  font-size: 0.93rem;
  margin: 0 0 1.1rem;
  color: var(--ink);
  opacity: 0.85;
  flex-grow: 1;
}

.card .btn { margin-top: auto; align-self: flex-start; }

.badge {
  display: inline-block;
  font-family: var(--font-small);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(163,178,156,0.2);
  color: var(--primary);
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.badge.badge-folgt {
  background: rgba(142,157,154,0.15);
  color: var(--muted-grey);
}

button, .btn {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

button:hover, a.btn:hover { background: #00534f; transform: translateY(-1px); }
button.secondary, a.btn.secondary { background: var(--muted-grey); }
button.secondary:hover, a.btn.secondary:hover { background: #77837f; }
button:disabled { background: #ccd3d2; cursor: not-allowed; transform: none; }

/* Choreografie-Ansicht */
.choreo-header {
  margin-bottom: 1.5rem;
}

.progress-track {
  background: #e2e6e5;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin: 1rem 0 0.4rem;
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  height: 100%;
  transition: width 0.25s ease;
}

.progress-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted-grey);
}

.step-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.step-nr {
  font-family: var(--font-ui);
  color: var(--secondary);
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.step-instruktion {
  font-size: 1.05rem;
  white-space: pre-line;
}

.step-frage {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--terracotta);
  margin-top: 1.2rem;
}

textarea.reflexion {
  width: 100%;
  min-height: 100px;
  margin-top: 0.6rem;
  padding: 0.8rem;
  border: 1px solid var(--muted-grey);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1.6rem;
}

.material-liste {
  font-family: var(--font-small);
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--background);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.6rem;
}

.material-liste li { margin-bottom: 0.3rem; }

.pruef-hinweis {
  font-family: var(--font-small);
  font-size: 0.75rem;
  color: var(--terracotta);
  font-style: italic;
}

.abschluss-box {
  background: var(--sage);
  color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.step-bild-galerie {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.step-bild {
  margin: 0 0 1.2rem;
  text-align: center;
  max-width: 280px;
}

.step-bild-gross {
  flex: 1 1 100%;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.step-bild img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(31,42,41,0.1);
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.step-bild img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(31,42,41,0.18);
}

.step-bild-galerie .step-bild-gross img {
  display: block;
  max-width: 100%;
}

.step-bild figcaption {
  font-family: var(--font-small);
  font-size: 0.78rem;
  color: var(--muted-grey);
  margin-top: 0.5rem;
  font-style: italic;
}

.bild-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
  cursor: zoom-out;
}

.bild-lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.bild-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.8;
}

.buch-hinweis {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(31,42,41,0.06);
}

.buch-hinweis img {
  width: 90px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(31,42,41,0.15);
  flex-shrink: 0;
}

.gewissheiten-liste {
  list-style: none;
  margin: 1rem 0 1.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.gewissheiten-liste li {
  position: relative;
  padding-left: 1.8rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}

.gewissheiten-liste li::before {
  content: "♥";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--terracotta);
  font-style: normal;
  font-size: 0.9rem;
}

.status-quelle {
  font-family: var(--font-small);
  font-size: 0.7rem;
  color: var(--muted-grey);
}

footer {
  text-align: center;
  padding: 2rem;
  font-family: var(--font-small);
  font-size: 0.75rem;
  color: var(--muted-grey);
}

.hidden { display: none !important; }
