:root {
  --bg: #f2f7f6;
  --card-bg: #ffffff;
  --text: #14181a;
  --muted: #5c6f6b;
  --border: #d3e2de;
  --accent: #2f9782;
  --accent-dark: #016372;
  --warn-bg: #fff6e0;
  --warn-border: #e8c766;
  --highlight-bg: #e2f1ee;
  --danger: #b23b3b;

  /* AHF Insolvence brand palette (sampled from img/logo_barva2_page_1.png) */
  --ahf-teal-light: #2f9782;
  --ahf-teal-dark: #016372;
  --ahf-black: #14181a;

  --hub-size: 220px;
  --ring-outer: 250px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  accent-color: var(--accent);
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 20px 64px;
}

.app-header {
  min-height: 1px;
}

/* ---------- Wheel (desktop / wide layout) ---------- */

.wheel {
  position: relative;
  width: 520px;
  height: 520px;
  max-width: 100%;
  margin: 24px auto 0;
}

.wheel-ring {
  display: block;
  width: 100%;
  height: 100%;
}

.wheel-segment path {
  fill: var(--card-bg);
  stroke: var(--ahf-teal-light);
  stroke-width: 2;
  transition: fill 0.2s ease;
  cursor: pointer;
}

.wheel-segment:hover path,
.wheel-segment:focus-visible path {
  fill: var(--ahf-teal-light);
  outline: none;
}

.segment-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ahf-teal-dark);
  pointer-events: none;
  font-family: inherit;
}

.wheel-segment:hover .segment-label,
.wheel-segment:focus-visible .segment-label {
  color: #ffffff;
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--hub-size);
  height: var(--hub-size);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ahf-teal-light), var(--ahf-teal-dark));
  box-shadow: 0 10px 34px rgba(11, 79, 92, 0.35);
  pointer-events: none;
}

.hub-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13%;
  transition: opacity 0.25s ease;
}

.hub-content-default { opacity: 1; }
.hub-content-hover { opacity: 0; }

.wheel-hub.is-active .hub-content-default { opacity: 0; }
.wheel-hub.is-active .hub-content-hover { opacity: 1; }

.bull-icon {
  display: block;
  width: 76%;
  height: auto;
}

.hub-hover-title {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.25;
}

.hub-hover-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* ---------- Stacked list (narrow / mobile) ---------- */

.wheel-list {
  display: none;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  flex-direction: column;
  gap: 16px;
}

.wheel-list-item a {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px solid var(--ahf-teal-light);
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
}

.wheel-list-title {
  display: block;
  font-weight: 700;
  color: var(--ahf-teal-dark);
  margin-bottom: 4px;
}

.wheel-list-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .wheel { display: none; }

  .wheel-list {
    display: flex;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

.app-footer {
  margin-top: 40px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
