/* ==========================================================================
   Plutos Payment Solutions — Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schriften (lokal gehostet, keine Verbindung zu Google-Servern)
   Lege die Montserrat-Dateien unter assets/fonts/ ab.
   Download: https://fonts.google.com/specimen/Montserrat -> "Get font"
   Benoetigt werden die .woff2-Dateien in den Schnitten 400, 500, 600, 700.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Design-Token
   -------------------------------------------------------------------------- */
:root {
  --anthrazit: #1d1e1c;
  --anthrazit-weich: #4a4e4b;
  --gruen: #53a086;
  --gruen-tief: #2e5749;
  --beige: #ddc08f;
  --sand: #f5eee1;
  --grund: #fcfbf8;
  --weiss: #ffffff;
  --linie: #e4e1d9;

  --schrift: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --breite: 1140px;
  --breite-text: 68ch;
  --radius: 6px;

  --raum-abschnitt: clamp(4rem, 9vw, 7.5rem);
}

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--anthrazit);
  font-family: var(--schrift);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gruen-tief);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gruen);
}

:focus-visible {
  outline: 3px solid var(--gruen);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Typografie
   Montserrat laeuft breit, deshalb in Ueberschriften engere Laufweite.
   -------------------------------------------------------------------------- */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin: 0;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
}

h3 {
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--breite-text);
}

ul,
ol {
  max-width: var(--breite-text);
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5em;
}

strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.huelle {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

.ueberspringen {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--anthrazit);
  color: var(--grund);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.ueberspringen:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Doppelstrich — Motiv aus dem Logo, markiert Abschnitte
   -------------------------------------------------------------------------- */
.marke {
  display: flex;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.marke span {
  display: block;
  width: 3px;
  height: 30px;
  background: var(--gruen);
}

.marke--hell span {
  background: var(--beige);
}

.marke--tief span {
  background: var(--gruen-tief);
}

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */
.kopf {
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
  position: sticky;
  top: 0;
  z-index: 50;
}

.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.kopf__logo img {
  height: 34px;
  width: auto;
}

.kopf__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.kopf__nav a {
  color: var(--anthrazit);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.kopf__nav a:hover {
  color: var(--gruen-tief);
}

/* --------------------------------------------------------------------------
   Schaltflaechen
   -------------------------------------------------------------------------- */
.knopf {
  display: inline-block;
  background: var(--anthrazit);
  color: var(--grund);
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--anthrazit);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.knopf:hover {
  background: var(--gruen-tief);
  border-color: var(--gruen-tief);
  color: var(--grund);
}

.knopf--offen {
  background: transparent;
  color: var(--anthrazit);
}

.knopf--offen:hover {
  background: var(--anthrazit);
  color: var(--grund);
}

/* --------------------------------------------------------------------------
   Rechtsseiten
   -------------------------------------------------------------------------- */
.rechtskopf {
  background: var(--sand);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--linie);
}

.rechtskopf p {
  color: var(--anthrazit-weich);
  margin: 1rem 0 0;
  font-size: 1.02rem;
}

.rechtstext {
  padding: clamp(3rem, 6vw, 4.5rem) 0 var(--raum-abschnitt);
}

.rechtstext h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin: 3rem 0 1rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--linie);
}

.rechtstext h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.rechtstext h3 {
  margin: 2rem 0 0.6rem;
}

.rechtstext p,
.rechtstext ul,
.rechtstext ol {
  font-size: 1rem;
  color: var(--anthrazit-weich);
}

.rechtstext p:last-child {
  margin-bottom: 0;
}

.anschrift {
  font-style: normal;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  max-width: var(--breite-text);
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

.platzhalter {
  background: var(--sand);
  border-left: 4px solid var(--beige);
  border-radius: 0;
  padding: 1rem 1.25rem;
  max-width: var(--breite-text);
  margin: 0 0 1.5rem;
  font-size: 0.94rem;
  color: #6b5c3c;
}

.grossschrift {
  font-size: 0.88rem;
  line-height: 1.7;
}

.inhaltsverzeichnis {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  max-width: var(--breite-text);
  margin-bottom: 3rem;
}

.inhaltsverzeichnis h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--gruen-tief);
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
}

.inhaltsverzeichnis ol {
  margin: 0;
  padding-left: 1.1rem;
}

.inhaltsverzeichnis li {
  margin-bottom: 0.35em;
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   Fussbereich
   -------------------------------------------------------------------------- */
.fuss {
  background: var(--anthrazit);
  color: #b8bcb8;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.95rem;
}

.fuss__raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #34372f;
}

.fuss__logo img {
  height: 30px;
  width: auto;
  margin-bottom: 1.1rem;
}

