/* Startseite: Gruppenmarken und die Sektion #gruende (Tobias 10.11.2026).
   Inhalt kommt aus werkzeuge/gruende-bauen.py. */

/* Gruppenmarke: eine ruhige Zeile ueber der ersten Sektion einer Gruppe. */
.gruppe-marke { display: flex; align-items: center; gap: 18px; width: min(var(--maxw), 100% - 2 * var(--gutter) + var(--ueber, 0px)); margin: calc(var(--sektion) / 2) auto 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #6C2BF2; }
.gruppe-marke::before, .gruppe-marke::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(108, 43, 242, 0), rgba(108, 43, 242, .28)); }
.gruppe-marke::after { transform: scaleX(-1); }
.gruppe-marke span { padding: 7px 14px; border-radius: 99px; background: rgba(108, 43, 242, .07); box-shadow: inset 0 0 0 1px rgba(108, 43, 242, .16); }

/* Kopf: Hinweis auf den neuesten Changelog-Eintrag. */
#gruende .kopfzeile { text-align: center; }
/* Neuester Changelog-Eintrag, aus werkzeuge/changelog.json gebaut: Etikett und Punkt wie auf /changelog. */
.gr-neu { display: flex; width: max-content; max-width: calc(100vw - 32px); margin-left: 50%; translate: -50% 0; align-items: center; gap: 12px; margin-top: 20px; padding: 10px 12px 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1px rgba(108, 43, 242, .14), 0 10px 28px -16px rgba(40, 16, 90, .45); color: var(--ink); text-decoration: none; text-align: left; transition: box-shadow .2s; }
.gr-neu:hover { box-shadow: inset 0 0 0 1px rgba(108, 43, 242, .38), 0 10px 28px -16px rgba(40, 16, 90, .55); }
.gr-neu-marke { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.gr-neu i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #22B573; box-shadow: 0 0 0 4px rgba(34, 181, 115, .16); animation: gr-puls 2.4s ease-in-out infinite; }
.gr-neu-inhalt { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding-left: 12px; border-left: 1px solid var(--line-soft, rgba(23, 16, 43, .08)); }
.gr-neu-inhalt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.gr-neu-mehr { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 10px; border-radius: 10px; background: var(--f-dialer-bg, #F0E9FE); font-size: 13px; font-weight: 600; color: #6C2BF2; }
.gr-neu .cl-bereich, .gr-cl .cl-bereich { flex: none; display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--f-bg, rgba(23, 16, 43, .06)); color: var(--f, var(--ink-3)); }
.gr-neu svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Kachel "Offener Changelog": die drei Eintraege vor dem neuesten als Zeitleiste. */
.gr-medium-cl { display: flex; align-items: center; padding: 18px 20px; }
.gr-cl { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; width: 100%; }
.gr-cl::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: rgba(108, 43, 242, .16); }
.gr-cl li { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 4px 10px; margin-left: 22px; padding: 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 2px rgba(23, 16, 43, .06), 0 12px 26px -18px rgba(40, 16, 90, .4); }
.gr-cl li::before { content: ""; position: absolute; left: -22px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--f, var(--ink-4)); box-shadow: 0 0 0 3px #fff; }
.gr-cl time { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.gr-cl strong { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--ink); }
@keyframes gr-puls { 50% { box-shadow: 0 0 0 7px rgba(34, 181, 115, 0); } }
@media (prefers-reduced-motion: reduce) { .gr-neu i { animation: none; } }

/* Bereiche als Filterleiste wie bei den Integrationen (Tobias 10.11.2026: ruhig, ohne Glas). */
.gr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: clamp(24px, 3vw, 36px); }
.gr-leiste-wrap { display: flex; justify-content: center; }
.gr-leiste { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 28px; padding: 0; box-shadow: inset 0 -1px 0 var(--line-mid); }
.gr-reiter { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--ink-3); cursor: pointer; transition: color .2s; }
.gr-reiter::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: transparent; transition: background-color .2s; }
.gr-reiter:hover { color: var(--ink); }
.gr-reiter[aria-selected="true"] { color: var(--ink); }
.gr-reiter[aria-selected="true"]::after { background: var(--accent); }
.gr-reiter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Bento je Bereich (Tobias 10.11.2026, Vorlage "Marketing Feature Bento"): drei Kacheln mit echtem
   Ausschnitt aus der App, sechs ruhige Textkacheln. Reihenfolge und Raster kommen aus gruende-bauen.py. */
