/* Easybetreut – Website. Farben und Schrift laut docs/2026-11-19_Leitfaden-Corporate-Identity-Easybetreut.md */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #2f5d8c;
  --blue-dark: #244a71;
  --sky-glow: #7fb0e0;
  --sky: #a7c7e7;
  --spark: #ffb78a;
  --ink: #1e293b;
  --ink-soft: #475569;
  --creme: #f7f1e7;
  --paper: #fffdf9;
  --sage: #b5d6b2;
  --sage-700: #3f7a3a;
  --peach: #ffd3b6;
  --rose-700: #a33a3a;
  --night: #16202e;
  --label: #9a8c78;
  --line: #e7dccb;

  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-card: 14px;
  --r-btn: 12px;
  --wrap: 1160px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--sky-glow);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- Hinweis "im Aufbau" ---------- */

.notice {
  background: var(--peach);
  color: #5c3a22;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  padding: 8px var(--gutter);
}
.notice strong {
  font-weight: 600;
}

/* ---------- Kopfzeile ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 231, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled {
  border-bottom-color: var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand img {
  height: 34px;
  width: auto;
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-btn);
  font: 600 16px/1 var(--body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
}
.btn-ghost {
  color: var(--ink);
  border-color: #d6c9b4;
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  background: rgba(167, 199, 231, 0.35);
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.pill svg {
  width: 16px;
  height: 16px;
  color: #e08a55;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
}
h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.032em;
  max-width: 16ch;
  text-wrap: balance;
}
.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 24px 0 34px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--label);
}

/* Paket-Visual */

.visual {
  position: relative;
  padding: 28px 0 28px 28px;
}
.sheet {
  position: absolute;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(30, 41, 59, 0.06), 0 12px 30px -12px rgba(30, 41, 59, 0.22);
  padding: 16px 16px;
}
.sheet i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #e9e1d3;
  margin: 0 0 9px;
}
.sheet .t {
  font: 600 11px/1 var(--body);
  color: var(--label);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.sheet-a {
  width: 190px;
  height: 230px;
  left: 0;
  top: 8px;
  transform: rotate(-9deg);
}
.sheet-b {
  width: 150px;
  height: 180px;
  left: 40px;
  bottom: 0;
  transform: rotate(6deg);
}
.sheet-b i:nth-of-type(2) {
  width: 70%;
}
.sheet-b i:nth-of-type(4) {
  width: 45%;
  background: var(--sky);
}

.package {
  position: relative;
  margin-left: 70px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(30, 41, 59, 0.05), 0 30px 60px -28px rgba(30, 41, 59, 0.35);
  overflow: hidden;
}
.package-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--blue), var(--sky-glow));
  color: #fff;
}
.package-head svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.package-head b {
  display: block;
  font: 700 16px/1.25 var(--display);
}
.package-head span {
  font-size: 13px;
  opacity: 0.88;
}
.files {
  list-style: none;
  margin: 0;
  padding: 8px 8px 4px;
}
.files li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
}
.files li + li {
  border-top: 1px solid #f1eadf;
}
.files .ico {
  width: 20px;
  height: 20px;
  color: var(--blue);
}
.files .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.files .name small {
  display: block;
  font-weight: 400;
  color: var(--label);
  font-size: 12.5px;
}
.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--sage-700);
}
.check svg {
  width: 14px;
  height: 14px;
}
.package-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 18px;
  border-top: 1px solid #f1eadf;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.package-foot .ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-700);
  font-weight: 600;
}
.package-foot .ok svg {
  width: 16px;
  height: 16px;
}
.dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  border-radius: 9px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
}
.dl svg {
  width: 15px;
  height: 15px;
}
.spark {
  position: absolute;
  width: 34px;
  height: 34px;
  right: -12px;
  top: 6px;
  color: var(--spark);
}