.fuss h2 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--beige);
  margin-bottom: 0.9rem;
}

.fuss p,
.fuss address {
  color: #b8bcb8;
  font-style: normal;
  margin: 0;
  line-height: 1.8;
}

.fuss a {
  color: #d8dcd8;
  text-decoration: none;
}

.fuss a:hover {
  color: var(--gruen);
  text-decoration: underline;
}

.fuss__liste {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fuss__liste li {
  margin-bottom: 0.45em;
}

.fuss__schluss {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.86rem;
  color: #8a8f8a;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .kopf__nav a:not(.knopf) {
    display: none;
  }
}

/* ==========================================================================
   Startseite
   ========================================================================== */

:root {
  --kopf-hoch: 116px;
  --kopf-kompakt: 66px;
}

/* --------------------------------------------------------------------------
   Kopf mit mittigem Logo, wird beim Scrollen kompakter
   Fest positioniert, damit das Schrumpfen das Layout nicht verschiebt.
   -------------------------------------------------------------------------- */
.kopf-start {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(252, 251, 248, 0.94);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kopf-start__innen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--kopf-hoch);
  transition: height 0.35s ease;
}

.kopf-start__logo {
  display: block;
  line-height: 0;
  border-radius: 4px;
}

.kopf-start__logo img {
  height: 56px;
  width: auto;
  transition: height 0.35s ease;
}

.kopf-start.ist-kompakt {
  border-bottom-color: var(--linie);
  box-shadow: 0 8px 24px -20px rgba(29, 30, 28, 0.45);
}

.kopf-start.ist-kompakt .kopf-start__innen {
  height: var(--kopf-kompakt);
}

.kopf-start.ist-kompakt .kopf-start__logo img {
  height: 30px;
}

.seite-start {
  padding-top: var(--kopf-hoch);
}

/* --------------------------------------------------------------------------
   Einstieg (Hero)
   -------------------------------------------------------------------------- */
.held {
  padding: clamp(1.5rem, 3.5vw, 3rem) 0 var(--raum-abschnitt);
  overflow-x: clip;
}

.held__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.held h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 17ch;
  hyphens: manual;
}

/* Beide Unterzeilen liegen in derselben Rasterzelle, so entsteht beim
   Wechsel kein Layoutsprung. */
.held__unterzeile {
  display: grid;
  margin: 1.6rem 0 2.4rem;
}

.held__unterzeile p {
  grid-area: 1 / 1;
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--anthrazit-weich);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.held__unterzeile p.ist-aktiv {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Bühne mit wechselnden Keyvisuals
   -------------------------------------------------------------------------- */
.buehne {
  position: relative;
}

.buehne__flaeche {
  position: relative;
  isolation: isolate;
}

/* Beiges Feld, leicht versetzt hinter dem Bild */
.buehne__flaeche::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 9%;
  right: -6%;
  bottom: -6%;
  left: 12%;
  background: var(--beige);
  border-radius: 12px;
}

.buehne__rahmen {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sand);
}

.buehne__bild {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.buehne__bild.ist-aktiv {
  opacity: 1;
}

/* Die Geräte sind freigestellt und stehen direkt auf der Sandfläche.
   "contain" statt "cover", damit nichts vom Produkt abgeschnitten wird. */
.buehne__bild picture {
  display: block;
  height: 100%;
}

.buehne__bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(29, 30, 28, 0.16));
}

.buehne__steuerung {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.buehne__tab {
  position: relative;
  flex: 1 1 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--anthrazit-weich);
  background: none;
  border: 0;
  border-top: 2px solid var(--linie);
  padding: 0.8rem 0.25rem 0.2rem 0;
  text-align: left;
  cursor: pointer;
}

.buehne__tab.ist-aktiv {
  color: var(--anthrazit);
  font-weight: 600;
}

/* Fortschrittsbalken zeigt, wann das nächste Motiv kommt */
.buehne__tab::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gruen-tief);
}

.buehne__tab.ist-aktiv::after {
  width: 100%;
}

.buehne.laeuft .buehne__tab.ist-aktiv::after {
  width: 0;
  animation: fortschritt var(--dauer, 6000ms) linear forwards;
}

@keyframes fortschritt {
  to {
    width: 100%;
  }
}

.buehne__pause {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 0.35rem;
  background: none;
  border: 1px solid var(--linie);
  border-radius: 50%;
  color: var(--anthrazit);
  cursor: pointer;
}

.buehne__pause:hover {
  border-color: var(--anthrazit);
}

.buehne__pause svg {
  width: 14px;
  height: 14px;
}

.buehne__pause .symbol-start {
  display: none;
}

.buehne:not(.laeuft) .buehne__pause .symbol-pause {
  display: none;
}

