:root {
  --ink: #10201b;
  --muted: #5f6d68;
  --line: #d7e5ec;
  --paper: #f4f9fc;
  --soft: #eaf6fd;
  --white: #ffffff;
  --brand: #009ee3;
  --brand-dark: #005a8f;
  --brand-deep: #003f67;
  --accent: #009ee3;
  --green: #0a7f5a;
  --shadow: 0 22px 55px rgba(0, 78, 124, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f1f9fe 0, #f8fcff 360px, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--white);
  max-width: 780px;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.3vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.16;
}

section[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 92px;
  padding: 18px clamp(22px, 5vw, 70px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-top: 8px solid var(--brand);
  border-bottom: 1px solid rgba(0, 90, 143, 0.14);
  box-shadow: 0 12px 34px rgba(0, 63, 103, 0.08);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--brand-dark);
  border: 1px solid rgba(0, 90, 143, 0.12);
  border-radius: 9px;
  font-weight: 900;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.02;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 16px;
}

.barmenia-logo {
  width: 102px;
  height: 44px;
  object-fit: contain;
  margin-left: 16px;
  padding: 6px 8px;
  background: #f4fbff;
  border: 1px solid #d5e9f3;
  border-radius: 10px;
  box-shadow: none;
}

.phone-link {
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(760px, calc(100vh - 92px));
  overflow: hidden;
  background: #052f4b;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(0, 158, 227, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(0, 42, 68, 0.94) 0%, rgba(0, 76, 121, 0.79) 46%, rgba(0, 126, 190, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 30, 50, 0.68) 0%, rgba(0, 30, 50, 0.08) 48%),
    url("assets/hero-horse-blue.png") center / cover;
  transform: scale(1.01);
}

.hero-copy {
  position: relative;
  width: min(940px, 100%);
  padding: clamp(68px, 8vw, 112px) clamp(22px, 5vw, 72px);
  color: var(--white);
}

.hero-copy > p:not(.eyebrow):not(.price-chip) {
  max-width: 710px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price-chip {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 20px;
  padding: 14px 20px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(0, 44, 72, 0.22);
}

.hero-actions,
.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.wizard-actions {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.primary-button,
.secondary-button,
.wizard-actions button,
.tariff-card a,
.document-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 14px 24px;
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-width: 240px;
  min-height: 58px;
  font-size: 18px;
}

.primary-button,
.wizard-actions button[type="submit"],
.document-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-dark), #0089c8);
  box-shadow: 0 14px 30px rgba(0, 90, 143, 0.22);
}

.secondary-button,
.wizard-actions button[type="button"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 30px rgba(0, 24, 42, 0.14);
}

.wizard-actions button[type="button"] {
  color: var(--brand-dark);
  background: var(--white);
  border-color: #b9ddec;
  box-shadow: 0 10px 24px rgba(0, 78, 124, 0.08);
}

.primary-button:hover,
.wizard-actions button[type="submit"]:hover,
.document-button:hover,
.tariff-card a:hover {
  background: linear-gradient(90deg, #004f7d, var(--brand));
  box-shadow: 0 18px 36px rgba(0, 90, 143, 0.3);
}

.wizard-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.91);
}

.trust-list li {
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  font-size: 17px;
  backdrop-filter: blur(12px);
}

.trust-list li::before {
  content: "✓ ";
  color: #95e7b2;
  font-weight: 900;
}

.anchor-nav {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  overflow-x: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 30px rgba(0, 88, 139, 0.1);
  scrollbar-width: none;
}

.anchor-nav::-webkit-scrollbar {
  display: none;
}

.anchor-nav a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 11px 16px;
  color: var(--brand-dark);
  background: #f7fcff;
  border: 1px solid #d7eaf4;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.anchor-nav a:hover {
  color: var(--white);
  background: var(--brand-dark);
}

.section,
.consultation,
.legal-main,
.wizard-shell {
  width: min(1160px, calc(100% - 38px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(19px, calc((100vw - 1160px) / 2));
  background: var(--soft);
}

.feature-grid,
.tariff-grid,
.story-grid,
.guide-grid,
.steps-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tariff-grid,
.story-grid,
.guide-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.tariff-card,
.wizard-panel,
.summary-card,
.contact-box,
.notice,
.legal-card,
.transparency-grid article,
.story-grid article,
.faq-list details,
.guide-grid article,
.guide-card,
.steps-grid article,
.document-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 78, 124, 0.06);
}

