/* ==========================================================================
   MyEmA – Landingpage
   Design-Tokens und Layout. Keine externen Abhängigkeiten.
   ========================================================================== */

:root {
  /* Marke */
  --red: #da1f3d;
  --red-dark: #b21830;
  --yellow: #fef200;
  --bow: #e7e7e7;

  /* Neutrale Flächen */
  --ink: #15171c;
  --ink-soft: #3d434e;
  --muted: #5f6672;
  --line: #e4e6ea;
  --surface: #ffffff;
  --surface-2: #f6f7f8;

  /* Maße */
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm:
    0 1px 2px rgba(21, 23, 28, 0.06), 0 2px 8px rgba(21, 23, 28, 0.04);
  --shadow-md:
    0 10px 30px rgba(21, 23, 28, 0.1), 0 2px 6px rgba(21, 23, 28, 0.06);

  --font:
    "Segoe UI", Roboto, "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    Arial, "Noto Sans", sans-serif;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
}
h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
}
h3 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
}
h4 {
  font-size: 1.0625rem;
  margin-bottom: 0.35em;
}

p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--red);
  text-decoration-color: rgba(218, 31, 61, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-dark);
  text-decoration-color: currentColor;
}

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

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Bausteine ---------------------------------------------------------- */

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

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--grey {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.08);
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

