/* ── Akku-Check: Design System ──
   Alles unter #akku-check gescoped, damit es in Thrive Architect
   als HTML-Block einbettbar ist, ohne das Theme zu beeinflussen. */

@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;600;700;800;900&display=swap');

#akku-check {
  --ak-navy: #0f1a2e;
  --ak-navy-2: #16233c;
  --ak-navy-3: #1c2c4a;
  --ak-gold: #fec552;
  --ak-gold-soft: rgba(254, 197, 82, 0.14);
  --ak-red: #c92222;
  --ak-red-bright: #e84545;
  --ak-blue: #328ce7;
  --ak-green: #1d9e75;
  --ak-text: #eef2f8;
  --ak-text-muted: #9aa7bd;
  --ak-border: rgba(255, 255, 255, 0.09);
  --ak-radius: 14px;
  --ak-radius-sm: 10px;
  --ak-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --ak-transition: 0.2s ease;

  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: var(--ak-navy);
  color: var(--ak-text);
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}

#akku-check *,
#akku-check *::before,
#akku-check *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

/* Standalone-Seite (nicht Thrive): Body-Hintergrund */
body.akku-page {
  margin: 0;
  background: var(--ak-navy, #0f1a2e);
}

#akku-check .ak-wrapper {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 18px 48px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Dezenter Hintergrund-Verlauf für Tiefe */
#akku-check {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(50, 140, 231, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(254, 197, 82, 0.05), transparent),
    var(--ak-navy);
}

/* ── Typografie ── */

#akku-check h1 {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ak-text) !important;
}

#akku-check h2 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ak-text) !important;
}

#akku-check p {
  color: var(--ak-text);
}

#akku-check .ak-muted {
  color: var(--ak-text-muted);
}

/* ── Buttons ── */

#akku-check .ak-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--ak-radius-sm);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--ak-transition), box-shadow var(--ak-transition), background var(--ak-transition);
  -webkit-tap-highlight-color: transparent;
}

#akku-check .ak-btn-primary {
  background: linear-gradient(180deg, #ffd27a, var(--ak-gold));
  color: #1a1502 !important;
  box-shadow: 0 6px 24px rgba(254, 197, 82, 0.35);
  width: 100%;
}

#akku-check .ak-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(254, 197, 82, 0.45);
}

#akku-check .ak-btn-primary:active {
  transform: translateY(0);
}

#akku-check .ak-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#akku-check .ak-btn-ghost {
  background: none;
  color: var(--ak-text-muted) !important;
  border: 1px solid var(--ak-border);
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9rem;
}

#akku-check .ak-btn-ghost:hover {
  color: var(--ak-text) !important;
  border-color: rgba(255, 255, 255, 0.25);
}

#akku-check .ak-back {
  background: none;
  border: none;
  color: var(--ak-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0;
  transition: color var(--ak-transition);
}

#akku-check .ak-back:hover {
  color: var(--ak-text);
}

/* ── Start-Screen ── */

#akku-check .ak-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 28px;
  flex: 1;
  justify-content: center;
}

#akku-check .ak-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ak-gold-soft);
  border: 1px solid rgba(254, 197, 82, 0.35);
  color: var(--ak-gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

#akku-check .ak-start h1 {
  margin-bottom: 14px;
}

#akku-check .ak-start .ak-sub {
  font-size: 1.05rem;
  color: var(--ak-text-muted);
  max-width: 480px;
  margin-bottom: 28px;
}

#akku-check .ak-hero-battery {
  margin: 8px 0 26px;
}

#akku-check .ak-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

#akku-check .ak-meta span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ak-text-muted);
  background: var(--ak-navy-2);
  border: 1px solid var(--ak-border);
  border-radius: 999px;
  padding: 6px 14px;
}

#akku-check .ak-start .ak-btn-primary {
  max-width: 340px;
}

#akku-check .ak-disclaimer {
  font-size: 0.75rem;
  color: var(--ak-text-muted);
  margin-top: 18px;
  max-width: 440px;
}

/* ── Frage-Screen ── */

#akku-check .ak-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

#akku-check .ak-progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ak-text-muted);
}

#akku-check .ak-question h2 {
  margin-bottom: 8px;
}

#akku-check .ak-question .ak-subtext {
  color: var(--ak-text-muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

#akku-check .ak-options {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#akku-check .ak-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: var(--ak-navy-2);
  border: 1.5px solid var(--ak-border);
  border-radius: var(--ak-radius);
  padding: 16px 18px;
  min-height: 58px;
  color: var(--ak-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color var(--ak-transition), background var(--ak-transition), transform var(--ak-transition);
  -webkit-tap-highlight-color: transparent;
}

#akku-check .ak-option:hover {
  border-color: rgba(254, 197, 82, 0.5);
  background: var(--ak-navy-3);
}

#akku-check .ak-option.selected {
  border-color: var(--ak-gold);
  background: var(--ak-gold-soft);
  box-shadow: 0 0 0 1px var(--ak-gold), 0 4px 18px rgba(254, 197, 82, 0.2);
}

#akku-check .ak-option .ak-dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ak-text-muted);
  transition: all var(--ak-transition);
  position: relative;
}

#akku-check .ak-option.selected .ak-dot {
  border-color: var(--ak-gold);
  background: var(--ak-gold);
  box-shadow: inset 0 0 0 3.5px var(--ak-navy-2);
}

#akku-check .ak-qfooter {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* ── Ergebnis-Screen ── */

#akku-check .ak-result-kicker {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ak-gold);
  margin-bottom: 10px;
}

#akku-check .ak-result h2 {
  text-align: center;
  margin-bottom: 6px;
}

