/* ==========================================================================
   Markant Markt Mocydlarz – Stylesheet
   Statische Website, mobile-first. Keine externen Fonts/Frameworks (DSGVO).
   Markenfarbe Rot als Akzent, warm & appetitlich, lokaler Nahversorger.
   ========================================================================== */

:root {
  --rot:        #d32030;   /* Markant-Akzent, modern */
  --rot-dunkel: #a8141f;
  --rot-hell:   #fdeceb;
  --gruen:      #4f7c3a;   /* Nachhaltigkeit */
  --gruen-hell: #eef4e8;
  --tinte:      #1f2530;   /* Haupttext */
  --grau:       #5a6473;   /* Sekundärtext */
  --creme:      #fbf8f4;   /* warmer Hintergrund */
  --weiss:      #ffffff;
  --linie:      #ece6df;
  --schatten:   0 6px 24px rgba(31, 37, 48, 0.08);
  --schatten-l: 0 2px 10px rgba(31, 37, 48, 0.06);
  --radius:     14px;
  --maxw:       1120px;
}

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tinte);
  background: var(--creme);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rot-dunkel); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--creme { background: var(--creme); }
.section--weiss { background: var(--weiss); }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rot); margin-bottom: .6rem;
}

.lead { font-size: 1.15rem; color: var(--grau); max-width: 60ch; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: inherit; font-weight: 700; line-height: 1;
  padding: 15px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  min-height: 48px;            /* gute Touch-Größe */
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--rot); color: #fff; box-shadow: 0 6px 16px rgba(211,32,48,.28); }
.btn--primary:hover { background: var(--rot-dunkel); }
.btn--ghost { background: var(--weiss); color: var(--tinte); border-color: var(--linie); }
.btn--ghost:hover { border-color: var(--rot); color: var(--rot-dunkel); }
.btn svg { width: 1.1em; height: 1.1em; }

/* --- Header / Nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 244, .92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--linie);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--tinte); font-weight: 800; }
.brand__logo { height: 30px; width: auto; display: block; }
.brand__sub {
  font-size: .72rem; font-weight: 700; color: var(--grau); letter-spacing: .02em;
  padding-left: 11px; border-left: 1px solid var(--linie); line-height: 1.15;
  display: none;
}
@media (min-width: 520px) {
  .brand__logo { height: 34px; }
  .brand__sub { display: block; }
}
/* Markant-Logo ist rot auf transparent – auf dunklem Footer gut sichtbar */
.site-footer .brand__sub { color: #8b94a3; border-left-color: rgba(255,255,255,.18); }

.nav__links { display: none; gap: 26px; align-items: center; }
.nav__links a { text-decoration: none; color: var(--tinte); font-weight: 600; font-size: .98rem; }
.nav__links a:hover { color: var(--rot-dunkel); }

@media (min-width: 860px) {
  .nav__links { display: flex; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  /* Ladenfoto als Hintergrund; heller Verlauf hält den Text gut lesbar */
  background:
    linear-gradient(90deg, rgba(251,248,244,.97) 0%, rgba(251,248,244,.90) 42%, rgba(251,248,244,.45) 100%),
    url('../img/WhatsApp-Image-2019-01-01-at-16.24.08-1.jpeg') center right / cover no-repeat;
}
@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(251,248,244,.94) 0%, rgba(251,248,244,.80) 48%, rgba(251,248,244,.93) 100%),
      url('../img/WhatsApp-Image-2019-01-01-at-16.24.08-1.jpeg') center / cover no-repeat;
  }
}
.hero__inner { padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 7vw, 72px); }
.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  max-width: 16ch; margin-bottom: .35em;
}
.hero__accent { color: var(--rot); }
.hero__claim { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--grau); max-width: 46ch; margin-bottom: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.8rem; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: 999px; padding: 10px 18px; box-shadow: var(--schatten-l);
  font-weight: 600; font-size: .95rem;
}
.badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 4px var(--gruen-hell); }
.badge strong { font-weight: 800; }

/* --- Cards / Über uns ---------------------------------------------------- */
.grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--schatten-l);
}
.card__icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--rot-hell); color: var(--rot); margin-bottom: 14px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--grau); margin: 0; }

