* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #2b4d80, #10131a 55%, #050608);
  color: #f9fafb;
  padding: 1.5rem;
  text-align: center;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 780px;
}

body:not(.standalone) {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

/* Credo-Leiste ganz oben, sehr dezent, nur Desktop */
#creed-bar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.8rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

#creed-bar {
  max-width: 1100px;
  width: 100%;
  font-size: 0.7rem;
  color: #9ca3af;
  opacity: 0.6;
  text-align: center;
}

.creed-segment {
  margin-right: 0.3rem;
}

.creed-segment.open {
  opacity: 0.35;
}

.creed-segment.current {
  opacity: 0.9;
  text-decoration: underline;
}

.creed-segment.yes {
  opacity: 1;
  color: #facc15;
  font-weight: 600;
}

.creed-segment.no {
  opacity: 0.9;
  color: #f97316;
}

/* Auf mobilen Geräten Credo-Leiste ausblenden */
@media (max-width: 700px) {
  #creed-bar-wrapper {
    display: none;
  }
}

@media (max-height: 760px) {
  body:not(.standalone) #creed-bar-wrapper {
    display: none;
  }

  body:not(.standalone) {
    padding-top: 1.5rem;
  }
}

.card {
  background: #0f172a;
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem 2rem;
  border-radius: 18px;
  max-width: 780px;
  width: 100%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.question-title {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

p {
  margin: 0.5rem 0 1.2rem;
  line-height: 1.5;
}

#info:empty {
  margin: 0;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  cursor: pointer;
  background: #e5e7eb;
  color: #111827;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

button.primary {
  background: #facc15;
  color: #1f2937;
  font-weight: 600;
}

button.secondary {
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.ghost-button {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #93c5fd;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

button.ghost-button:hover {
  background: rgba(59, 130, 246, 0.12);
}

button.ghost-button:disabled {
  opacity: 0.3;
  border-color: rgba(148, 163, 184, 0.3);
  color: rgba(148, 163, 184, 0.6);
}

.small-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.back-link {
  margin-top: 1.5rem;
  display: inline-block;
  color: #93c5fd;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.legal-links {
  position: fixed;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(249, 250, 251, 0.6);
  z-index: 1;
}

.legal-links a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
}

.legal-links a:hover {
  text-decoration: underline;
}

.noscript-warning {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  max-width: 780px;
  text-align: left;
  line-height: 1.5;
}

.follow-up-note {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: #d1d5db;
  text-align: left;
}

.follow-up-note a {
  color: #facc15;
  text-decoration: none;
}

.follow-up-note a:hover {
  text-decoration: underline;
}

.prayer-block {
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(250, 204, 21, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  text-align: left;
}

.prayer-title {
  font-weight: 600;
  color: #facc15;
  margin-bottom: 0.5rem;
}

.prayer-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.prayer-actions button {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.15);
  color: #fde68a;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.prayer-actions .button-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
}

.prayer-actions .button-icon svg {
  width: 100%;
  height: 100%;
}

.prayer-actions button:hover {
  background: rgba(250, 204, 21, 0.25);
}

.prayer-status {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: #fcd34d;
  min-height: 1em;
}

.prayer-placeholder {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(248, 250, 252, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  font-size: 0.9rem;
  text-align: left;
}

.creed-intro {
  color: #e2e8f0;
  line-height: 1.5;
  max-width: 700px;
}

.creed-status-message {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 0.95rem;
  text-align: left;
}

.creed-list {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.creed-list-item {
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  border-left: 4px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.creed-list-text {
  font-size: 1rem;
  color: #f1f5f9;
}

.creed-list-status {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e2e8f0;
}

.creed-list-item.yes {
  border-left-color: #facc15;
}

.creed-list-item.yes .creed-list-status {
  color: #facc15;
}

.creed-list-item.no {
  border-left-color: #f97316;
  background: rgba(124, 45, 18, 0.5);
}

.creed-list-item.no .creed-list-status {
  color: #fb923c;
}

.creed-list-item.open {
  border-left-color: rgba(148, 163, 184, 0.5);
}

.creed-list-item.open .creed-list-status {
  color: #cbd5f5;
}

.creed-prayer-section {
  width: 100%;
}

.creed-cta {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.primary-cta-button {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #facc15, #f97316);
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.primary-cta-button:hover {
  filter: brightness(1.05);
}

.primary-cta-button:active {
  transform: translateY(1px);
}

.secondary-cta-button {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.4);
  background: transparent;
  color: #e2e8f0;
  font-size: 0.95rem;
  cursor: pointer;
}

.secondary-cta-button:hover {
  background: rgba(226, 232, 240, 0.1);
}

.result-button-row {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.result-link-button {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.6);
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 190px;
  text-align: center;
  cursor: pointer;
}

.result-link-button:hover {
  background: rgba(59, 130, 246, 0.25);
}

/* Subtile Progressbar */
.progress-wrapper {
  flex: 1;
}

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: rgba(250, 204, 21, 0.9);
  transition: width 0.25s ease-out;
}

.progress-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.progress-nav-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: #facc15;
  box-shadow: none;
}

.progress-nav-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-nav-button:disabled {
  color: rgba(148, 163, 184, 0.65);
  border: none;
  opacity: 0.7;
}

.progress-nav-button:not(:disabled):hover {
  color: #fcd34d;
  background: rgba(250, 204, 21, 0.1);
}

@media (max-width: 520px) {
  .progress-nav {
    justify-content: space-between;
  }

  .progress-wrapper {
    flex: 1;
  }
}

body.standalone {
  text-align: left;
  padding: 2rem 1.5rem;
}

body.standalone .page-wrapper {
  max-width: 820px;
  gap: 1.5rem;
}

body.standalone .card {
  text-align: left;
}

body.standalone .card p {
  margin-bottom: 1rem;
}

body.standalone .card ul {
  margin: 0 0 1rem 1.2rem;
  color: #dbeafe;
  line-height: 1.6;
}

.legal-links {
  position: fixed;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(249, 250, 251, 0.6);
  z-index: 1;
}

.legal-links a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
}

.legal-links a:hover {
  text-decoration: underline;
}

.standalone .legal-links {
  position: relative;
  margin: 2rem auto 0;
  left: auto;
  transform: none;
  text-align: center;
}

@media (max-width: 600px) {
  .card {
    padding: 1.7rem 1.2rem 3rem;
    margin-bottom: 3.5rem;
  }

  .question-title {
    font-size: 1.3rem;
  }

  .buttons {
    width: 100%;
  }

  button {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
  }
}
.hidden {
  display: none !important;
}
