/* CASH SOFTWARE – Startseite (Muster). Rot bleibt Markenfarbe, dezent erweitert. */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-v18-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-v18-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-v18-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-v18-latin-800.woff2") format("woff2"); }

:root {
  --red: #b8161c;
  --red-dark: #7f0f13;
  --footer-red: #6e0d13; /* dunkles Bordeaux für Fuß und dunkle Flächen */
  --red-tint: #fbeeee;
  --ink: #1e1f22;
  --muted: #5d6170;
  --line: #e6e7ea;
  --bg-soft: #f6f6f8;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30, 31, 34, 0.08);
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--red-dark); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

/* Kopfbereich */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.brand img { height: 60px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav summary {
  color: var(--ink); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px;
  cursor: pointer; list-style: none;
}
.nav a:hover, .nav summary:hover { color: var(--red); background: var(--red-tint); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--red); }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: " ▾"; font-size: 0.8em; }
.nav details { position: relative; }
.nav details ul {
  position: absolute; top: 100%; left: 0; margin: 6px 0 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 240px;
}
.nav details ul a { display: block; padding: 8px 12px; font-weight: 600; }
.btn-cta {
  background: var(--red); color: #fff !important; font-weight: 700; padding: 10px 18px; border-radius: 999px;
  margin-left: 8px; transition: background 0.2s;
}
.btn-cta:hover { background: var(--red-dark); text-decoration: none; }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding-block: 72px 56px;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; margin: 0 0 20px; font-weight: 800; letter-spacing: -0.01em;
}
.hero .chips { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero .chips li {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 600;
}
.btn-light {
  display: inline-block; background: #fff; color: var(--red); font-weight: 700;
  padding: 14px 26px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.btn-light:hover { transform: translateY(-2px); text-decoration: none; color: var(--red-dark); }
.hero-visual {
  background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.hero-visual img { border-radius: 12px; }

/* Abschnitte */
section { padding-block: 72px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow { color: var(--red); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; line-height: 1.2; }
.section-head p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--red);
  transform: scaleX(0.15); transform-origin: left; transition: transform 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: #f0c9ca; }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--red-tint);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .icon img { width: 40px; height: 40px; }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 0.97rem; flex: 1; }
.card a.more { font-weight: 700; }
.card a.more::after { content: " →"; }

.showcase { background: var(--bg-soft); }
/* Heller Rot-Schimmer auf warmem Off-White, angelehnt an digibeleg */
.tint {
  background:
    radial-gradient(circle at 92% 0%, rgba(184, 22, 28, 0.13), transparent 58%),
    radial-gradient(circle at 0% 100%, rgba(184, 22, 28, 0.07), transparent 50%),
    #fbf8f7;
}
.showcase .frame {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
}
.showcase img { border-radius: 12px; margin-inline: auto; }

.contact-band {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color: #fff; padding-block: 56px;
}
.contact-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact-band h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); }
.contact-band p { margin: 0; opacity: 0.92; }
.contact-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost {
  display: inline-block; border: 2px solid rgba(255, 255, 255, 0.85); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px;
}
.btn-ghost:hover { background: #fff; color: var(--red); text-decoration: none; }

/* Fußbereich */
.site-footer { background: var(--footer-red); color: #f6dcdd; padding-block: 52px 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h2 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; letter-spacing: 0.04em; }
.footer-grid address { font-style: normal; line-height: 1.8; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #fff; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 60px; width: auto; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.85rem; color: rgba(255, 255, 255, 0.8);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* Mobil */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 40px; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: -16px; right: -16px; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav details ul { position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 0 12px; }
  .nav a, .nav summary { padding: 12px; }
  .btn-cta { margin: 8px 0 0; text-align: center; }
  .site-header .wrap { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