/* --- Prospekt-Viewer ----------------------------------------------------- */
.prospekt { background: linear-gradient(180deg, var(--creme), #fff); }
.prospekt__head { text-align: center; margin-bottom: 28px; }
.prospekt__head .lead { margin: 0 auto; }

.viewer {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); overflow: hidden; max-width: 880px; margin: 0 auto;
}

/* Stage: hier wird die eine aktuelle Seite gerendert (eine Seite zur Zeit) */
.viewer__stage {
  position: relative;
  background: #2a2f38;
  min-height: 340px;
  display: grid; place-items: center;
  padding: 16px;
  overflow: auto;                 /* erlaubt Scrollen bei Zoom > 100% */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}
.viewer__canvas {
  max-width: 100%; height: auto; border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35); background: #fff;
  transition: opacity .15s ease;
}

/* Ladeindikator */
.viewer__loader {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #2a2f38; color: #fff; gap: 14px; text-align: center; padding: 24px;
}
.viewer__loader[hidden] { display: none; }
.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: spin 1s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Platzhalter, wenn kein Prospekt vorliegt / Fehler */
.viewer__placeholder {
  padding: 56px 24px; text-align: center; color: var(--grau);
}
.viewer__placeholder svg { width: 56px; height: 56px; color: var(--rot); margin-bottom: 12px; }
.viewer__placeholder h3 { color: var(--tinte); }

/* Steuerleiste */
.viewer__controls {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; background: var(--weiss); border-top: 1px solid var(--linie);
  flex-wrap: wrap;
}
.viewer__nav, .viewer__zoom { display: flex; align-items: center; gap: 8px; }
.iconbtn {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--linie);
  background: var(--weiss); color: var(--tinte); cursor: pointer; display: grid; place-items: center;
  transition: background .12s, border-color .12s;
}
.iconbtn:hover:not(:disabled) { background: var(--rot-hell); border-color: var(--rot); color: var(--rot-dunkel); }
.iconbtn:disabled { opacity: .35; cursor: default; }
.iconbtn svg { width: 22px; height: 22px; }
.pageinfo { font-weight: 700; min-width: 92px; text-align: center; font-variant-numeric: tabular-nums; }
.zoomlevel { font-weight: 700; min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; color: var(--grau); }

.viewer__download { text-align: center; margin-top: 18px; }

/* --- Nachhaltigkeit ------------------------------------------------------ */
.nachhaltig {
  background: linear-gradient(160deg, var(--gruen-hell), #fff);
}
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1.1fr .9fr; } }
.nachhaltig .eyebrow { color: var(--gruen); }

/* Wiederverwendbarer Bildrahmen */
.media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); border: 1px solid var(--linie); background: #fff; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/9; }

/* --- Partner aus der Region (horizontaler Auto-Lauf) --------------------- */
.partner { text-align: center; }
.partner .lead { margin: 0 auto 36px; }

.partner-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partner-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee 42s linear infinite;
}
.partner-marquee:hover .partner-track { animation-play-state: paused; }

.partner-tile { flex: 0 0 auto; width: 180px; }
.partner-logo-box {
  height: 116px; background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); display: grid; place-items: center; padding: 18px;
  box-shadow: var(--schatten-l);
}
.partner-logo-box img { width: auto; height: auto; max-width: 100%; max-height: 80px; object-fit: contain; }
.partner-logo-box--dark { background: #2a2f38; border-color: #2a2f38; }
.partner-name { text-align: center; margin-top: 12px; font-weight: 700; font-size: .92rem; color: var(--tinte); }
.partner-sub { display: block; text-align: center; font-weight: 600; font-size: .78rem; color: var(--grau); margin-top: 2px; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .partner-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* --- Moin Card Strip (kompakt, in Über-uns-Sektion) ---------------------- */
.moincard-strip {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--creme); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 16px 22px; margin-top: 28px;
}
.moincard-strip__body { flex: 1 1 260px; font-size: .98rem; color: var(--grau); }
.moincard-strip__body strong { color: var(--tinte); }
.app-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: var(--tinte); color: #fff; border-radius: 12px; padding: 10px 20px; min-height: 54px;
  transition: background .15s ease, transform .12s ease;
}
.store-btn:hover { background: #000; }
.store-btn:active { transform: translateY(1px); }
.store-btn svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: .68rem; opacity: .82; }
.store-btn strong { font-size: 1.02rem; }