/* Einmalige Lade-Sequenz: Dateien erscheinen nacheinander */
@media (prefers-reduced-motion: no-preference) {
  .js .files li {
    opacity: 0;
    transform: translateY(6px);
    animation: row-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .js .files li .check {
    transform: scale(0.4);
    opacity: 0;
    animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
  }
  .js .files li:nth-child(1), .js .files li:nth-child(1) .check { animation-delay: 0.35s; }
  .js .files li:nth-child(2), .js .files li:nth-child(2) .check { animation-delay: 0.6s; }
  .js .files li:nth-child(3), .js .files li:nth-child(3) .check { animation-delay: 0.85s; }
  .js .files li:nth-child(4), .js .files li:nth-child(4) .check { animation-delay: 1.1s; }
  .js .files li:nth-child(5), .js .files li:nth-child(5) .check { animation-delay: 1.35s; }
  .js .package-foot {
    opacity: 0;
    animation: row-in 0.5s ease forwards 1.75s;
  }
  .js .spark {
    opacity: 0;
    animation: spark-in 0.7s ease forwards 1.9s;
  }
}
@keyframes row-in {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spark-in {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-40deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sektionen allgemein ---------- */

section {
  scroll-margin-top: 80px;
}
.sec {
  padding: 104px 0;
}
.sec-head {
  max-width: 640px;
  margin-bottom: 56px;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.sec-head p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 18px 0 0;
}

/* ---------- Vorher / Nachher ---------- */

.swap {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.swap-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.swap-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--label);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.swap-col-title.new {
  color: var(--blue);
  padding-left: 32px;
}
.swap-row {
  display: contents;
}
.swap-row > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.swap-row .old {
  color: var(--ink-soft);
  padding-right: 32px;
}
.swap-row .old b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}
.swap-row .neu {
  padding-left: 32px;
  border-left: 3px solid var(--sky);
  background: linear-gradient(90deg, rgba(167, 199, 231, 0.16), transparent 70%);
}
.swap-row .neu b {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.swap-row .neu span {
  color: var(--ink-soft);
}

/* ---------- Ablauf ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: s;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 23px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 14px);
}
.steps li {
  position: relative;
  counter-increment: s;
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--creme);
  border: 2px solid var(--blue);
  color: var(--blue);
  font: 800 19px/1 var(--display);
  margin-bottom: 22px;
  position: relative;
}
.steps li:last-child::before {
  background: var(--blue);
  color: #fff;
}
.steps h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.who {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(167, 199, 231, 0.35);
  color: var(--blue);
}
.who.you {
  background: var(--peach);
  color: #8a4b22;
}

/* ---------- Funktionen ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature {
  padding: 32px 28px 34px 0;
  border-bottom: 1px solid var(--line);
}
.feature:not(:nth-child(3n + 1)) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.feature svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- Assistent ---------- */

.assist {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.assist .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}
.assist-copy p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 18px 0 0;
}
.rules {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.rules li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rules svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--sage-700);
}

.chat {
  background: var(--creme);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.msg {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15.5px;
  line-height: 1.5;
}
.msg.user {
  justify-self: end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.bot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg.bot .who-ai {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--label);
  margin-bottom: 4px;
}
.msg.bot .who-ai svg {
  width: 14px;
  height: 14px;
  color: #e08a55;
}
.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.proposal {
  background: var(--paper);
  border: 1.5px solid var(--spark);
  border-radius: 14px;
  padding: 16px;
  max-width: 92%;
}
.proposal-title {
  font-size: 13px;
  font-weight: 600;
  color: #b8642f;
  margin-bottom: 6px;
}
.proposal .diff {
  font-size: 15px;
}
.proposal .diff s {
  color: var(--rose-700);
}
.proposal .diff ins {
  text-decoration: none;
  color: var(--sage-700);
  font-weight: 600;
}
.proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.proposal-actions span {
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 9px;
}
.proposal-actions .yes {
  background: var(--blue);
  color: #fff;
}
.proposal-actions .no {
  border: 1px solid #d6c9b4;
  color: var(--ink-soft);
}

/* ---------- Datenschutz (dunkel) ---------- */

.trust {
  background: var(--night);
  color: #dbe4ef;
}
.trust h2 {
  color: #fff;
}
.trust .sec-head p {
  color: #a9b8ca;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}
.trust-item svg {
  width: 26px;
  height: 26px;
  color: var(--sky-glow);
  margin-bottom: 16px;
}
.trust-item h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.trust-item p {
  margin: 0;
  font-size: 15.5px;
  color: #a9b8ca;
}

/* ---------- Ausblick ---------- */

.road {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.road-col {
  border-top: 3px solid var(--sky);
  padding-top: 20px;
}
.road-col.now {
  border-top-color: var(--blue);
}
.road-col h3 {
  font-size: 19px;
  font-weight: 700;
}
.road-col .when {
  font-size: 14px;
  color: var(--label);
  font-weight: 500;
  margin: 2px 0 14px;
}
.road-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.road-col li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 16px;
}
.road-col li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--sky-glow);
}
.road-col.now li::before {
  background: var(--blue);
  border-color: var(--blue);
}
.road-note {
  margin: 32px 0 0;
  font-size: 14px;
  color: var(--label);
}

/* ---------- Abschluss ---------- */

.closing {
  padding: 0 0 104px;
}
.closing-box {
  background: linear-gradient(135deg, var(--blue), var(--sky-glow));
  border-radius: 24px;
  padding: 64px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.closing-box h2 {
  color: #fff;
}
.closing-box p {
  margin: 16px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 30em;
}
.closing-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.btn-white {
  background: #fff;
  color: var(--blue);
}
.btn-white:hover {
  background: var(--creme);
}
.btn-outline-white {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.closing-actions small {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.closing-hand {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 320px;
  opacity: 0.12;
  pointer-events: none;
}

/* ---------- Fußzeile ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 14px;
  color: var(--ink-soft);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.foot img {
  height: 26px;
  width: auto;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}
.foot a {
  color: var(--ink-soft);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Rechtstexte ---------- */

.legal {
  padding: 64px 0 96px;
}
.legal .wrap {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(34px, 4vw, 46px);
  max-width: none;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}
.legal p,
.legal li {
  color: var(--ink-soft);
}
.todo {
  background: var(--peach);
  color: #6b3a17;
  border-radius: 4px;
  padding: 0 4px;
}
.back {
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
  font-weight: 500;
}

/* ---------- Responsiv ---------- */

@media (max-width: 980px) {
  .hero .wrap,
  .assist .wrap,
  .closing-box {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 48px;
  }
  .visual {
    max-width: 520px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .steps::before {
    display: none;
  }
  .features,
  .trust-grid,
  .road {
    grid-template-columns: 1fr 1fr;
  }
  .feature:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
  .feature:nth-child(2n) {
    padding-left: 28px;
    border-left: 1px solid var(--line);
  }
  .closing-box {
    padding: 48px;
  }
  .nav {
    display: none;
  }
  .top .btn {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .top .wrap {
    height: 64px;
  }
  .brand img {
    height: 28px;
  }
  .sec {
    padding: 72px 0;
  }
  .sec-head {
    margin-bottom: 40px;
  }
  .visual {
    padding: 20px 0 20px 0;
  }
  .package {
    margin-left: 28px;
  }
  .sheet-a {
    width: 150px;
    height: 190px;
    left: -6px;
  }
  .sheet-b {
    display: none;
  }
  .package-foot {
    flex-wrap: wrap;
  }
  .files .name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .files li {
    font-size: 14px;
  }
  .actions .btn {
    flex: 1 1 auto;
  }
  .swap-table {
    grid-template-columns: 1fr;
  }
  .swap-col-title {
    display: none;
  }
  .swap-row .old {
    padding: 20px 0 8px;
    border-bottom: 0;
  }
  .swap-row .neu {
    padding: 12px 16px;
    margin-bottom: 4px;
  }
  .steps,
  .features,
  .trust-grid,
  .road {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature:nth-child(2n) {
    padding: 26px 0;
    border-left: 0;
  }
  .closing-box {
    padding: 36px 24px;
    border-radius: 18px;
  }
  .closing-actions,
  .closing-actions .btn {
    width: 100%;
  }
  .foot nav {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