.gr-flaeche { padding: 0; }
.gr-flaeche:not([hidden]) { animation: gr-ein .3s ease-out; }
@keyframes gr-ein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gr-flaeche:not([hidden]) { animation: none; } }
.gr-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gr-k { position: relative; display: flex; flex-direction: column; overflow: hidden; margin: 0; border: 1px solid rgba(255, 255, 255, .9); border-radius: 20px;
  background: rgba(255, 255, 255, .72); box-shadow: 0 0 0 1px rgba(91, 33, 182, .07), 0 1px 2px rgba(23, 16, 43, .05), 0 18px 40px -30px rgba(40, 16, 90, .35); }
.gr-k-breit { grid-column: span 2; }
.gr-k-hoch { grid-row: span 2; }
.gr-text { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; padding: 20px 22px 22px; }
.gr-nr { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--accent); }
.gr-text strong { font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
/* Icon oder Logos ueber der Nummer, nur in den Text-Kacheln. */
.gr-ikon { display: flex; align-items: center; height: 52px; margin: 0 0 12px -4px; }
.gr-ikon img { display: block; width: auto; height: 52px; filter: drop-shadow(0 8px 14px rgba(91, 33, 182, .22)); }
.gr-ikon-logos { margin-left: 0; }
.gr-ikon-logos i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(23, 16, 43, .06), 0 8px 18px -10px rgba(40, 16, 90, .4); }
.gr-ikon-logos i + i { margin-left: -8px; }
.gr-ikon-logos img { width: 26px; height: 26px; object-fit: contain; filter: none; }
.gr-text p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
/* Medium: helle Flaeche in der Bereichsfarbe, der Ausschnitt liegt oben links und laeuft rechts und unten aus. */
.gr-medium { position: relative; flex: none; height: 250px; overflow: hidden; border-bottom: 1px solid rgba(91, 33, 182, .08);
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, rgba(237, 231, 255, .95), rgba(247, 244, 255, .7)); }
/* Baustein aus der App (gruende-karten.css) liegt oben links und laeuft rechts und unten aus. */
/* Kleinere Bausteine mittig, breitere laufen rechts aus der Kachel. */
.gr-buehne-k { position: absolute; top: 24px; left: 24px; right: 24px; justify-content: safe center; display: flex; align-items: flex-start; gap: 12px; pointer-events: none; }
.gr-buehne-k .appk { flex: none; zoom: var(--z, 1); filter: drop-shadow(0 18px 28px rgba(40, 16, 90, .16)); }
.gr-k-hoch .gr-medium { flex: 1 1 auto; height: auto; min-height: 250px; }
/* Bausteine ohne eigene Flaeche (Kopf der Dialer-Session) bekommen die Karte, in der sie in der App liegen. */
.gr-buehne-k .appk.ak-karte { padding: 18px 20px; border-radius: 18px 0 0 0; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(91, 33, 182, .08); }
.gr-k-quer { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.gr-k-quer .gr-text { order: -1; align-content: end; }
.gr-k-quer .gr-medium { height: auto; min-height: 210px; border-bottom: 0; border-left: 1px solid rgba(91, 33, 182, .08); }
.gr-medium-ios { display: grid; place-items: start center; padding-top: 26px; }
.gr-medium-ios .iphone { box-shadow: inset 0 0 0 .8em rgba(255, 255, 255, .9), inset 0 0 1.5em 2em rgba(60, 50, 90, .22), 0 24px 44px -22px rgba(40, 16, 90, .45); }
.gr-medium-ios .ip-bild img { width: 100%; height: 100%; }

@media (max-width: 1100px) {
  .gr-leiste-wrap { justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .gr-leiste-wrap::-webkit-scrollbar { display: none; }
  .gr-leiste { flex: none; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .gr-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-k-hoch { grid-row: span 1; grid-column: span 2; }
  .gr-k-hoch .gr-medium { flex: none; height: 250px; }
}
@media (max-width: 620px) {
  .gr-bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gr-k-breit, .gr-k-hoch { grid-column: auto; }
  .gr-k-quer { display: flex; }
  .gr-k-quer .gr-text { order: 0; }
  .gr-k-quer .gr-medium { border-left: 0; border-bottom: 1px solid rgba(91, 33, 182, .08); }
  .gr-medium, .gr-k-hoch .gr-medium { height: 210px; min-height: 0; }
  .gr-buehne-k { top: 18px; left: 18px; right: 18px; }
  .gr-buehne-k .appk { zoom: calc(var(--z, 1) * .62); }
  .gr-text { padding: 18px 18px 20px; }
}
@media (max-width: 620px) {
  .gr-neu { flex-direction: column; align-items: flex-start; gap: 10px; width: auto; max-width: none; margin-left: 0; translate: none; }
  .gr-neu-inhalt { flex-wrap: wrap; gap: 8px; padding-left: 0; border-left: 0; }
  .gr-neu-inhalt strong { white-space: normal; }
  .gr-cl li { grid-template-columns: 1fr; justify-items: start; }
  .gruppe-marke { gap: 12px; font-size: 12px; }
}

/* Feste Hoehe: alle Flaechen liegen in derselben Zelle, die groesste bestimmt die Hoehe.
   So springt die Sektion beim Wechsel nicht (Tobias 10.11.2026). */
.gr-buehne { display: grid; }
.gr-flaeche { grid-area: 1 / 1; }
.gr-flaeche[hidden] { display: grid; visibility: hidden; pointer-events: none; }

/* "Bekannt aus" im Hero unter der Headline (Tobias 10.11.2026): echte Zeichen, einfarbig, ohne Knopf-Optik. */
.bekannt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; width: min(var(--maxw), 100% - 2 * var(--gutter)); margin: 30px auto 0; font-size: 15px; color: var(--ink-3); }
.bekannt-text { font-size: 14px; }
.bekannt-kanal { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-decoration: none; opacity: .82; transition: opacity .2s; }
.bekannt-kanal:hover { opacity: 1; }
.bekannt-kanal svg { width: 24px; height: 24px; fill: currentColor; }
.bekannt-strich { width: 1px; height: 22px; background: rgba(23, 16, 43, .14); }
.bekannt-zahl strong { font-weight: 700; color: var(--ink); }
@media (max-width: 620px) { .bekannt { gap: 10px 20px; } .bekannt-strich { display: none; } .bekannt-zahl { flex-basis: 100%; text-align: center; } .bekannt-text { flex-basis: 100%; text-align: center; } .bekannt-kanal { font-size: 16px; } .bekannt-kanal svg { width: 21px; height: 21px; } }
.hero-bekannt { grid-column: 1 / -1; justify-content: center; width: auto; margin: 64px 0 0; }
@media (max-width: 620px) { .hero-bekannt { justify-content: center; margin-top: 22px; } }

/* Hero mittig: Headline in zwei Zeilen, Subline, Knoepfe, dann "Bekannt aus" (Tobias 10.11.2026). */
.hero-oben { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
/* Zwei gleich lange Zeilen (Tobias 10.11.2026): Zeile 2 groesser, bis sie so breit ist wie Zeile 1. */
.hero h1 { font-size: min(clamp(44px, 5.2vw, 76px), calc((100vw - 2 * var(--gutter)) / 15)); line-height: 1.05; }
.hero h1 span + span { font-size: 1em; }
.hero h1 span { white-space: nowrap; }
.hero-seite { display: flex; flex-direction: column; align-items: center; padding-top: 0; margin-top: 22px; }
.hero-seite .lead { max-width: none; white-space: nowrap; }
@media (max-width: 760px) { .hero-seite .lead { white-space: normal; max-width: 34ch; } }
.hero-knoepfe { margin-top: 30px; justify-content: center; }
@media (max-width: 1000px) { .hero-oben { gap: 0; } }
@media (max-width: 620px) { .hero-seite { display: flex; margin-top: 18px; } .hero-knoepfe { margin-top: 24px; align-self: stretch; } }

/* Auszug ohne justify-items: Icon-Kaestchen (Grid mit einem Icon) waagerecht mittig. */
:where(.gr-k, .appk) :has(> svg:only-child), :where(.gr-k, .appk) :has(> img:only-child) { justify-items: center; }

/* Handy (10.11.2026): Headline groesser und umbrechend statt auf eine Zeile geschrumpft,
   Trennmarke nicht breiter als die Seite, Gruenderfoto mittig. */
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(31px, 8.7vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
  .hero h1 span { white-space: normal; text-wrap: balance; }
}
@media (max-width: 900px) { .gruppe-marke { width: calc(100% - 2 * var(--gutter)); } }
@media (max-width: 980px) {
  #team .gr-bild { justify-self: center; margin-inline: auto; width: 100%; max-width: 420px; }
  #team .gr-bild img:not(.gr-glas) { object-position: 50% 20%; }
}
