/* grandmine-Produktseite: Ergaenzungen zum mimag-Look (mimag.css wird vorher geladen). */
:root { --gm-nacht: #1c1f4a; --gm-gold: #f0b429; --gm-blau: #4361ee; --gm-hell: #f4f5f8; --gm-linie: #e2e4ea; }

/* Kopf: App-Symbol und Name */
.produkt-logo { display: flex; align-items: center; gap: .7rem; font: 500 1.2rem var(--f-head); letter-spacing: -.01em; }
.produkt-logo img { width: 32px; height: 32px; border-radius: 7px; }

/* Knoepfe */
.gm-aktionen { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.gm-knopf { display: inline-flex; align-items: center; padding: .85rem 1.4rem; border: 1.5px solid var(--schwarz); border-radius: 999px; background: var(--schwarz); color: var(--weiss); font: 500 .98rem var(--f-text); transition: background .25s, color .25s; }
.gm-knopf:hover { background: var(--weiss); color: var(--schwarz); }
.gm-knopf.zweit { background: transparent; color: var(--schwarz); }
.gm-knopf.zweit:hover { background: var(--schwarz); color: var(--weiss); }

/* Hero (wrap nur oben/unten polstern, sonst geht der seitliche Rand verloren) */
.gm-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: center; padding-top: clamp(3rem, 9vh, 6rem); }
.gm-hero-text { grid-column: 1 / span 5; }
.gm-status { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.6rem; padding: .4rem .9rem; border: 1px solid var(--linie); border-radius: 999px; font-size: .88rem; font-weight: 500; color: #2b2b2b; background: var(--weiss); }
.gm-status-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gm-gold); flex: none; }
.gm-nobr { white-space: nowrap; }
.gm-hero h1 { font-size: clamp(2.4rem, 4.4vw, 4.3rem); line-height: 1.04; letter-spacing: -.04em; max-width: 14ch; }
.gm-hero-text > p:not(.gm-status) { margin: 1.7rem 0 0; font-size: 1.1rem; color: #2b2b2b; max-width: 34rem; }
.gm-hero-text > p.gm-klein { margin-top: 1rem; font-size: .98rem; color: var(--text-2); }
.gm-hero-bild { grid-column: 6 / -1; margin: 0; background: var(--gm-hell); padding: 14px; border: 1px solid var(--gm-linie); border-radius: 18px; box-shadow: 0 30px 60px rgba(28,31,74,.14); }
.gm-hero-bild img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* Bereiche: sechs Punkte in drei Spalten */
.leistungen.gm-sechs { grid-template-columns: repeat(3, 1fr); row-gap: 2.4rem; }

/* Ansichten: heller Bereich, Galerie mit Bildunterschriften (Lightbox aus seite.js ueber .galerie img) */
.gm-ansichten { background: var(--gm-hell); margin-top: clamp(5rem, 12vh, 8rem); padding-top: clamp(4.5rem, 11vh, 7rem); padding-bottom: clamp(4.5rem, 11vh, 7rem); }
.galerie.gm-raster { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 2rem; align-items: start; }
.gm-raster figure { margin: 0; }
.galerie.gm-raster img, .galerie.gm-raster img:first-child { width: 100%; height: auto; aspect-ratio: auto; grid-row: auto; object-fit: contain; background: var(--weiss); border: 1px solid var(--gm-linie); border-radius: 10px; box-shadow: 0 12px 30px rgba(28,31,74,.08); cursor: zoom-in; transition: border-color .25s, box-shadow .25s; }
.galerie.gm-raster img:hover { border-color: var(--gm-blau); box-shadow: 0 16px 36px rgba(28,31,74,.14); }
.gm-raster figcaption { margin-top: .8rem; font-size: .92rem; line-height: 1.55; color: var(--text-2); max-width: 40rem; }
.gm-raster figcaption strong { display: block; color: var(--schwarz); font: 500 1.08rem var(--f-head); margin-bottom: .15rem; }

/* Funktionen */
.gm-funktionen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.gm-funktionen li { background: var(--flaeche); padding: 1.4rem 1.4rem 1.2rem; border-top: 3px solid var(--gm-nacht); }
.gm-funktionen h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.gm-funktionen p { margin: 0; color: var(--text-2); font-size: .93rem; }
.gm-tag { display: inline-block; vertical-align: .2em; margin-left: .35rem; padding: .12rem .5rem; border: 1px solid var(--gm-gold); border-radius: 999px; background: #fff8e6; color: #7a5600; font: 500 .72rem var(--f-text); letter-spacing: .02em; white-space: nowrap; }
.gm-hinweis { margin: 2rem 0 0; color: var(--text-2); font-size: .95rem; max-width: 46rem; }

/* Technik */
.gm-technik { margin: 0; border-top: 1px solid var(--schwarz); }
.gm-technik > div { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--linie); }
.gm-technik dt { grid-column: 1 / span 3; font: 500 1.1rem var(--f-head); }
.gm-technik dd { grid-column: 4 / -1; margin: 0; color: var(--text-2); }

@media (max-width: 1000px) {
  .gm-funktionen { grid-template-columns: 1fr 1fr; }
  .leistungen.gm-sechs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .gm-hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .gm-hero-grid > * { grid-column: 1 / -1 !important; }
  .gm-hero h1 { max-width: 18ch; }
  .gm-technik > div { grid-template-columns: 1fr; gap: .3rem; }
  .gm-technik dt, .gm-technik dd { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .galerie.gm-raster { grid-template-columns: 1fr; max-width: 720px; }
}
@media (max-width: 560px) {
  .gm-funktionen, .leistungen.gm-sechs { grid-template-columns: 1fr; }
  .gm-hero-bild { padding: 8px; border-radius: 12px; }
  .produkt-logo span { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .gm-hero-text > * { animation: hoch 1s var(--ease) both; }
  .gm-hero-bild { animation: hoch 1.2s .15s var(--ease) both; }
}