.feature-grid article,
.steps-grid article,
.guide-card,
.faq-list details {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature-grid article:hover,
.steps-grid article:hover,
.guide-card:hover,
.faq-list details:hover {
  border-color: #aed9ec;
  box-shadow: 0 18px 42px rgba(0, 78, 124, 0.12);
  transform: translateY(-2px);
}

.feature-grid article *,
.tariff-card *,
.steps-grid article *,
.transparency-grid article *,
.coverage-card *,
.story-grid article *,
.faq-list details *,
.guide-grid article *,
.guide-card *,
.choice-card *,
.summary-card *,
.contact-box * {
  min-width: 0;
  overflow-wrap: break-word;
}

.feature-grid article,
.tariff-card,
.summary-card,
.contact-box,
.notice,
.legal-card,
.transparency-grid article,
.story-grid article > div:not(.story-image),
.faq-list details,
.guide-grid article,
.guide-card,
.steps-grid article,
.document-panel {
  padding: 26px;
}

.feature-grid span,
.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--brand-dark);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.feature-grid p,
.steps-grid p,
.story-grid p,
.guide-grid p {
  color: var(--muted);
  font-size: 17px;
}

.tariff-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  overflow: hidden;
  min-height: 100%;
  padding: 30px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tariff-card:hover {
  border-color: #b9ddec;
  box-shadow: 0 20px 46px rgba(0, 78, 124, 0.13);
  transform: translateY(-3px);
}

.tariff-card.highlighted {
  border-color: var(--brand-dark);
  box-shadow: 0 24px 58px rgba(0, 90, 143, 0.18);
}

.tariff-card.highlighted::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 158, 227, 0.11) 0%, rgba(0, 158, 227, 0) 38%),
    linear-gradient(90deg, var(--brand-dark), var(--brand)) top / 100% 6px no-repeat;
}

.badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 11px;
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.tariff-icon {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  color: var(--brand-dark);
  background: #e7f6fd;
  border: 1px solid #cbe8f5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.carrier {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.price {
  margin: 8px 0 0;
  color: var(--brand-dark);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.08;
}

.price small {
  color: var(--muted);
  font-size: 15px;
}

.tariff-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.tariff-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid #e5f0f6;
  color: var(--ink);
}

.tariff-card li::before {
  content: "✓";
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--white);
  background: var(--brand-dark);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.tariff-card a {
  width: 100%;
  margin-top: 22px;
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-dark), #007fc0);
}

.comparison-shell {
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 58px rgba(0, 78, 124, 0.13);
}

.comparison-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(0, 158, 227, 0.11) 0%, rgba(255, 255, 255, 0.94) 52%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.comparison-controls label,
.comparison-controls button,
.segmented-control {
  min-height: 44px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c8e5f3;
  border-radius: 10px;
  font: inherit;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0, 78, 124, 0.06);
}

.comparison-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.comparison-controls input {
  width: 72px;
  min-height: 30px;
  padding: 3px 8px;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px;
}

.segmented-control span {
  padding: 0 6px;
  color: var(--muted);
}

.segmented-control button {
  min-height: 32px;
  padding: 5px 9px;
  border-color: transparent;
  box-shadow: none;
}

.segmented-control button.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  box-shadow: 0 10px 20px rgba(0, 90, 143, 0.18);
}

.segmented-control button:hover {
  border-color: var(--brand-dark);
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

.comparison-table {
  overflow-x: auto;
}

.comparison-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) repeat(3, minmax(190px, 1fr));
  min-width: 980px;
}

.comparison-table [role="row"].is-hidden {
  display: none;
}

.comparison-table span,
.comparison-table strong {
  min-width: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #e3eef4;
  overflow-wrap: anywhere;
}

.comparison-table strong {
  font-weight: 850;
}

.plan-row {
  align-items: stretch;
  background: var(--white);
}

.plan-spacer {
  display: flex;
  align-items: end;
  color: var(--muted);
  font-weight: 900;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 20px;
  border-left: 1px solid #e3eef4;
  border-bottom: 1px solid #e3eef4;
  background: #ffffff;
}

.plan-card.featured {
  background:
    linear-gradient(180deg, #eef8fe 0%, #ffffff 100%);
}

.plan-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--brand-dark);
}

