/* Aufwertung 2026-11-03: Mega-Menü, Bühne mit Bild, Laufband, Bento, Ablauf mit mitlaufender Spalte */

/* Logo des Kunden (Innenräume der Buchstaben folgen dem Kopf-Hintergrund) */
.marke .logo { width: auto; height: 46px; display: block; }
.logo .wein { fill: #831526; }
.logo .dunkel { fill: var(--tinte); }
.logo .loch { fill: var(--papier); transition: fill 0.25s; }
.kopf.ist-gescrollt .logo .loch { fill: #fff; }
@media (max-width: 620px) { .marke .logo { height: 38px; } }

/* Kopf mit Mega-Menü */
.kopf { transition: background 0.25s, box-shadow 0.25s; }
.kopf.ist-gescrollt { background: rgb(255 255 255 / 96%); box-shadow: 0 6px 24px rgb(31 27 29 / 7%); }
.menue-liste { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menue-link, .mega-ausloeser {
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-weight: 520; font-size: 0.97rem; color: var(--tinte);
  background: none; border: 0; cursor: pointer; text-decoration: none;
  padding: 10px 14px; border-radius: 999px;
}
.mega-ausloeser svg { width: 16px; height: 16px; transition: transform 0.25s; }
.menue-link:hover, .mega-ausloeser:hover, .mega-eintrag.ist-offen .mega-ausloeser { background: var(--wein-hell); color: var(--wein-dunkel); }
.menue-link[aria-current="page"], .mega-ausloeser.ist-aktiv { color: var(--wein); }
.mega-eintrag.ist-offen .mega-ausloeser svg { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--weiss); border-top: 1px solid var(--linie);
  box-shadow: 0 24px 48px rgb(31 27 29 / 12%);
  display: none;
}
.mega-eintrag.ist-offen .mega,
html:not(.js) .mega-eintrag:hover .mega,
html:not(.js) .mega-eintrag:focus-within .mega {
  display: block; animation: mega-auf 0.22s ease-out;
}
@keyframes mega-auf { from { opacity: 0; transform: translateY(-6px); } }
.mega-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 28px 32px; }
.mega-raster.mit-karte { grid-template-columns: 1.1fr 1fr 0.9fr; }
.mega-titel { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); margin: 0 0 10px 12px; }
.mega-spalte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-link {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px;
  color: var(--tinte); text-decoration: none; line-height: 1.35;
}
a.mega-link:hover, a.mega-link:focus-visible { background: var(--papier); color: var(--tinte); }
a.mega-link:hover .mega-symbol { background: var(--wein); color: #fff; }
.mega-link strong { display: block; font-weight: 600; font-size: 0.97rem; }
.mega-link small { display: block; color: var(--grau); font-size: 0.86rem; margin-top: 2px; }
.mega-symbol { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--wein-hell); color: var(--wein); display: grid; place-items: center; transition: background 0.2s, color 0.2s; }
.mega-symbol svg { width: 19px; height: 19px; }
.mega-folgt { opacity: 0.62; cursor: default; }
.mega-folgt em { margin-left: auto; font-style: normal; font-size: 0.72rem; font-weight: 600; color: var(--grau); border: 1px solid var(--linie); border-radius: 999px; padding: 2px 8px; align-self: center; }
.mega-karte {
  position: relative; display: block; border-radius: 16px; overflow: hidden; min-height: 220px;
  color: #fff; text-decoration: none; isolation: isolate;
}
.mega-karte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s; }
.mega-karte::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(94 15 19 / 10%), rgb(94 15 19 / 88%)); }
.mega-karte:hover img { transform: scale(1.05); }
.mega-karte-text { position: absolute; left: 20px; right: 20px; bottom: 18px; padding-right: 44px; }
.mega-karte-text strong { display: block; font-size: 1.1rem; }
.mega-karte-text small { color: #f1d9d7; }
.mega-karte-pfeil { position: absolute; right: 0; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--wein); display: grid; place-items: center; }
.mega-karte-pfeil svg { width: 18px; height: 18px; }
.mega-karte:hover, .mega-karte:focus-visible { color: #fff; }

/* Bühne mit Bild, das nach links und unten ausläuft */
.buehne { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px); isolation: isolate; }
.buehne-bild { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: -1; }
.buehne-bild img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / 35%) 30%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / 35%) 30%, #000 58%);
}
.buehne-bild::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, transparent, var(--papier));
}
/* KI-Hinweis: mittig über dem sichtbaren Bildteil, ohne Fläche */
.bild-hinweis {
  position: absolute; left: 35%; right: 0; top: 14px; z-index: 1; text-align: center;
  font-size: 0.66rem; letter-spacing: 0.02em; color: rgb(255 255 255 / 78%);
  text-shadow: 0 1px 3px rgb(0 0 0 / 45%); pointer-events: none;
}
@media (max-width: 960px) { .bild-hinweis { left: 0; } }
.buehne-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.buehne-karten { position: relative; min-height: 380px; }
.schwebe {
  position: absolute; display: flex; gap: 12px; align-items: center;
  background: rgb(255 255 255 / 88%); backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 70%); border-radius: 16px;
  padding: 12px 18px 12px 12px; box-shadow: 0 18px 40px rgb(31 27 29 / 16%);
  font-size: 0.9rem; line-height: 1.3; white-space: nowrap;
}
.schwebe strong { display: block; font-weight: 650; }
.schwebe small { color: var(--grau); }
.schwebe-symbol { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #e3f1ea; color: var(--gruen); flex: none; }
.schwebe-symbol svg { width: 20px; height: 20px; }
.schwebe-symbol-wein { background: var(--wein-hell); color: var(--wein); }
.schwebe-1 { top: 6%; left: 4%; }
.schwebe-2 { top: 42%; right: 0; }
.schwebe-3 { bottom: 4%; left: 16%; }

/* Startseite: Foto klar und unverblasst, Karten nur am Bildrand */
.buehne-start .buehne-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(40px, 5vw, 80px); }
.buehne-foto { position: relative; margin: 0 0 0 28px; }
.buehne-foto img {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: 28px; box-shadow: 0 30px 60px rgb(31 27 29 / 16%);
}
.buehne-foto .schwebe-1 { top: 24px; left: -32px; }
.buehne-foto .schwebe-3 { top: auto; left: auto; bottom: -24px; right: 24px; }

