/* --- Ergebnisseite im App-Look (06.10.2026) ----------------------------
   Nachbau aus wireframes/ergebnis-app-look.html; Maße und Herkunft jedes
   Bausteins in DESIGNSYSTEM.md, Abschnitt 5. */

.zahl { font-weight: 800; font-variant-numeric: tabular-nums; }

.ergebnis-titel {
  font-family: 'ATP Takeaway', 'Trebuchet MS', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 64px); line-height: 1.05; margin: 8px 0 8px;
}
.ergebnis-titel .strich { position: relative; display: inline-block; }
.ergebnis-titel .strich svg { position: absolute; left: -3%; bottom: -6px; width: 106%; height: 12px; color: var(--gelb); }
.ergebnis-meta { margin: 0; color: var(--gedaempft); font-size: 14px; }
.ergebnis-meta strong { color: var(--text); font-weight: 700; }

/* Urteil mit Hund (Dogs „Inside a circle") */
.urteil { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
/* Seit 09.10.2026 eine Brand-Illustration statt Hund im Kreis (Miro chiihiro):
   freistehend auf dem Navy, wie im Brandbook (S. 111, 113). */
.hundekreis { position: relative; flex: none; width: 140px; height: 140px; }
.hundekreis img { position: absolute; left: 50%; bottom: 0; max-width: 100%; max-height: 100%; transform: translateX(-50%); }
.hundekreis.neu img { animation: hopsen .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes hopsen { from { transform: translate(-50%, 30%); } to { transform: translate(-50%, 0); } }
.urteil-text { flex: 1 1 260px; min-width: 0; }
.urteil-titel {
  margin: 0; font-family: 'ATP Takeaway', 'Trebuchet MS', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 4.5vw, 44px); line-height: 1.05;
}
.urteil-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.urteil-chip {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px;
  background: var(--flaeche); border: 1px solid var(--linie); font-size: 14px;
}
.chip-punkt { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Drei gleich breite, gleich hohe Karten */
.raster { display: grid; gap: 20px; margin-top: 28px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .raster { grid-template-columns: repeat(var(--karten, 3), minmax(0, 1fr)); } }
.raster:has(> [hidden]) { --karten: 2; }

.widget { padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); display: flex; flex-direction: column; }
.widget-titel {
  margin: 0; font-family: 'ATP Takeaway', 'Trebuchet MS', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: 22px; line-height: 1.1;
}
.widget-zeile { margin: 4px 0 0; color: var(--gedaempft); font-size: 14px; }
.widget-wert { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; min-height: 30px; }
.widget-wert .links { color: var(--gedaempft); font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-wert .rechts { font-size: 18px; text-align: right; white-space: nowrap; font-weight: 800; }

.buehne { position: relative; height: 270px; display: flex; align-items: center; justify-content: center; margin: 4px 0 12px; }

/* Zifferblatt (DayNightSphere aus dem MarketPriceIndicator) */
.blatt {
  position: relative; width: 190px; height: 190px; border-radius: 50%;
  background: linear-gradient(to bottom, #a9c9e8 0%, #6f8bb8 38%, #3d4c7d 58%, #2e3759 100%);
  display: flex; align-items: center; justify-content: center;
}
.blatt::after { content: ''; position: absolute; inset: 16px; border-radius: 50%; border: 2px solid var(--cyan); }
.blatt .innen { position: relative; z-index: 1; text-align: center; padding: 0 30px; }
.blatt .wert { font-size: 40px; line-height: 1; }
.blatt .einheit { font-size: 14px; margin-top: 2px; }
.blitze { display: flex; justify-content: space-between; }
.blitze svg { width: 16px; height: 18px; animation: puls 1.6s ease-in-out infinite; }
.blitze svg:last-child { transform: scaleX(-1); animation-name: puls-sp; animation-delay: .8s; }
@keyframes puls { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes puls-sp { 0%,100% { transform: scaleX(-1) scale(1); opacity: .8; } 50% { transform: scaleX(-1) scale(1.2); opacity: 1; } }

/* PriceScaleWidget, gerendert 252 px breit = Faktor 1,8 des Designsystems */
.preisskala { position: relative; width: 252px; height: 250px; }
.preisskala > svg { position: absolute; left: 0; top: 0; width: 252px; height: 225px; overflow: visible; }
.ps-mitte { position: absolute; left: 50%; top: 126px; transform: translate(-50%, -50%); text-align: center; }
.ps-zahl { font-size: 38px; line-height: 1; }
.ps-einheit { font-size: 16px; color: #939dbe; margin-top: 4px; }
.preisskala .blitze { position: absolute; left: 50%; top: -34px; width: 74px; transform: translateX(-50%); }
.ps-marker {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 5px solid #ecf8fe;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}
.ps-grenzen { position: absolute; left: 0; right: 0; top: 222px; font-size: 16px; font-weight: 400; color: #939dbe; font-variant-numeric: tabular-nums; }
.ps-grenzen span { position: absolute; transform: translateX(-50%); }

/* Kachelring (MarketPriceIndicator), eine Kachel je Eintrag */
.kachelring { position: relative; width: 260px; height: 260px; }
.kachelring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-kachel { cursor: pointer; outline: none; }
.ring-kachel .kachel { transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.ring-kachel.aktiv .kachel { transform: var(--raus); }
.ring-kachel .funken { opacity: 0; transition: opacity .2s; }
.ring-kachel.aktiv .funken { opacity: 1; }
.ring-kachel:focus-visible .kachel { stroke: var(--gelb); stroke-width: 2.5; }
.kachelring .blatt { position: absolute; left: 50%; top: 50%; width: 156px; height: 156px; transform: translate(-50%, -50%); }
.kachelring .blatt::after { inset: 12px; }
.kachelring .blatt .wert { color: var(--text); }
.kachelring .blatt .wert small { font-size: 16px; font-weight: 700; color: var(--gedaempft); }
.kachelring .blatt .wert { font-size: 34px; white-space: nowrap; }
.kachelring .blatt .einheit { color: var(--text); font-weight: 600; }

/* Kennzahl-Zeilen mit Vergleichswert */
.werte { margin-top: auto; display: grid; gap: 8px; }
.wertzeile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px;
  padding: 9px 14px; border-radius: 10px; background: #343e64; min-height: 62px;
}
.wertzeile .name { font-weight: 600; font-size: 16px; }
.wertzeile .kontext { grid-column: 1; font-size: 14px; color: var(--gedaempft); }
.wertzeile .rechts { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.wertzeile .zahl { font-size: 18px; line-height: 1.1; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: 14px; font-weight: 700; white-space: nowrap; }

/* Accordion */
.akkordeon { margin-top: 16px; border-top: 1px solid var(--linie); }
.akkordeon > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0;
  background: none; border: 0; color: var(--cyan); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-align: left;
}
.akkordeon > button svg { flex: none; transition: transform .2s; }
.akkordeon > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.akkordeon .inhalt { padding: 8px 0 0; font-size: 14px; color: var(--gedaempft); }
.rechenzeile { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.rechenzeile span:last-child { color: var(--text); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rechenzeile.summe { border-bottom: 0; }
.rechenzeile.summe span:last-child { color: var(--gelb); font-weight: 800; }

/* "So vergleichen wir" als Bild (vergleich.js, 21.10.2026). Schriften 18/16/14, 400/700. */
.vg-weg { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 4px; margin: 8px 0 4px; text-align: center; }
.vg-schritt img { display: block; width: 44px; height: 44px; object-fit: contain; margin: 0 auto 6px; }
.vg-schritt b { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.vg-schritt span { display: block; font-size: 14px; line-height: 1.3; }
.vg-pfeil { color: var(--lavendel); padding-top: 14px; font-size: 16px; }
.vg-satz { margin: 18px 0 2px; font-size: 18px; font-weight: 700; color: var(--text); text-wrap: pretty; }
.vg-legende { margin: 0 0 8px; font-size: 14px; }
.vg-bild { display: block; width: 100%; height: auto; overflow: visible; }
.vg-bild text { font-family: 'Nunito', 'Trebuchet MS', sans-serif; font-size: 14px; }
.vg-bild .vg-wort { fill: var(--text); font-weight: 700; }
.vg-bild .vg-zahl { fill: var(--gedaempft); font-variant-numeric: tabular-nums; }
.vg-bild .vg-du { fill: var(--grund); font-weight: 700; }
.vg-hinweis { margin: 6px 0 4px; font-size: 14px; }
/* Offen in der Preis-Karte (23.10.2026), direkt unter der Preisskala; die
   Akkordeons rutschen ans Kartenende wie in den anderen Karten. */
.vergleich-offen { margin-bottom: 16px; }
.vergleich-offen ~ .herkunft:not([hidden]), .vergleich-offen ~ #rechnen-akkordeon { margin-top: auto; }
.vergleich-offen ~ .herkunft:not([hidden]) ~ #rechnen-akkordeon { margin-top: 16px; }
.vergleich-offen .vg-satz { margin-top: 0; }
.werte:not([hidden]) + .werte-preis { margin-top: 8px; }
.grundsatz { padding: 10px 0; border-bottom: 1px solid var(--linie); color: var(--text); }
.grundsatz:last-child { border-bottom: 0; }
.grundsatz-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.grundsatz p { margin: 6px 0 0; color: var(--gedaempft); text-wrap: pretty; }

.details-karte { margin-top: 20px; padding: 24px; }

/* "Hat dir der Check geholfen?" (rueckmeldung.js, 23.10.2026). Gewaehlter
   Daumen in Cyan (Bedienelement), Textfeld wie das E-Mail-Feld. */
.rueckmeldung-karte { margin-top: 20px; padding: 24px; }
.rm-knoepfe { margin-top: 16px; }
.rm-daumen { display: inline-flex; align-items: center; gap: 8px; }
.rm-daumen[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.rm-status { margin: 12px 0 0; }
.rm-text-teil { display: grid; gap: 10px; margin-top: 16px; max-width: 560px; }
.rm-frage { font-weight: 700; color: var(--text); }
.rm-text-teil textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 88px;
  background: var(--grund); color: var(--weiss); border: 1px solid var(--linie); border-radius: 8px;
  padding: 12px 16px; font: inherit; font-size: 16px;
}
.rm-text-teil textarea:focus { outline: none; border-color: var(--cyan); }
.rm-text-teil .knopf-haupt { justify-self: start; }
.details-karte .akkordeon:first-of-type { margin-top: 12px; }
.details-karte .warum { margin-bottom: 8px; color: var(--text); }

.teilen-karte, .app-karte { margin-top: 20px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; }
.teilen-karte { gap: 24px 32px; }
.teilen-karte canvas { width: min(100%, 300px); height: auto; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--linie); }
.teilen-text { flex: 1 1 260px; }
.teilen-text .widget-titel, .app-karte .widget-titel { font-size: 32px; }
.teilen-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.app-karte { justify-content: space-between; gap: 16px 24px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 0;
  border-radius: var(--radius); background: #1ba6dd; color: var(--grund); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .15s;
}
.knopf:hover { transform: scale(1.02); }
.knopf:active { transform: scale(.97); }
.knopf.knopf-zweitrang { background: var(--flaeche-tief); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .blitze svg, .hundekreis.neu img { animation: none; }
  .ring-kachel .kachel, .ring-kachel .funken, .akkordeon > button svg, .knopf { transition: none; }
}

/* „Rechnerisch richtig?" in der Preis-Karte (Muss-Kriterium spotty, 09.10.2026). */
.widget .rechnerisch { border-top: 1px solid var(--linie); border-bottom: 0; padding: 14px 0 4px; font-size: 14px; color: var(--gedaempft); }
.widget .rechnerisch strong { font-size: 16px; }

/* Ring-Klick sichtbar machen (Miro chiihiro, 09.10.2026): die gewählte Zeile
   über dem Ring hinterlegt sich kurz in Cyan, die Zahl in der Mitte hüpft. */
.widget-wert.frisch { animation: aufleuchten .9s ease-out; border-radius: 8px; padding-inline: 8px; margin-inline: -8px; }
@keyframes aufleuchten {
  from { background: color-mix(in srgb, var(--cyan) 28%, transparent); }
  to { background: transparent; }
}
.wert.frisch { animation: hopser .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes hopser { from { transform: scale(.82); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .widget-wert.frisch, .wert.frisch { animation: none; } }

/* Stromherkunft in der Preis-Karte (Muss-Kriterium spotty, 09.10.2026): klein, ohne Farbe. */
.widget .herkunft { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; font-size: 14px; color: var(--gedaempft); }
.widget .herkunft-name { color: var(--text); font-weight: 600; }

/* Rückfrage im Auswertungsschirm (20.10.2026): solange ein Wert fehlt, gibt es
   noch kein Ergebnis — nur Titel und die Karte mit den Eingabefeldern. */
#schritt-5.nachtrag > :not(.ergebnis-titel):not(#nachtrag):not(.deko) { display: none; }
.nachtrag-karte { margin-top: 20px; display: grid; gap: 14px; }
.nachtrag-karte h2 { margin: 0; }