.plan-card small {
  width: fit-content;
  padding: 5px 9px;
  color: var(--white);
  background: var(--brand-dark);
  border-radius: 999px;
  font-weight: 900;
}

.plan-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.plan-card strong {
  padding: 0;
  color: var(--brand-dark);
  border-bottom: 0;
  font-size: 20px;
}

.plan-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--brand-dark);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.comparison-group {
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-dark));
  font-weight: 900;
}

.comparison-group span {
  border-bottom: 0;
}

.comparison-table .check {
  color: var(--green);
}

.comparison-table .check::before {
  content: "✓ ";
  font-weight: 900;
}

.price-row {
  background: #f8fcff;
}

.price-row strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.comparison-note {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--muted);
  background: #f8fcff;
  font-size: 14px;
}

.document-panel {
  margin-top: 18px;
}

.document-panel summary {
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 900;
}

.document-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.document-panel a,
.guide-card strong {
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.guide-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.guide-card:hover {
  border-color: var(--brand-dark);
  box-shadow: 0 16px 34px rgba(0, 78, 124, 0.14);
  transform: translateY(-2px);
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 34px;
  align-items: start;
}

#transparenz.split-section {
  grid-template-columns: 1fr;
  gap: 28px;
}

#transparenz > div:first-child {
  max-width: 820px;
}

.split-section > div:first-child p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.transparency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.coverage-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 16px;
  border: 1px solid #cfe5f1;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 158, 227, 0.1), rgba(255, 255, 255, 0.7)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(0, 78, 124, 0.09);
}

.coverage-card {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid #cde7f4;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 78, 124, 0.08);
}

.coverage-card.is-covered {
  background: #ffffff;
}

.coverage-card.is-limited {
  background: #ffffff;
}

.coverage-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 22px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-dark), #0089c8);
}

.coverage-card.is-limited .coverage-head {
  background: linear-gradient(135deg, #004e7c, #3aaee2);
}

.coverage-head > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--brand-dark);
  background: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.coverage-card.is-limited .coverage-head > span {
  color: #004e7c;
  background: #ffffff;
}

.coverage-head small {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.coverage-head h3 {
  margin: 0;
  color: var(--white);
}

.coverage-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  padding: 18px;
}

.coverage-card li {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  background: #f7fcff;
  border: 1px solid #d8edf6;
  border-radius: 10px;
}

.coverage-card li:first-child {
  border-top: 1px solid #d8edf6;
  padding-top: 14px;
}

.coverage-card li:last-child {
  padding-bottom: 14px;
}

.coverage-card li strong {
  color: var(--ink);
  font-size: 16px;
}

.coverage-card li span {
  color: var(--muted);
  line-height: 1.35;
  font-size: 15px;
}

.story-grid article {
  display: grid;
  overflow: hidden;
  padding: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.story-grid article:hover {
  border-color: #aed9ec;
  box-shadow: 0 18px 42px rgba(0, 78, 124, 0.12);
  transform: translateY(-2px);
}

.story-image {
  min-height: 205px;
  background-size: cover;
  background-position: center;
}

.story-one {
  background-image: url("assets/example-arthroscopy.svg");
}

.story-two {
  background-image: url("assets/example-colic.svg");
}

.story-three {
  background-image: url("assets/example-eye.svg");
}

.story-grid strong {
  color: var(--brand-dark);
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.consultation {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 54px;
  background: linear-gradient(135deg, #ffffff 0%, #eef8fd 100%);
  border: 1px solid #cfe5f1;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 78, 124, 0.09);
}

.consultation p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
}

.contact-box {
  display: grid;
  gap: 12px;
  border-color: #cfe5f1;
  background: #ffffff;
}

.contact-box a {
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.guide-grid small {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 900;
}

.guide-articles {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.guide-article {
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 78, 124, 0.06);
}

.guide-article h3 {
  max-width: 820px;
  font-size: clamp(26px, 3.4vw, 38px);
}

.guide-article p {
  max-width: 900px;
  color: var(--muted);
  font-size: 18px;
}

.guide-facts,
.decision-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-facts > div,
.decision-grid > div,
.timeline > div {
  padding: 18px;
  background: #f4fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-facts strong,
.decision-grid span,
.timeline strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
}

.guide-facts ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.guide-facts li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 900;
}

.decision-grid p,
.timeline p {
  margin-bottom: 0;
  font-size: 16px;
}

.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 11px 16px;
  color: var(--white);
  background: var(--brand-dark);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 54px clamp(22px, 5vw, 70px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 63, 103, 0.96), rgba(0, 126, 190, 0.92)),
    url("assets/hero-horse-blue.png") center / cover;
}

