*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-white);
  overflow-x: clip;
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  min-width: 0;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding-left: max(0px, var(--safe-left));
  padding-right: max(0px, var(--safe-right));
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 3rem, var(--container));
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
  filter: grayscale(0.15);
}

.btn-primary:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--color-cyan-soft);
}

.btn-primary {
  background: var(--color-cyan);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-line);
}

.btn-ghost:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.btn-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-dark:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--color-navy-mid);
}

.section {
  padding: var(--space-7) 0;
}

.section-head {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.section-head-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-cyan);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.section-head-link:hover {
  text-decoration: underline;
}

.section-head p {
  color: var(--color-muted);
  max-width: 36rem;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-navy);
}

.price-unit {
  font-family: var(--font-body);
  font-size: 0.7em;
  font-weight: 500;
  color: var(--color-muted);
}

.unit-weight-hint {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.unit-weight-hint::before {
  content: "⚖ ";
}

.price-vat {
  display: inline;
  margin-top: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
}

.price-with-vat {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-cyan-mist);
  color: var(--color-navy-mid);
}

.badge-ok {
  background: #e5f6ee;
  color: var(--color-ok);
}

.badge-off {
  background: #f4f4f4;
  color: var(--color-muted);
}

.section-flush {
  padding-top: 0;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #9ad4ee 0%, #1f5f86 100%);
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-flex;
}

.htmx-request.htmx-indicator {
  display: inline-flex;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}