#akku-check .ak-result-intro {
  text-align: center;
  color: var(--ak-text-muted);
  font-size: 0.98rem;
  max-width: 460px;
  margin: 0 auto 26px;
}

#akku-check .ak-result-battery {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

#akku-check .ak-leaks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

#akku-check .ak-leak-card {
  display: flex;
  gap: 16px;
  background: var(--ak-navy-2);
  border: 1.5px solid var(--ak-border);
  border-radius: var(--ak-radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

#akku-check .ak-leak-card.main {
  border-color: rgba(201, 34, 34, 0.6);
  background: linear-gradient(180deg, rgba(201, 34, 34, 0.10), var(--ak-navy-2) 60%);
}

#akku-check .ak-leak-rank {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ak-red);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(201, 34, 34, 0.18);
}

#akku-check .ak-leak-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ak-text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#akku-check .ak-leak-card .ak-main-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ak-red-bright);
  background: rgba(201, 34, 34, 0.15);
  border: 1px solid rgba(201, 34, 34, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
}

#akku-check .ak-leak-card p {
  font-size: 0.94rem;
  color: var(--ak-text-muted);
  line-height: 1.55;
}

#akku-check .ak-reassure {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ak-text-muted);
  margin-bottom: 34px;
}

#akku-check .ak-reassure strong {
  color: var(--ak-green);
}

/* Kein-Leck-Ergebnis */
#akku-check .ak-noleak {
  text-align: center;
  padding: 10px 0 20px;
}

#akku-check .ak-noleak .ak-noleak-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

/* ── E-Mail-Gate ── */

#akku-check .ak-gate {
  background: var(--ak-navy-2);
  border: 1.5px solid rgba(254, 197, 82, 0.35);
  border-radius: var(--ak-radius);
  padding: 26px 22px;
  box-shadow: var(--ak-shadow);
}

#akku-check .ak-gate h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ak-text);
}

#akku-check .ak-gate .ak-gate-sub {
  font-size: 0.95rem;
  color: var(--ak-text-muted);
  margin-bottom: 20px;
}

#akku-check .ak-gate ul.ak-gate-list {
  list-style: none;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#akku-check .ak-gate ul.ak-gate-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ak-text);
}

#akku-check .ak-gate ul.ak-gate-list li::before {
  content: '⚡';
  flex-shrink: 0;
}

#akku-check .ak-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--ak-radius-sm);
  border: 1.5px solid var(--ak-border);
  background: var(--ak-navy);
  color: var(--ak-text) !important;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  transition: border-color var(--ak-transition);
}

#akku-check .ak-input::placeholder {
  color: var(--ak-text-muted);
  font-weight: 400;
}

#akku-check .ak-input:focus {
  outline: none;
  border-color: var(--ak-gold);
}

#akku-check .ak-input.ak-input-error {
  border-color: var(--ak-red-bright);
}

#akku-check .ak-field-error {
  display: block;
  min-height: 18px;
  font-size: 0.8rem;
  color: var(--ak-red-bright);
  margin-bottom: 6px;
}

#akku-check .ak-consent {
  font-size: 0.78rem;
  color: var(--ak-text-muted);
  margin: 10px 0 16px;
}

#akku-check .ak-consent a {
  color: var(--ak-text-muted);
  text-decoration: underline;
}

/* ── Danke / DOI-Screen ── */

#akku-check .ak-thanks {
  text-align: center;
  padding-top: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#akku-check .ak-thanks .ak-thanks-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
}

#akku-check .ak-thanks h2 {
  margin-bottom: 12px;
}

#akku-check .ak-thanks .ak-thanks-main {
  color: var(--ak-text-muted);
  max-width: 440px;
  margin: 0 auto 26px;
}

#akku-check .ak-doi-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto 24px;
  text-align: left;
}

#akku-check .ak-doi-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ak-navy-2);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius-sm);
  padding: 13px 16px;
  font-size: 0.92rem;
}

#akku-check .ak-doi-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ak-gold);
  color: #1a1502;
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#akku-check .ak-doi-subject {
  display: block;
  color: var(--ak-text-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

#akku-check .ak-spam-hint {
  font-size: 0.85rem;
  color: var(--ak-text-muted);
}

/* ── Akku-SVG: Animationen ── */

@keyframes ak-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#akku-check .ak-fade {
  animation: ak-fade-in 0.35s ease both;
}

@keyframes ak-charge-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(254, 197, 82, 0.5)); }
  50%      { filter: drop-shadow(0 0 16px rgba(254, 197, 82, 0.9)); }
}

#akku-check .ak-hero-battery svg {
  animation: ak-charge-pulse 2.4s ease-in-out infinite;
}

@keyframes ak-drip {
  0%   { transform: translateY(0);    opacity: 0; }
  15%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(26px); opacity: 0; }
}

#akku-check .ak-drop {
  animation: ak-drip 1.6s ease-in infinite;
}

#akku-check .ak-drop.d2 { animation-delay: 0.55s; }
#akku-check .ak-drop.d3 { animation-delay: 1.1s; }

@keyframes ak-leak-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

#akku-check .ak-leak-point {
  animation: ak-leak-pulse 1.4s ease-in-out infinite;
}

@keyframes ak-fill-grow {
  from { width: 0; }
}

#akku-check .ak-seg {
  transition: opacity 0.4s ease, fill 0.4s ease;
}

/* Ladebalken-Screen */
#akku-check .ak-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}

#akku-check .ak-loading-text {
  color: var(--ak-text-muted);
  font-weight: 600;
}

/* ── Responsive ── */

@media (min-width: 520px) {
  #akku-check h1 { font-size: 2.2rem; }
  #akku-check h2 { font-size: 1.6rem; }
  #akku-check .ak-wrapper { padding: 40px 24px 64px; }
}