.final-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 46px);
}

.final-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.final-cta .primary-button {
  color: var(--brand-dark);
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 24, 42, 0.24);
}

.final-cta .primary-button:hover {
  background: #f0f9ff;
  border-color: var(--white);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 42px clamp(22px, 5vw, 70px);
  color: rgba(255, 255, 255, 0.84);
  background: #063852;
}

.site-footer .brand-mark {
  color: var(--brand-dark);
  background: var(--white);
}

.site-footer p {
  max-width: 760px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: start;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.footer-note {
  grid-column: 1 / -1;
  font-size: 14px;
}

.wizard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  padding-top: 42px;
}

.wizard-panel {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 78, 124, 0.13);
}

.wizard-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}

.wizard-panel .step h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(32px, 4.7vw, 54px);
  line-height: 1.02;
}

.wizard-panel .step > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.step-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 900;
}

.wizard-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px 20px;
  color: var(--brand-dark);
  background: linear-gradient(135deg, #eff9ff 0%, #ffffff 100%);
  border: 1px solid #cce8f5;
  border-radius: 12px;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(0, 78, 124, 0.08);
}

.wizard-status span:last-child {
  color: var(--muted);
}

.wizard-status strong {
  color: var(--brand-dark);
  font-size: 24px;
  line-height: 1;
}

.progress {
  height: 10px;
  margin-bottom: 34px;
  background: #edf6fb;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 63, 103, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  width: 14.28%;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  border-radius: inherit;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label,
.choice-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #c8deea;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 158, 227, 0.14);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 20px;
  border: 1px solid #d4e7f0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--white), #f9fdff);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 78, 124, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card:has(input:checked) {
  border-color: var(--brand);
  outline: 0;
  background: linear-gradient(180deg, #eff9ff, #ffffff);
  box-shadow: 0 18px 42px rgba(0, 95, 149, 0.14), inset 0 5px 0 var(--brand);
  transform: translateY(-1px);
}

.choice-card:hover {
  border-color: #acd9ec;
  box-shadow: 0 18px 38px rgba(0, 78, 124, 0.11);
}

.choice-card strong {
  color: var(--brand-deep);
  font-size: 22px;
  line-height: 1.15;
}

.payment-amount {
  display: block;
  margin-top: 2px;
  color: var(--brand-dark);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
}

.choice-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.choice-card:has(input:checked) .payment-amount {
  color: var(--brand-deep);
}

.checks {
  display: grid;
  gap: 12px;
}

.criteria-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #cde7f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5fbff, #ffffff);
}

.criteria-card strong {
  color: var(--brand-deep);
  font-size: 19px;
}

.criteria-card p {
  margin: 0;
  color: var(--muted);
}

.criteria-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.criteria-card li {
  margin: 5px 0;
}

.package-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(0, 158, 227, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, #eaf8ff 0%, #ffffff 70%);
  box-shadow: 0 18px 38px rgba(0, 78, 124, 0.1);
}

.package-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-deep);
  font-size: 20px;
}

.package-card p {
  margin: 0;
  color: var(--muted);
}

.package-card .document-button {
  min-width: 250px;
}

.document-accordion {
  margin: 16px 0;
  border: 1px solid #cde7f4;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.document-accordion summary {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 16px 18px;
  color: var(--brand-deep);
  background: #f5fbff;
  font-weight: 900;
  cursor: pointer;
}

.document-accordion summary::marker {
  color: var(--brand);
}

.document-accordion[open] summary {
  border-bottom: 1px solid #d8edf6;
}

.doc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.doc-list article {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid #cde7f4;
  border-radius: 14px;
  background: #f5fbff;
}

.doc-list article.is-open {
  border-color: rgba(0, 94, 148, 0.28);
  background: #fff;
}

.doc-list strong {
  color: var(--brand-deep);
  font-size: 18px;
}

.doc-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.doc-list a {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
}

.doc-list a::before {
  content: "PDF";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 20px;
  margin-right: 8px;
  border-radius: 5px;
  color: var(--white);
  background: var(--brand-dark);
  font-size: 10px;
  font-weight: 900;
}

.doc-list a:hover {
  text-decoration: underline;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  color: var(--ink);
  background: #f2faff;
  border: 1px solid #cde7f4;
  border-radius: 12px;
}

