/* Lokale Schriften: Inter */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v18-latin-regular.woff2") format("woff2"),
       url("../fonts/Inter_18pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Grundlayout */
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: #0b0b0c;
  background: linear-gradient(140deg, #f6f8fb 0%, #edf2f7 100%);
  font-family: "Inter", -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }

/* Header: Logo klar mittig, unabhängig von vererbten Styles */
.page-header {
  background: #ffffff;
  border-bottom: 1px solid #e9eef5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.page-header .logo a { display: inline-block; }
.page-header img { height: 42px; width: auto; }

.main-content h1 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  text-align: center;
  margin: 32px 0 26px;
  letter-spacing: -0.015em;
  color: #1a2433;
}

/* Grid: große Kacheln wie im Original */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Steps */
.step { display: none; }
.step.active { display: block; }

/* Karten – Icon oben, weiche Animationen */
.card {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  box-shadow: 0 10px 20px rgba(18, 38, 63, 0.06);
  transition: transform .15s cubic-bezier(.2,0,0,1), box-shadow .2s ease, border-color .2s ease;
  will-change: transform;
}
.card:hover,
.card:focus { box-shadow: 0 20px 32px rgba(18, 38, 63, 0.14); border-color: #dfe5ef; outline: none; transform: translateY(-4px); }
.card:active { transform: translateY(-1px) scale(.985); }
.card[role="button"] { cursor: pointer; }

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px;
  min-height: 196px;
  text-align: center;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #f2f6ff;
  display: inline-grid;
  place-items: center;
  font-size: 28px;
  box-shadow: inset 0 0 0 1px #dde6ff;
  margin-bottom: 14px;
}

.card-title {
  font-weight: 800; /* stärkeres Bold für die Kachel-Überschrift */
  font-size: 1.30rem;
  line-height: 1.30;
  color: #162032;
  letter-spacing: -0.005em;
  word-break: normal;
  overflow-wrap: break-word;
}
.card-subtitle {
  color: #5b687a;
  font-size: 1.06rem;
  margin-top: 8px;
  line-height: 1.40;
}

.card-icon.insurer {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #14284c;
  color: #fff;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  font-size: 1.5rem; /* vorher ~1.06rem */
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  box-shadow: none;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  background: #14284c;
  color: #fff;
  cursor: pointer;
  user-select: none;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 16px rgba(20,40,76,0.25);
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
}
.back:hover {
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20,40,76,0.35);
  transform: translateY(-1px);
  background: #1b3764;
}
.back:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(20,40,76,0.2);
}

/* Footer wie im Original dunkler Balken */
.page-footer { margin-top: 48px; background: #122944; color: #e9f1ff; border-top: 1px solid #0f2040; padding: 22px 0; font-size: 0.9rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: #e9f1ff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footeropyright { color: #d3def4; text-align: center; }

/* Responsive Tuning */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .card-content { min-height: 176px; }
  .card-title { font-size: 1.16rem; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .main-content h1 { font-size: 28px; }
  .card-content { padding: 22px 18px; min-height: 150px; }
  .card-title { font-size: 1.08rem; }
  .card-subtitle { font-size: 0.94rem; }
}

@media (min-width: 981px) {
  html, body { height: 100%; }
  body { min-height: 100vh; display: flex; flex-direction: column; }
  .page-header, .page-footer { flex: 0 0 auto; }
  .main-content { flex: 1 0 auto; }
}