/* Wortmarke: My + Suffix in Rot, EmA in Schwarz – wie im Logo */
.wm {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.wm i {
  font-style: normal;
  color: var(--red);
}

/* In farbigen Buttons übernimmt die Wortmarke die Textfarbe */
.btn--primary .wm,
.btn--primary .wm i {
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn svg {
  flex: none;
}

/* Die Beschriftung ist EIN Flex-Element. Sonst wären "Zu" und die Wortmarke
   zwei Elemente, zwischen denen die 0.5rem-Lücke des Buttons stünde statt
   eines normalen Wortabstands. Sie darf schrumpfen und umbrechen, damit der
   Pfeil nicht aus der Karte geschoben und dort abgeschnitten wird. */
.btn__label {
  min-width: 0;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(218, 31, 61, 0.28);
}

.btn--primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(218, 31, 61, 0.32);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: #c9ccd2;
  transform: translateY(-1px);
}

.btn--link {
  padding: 0;
  border-radius: 4px;
  color: var(--red);
  background: none;
  font-weight: 600;
}

.btn--link:hover {
  color: var(--red-dark);
}

.btn--link:hover svg {
  transform: translateX(3px);
}

.btn--link svg {
  transition: transform 0.18s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(21, 23, 28, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  height: 26px;
  width: auto;
  display: block;
}

/* Das Logo in der Kopfzeile erscheint erst, wenn das Hero-Logo weggescrollt ist */
.site-header .brand {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.site-header.is-stuck .brand {
  opacity: 1;
  pointer-events: auto;
}

/* --- Hero mit grauem Bogen ---------------------------------------------- */

.hero {
  position: relative;
  padding-bottom: clamp(3rem, 7vw, 5rem);
  margin-top: -68px;
  overflow: hidden;
  background: var(--yellow);
}

/* Die Box hat exakt das Seitenverhältnis der Grafik (2000 x 407), damit der
   Bogen unverzerrt und unbeschnitten gezeichnet wird – identisch zur Anmeldeseite. */
.hero__bow {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  aspect-ratio: 2000 / 407;
  background: url("../img/top-banner.svg") no-repeat top center;
  background-size: 100% 100%;
  z-index: 0;
  pointer-events: none;
}

/* Nicht auf --wrap begrenzt: die Box darf breiter werden als der Fließtext */
.hero__inner {
  position: relative;
  z-index: 1;
  /* Wächst mit dem Bogen (dessen Höhe 20,35vw beträgt), damit das Logo bei
     jeder Fensterbreite im Bogen sitzt. Nie unter 68px – sonst liegt es
     unter der Kopfzeile. */
  padding-top: clamp(76px, 7vw, 130px);
  padding-inline: var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  height: clamp(52px, 8vw, 84px);
  width: auto;
  margin-bottom: clamp(1.5rem, 3.25vw, 3.5rem);
}

/* Weiße Box auf dem gelben Grund – Gegenstück zur Karte der Anmeldeseite */
.hero__card {
  width: min(80vw, 1280px);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

@media (max-width: 760px) {
  .hero__card {
    width: 100%;
  }
}

.hero h1 {
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 0.7em;
}

.hero h1 .accent {
  color: var(--red);
}

.hero .lead {
  margin-inline: auto;
}

/* In der weißen Box liegen die Anwendungskarten flach auf */
.hero__card .card {
  box-shadow: none;
}

.hero__card .card:hover {
  box-shadow: var(--shadow-sm);
}

/* --- Karten der Anwendungen --------------------------------------------- */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  text-align: left;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* Die ganze Karte ist anklickbar: der Button spannt eine unsichtbare
   Fläche über die Karte auf. Es bleibt ein echter Link – mit Kontextmenü,
   Tastaturfokus und Statusleiste. */
/* In den Karten nimmt der Button die volle Kartenbreite ein. Damit kann er
   nie breiter werden als die Karte – und der Pfeil nie am beschnittenen
   Kartenrand (overflow: hidden) verschwinden, wie schmal die Spalte auch wird. */
.card__foot .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  padding-inline: 1rem;
}

.card__foot .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Wichtig: der Button darf sich nicht bewegen. Ein transform würde ihn zum
   Bezugsrahmen seines eigenen ::after machen – die Klickfläche würde beim
   Überfahren auf den Button zusammenschrumpfen. Angehoben wird die Karte. */
.card .btn:hover {
  transform: none;
}

/* Der Fokusring gehört sichtbar an die Karte, nicht an den Button */
.card .btn:focus-visible {
  outline: none;
}

.card:has(.btn:focus-visible) {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d7dade;
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--red);
  margin-bottom: 1.1rem;
}

.card__icon--yellow {
  background: var(--yellow);
  border-color: rgba(21, 23, 28, 0.12);
  color: var(--ink);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.card__foot {
  margin-top: auto;
}

/* Icon links, Statuspille rechts daneben */
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.card__top .card__icon {
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--muted {
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px #cdd1d7;
}

/* Archiv: bewusst zurückgenommene, "graue" Karte */
.card--muted {
  background: var(--surface-2);
  box-shadow: none;
  color: var(--muted);
}

.card--muted h3,
.card--muted .wm,
.card--muted .wm i {
  color: var(--muted);
}

.card--muted .card__icon {
  background: #ececee;
  color: var(--muted);
  border-color: #dfe1e5;
}

.card--muted::before {
  background: #b9bec6;
}

.card--muted:hover {
  box-shadow: var(--shadow-sm);
  border-color: #d7dade;
}

.card--muted .btn--ghost {
  color: var(--ink-soft);
  box-shadow: none;
}

/* --- Wechselseitige Detailabschnitte ------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split--flip .split__visual {
    order: -1;
  }
}

.split + .split {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.split__visual {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--red);
  position: relative;
  overflow: hidden;
}

.split__visual svg {
  width: clamp(72px, 12vw, 120px);
  height: auto;
}

.split__visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: var(--yellow);
  opacity: 0.9;
}

.split__visual--plain::after {
  background: var(--bow);
}

.list-check {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.list-check li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--ink-soft);
}

.list-check svg {
  margin-top: 0.42em;
  color: var(--red);
  flex: none;
}

/* --- Feature-Raster ----------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.feature {
  padding-top: 1.25rem;
  border-top: 3px solid var(--line);
}

.feature:hover {
  border-top-color: var(--yellow);
}

.feature__icon {
  color: var(--red);
  margin-bottom: 0.75rem;
  display: block;
}

.feature p {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0;
}

/* --- Gelbes Akzentband -------------------------------------------------- */

/* Gelb trägt der Hero-Bereich – hier nur noch als eingefasster Block */
.band {
  position: relative;
  color: var(--ink);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.band h2,
.band h3 {
  color: var(--ink);
}

.band p {
  color: rgba(21, 23, 28, 0.78);
}

.band__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--yellow);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3.5vw, 3rem);
}

@media (min-width: 900px) {
  .band__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.band .price {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 0.2em;
}

.band .price small {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(21, 23, 28, 0.7);
  margin-top: 0.6rem;
}

/* --- Schritte ----------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step p {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0;
}

/* --- Support ------------------------------------------------------------ */

.support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.support__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.support__item svg {
  color: var(--red);
}

.support__item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --- Kontakt ------------------------------------------------------------ */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.contact {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact--accent {
  border-top: 4px solid var(--red);
}

.contact__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.contact a {
  font-size: 0.94rem;
  word-break: break-word;
}

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

.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer img {
  height: 22px;
  width: auto;
  display: block;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-footer nav a:hover {
  color: var(--red);
}

/* --- Bewegung ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