.check-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 3px;
  accent-color: var(--brand-dark);
}

.sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.summary-card {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: 16px;
  border-top: 0;
  box-shadow: 0 24px 60px rgba(0, 78, 124, 0.13);
}

.summary-card::before {
  content: "";
  display: block;
  height: 7px;
  margin: -26px -26px 22px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}

.summary-card h2 {
  margin-bottom: 14px;
  color: var(--brand-deep);
  font-size: 26px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line:last-child {
  border-bottom: 0;
}

.summary-line span:first-child {
  color: var(--muted);
}

.summary-line strong {
  color: var(--brand-deep);
  font-weight: 900;
  text-align: right;
}

.notice {
  color: var(--muted);
  font-size: 14px;
}

.legal-main {
  max-width: 920px;
}

.legal-card {
  display: grid;
  gap: 18px;
}

.legal-card h1 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
}

.legal-card h2 {
  margin-top: 18px;
  font-size: 24px;
}

.legal-card ul {
  margin-top: 0;
}

.complete-box {
  display: none;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(0, 158, 227, 0.34);
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf8ff 0%, #ffffff 100%);
  box-shadow: 0 18px 38px rgba(0, 78, 124, 0.1);
}

.complete-box strong {
  display: block;
  color: var(--brand-deep);
  font-size: 22px;
  margin-bottom: 6px;
}

.complete-box.is-visible {
  display: block;
}

.complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.complete-actions .document-button {
  min-height: 44px;
}

.document-preview {
  margin: 18px 0;
  max-height: 520px;
  overflow: auto;
}

.document-preview h1 {
  font-size: 28px;
}

.document-preview h2 {
  font-size: 20px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .feature-grid,
  .tariff-grid,
  .story-grid,
  .guide-grid,
  .guide-facts,
  .decision-grid,
  .timeline,
  .steps-grid,
  .wizard-shell,
  .consultation,
  .split-section,
  .transparency-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .doc-list {
    grid-template-columns: 1fr;
  }

  .package-card {
    grid-template-columns: 1fr;
  }

  .package-card .document-button {
    width: 100%;
    min-width: 0;
  }

  .final-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .coverage-panel {
    gap: 10px;
    padding: 10px;
  }

  .coverage-head {
    gap: 10px;
    padding: 16px 14px 14px;
  }

  .coverage-head > span {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .coverage-head small {
    font-size: 11px;
  }

  .coverage-head h3 {
    font-size: 20px;
  }

  .coverage-card ul {
    gap: 8px;
    padding: 10px;
  }

  .coverage-card li {
    padding: 10px;
  }

  .coverage-card li:first-child {
    padding-top: 10px;
  }

  .coverage-card li:last-child {
    padding-bottom: 10px;
  }

  .coverage-card li strong {
    font-size: 14px;
  }

  .coverage-card li span {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .coverage-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 92px;
  }

  section[id] {
    scroll-margin-top: 92px;
  }

  .site-header {
    min-height: 82px;
    padding: 12px 18px;
  }

  .brand {
    width: 100%;
    gap: 10px;
  }

  .brand-copy {
    flex: 1 1 auto;
  }

  .brand strong {
    font-size: 22px;
  }

  .brand small {
    font-size: 13px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .barmenia-logo {
    width: 82px;
    height: 34px;
    margin-left: auto;
  }

  .phone-link {
    font-size: 18px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(0, 38, 63, 0.14) 0%, rgba(0, 38, 63, 0.78) 46%, rgba(0, 28, 45, 0.96) 100%),
      url("assets/hero-horse-blue.png") 62% center / cover;
  }

  .hero-copy {
    padding: 176px 20px 42px;
  }

  .price-chip {
    font-size: 15px;
  }

  .hero-actions a {
    width: 100%;
  }

  .trust-list {
    display: grid;
    gap: 9px;
    margin-top: 22px;
  }

  .trust-list li {
    padding: 9px 12px;
    font-size: 15px;
  }

  .anchor-nav {
    justify-content: flex-start;
    width: min(100% - 20px, 620px);
    padding: 10px;
  }

  .anchor-nav a {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .section,
  .consultation,
  .legal-main,
  .wizard-shell {
    width: min(100% - 28px, 1160px);
    padding: 62px 0;
  }

  .band {
    padding-inline: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .choice-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-card {
    min-height: 96px;
    padding: 16px;
  }

  .choice-card strong {
    font-size: 20px;
  }

  .comparison-table [role="row"] {
    min-width: 720px;
  }

  .story-image {
    min-height: 170px;
  }
}

@media (max-width: 430px) {
  .choice-grid,
  .choice-grid.two {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .site-footer,
  .wizard-actions,
  .sidebar,
  .anchor-nav,
  .final-cta {
    display: none;
  }

  body {
    background: white;
  }

  .wizard-shell,
  .legal-main {
    display: block;
    width: auto;
    padding: 0;
  }

  .wizard-panel,
  .legal-card {
    border: 0;
    box-shadow: none;
  }
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #e9f7ff 0, #f7fbfe 280px, #eef6fb 100%);
}

.admin-header {
  min-height: 82px;
}

.admin-shell {
  width: min(100% - 44px, 1360px);
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 190px);
}

.admin-login h1,
.admin-dashboard h1 {
  color: var(--brand-deep);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.admin-login > div > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.admin-login-card,
.admin-list-panel,
.admin-detail-panel,
.admin-kpis article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0, 78, 124, 0.1);
}

.admin-login-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-primary,
.admin-actions button,
.note-form button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--brand-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-dashboard {
  display: grid;
  gap: 22px;
}

.admin-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions button {
  padding: 0 16px;
}

.admin-actions button:last-child {
  color: var(--brand-deep);
  background: #dff3fc;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-kpis article {
  padding: 18px;
}

.admin-kpis span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.admin-kpis strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-deep);
  font-size: 34px;
  line-height: 1;
}