/* Laufband */
.laufband { overflow: hidden; background: var(--tinte); color: #efe7e5; padding: 14px 0; }
.laufband-spur { display: flex; gap: 40px; width: max-content; animation: laufen 48s linear infinite; }
.laufband span { display: inline-flex; align-items: center; gap: 12px; font-weight: 550; white-space: nowrap; }
.laufband svg { width: 16px; height: 16px; color: #e7b9b6; }
.laufband:hover .laufband-spur { animation-play-state: paused; }
@keyframes laufen { to { transform: translateX(-50%); } }

/* Bento */
.bento { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.karte.bento-gross { grid-row: span 2; background: var(--tinte); color: #f3eeec; border-color: var(--tinte); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden; }
.bento-gross h3 { color: #fff; font-size: 1.45rem; }
.karte.bento-gross p { color: #cfc6c3; }
.bento-gross .symbol { background: rgb(255 255 255 / 8%); color: #e7b9b6; }
.bento-gross .abakus .rahmen { stroke: #e7b9b6; }
.bento-gross .abakus .stab { stroke: rgb(255 255 255 / 18%); }
.bento-gross .abakus .perle { fill: #d9484f; }
.bento-gross .abakus .perle-hell { fill: rgb(255 255 255 / 20%); }
.bento-breit { grid-column: span 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.marken { display: flex; gap: 8px; flex-wrap: wrap; }
.marken span { border: 1px solid var(--linie); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.9rem; background: var(--papier); }

/* Ablauf mit mitlaufender Spalte */
.ablauf-klebend { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ablauf-links { position: sticky; top: 120px; }
.ablauf-links > p { color: var(--grau); font-size: 1.1rem; }
.fortschritt { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.fortschritt li { display: flex; align-items: center; gap: 12px; color: var(--grau); font-weight: 550; transition: color 0.3s; }
.fortschritt span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--linie); font-size: 0.9rem; font-weight: 700; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.fortschritt li.ist-aktiv { color: var(--tinte); }
.fortschritt li.ist-aktiv span { background: var(--wein); border-color: var(--wein); color: #fff; }
.ablauf-rechts { display: grid; gap: 28px; counter-reset: schritt; }
.ablauf-rechts .schritt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--papier); }
.ablauf-rechts .schritt img { height: 100%; }

/* Zielgruppen als Links */
a.chip { color: var(--tinte); text-decoration: none; transition: border-color 0.2s, transform 0.2s, background 0.2s; }
a.chip:hover { border-color: var(--wein); background: var(--wein-hell); transform: translateY(-2px); color: var(--wein-dunkel); }

/* Portal-Abschnitt */
.abschnitt-dunkel { background: linear-gradient(180deg, var(--papier), #f1e7e5); }
.datei .status { margin-left: auto; color: #8fd0ad; font-size: 0.82rem; transition: color 0.3s; }
.datei .status.ist-wartend { color: #d9c08a; }

/* Aufruf mit weichen Lichtflecken */
.aufruf { position: relative; overflow: hidden; isolation: isolate; }
.aufruf::before, .aufruf::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 16%), transparent 70%);
}
.aufruf::before { width: 420px; height: 420px; right: -120px; top: -180px; }
.aufruf::after { width: 300px; height: 300px; left: 30%; bottom: -200px; }

/* Unterseiten-Kopf mit weichem Verlauf */
.seitenkopf { position: relative; overflow: hidden; isolation: isolate; }
.seitenkopf::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgb(128 23 27 / 12%), transparent);
}

@media (max-width: 1100px) {
  .menue-link, .mega-ausloeser { padding: 10px; }
}

@media (max-width: 960px) {
  .buehne { padding-top: 0; }
  .buehne-bild { position: relative; width: 100%; height: 300px; }
  .buehne-bild img { -webkit-mask-image: none; mask-image: none; }
  .buehne-bild::after { height: 55%; }
  .buehne-raster { grid-template-columns: minmax(0, 1fr); margin-top: -48px; }
  .buehne-karten { min-height: 0; display: grid; gap: 10px; }
  .schwebe { position: static; white-space: normal; }
  .buehne.buehne-start { padding-top: clamp(32px, 6vw, 56px); }
  .buehne-start .buehne-raster { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: 36px; }
  .buehne-foto { margin: 0 0 24px; }
  .buehne-foto img { border-radius: 20px; aspect-ratio: 4 / 3; }
  .buehne-foto .schwebe { position: absolute; padding: 11px 14px 11px 11px; font-size: 0.82rem; border-radius: 12px; }
  .buehne-foto .schwebe-symbol { width: 30px; height: 30px; border-radius: 9px; }
  .buehne-foto .schwebe-1 { top: 12px; left: 12px; }
  .buehne-foto .schwebe-3 { bottom: -18px; right: 12px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .karte.bento-gross { grid-row: auto; grid-column: span 2; }
  .ablauf-klebend { grid-template-columns: 1fr; }
  .ablauf-links { position: static; }
  .fortschritt { display: none; }
  .mega-raster, .mega-raster.mit-karte { grid-template-columns: 1fr; gap: 12px; padding-block: 8px 12px; }
}

@media (max-width: 820px) {
  .js .menue { max-height: calc(100vh - 110px); overflow-y: auto; flex-wrap: nowrap; }
  .menue-liste { flex-direction: column; align-items: stretch; width: 100%; }
  .menue-link, .mega-ausloeser { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1.02rem; }
  .mega { position: static; box-shadow: none; border: 0; background: transparent; animation: none !important; }
  .mega-eintrag.ist-offen .mega, html:not(.js) .mega { display: block; }
  .mega .huelle { padding: 0; }
  .mega-karte { display: none; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .karte.bento-gross, .bento-breit { grid-column: auto; }
  .ablauf-rechts .schritt { grid-template-columns: 1fr; }
  .buehne-bild { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .laufband-spur { animation: none; }
}

.fuss-marke { display: flex; align-items: center; gap: 16px; }
.fuss-marke img { height: 30px; width: auto; }
