/* Wechsel-Check – eigene Seite im Stil der Startseite.
   Mobil zuerst. Keine CSS-Variablen, keine externen Ressourcen.
   Animiert werden nur transform und opacity; bei „Bewegung reduzieren“ steht alles still. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: #1c1c1c;
  background-color: #faf6f1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 .35'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"), linear-gradient(180deg, #faf6f1 0%, #f6efe6 40%, #faf6f1 100%);
  background-blend-mode: soft-light, normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: #7b1e22; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #7b1e22; outline-offset: 3px; }
[hidden] { display: none !important; }
.wc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wc-skip { position: fixed; left: 12px; top: -80px; z-index: 20; padding: 12px 18px; border-radius: 8px; background: #7b1e22; color: #fff; font-weight: 600; text-decoration: none; }
.wc-skip:focus { top: 12px; }

/* ---------- Lava im Hintergrund: drei weiche Flächen, nur transform ---------- */
.wc-lava { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
.wc-lava span { position: absolute; border-radius: 50%; will-change: transform; animation: 18s ease-in-out infinite alternate; }
.wc-lava .w1 { width: 150vw; height: 120vw; left: -62vw; top: -46vw; background: radial-gradient(closest-side, #f2d9a8ff 0%, #f2d9a8f4 8.8%, #f2d9a8d7 17.5%, #f2d9a8ae 26.2%, #f2d9a880 35%, #f2d9a851 43.8%, #f2d9a828 52.5%, #f2d9a80b 61.2%, #f2d9a800 70%); animation-name: wcL1; }
.wc-lava .w2 { width: 140vw; height: 110vw; left: 34vw; top: -40vw; background: radial-gradient(closest-side, #e3a06b9e 0%, #e3a06b97 8.8%, #e3a06b85 17.5%, #e3a06b6c 26.2%, #e3a06b4f 35%, #e3a06b32 43.8%, #e3a06b19 52.5%, #e3a06b07 61.2%, #e3a06b00 70%); animation-name: wcL2; animation-duration: 21s; animation-delay: -7s; }
.wc-lava .w3 { width: 160vw; height: 120vw; left: 10vw; bottom: -70vw; background: radial-gradient(closest-side, #b8473a57 0%, #b8473a53 8.8%, #b8473a49 17.5%, #b8473a3b 26.2%, #b8473a2b 35%, #b8473a1b 43.8%, #b8473a0e 52.5%, #b8473a04 61.2%, #b8473a00 70%); animation-name: wcL3; animation-duration: 24s; animation-delay: -4s; }
@keyframes wcL1 { to { transform: translate3d(14vw, 6vw, 0) scale(1.1, .92); } }
@keyframes wcL2 { to { transform: translate3d(-16vw, 10vw, 0) scale(.9, 1.12); } }
@keyframes wcL3 { to { transform: translate3d(-12vw, -8vw, 0) scale(1.12, .94); } }
.wc-hidden .wc-lava span { animation-play-state: paused; }

/* ---------- Kopf: großes Logo ---------- */
.wc-head { position: relative; z-index: 1; display: flex; justify-content: center; padding: 26px 16px 4px; }
.wc-logo { display: block; border-radius: 8px; }
.wc-logo img { display: block; width: min(76vw, 300px); height: auto; animation: wcLogo 1s cubic-bezier(.22, 1, .36, 1) backwards; }
@keyframes wcLogo { from { opacity: 0; transform: translate3d(0, -10px, 0) scale(.96); } }

/* ---------- Karte ---------- */
.wc-main { position: relative; z-index: 1; flex: 1; padding: 14px 16px 32px; }
.wc-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 20px 22px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 70px #3a10202b, 0 2px 6px #3a10200d;
  scroll-margin-top: 16px;
  animation: wcRise .9s cubic-bezier(.22, 1, .36, 1) .12s backwards;
}
.wc-card:focus { outline: none; }
@keyframes wcRise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }

/* Fortschritt */
.wc-progress { margin-bottom: 20px; }
.wc-step { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: #7b1e22; margin-bottom: 8px; }
.wc-bar { height: 5px; border-radius: 5px; background: #f1e6e3; overflow: hidden; }
.wc-bar span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #e3a06b, #b8473a 45%, #7b1e22); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }

/* Bildschirme */
.wc-screen { border: 0; min-width: 0; }
.wc-screen legend { padding: 0; width: 100%; }
.wc-focus:focus { outline: none; }
.wc-focus:focus-visible { outline: 3px solid #7b1e2240; outline-offset: 6px; border-radius: 4px; }
.wc-enter { animation: wcIn .48s cubic-bezier(.22, 1, .36, 1) backwards; }
.wc-enter.wc-rev { animation-name: wcInRev; }
.wc-leave { animation: wcOut .2s ease-in forwards; }
.wc-leave.wc-rev { animation-name: wcOutRev; }
@keyframes wcIn { from { opacity: 0; transform: translate3d(28px, 0, 0); } }
@keyframes wcInRev { from { opacity: 0; transform: translate3d(-28px, 0, 0); } }
@keyframes wcOut { to { opacity: 0; transform: translate3d(-22px, 0, 0); } }
@keyframes wcOutRev { to { opacity: 0; transform: translate3d(22px, 0, 0); } }

/* Start */
.wc-lbl { font-size: .71rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7b1e22; margin-bottom: 8px; }
h1, .wc-q, .wc-sum h3, .wc-res h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; color: #5a1518; }
h1 { font-size: 2.75rem; line-height: 1.02; margin-bottom: 14px; }
.wc-lead { color: #5f5f5f; font-size: 1rem; line-height: 1.7; }
.wc-facts { list-style: none; margin: 20px 0 26px; display: grid; gap: 10px; }
.wc-facts li { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: #3b3b3b; }
.wc-ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; color: #7b1e22; background: #f7ecea; border: 1px solid #ecd9d6; }
.wc-noscript { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #fbf1f1; color: #5a1518; font-size: .9rem; }
html:not(.js) .wc-start { display: none; }

/* Fragen */
.wc-q { font-size: 1.95rem; line-height: 1.12; margin-bottom: 6px; text-wrap: balance; }
.wc-hint { font-size: .9rem; line-height: 1.6; color: #6b6b6b; margin-bottom: 4px; }
.wc-body { margin-top: 18px; }
.wc-group + .wc-group { margin-top: 18px; }
.wc-group-t { font-size: .8rem; font-weight: 600; color: #7b1e22; margin-bottom: 8px; }
.wc-opts { display: grid; gap: 8px; }
.wc-row3 { display: grid; gap: 8px; }

.wc-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1.5px solid #e6d8d6;
  border-radius: 12px;
  background: #faf6f1;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .25s, transform .25s cubic-bezier(.22, 1, .36, 1);
}
.wc-opt input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid #c9b3b0;
  border-radius: 50%;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.wc-opt input:checked { border-color: #7b1e22; background: #7b1e22; box-shadow: inset 0 0 0 4px #fff; animation: wcPop .35s cubic-bezier(.22, 1, .36, 1); }
@keyframes wcPop { 50% { transform: scale(1.18); } }
.wc-opt input:focus-visible { outline: 3px solid #7b1e22; outline-offset: 3px; }
.wc-opt-t { font-size: .98rem; font-weight: 500; line-height: 1.35; }
.wc-opt-s { display: block; font-size: .82rem; color: #6b6b6b; line-height: 1.4; }
.wc-card-opt { flex-wrap: wrap; column-gap: 14px; row-gap: 0; }
.wc-card-opt .wc-opt-s { flex-basis: 100%; padding-left: 36px; margin-top: -2px; }
.wc-opt:has(input:checked) { border-color: #7b1e22; background: #fff; box-shadow: inset 0 0 0 1px #7b1e22, 0 8px 22px #7b1e2214; }
@media (hover: hover) {
  .wc-opt:hover { border-color: #b9a3a3; transform: translate3d(0, -1px, 0); }
  .wc-opt:has(input:checked):hover { border-color: #7b1e22; }
}

/* Fachsemester als Kacheln */
.wc-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wc-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border: 1.5px solid #e6d8d6;
  border-radius: 12px;
  background: #faf6f1;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .25s cubic-bezier(.22, 1, .36, 1);
}
.wc-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wc-tile .wc-opt-t { font-family: "Cormorant Garamond", serif; font-size: 1.75rem; font-weight: 600; line-height: 1; color: #5a1518; }
.wc-tile:has(input:checked) { border-color: #7b1e22; background: #7b1e22; transform: scale(1.04); }
.wc-tile:has(input:checked) .wc-opt-t { color: #fff; }
.wc-tile:has(input:focus-visible) { outline: 3px solid #7b1e22; outline-offset: 3px; }
@media (hover: hover) { .wc-tile:hover { border-color: #b9a3a3; } }

.wc-err { margin-top: 14px; font-size: .9rem; font-weight: 500; color: #8a1717; }

/* Navigation unten in der Karte, bleibt bei langen Listen sichtbar */
.wc-nav {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px -20px -22px;
  padding: 24px 20px calc(18px + env(safe-area-inset-bottom));
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #fff0 0%, #fffffff2 22px, #fff 34px);
}
.wc-back { min-height: 48px; padding: 10px 6px; border: 0; background: none; font-weight: 600; font-size: .95rem; color: #6b6b6b; cursor: pointer; border-radius: 8px; }
.wc-back::before { content: "‹"; margin-right: 6px; font-size: 1.2rem; line-height: 1; }
.wc-back:hover { color: #7b1e22; }

.wc-btn, .wc-btn-o {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
}
.wc-btn { border: 0; background: #7b1e22; color: #fff; box-shadow: 0 10px 26px #7b1e2233; }
.wc-btn:hover { background: #5a1518; }
.wc-btn:active, .wc-btn-o:active { transform: translate3d(0, 1px, 0) scale(.985); }
.wc-nav .wc-btn { flex: 1; max-width: 260px; }
.wc-start { width: 100%; }
.wc-btn-o { border: 1.5px solid #7b1e22; background: #fff; color: #7b1e22; }
.wc-btn-o:hover { background: #f7f0f0; }

/* Ergebnis */
.wc-result .wc-q { margin-bottom: 14px; }
.wc-note { padding: 13px 16px; border-radius: 10px; background: #f7f0f0; font-size: .86rem; line-height: 1.6; color: #5a1518; }
.wc-note strong { font-weight: 600; }
.wc-blocks { display: grid; gap: 12px; margin-top: 18px; }
.wc-res {
  padding: 15px 17px 15px 19px;
  border-left: 3px solid #5E8B6A;
  border-radius: 0 12px 12px 0;
  animation: wcRise .6s cubic-bezier(.22, 1, .36, 1) backwards;
}
.wc-res h3 { display: flex; align-items: center; gap: 10px; font-size: 1.28rem; line-height: 1.2; margin-bottom: 6px; }
.wc-res-ic {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}
.wc-res p { font-size: .9rem; line-height: 1.65; color: #4a4a4a; }
.wc-res p + p { margin-top: 6px; }
/* Chance: gedecktes Salbeigrün (Überschrift auf Grund 6,9 : 1) */
.wc-res-gut { border-left-color: #5E8B6A; background: linear-gradient(105deg, #EEF5EF 0%, #EEF5EFb3 55%, #EEF5EF00 100%); }
.wc-res-gut h3 { color: #2F5D3E; }
.wc-res-gut .wc-res-ic { color: #2F5D3E; border-color: #5E8B6A; }
/* Achtung: warmes Bernstein (Überschrift auf Grund 6,1 : 1) */
.wc-res-hinweis { border-left-color: #C08A3E; background: #FBF3E6; }
.wc-res-hinweis h3 { color: #7A5418; }
.wc-res-hinweis .wc-res-ic { color: #7A5418; border-color: #C08A3E; }
/* Zeitdruck-Zeile im grünen Fristen-Kasten: eigene kleine Bernstein-Zeile mit Uhr (6,1 : 1) */
.wc-res .wc-urgent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 8px;
  background: #FBF3E6;
  box-shadow: inset 0 0 0 1px #C08A3E40;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.45;
  color: #7A5418;
}
.wc-res .wc-urgent::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A5418' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}
.wc-sum { margin-top: 22px; padding-top: 18px; border-top: 1px solid #efe4e2; }
.wc-sum h3 { font-size: 1.15rem; color: #1c1c1c; margin-bottom: 8px; }
.wc-sum dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .86rem; }
.wc-sum dt { color: #6b6b6b; }
.wc-sum dd { color: #1c1c1c; font-weight: 500; }
.wc-link { margin-top: 8px; min-height: 44px; padding: 0; border: 0; background: none; font-weight: 600; font-size: .9rem; color: #7b1e22; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wc-cta { display: grid; gap: 10px; margin-top: 18px; }
.wc-cta-note { font-size: .8rem; line-height: 1.55; color: #6b6b6b; text-align: center; margin-bottom: 4px; }

.wc-privacy { max-width: 640px; margin: 18px auto 0; padding: 0 8px; font-size: .8rem; line-height: 1.55; color: #6b6b6b; text-align: center; }

/* ---------- Fuß ---------- */
.wc-foot { position: relative; z-index: 1; padding: 18px 16px 26px; text-align: center; }
.wc-foot ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.wc-foot a { display: inline-block; padding: 11px 0; font-size: .78rem; color: #6b6b6b; text-decoration: none; }
.wc-foot a:hover { color: #7b1e22; }
.wc-foot p { font-size: .73rem; color: #6b6b6b; }

/* ---------- Mobil-Raster (bis 599 px): 20 px Seitenrand wie auf allen Seiten, Karte innen 24 px ---------- */
@media (max-width: 599px) {
  .wc-head, .wc-main, .wc-foot { padding-left: 20px; padding-right: 20px; }
  .wc-card { padding-left: 24px; padding-right: 24px; }
  .wc-nav { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
}

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 420px) {
  .wc-row3 { grid-template-columns: repeat(3, 1fr); }
  .wc-row3 .wc-opt { justify-content: center; flex-direction: column; gap: 10px; min-height: 96px; text-align: center; }
}
@media (min-width: 700px) {
  .wc-head { padding-top: 40px; }
  .wc-logo img { width: 420px; }
  .wc-main { padding-top: 22px; }
  .wc-card { padding: 42px 52px 34px; border-radius: 26px; }
  .wc-nav { margin: 24px -52px -34px; padding: 18px 52px 30px; border-radius: 0 0 26px 26px; }
  h1 { font-size: 3.6rem; }
  .wc-q { font-size: 2.35rem; }
  .wc-opts { grid-template-columns: 1fr 1fr; }
  .wc-screen[data-step="4"] .wc-opts { grid-template-columns: 1fr; }
  .wc-tile { min-height: 72px; }
  .wc-start { width: auto; min-width: 240px; }
  .wc-lava span { width: 110vw; height: 80vw; }
  .wc-lava .w1 { left: -40vw; top: -40vw; }
  .wc-lava .w2 { left: 45vw; top: -36vw; }
  .wc-lava .w3 { left: 20vw; bottom: -52vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