.admin-taskboard {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #cde7f4;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0, 78, 124, 0.08);
}

.admin-taskboard h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 28px;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.task-grid article {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid #d8edf6;
  border-radius: 8px;
  background: #f8fcff;
}

.task-grid strong {
  color: var(--brand-deep);
  line-height: 1.2;
}

.task-grid span {
  color: var(--muted);
  font-size: 14px;
}

.task-grid article.is-open {
  box-shadow: inset 5px 0 0 #f0b429;
}

.task-grid article.is-planned {
  box-shadow: inset 5px 0 0 var(--brand);
}

.task-grid article.is-done {
  box-shadow: inset 5px 0 0 #087453;
}

.admin-readiness {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid #cde7f4;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  box-shadow: 0 18px 44px rgba(0, 78, 124, 0.08);
}

.admin-readiness h2 {
  margin-bottom: 10px;
  color: var(--brand-deep);
  font-size: clamp(26px, 3vw, 38px);
}

.admin-readiness p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.readiness-grid article {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid #d8edf6;
  border-radius: 8px;
  background: #ffffff;
}

.readiness-grid strong {
  color: var(--brand-deep);
  font-size: 18px;
}

.readiness-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.readiness-grid article.is-open {
  box-shadow: inset 5px 0 0 #f0b429;
}

.readiness-grid article.is-planned {
  box-shadow: inset 5px 0 0 var(--brand);
}

.readiness-grid article.is-done {
  box-shadow: inset 5px 0 0 #087453;
}

.readiness-grid span.is-good {
  color: #087453;
  font-weight: 850;
}

.readiness-grid span.is-warning {
  color: #8a5a00;
  font-weight: 850;
}

.admin-doccenter {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #cde7f4;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0, 78, 124, 0.08);
}

.doccenter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.admin-doccenter h2 {
  margin-bottom: 10px;
  color: var(--brand-deep);
  font-size: clamp(26px, 3vw, 38px);
}

.admin-doccenter p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.doccenter-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.doccenter-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid #cde7f4;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #f4fbff;
  font-size: 13px;
  font-weight: 900;
}

.doccenter-summary strong {
  margin-right: 5px;
  font-size: 18px;
}

.document-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.library-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
  padding: 16px;
  border: 1px solid #d8edf6;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
}

.library-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.library-top small {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.library-card h3 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 19px;
}