.buehne:not(.laeuft) .buehne__pause .symbol-start {
  display: block;
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */
.abschnitt {
  padding: var(--raum-abschnitt) 0;
}

.abschnitt--sand {
  background: var(--sand);
}

.abschnitt__kopf {
  max-width: 38rem;
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
}

/* --------------------------------------------------------------------------
   Vorteile
   -------------------------------------------------------------------------- */
.vorteile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem clamp(1.75rem, 3vw, 2.75rem);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.vorteil {
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid #ddd3bf;
}

.vorteil__symbol {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--gruen-tief);
  margin-bottom: 1.4rem;
}

.vorteil h3 {
  margin-bottom: 0.7rem;
}

.vorteil p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--anthrazit-weich);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Kontaktaufforderung
   -------------------------------------------------------------------------- */
.aufruf {
  background: var(--gruen-tief);
  color: var(--grund);
  padding: var(--raum-abschnitt) 0;
}

.aufruf__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.aufruf h2 {
  color: var(--grund);
  max-width: 16ch;
}

.aufruf p {
  color: #dbe5e0;
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.aufruf__adresse {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--grund);
  text-decoration: none;
  margin-top: 1.25rem;
  word-break: break-word;
}

.aufruf__adresse:hover {
  color: var(--beige);
}

.knopf--beige {
  background: var(--beige);
  border-color: var(--beige);
  color: var(--anthrazit);
}

.knopf--beige:hover {
  background: var(--grund);
  border-color: var(--grund);
  color: var(--anthrazit);
}

.aufruf :focus-visible {
  outline-color: var(--beige);
}

/* --------------------------------------------------------------------------
   Startseite responsiv
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .held__raster,
  .aufruf__raster {
    grid-template-columns: minmax(0, 1fr);
  }
  .held h1 {
    max-width: 18ch;
  }
  .buehne {
    max-width: 520px;
  }
  .vorteile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  :root {
    --kopf-hoch: 88px;
    --kopf-kompakt: 58px;
  }
  .kopf-start__logo img {
    height: 42px;
  }
  .kopf-start.ist-kompakt .kopf-start__logo img {
    height: 26px;
  }
  .vorteile {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
  .buehne__flaeche::before {
    right: -4%;
  }
  .buehne__tab {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .buehne.laeuft .buehne__tab.ist-aktiv::after {
    animation: none;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Nur für Screenreader sichtbar
   -------------------------------------------------------------------------- */
.nur-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Funktionen als Slideshow
   Die nächste Folie ragt ins Bild, damit sofort klar ist, dass es weitergeht.
   -------------------------------------------------------------------------- */
.funktionen__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.funktionen__kopf .abschnitt__kopf {
  margin-bottom: 0;
}

.funktionen__kopf .abschnitt__kopf p {
  color: var(--anthrazit-weich);
  margin: 1rem 0 0;
}

.karussell__steuerung {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.karussell__knopf {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--anthrazit);
  background: transparent;
  color: var(--anthrazit);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.karussell__knopf:hover:not(:disabled) {
  background: var(--anthrazit);
  color: var(--grund);
}

.karussell__knopf:disabled {
  opacity: 0.28;
  cursor: default;
}

.karussell__knopf svg {
  width: 18px;
  height: 18px;
}

.karussell__zaehler {
  min-width: 3.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.karussell__spur {
  position: relative;
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 10px;
}

.karussell__spur::-webkit-scrollbar {
  display: none;
}

.karussell__spur:focus-visible {
  outline-offset: 6px;
}

.funktion {
  flex: 0 0 82%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  min-height: 300px;
  margin: 0;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 10px;
  overflow: hidden;
}

.funktion__bild {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--sand);
}

.funktion__bild svg {
  width: clamp(76px, 9vw, 112px);
  height: auto;
  color: var(--gruen-tief);
}

/* Linienstärke bleibt beim Vergrößern gleich fein */
.funktion__bild svg * {
  vector-effect: non-scaling-stroke;
}

.funktion__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.funktion h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 0.9rem;
}

.funktion p {
  color: var(--anthrazit-weich);
  margin: 0;
}

@media (max-width: 600px) {
  .funktion {
    flex-basis: 88%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 150px 1fr;
    min-height: 0;
  }
  .funktion__text {
    justify-content: flex-start;
  }
  .funktion__bild {
    padding: 1.75rem;
  }
  .funktion__bild svg {
    width: 64px;
  }
}

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

/* --------------------------------------------------------------------------
   Sprungziele nicht unter dem stehenden Kopfbereich verstecken
   -------------------------------------------------------------------------- */
:target,
[id] {
  scroll-margin-top: 96px;
}