.store-btn--sm { padding: 8px 14px; min-height: 44px; border-radius: 10px; }
.store-btn--sm svg { width: 20px; height: 20px; }
.store-btn--sm small { font-size: .62rem; }
.store-btn--sm strong { font-size: .88rem; }

/* --- Lotto-Annahmestelle ------------------------------------------------- */
.lotto-card {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--weiss); border: 1px solid var(--linie); border-left: 5px solid var(--rot);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--schatten-l); margin-top: 28px;
}
.lotto-card img { height: 56px; width: auto; flex: 0 0 auto; }
.lotto-card .lotto-info { flex: 1 1 260px; }
.lotto-title { margin: 2px 0 10px; font-size: 1.05rem; }
.lotto-hours {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px;
  font-weight: 700; font-size: .95rem;
}
.lotto-day { color: var(--grau); font-weight: 600; font-size: .88rem; white-space: nowrap; align-self: center; }

/* --- Stellenangebot ------------------------------------------------------ */
.jobs .card { border-left: 5px solid var(--rot); }
.jobs__benefits { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 20px; }
.jobs__benefit { display: flex; align-items: center; gap: 14px; }
.jobs__benefit .card__icon { flex: 0 0 auto; margin-bottom: 0; }
.jobs__benefit > div { display: flex; flex-direction: column; gap: 2px; }
.jobs__benefit strong { font-size: 1rem; }
.jobs__benefit span { font-size: .9rem; color: var(--grau); }
@media (min-width: 680px) {
  .jobs__benefits { flex-direction: row; gap: 20px; }
  .jobs__benefit { flex: 1; flex-direction: column; align-items: center; text-align: center; }
  .jobs__benefit .card__icon { margin-bottom: 6px; }
}
.tag {
  display: inline-block; background: var(--rot-hell); color: var(--rot-dunkel);
  font-weight: 700; font-size: .82rem; padding: 5px 12px; border-radius: 999px; margin: 0 6px 6px 0;
}

/* --- Kontakt / Anfahrt --------------------------------------------------- */
.kontakt-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .kontakt-grid { grid-template-columns: 1fr 1fr; } }

.infolist { list-style: none; margin: 0; padding: 0; }
.infolist li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); align-items: flex-start; }
.infolist li:last-child { border-bottom: 0; }
.infolist .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--rot-hell); color: var(--rot); display: grid; place-items: center; }
.infolist .ic svg { width: 21px; height: 21px; }
.infolist .lbl { font-size: .82rem; color: var(--grau); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.infolist .val { font-weight: 700; font-size: 1.15rem; }
.infolist a.val { color: var(--tinte); text-decoration: none; }
.infolist a.val:hover { color: var(--rot-dunkel); }

.hours { display: flex; align-items: center; justify-content: space-between; }
.hours strong { color: var(--gruen); }

/* Datenschutzfreundliche Karte: erst auf Klick laden */
.map {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--linie); min-height: 320px; background: var(--linie);
}
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map__consent {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 24px; gap: 12px; background:
    linear-gradient(rgba(251,248,244,.85), rgba(251,248,244,.92)),
    repeating-linear-gradient(45deg, #efe9e1 0 12px, #f5f0ea 12px 24px);
}
.map__consent p { color: var(--grau); max-width: 34ch; margin: 0; font-size: .92rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--tinte); color: #cfd5de; padding: 48px 0 32px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .muted { color: #8b94a3; font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; color: #8b94a3; }
.footer-bottom a { color: #cfd5de; }

.social { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.social svg { width: 20px; height: 20px; }

/* --- Cookie-/Karten-Consent-Banner --------------------------------------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--tinte); color: #dde2ea;
  padding: 14px 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.28);
  border-top: 2px solid var(--rot);
}
.cookie-banner__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1 1 280px; font-size: .9rem; line-height: 1.5; margin: 0;
}
.cookie-banner__text strong { color: #fff; }
.cookie-banner__text a { color: #9fb3c8; }
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn--sm { padding: 10px 20px; font-size: .9rem; min-height: 40px; }

/* --- Platzhalter-Hinweise (für Patrick, dezent) -------------------------- */
.ph {
  background: #fff8e1; border: 1px dashed #e0b400; color: #6b5300;
  font-size: .85rem; padding: 2px 8px; border-radius: 6px; font-weight: 600;
}

/* --- Rechtstexte (Impressum/Datenschutz) --------------------------------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: #39414e; }
.legal a { word-break: break-word; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 24px; }

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