.library-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.library-meta {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.library-meta > span {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
}

.library-meta button {
  min-height: 40px;
  border: 1px solid #b8dfee;
  border-radius: 8px;
  color: var(--brand-deep);
  background: #edf9ff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.doc-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #dff3fc;
  font-size: 12px;
  font-weight: 900;
}

.doc-status.is-ready {
  color: #ffffff;
  background: #087453;
}

.doc-status.is-review {
  color: #443000;
  background: #ffe7a8;
}

.doc-status.is-missing {
  color: #ffffff;
  background: #b42318;
}

.doc-status.is-internal {
  color: var(--brand-deep);
  background: #e7eef3;
}

.document-muted {
  min-height: 40px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-list-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-filterbar {
  display: grid;
  grid-template-columns: 1fr 155px;
  gap: 12px;
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 15px;
  border: 1px solid #d8edf6;
  border-radius: 8px;
  background: #f8fcff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.request-item.is-active {
  border-color: var(--brand);
  background: #eef9ff;
  box-shadow: inset 5px 0 0 var(--brand);
}

.request-item strong {
  color: var(--brand-deep);
  font-size: 18px;
}

.request-item span:not(.status-pill),
.request-item small {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #dff3fc;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.is-new {
  color: #ffffff;
  background: var(--brand);
}

.status-pill.is-review,
.status-pill.is-question {
  color: #443000;
  background: #ffe7a8;
}

.status-pill.is-transferred {
  color: #ffffff;
  background: var(--brand-dark);
}

.status-pill.is-done {
  color: #ffffff;
  background: #087453;
}

.admin-detail-panel {
  display: grid;
  gap: 18px;
  min-height: 620px;
  padding: 22px;
}

.empty-detail {
  align-self: center;
  justify-self: center;
  max-width: 420px;
  color: var(--muted);
  text-align: center;
}

.empty-detail strong {
  display: block;
  color: var(--brand-deep);
  font-size: 24px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-head h2 {
  margin: 10px 0 4px;
  color: var(--brand-deep);
  font-size: clamp(28px, 4vw, 42px);
}

.detail-head p {
  margin: 0;
  color: var(--muted);
}

.detail-head select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #cde7f4;
  border-radius: 8px;
  color: var(--brand-deep);
  background: #f5fbff;
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-grid article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #d8edf6;
  border-radius: 8px;
  background: #f8fcff;
}

.detail-grid small,
.admin-section h3 {
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
}

.detail-grid strong {
  color: var(--brand-deep);
  font-size: 18px;
}

.detail-grid span {
  color: var(--muted);
}

.flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flag-row span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #e9f7ff;
  font-size: 13px;
  font-weight: 900;
}

.detail-actionbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.detail-actionbar button,
.admin-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #b8dfee;
  border-radius: 8px;
  color: var(--brand-deep);
  background: #edf9ff;
  font: inherit;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.admin-link-button {
  color: var(--white);
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.detail-actionbar button[data-action="transferred"] {
  color: var(--white);
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.detail-actionbar button[data-action="done"] {
  color: var(--white);
  background: #087453;
  border-color: #087453;
}

.local-warning {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #b8dfee;
  border-radius: 8px;
  background: #edf9ff;
}

.local-warning strong {
  color: var(--brand-deep);
}

.local-warning span {
  color: var(--muted);
}

.admin-section {
  display: grid;
  gap: 10px;
}

.admin-section h3 {
  margin: 0;
  font-size: 15px;
}

.document-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.document-row span {
  color: var(--ink);
}

.document-row strong {
  color: var(--brand-dark);
}

.mail-status-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, auto);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid #cde7f4;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff, #ffffff);
}

.mail-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mail-status-card span {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.mail-status-pill {
  width: fit-content;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--brand-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.mail-status-card span {
  color: var(--muted);
}

.mail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.mail-actions .admin-link-button {
  width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
}

.admin-timeline {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.admin-timeline li {
  color: var(--muted);
}

.note-form {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
}

.note-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cde7f4;
  border-radius: 8px;
  font: inherit;
}

.admin-empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

#transparenz .coverage-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 430px) {
  #transparenz .coverage-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .admin-login,
  .admin-layout,
  .admin-taskboard,
  .admin-readiness,
  .document-library,
  .detail-grid,
  .mail-status-card {
    grid-template-columns: 1fr;
  }

  .admin-kpis,
  .task-grid,
  .readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-shell {
    width: min(100% - 28px, 1360px);
  }

  .admin-topline,
  .doccenter-head,
  .detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .doccenter-summary {
    justify-content: flex-start;
  }

  .admin-filterbar,
  .admin-kpis,
  .task-grid,
  .readiness-grid,
  .detail-actionbar,
  .note-form,
  .mail-actions {
    grid-template-columns: 1fr;
  }
}
