/* =========================================================
   BASIS
   Reset, Typografie, Raster, Buttons, Formulare, Platzhalter.
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  font-family:
    "Inter Variable",
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  text-rendering: optimizeLegibility;
}
img,
svg {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--c-ink);
}
h1 {
  font-size: clamp(2rem, 4.2vw+0.6rem, 3.4rem);
  font-weight: 650;
}
h2 {
  font-size: clamp(1.6rem, 2.2vw+0.8rem, 2.4rem);
  font-weight: 600;
}
h3 {
  font-size: 1.2rem;
  font-weight: 550;
}
h4,
h5,
h6 {
  font-weight: 550;
}
strong,
b,
th,
dt {
  font-weight: 550;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--c-primary-dark);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--c-ink);
}
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}
.narrow {
  width: min(820px, 100% - 2.5rem);
  margin-inline: auto;
}
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.section.alt {
  background: var(--c-bg-alt);
}
.section.dark {
  background: var(--c-dark);
  color: var(--c-on-dark);
}
.section.dark h2,
.section.dark h3 {
  color: var(--c-on-dark);
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  margin-bottom: 0.8rem;
}
.dark .eyebrow {
  color: var(--c-accent);
}
.lead {
  font-size: 1.2rem;
  color: var(--c-ink-2);
  max-width: 62ch;
}
.dark .lead {
  color: #c9d2de;
}
.section-head {
  max-width: 760px;
  margin-bottom: 2.5rem;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s;
  line-height: 1.1;
  font-family: inherit;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn-accent {
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.btn-accent:hover {
  background: var(--c-accent-dark);
  color: var(--c-on-accent);
}
.btn-primary {
  background: var(--c-primary-dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-ink);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover {
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.dark .btn-ghost,
.on-dark .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.dark .btn-ghost:hover,
.on-dark .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 1.25rem;
}
.g2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.g3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.g4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 1.6rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.icon-badge svg {
  width: 26px;
  height: 26px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--c-primary-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300715F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center/14px no-repeat;
}
.placeholder-note {
  font-size: 0.85rem;
  color: var(--c-muted);
  background: #fff8e1;
  border: 1px dashed #e0b100;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: inline-block;
}
.form-note {
  font-size: 0.85rem;
  color: var(--c-muted);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: inline-block;
}
.ph {
  background: #fff3c4;
  border-bottom: 1px dashed #c99a00;
  padding: 0 0.15em;
  color: inherit;
}
.dark .ph {
  background: rgba(245, 179, 1, 0.18);
  color: #fff;
}

/* Image placeholder */
.img-ph {
  aspect-ratio: 4/3;
  border-radius: 14px;
  background: repeating-linear-gradient(135deg, var(--c-bg-alt) 0 14px, #eaeef3 14px 28px);
  border: 1px dashed #c5ccd6;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--c-muted);
  font-size: 0.9rem;
  padding: 1rem;
}
.img-ph svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 0.5rem;
  opacity: 0.6;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}
.faq details {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 550;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--c-primary-dark);
}
.faq details[open] summary::after {
  content: "–";
}
.faq details > div {
  padding: 0 0 1.1rem;
  color: var(--c-ink-2);
}

/* Breadcrumbs */
.crumbs {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 1.25rem;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}
.crumbs li + li::before {
  content: "›";
  margin-right: 0.4rem;
}
.crumbs a {
  color: inherit;
}
.on-dark .crumbs {
  color: #b8c2cf;
}

/* Page hero (sub pages) */
.page-hero {
  background: var(--c-dark);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-hero h1 {
  color: #fff;
  max-width: 20ch;
}
.page-hero .lead {
  color: #c9d2de;
}
.page-hero .btn-row {
  margin-top: 1.75rem;
}

/* Forms */
.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.field label,
.legend {
  font-weight: 550;
  font-size: 0.95rem;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid #c5ccd6;
  border-radius: 10px;
  background: #fff;
  color: var(--c-ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-primary);
  outline: 3px solid var(--c-primary-soft);
  outline-offset: 0;
}
.hint {
  font-size: 0.85rem;
  color: var(--c-muted);
}

@media (max-width: 860px) {
  body {
    padding-bottom: 72px;
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .lead {
    font-size: 1.05rem;
  }
  .page-hero {
    padding: 2rem 0 2.25rem;
  }
}
