/* Fox Lebensversicherung – FörderCheck
   Single-purpose landingpage prototype
*/

:root {
  --fox-blue: #004f3d;
  --fox-blue-2: #006b52;
  --fox-orange: #bfd730;
  --fox-orange-dark: #006b52;
  --fox-cream: #edf5f2;
  --fox-bg: #ffffff;
  --fox-white: #ffffff;
  --fox-text: #1d2d2a;
  --fox-muted: #536863;
  --fox-line: rgba(0, 79, 61, 0.14);
  --fox-green: #007a5a;
  --fox-red: #b84235;
  --shadow-soft: 0 10px 24px rgba(0, 79, 61, 0.12);
  --shadow-card: 0 8px 20px rgba(0, 79, 61, 0.10);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 6px;
  --container: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--fox-text);
  background: var(--fox-bg);
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--fox-line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fox-blue);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: #f5f7ce;
  box-shadow: inset 0 0 0 1px rgba(0, 79, 61, 0.12);
  flex: 0 0 auto;
}

.fox-logo {
  display: block;
  width: 26px;
  height: 26px;
}

.fox-face {
  fill: var(--fox-blue);
}

.fox-chest,
.fox-muzzle {
  fill: #fff7ed;
}

.fox-eye {
  fill: none;
  stroke: #f5f7ce;
  stroke-linecap: round;
  stroke-width: 3;
}

.fox-nose {
  fill: #f5f7ce;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  color: var(--fox-muted);
  margin-top: 1px;
  font-size: 0.72rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-nav a {
  color: var(--fox-muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.82rem;
}

.header-nav a:hover {
  color: var(--fox-blue);
}

.hero {
  min-height: 250px;
  padding: 48px 0 38px;
  background:
    linear-gradient(90deg, rgba(18, 37, 32, 0.42), rgba(255, 255, 255, 0.05) 54%, rgba(0, 79, 61, 0.08)),
    linear-gradient(12deg, transparent 0 45%, rgba(255, 255, 255, 0.72) 45% 55%, transparent 55%),
    radial-gradient(circle at 76% 28%, rgba(191, 215, 48, 0.38), transparent 13%),
    linear-gradient(180deg, #e8eee7 0%, #cbb99f 100%);
  background-size: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: center;
}

.hero-copy {
  max-width: 500px;
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--fox-orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  font-size: 0.72rem;
}

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

h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

h2 {
  color: var(--fox-blue);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: 0;
  margin-bottom: 10px;
}

h3 {
  color: var(--fox-blue);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 560px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 2px;
  padding: 8px 11px;
  color: var(--fox-blue);
  font-size: 0.86rem;
  font-weight: 750;
}

.login-card,
.calc-card,
.decision-card,
.simulator-card,
.confirmation-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--fox-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.login-card {
  order: -1;
  padding: 24px;
  border-top: 12px solid var(--fox-blue);
}

.card-header p:last-child,
.section-heading p {
  color: var(--fox-muted);
  line-height: 1.62;
}

.pin-form label,
.sim-form label {
  display: grid;
  gap: 8px;
  color: var(--fox-blue);
  font-weight: 760;
}

.access-panel {
  display: grid;
  gap: 16px;
}

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

.access-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 79, 61, 0.22);
  border-radius: 8px;
  color: var(--fox-blue);
  background: #f7fbf5;
  font-weight: 850;
  text-decoration: none;
}

.access-link::after {
  content: ">";
  color: var(--fox-blue);
  font-weight: 900;
}

.access-link:hover {
  border-color: rgba(0, 79, 61, 0.44);
  background: #edf5f2;
}

.pin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 10px;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(0, 79, 61, 0.22);
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--fox-text);
  background: #fff;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(0, 106, 82, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 106, 82, 0.12);
}

.btn {
  border: 0;
  border-radius: 2px;
  padding: 12px 18px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-primary {
  color: #fff;
  background: var(--fox-blue);
  box-shadow: none;
}

.btn-secondary {
  color: var(--fox-blue);
  background: #fff;
  border: 1px solid var(--fox-blue);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--fox-orange-dark);
  font-weight: 850;
  cursor: pointer;
  padding: 0 2px;
}

.form-hint,
.smallprint {
  color: var(--fox-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.error-message {
  color: var(--fox-red);
  font-weight: 760;
}

.notice-section,
.results-section,
.simulator-section,
.confirmation-section {
  padding: 38px 0;
}

.notice-section,
.simulator-section {
  background: #d8eae6;
}

.notice-panel {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px;
  color: var(--fox-text);
  box-shadow: var(--shadow-card);
}

.notice-panel h2,
.notice-panel h3 {
  color: var(--fox-blue);
}

.notice-panel .eyebrow {
  color: var(--fox-blue);
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.notice-grid article {
  border: 1px solid var(--fox-line);
  background: #f8fbfa;
  border-radius: var(--radius-lg);
  padding: 18px;
}

.notice-grid p {
  color: var(--fox-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.data-item {
  background: #fff;
  border: 1px solid var(--fox-line);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: none;
}

.data-item span {
  display: block;
  color: var(--fox-muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.data-item strong {
  color: var(--fox-blue);
  font-size: 1.04rem;
}

.comparison-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 10px;
  align-items: start;
}

.calc-card,
.decision-card,
.simulator-card,
.confirmation-card {
  padding: 24px;
}

.assessment {
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 18px 0;
  background: var(--fox-cream);
  border: 1px solid rgba(0, 79, 61, 0.10);
}

.assessment.good {
  background: rgba(0, 122, 90, 0.10);
  border-color: rgba(0, 122, 90, 0.22);
}

.assessment.caution {
  background: rgba(191, 215, 48, 0.24);
  border-color: rgba(191, 215, 48, 0.44);
}

.assessment.neutral {
  background: rgba(0, 79, 61, 0.06);
}

.assessment strong {
  color: var(--fox-blue);
}

.funding-bars {
  display: grid;
  gap: 18px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--fox-blue);
  font-weight: 770;
  margin-bottom: 8px;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 79, 61, 0.10);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: var(--fox-blue);
  border-radius: inherit;
  transition: width 450ms ease;
}

.bar-fill.accent {
  background: #78a22f;
}

.detail-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--fox-line);
}

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

.detail-row strong {
  color: var(--fox-blue);
  text-align: right;
}

.decision-card {
  position: sticky;
  top: 98px;
}

.decision-actions {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.sim-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
}

.sim-result {
  margin-top: 20px;
  border-top: 1px solid var(--fox-line);
  padding-top: 18px;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(0, 79, 61, 0.08);
  color: var(--fox-blue);
  font-weight: 830;
  margin: 0 8px 8px 0;
}

.confirmation-card {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.site-footer {
  position: relative;
  border-top: 0;
  margin-top: 0;
  padding-top: 78px;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(174deg, transparent 0 22%, #5aa043 22% 31%, #197845 31% 41%, #005a45 41% 100%);
  font-size: 0.92rem;
}

.site-footer .container {
  padding-bottom: 34px;
}

@media (max-width: 920px) {
  .hero-grid,
  .comparison-layout,
  .notice-grid,
  .sim-form {
    grid-template-columns: 1fr;
  }

  .decision-card {
    position: static;
  }

  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-nav {
    display: none;
  }

  .pin-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero {
    padding-top: 48px;
  }

  .hero-copy {
    padding: 10px 0 0;
  }

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

  .login-card,
  .calc-card,
  .decision-card,
  .simulator-card,
  .confirmation-card,
  .notice-panel {
    padding: 22px;
    border-radius: var(--radius-xl);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
}
