/* =========================================================================
   Unterseite /anbindungen/ als Integrations-Katalog (03.10.2026).
   Laedt nach fonts.css, flaechen.css, start-hell.css und
   start-hell-sektionen.css und nutzt deren Tokens (--accent, --ink, --warm,
   --rahmen, --line-mid, --r-karte, .wrap, .buehne, .karo, .ein, .pille,
   .pfeil-link, .faq-*). Vorbilder: Clay (Icon-Wolke ueber dem Katalog),
   tobias.social (Tool-Karten: 22px Karte, 8px Innenrand, getoente Kopfflaeche,
   Logo-Kachel 46px, Link unten).
   Gliederung:
     1. Hero und Icon-Wolke    4. Eine Adresse je Funnel   7. Handy
     2. Filter und Suche       5. Eigene Anbindungen       8. Reduzierte Bewegung
     3. Katalog-Karten         6. Fragen und Schluss
   ========================================================================= */

/* ---------- 1. Hero und Icon-Wolke ------------------------------------- */
.int-hero { position: relative; padding: clamp(48px, 6vw, 88px) 0 0; text-align: center; }
.int-hero .krumen { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.int-hero .krumen a { color: var(--ink-3); }
.int-hero .krumen a:hover { color: var(--accent); }
.int-hero .krumen span { color: var(--line-stark); }
.int-hero h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -.035em; }
.int-hero .lead { max-width: 640px; margin: 20px auto 0; font-size: 18px; line-height: 1.6; color: var(--ink-3); }

/* Wolke: drei Tiefenreihen, hinten klein und leicht entsaettigt, vorn gross
   mit Spiegelung. Die Reihen liegen absolut uebereinander, jede Kachel traegt
   ihren eigenen Versatz nach unten (--dy) und ihren Takt (--i). */
.wolke { position: relative; height: 340px; margin-top: clamp(24px, 3vw, 40px); pointer-events: none; }
.wolke::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  width: 900px;
  height: 300px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(108, 43, 242, .07), rgba(108, 43, 242, 0) 100%);
  pointer-events: none;
}
.wolke-reihe { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-start; }
.wolke-hinten { top: 0; gap: 72px; z-index: 1; margin-left: 14px; }
.wolke-mitte  { top: 50px; gap: 58px; z-index: 2; margin-left: -22px; }
.wolke-vorn   { top: 112px; gap: 66px; z-index: 3; }
/* Spiegelung nur fuer die vordere Reihe, sonst scheinen die hinteren durch. */
.wolke-hinten .spiegel, .wolke-mitte .spiegel { display: none; }
.wolke-kachel { position: relative; transform: translateY(calc(var(--dy, 0px) + 28px)); opacity: 0; transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 55ms); pointer-events: auto; }
.wolke.ist-da .wolke-kachel { opacity: 1; transform: translateY(var(--dy, 0px)); }
.wolke-schwebt { display: block; }
.wolke.ist-da .wolke-schwebt { animation: wolke-schweben 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -700ms); }
@keyframes wolke-schweben { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }

/* Die Kachel selbst: weiss, 1px Rand, 18px Rundung, Schatten. Beim Hover
   bewegt sich nichts, nur der Schatten wird staerker. */
.kachel {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--rahmen);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(23, 16, 43, .05), 0 14px 28px -16px rgba(23, 16, 43, .35);
  transition: box-shadow var(--t-2) var(--ease);
}
.wolke-kachel:hover .kachel { box-shadow: 0 1px 2px rgba(23, 16, 43, .06), 0 22px 40px -16px rgba(23, 16, 43, .5); }
.kachel img { width: 30px; height: 30px; display: block; }
.kachel-initial { font-family: Outfit, sans-serif; font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: -.02em; color: var(--farbe, var(--accent)); }
.kachel-zeichen { width: 26px; height: 26px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wolke-hinten .kachel { width: 48px; height: 48px; border-radius: 14px; opacity: .55; filter: saturate(.7); }
.wolke-hinten .kachel img { width: 22px; height: 22px; }
.wolke-hinten .kachel-initial { font-size: 18px; }
.wolke-hinten .kachel-zeichen { width: 20px; height: 20px; }
.wolke-mitte .kachel { opacity: .85; }
.wolke-vorn .kachel { width: 72px; height: 72px; border-radius: 20px; }
.wolke-vorn .kachel img { width: 34px; height: 34px; }
.wolke-vorn .kachel-initial { font-size: 27px; }
.wolke-vorn .kachel-zeichen { width: 30px; height: 30px; }

/* Spiegelung: gleiche Kachel, vertikal gekippt, nach unten ausblendend. */
.spiegel { position: absolute; left: 0; top: calc(100% + 8px); width: 100%; transform: scaleY(-1); opacity: .25; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 70%); mask-image: linear-gradient(to bottom, #000 0, transparent 70%); }
.spiegel .kachel { box-shadow: none; }
/* Weicher Boden unter der Wolke, damit die Spiegelung in Weiss auslaeuft. */
.wolke::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--paper) 85%); z-index: 4; pointer-events: none; }

/* ---------- 2. Filter und Suche ---------------------------------------- */
.int-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 0; background: var(--paper); }
.int-chips { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 4px; border: 1px solid var(--line-mid); border-radius: 10px; background: var(--nebel); }
.int-chips button {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-3);
  transition: color var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.int-chips button:hover { color: var(--ink); }
.int-chips button[aria-pressed="true"] { background: var(--paper); color: var(--accent); box-shadow: 0 1px 2px rgba(23, 16, 43, .10); }
.int-suche { position: relative; width: 300px; max-width: 100%; }
.int-suche svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.int-suche input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  background: var(--paper);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.int-suche input::placeholder { color: var(--ink-4); }
.int-suche input:hover { background: var(--paper-2); }
.int-suche input:focus { outline: none; border-color: var(--accent); background: var(--paper); }
.int-suche input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- 3. Katalog-Karten ------------------------------------------- */
.katalog { padding-top: 12px; }
.kat-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.kat-gruppe { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 24px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.kat-gruppe:first-child { margin-top: 8px; }
.kat-gruppe::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kat-gruppe small { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12.5px; color: var(--ink-4); }
.kat-gruppe[hidden], .kat-karte[hidden] { display: none; }

/* Karte nach tobias.social: 22px Karte mit 8px Innenrand, darin die getoente
   Kopfflaeche in der Markenfarbe (--farbe), 16px Rundung. Hoehe je Reihe
   gleich, weil die Kopfflaeche flex: 1 bekommt und der Link unten steht. */
.kat-karte {
  --farbe: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line-mid);
  border-radius: 22px;
  background: var(--paper);
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.kat-karte:hover { border-color: color-mix(in srgb, var(--farbe) 35%, var(--line-mid)); box-shadow: 0 1px 2px rgba(23, 16, 43, .04), 0 18px 36px -24px color-mix(in srgb, var(--farbe) 55%, transparent); }
.kat-kopf {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 22px 22px 24px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, color-mix(in srgb, var(--farbe) 24%, transparent) 0, transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--farbe) 9%, #fff) 0%, #fff 75%);
}
.kat-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--farbe) 70%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--farbe) 12%, transparent);
  font-family: Outfit, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--farbe);
}
.kat-logo img { width: 24px; height: 24px; display: block; }
.kat-logo svg { width: 22px; height: 22px; color: var(--farbe); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.kat-karte h3 { font-family: Outfit, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.kat-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.kat-link { display: inline-flex; align-items: center; gap: 6px; padding: 14px 14px 10px; font-size: 14px; font-weight: 600; line-height: 1; color: color-mix(in srgb, var(--farbe) 75%, var(--ink)); }
.kat-link svg { width: 15px; height: 15px; transition: transform var(--t-2) var(--ease); }
.kat-karte:hover .kat-link svg { transform: translateX(3px); }
/* Die Karte ist als Ganzes klickbar: der Link liegt mit ::after ueber ihr. */
.kat-link::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.kat-karte:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.kat-link:focus-visible { outline: none; }

/* Stand-Pille oben rechts in der Kopfflaeche, 8px Radius. */
.kat-stand { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.kat-stand i { display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stand-laeuft { background: color-mix(in srgb, var(--f-telefonie) 12%, var(--paper)); color: var(--f-telefonie); }
.stand-arbeit { background: var(--paper); color: var(--ink-3); border: 1px dashed var(--line-stark); }
.stand-business { background: var(--tint); color: var(--accent); }

/* Gestaffelte Einblendung je Karte: --v ist die Spalte in der Reihe. */
.kat-karte.ein { transition-delay: calc(var(--v, 0) * 70ms); }

.kat-leer { grid-column: 1 / -1; padding: 36px 24px; border: 1px dashed var(--line-stark); border-radius: 20px; text-align: center; font-size: 16px; color: var(--ink-2); }
.kat-leer a { color: var(--accent); font-weight: 600; }
.kat-leer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kat-leer[hidden] { display: none; }
.kat-fuss { margin-top: 28px; font-size: 13.5px; color: var(--ink-4); text-align: center; }
.kat-fuss a { color: var(--accent); font-weight: 600; }

/* ---------- 4. Eine Adresse je Funnel ------------------------------------ */
.quelle-buehne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 56px); align-items: center; padding: 56px 0 56px 56px; background: var(--warm); overflow: hidden; }
.quelle-buehne.karo { --karo-maske: radial-gradient(ellipse 70% 80% at 0% 0%, #000 0, rgba(0, 0, 0, .5) 45%, transparent 80%); }
.quelle-text { display: flex; flex-direction: column; align-items: flex-start; }
.quelle-text h2 { margin-top: 20px; font-size: clamp(32px, 3.4vw, 46px); }
.quelle-text .lead { margin-top: 18px; max-width: 480px; color: var(--ink-2); }
.quelle-text .punkte { margin-top: 22px; }
.quelle-text .pfeil-link { margin-top: 28px; }
/* Rechts das Produktfenster, 130 % breit, laeuft rechts ueber die Buehne. */
.quelle-medien { position: relative; min-height: 300px; }
.quelle-medien .fenster { position: absolute; left: 0; top: 50%; width: 130%; transform: translateY(-50%); }
.quelle-medien .fenster img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to right, #000 72%, transparent); mask-image: linear-gradient(to right, #000 72%, transparent); }

/* ---------- 5. Eigene Anbindungen ---------------------------------------- */
.eigene-raster { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 64px; align-items: start; }
.eigene-kopf h2 { font-size: clamp(34px, 3.6vw, 48px); }
.eigene-kopf .lead { margin-top: 18px; }
.eigene-kopf .pille { margin-bottom: 18px; }
.eigene-zeilen { display: grid; }
.eigene-zeile { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.eigene-zeile:last-child { border-bottom: 1px solid var(--line); }
.eigene-zeile .fl-icon { width: 44px; height: 44px; border-radius: 13px; }
.eigene-zeile .fl-icon svg { width: 20px; height: 20px; }
.eigene-zeile h3 { font-family: Manrope, sans-serif; font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.eigene-zeile p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.eigene-zeile ul { display: grid; gap: 6px; margin-top: 12px; }
.eigene-zeile li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.eigene-zeile li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }

/* ---------- 6. Fragen und Schluss --------------------------------------- */
.int-schluss { padding-block: calc(var(--sektion) / 2) var(--sektion); }
.schluss-karte { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px 36px; border: 1px solid var(--line-mid); border-radius: var(--r-karte); background: var(--paper); box-shadow: var(--shadow-card); }
.schluss-karte h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; }
.schluss-karte p { margin-top: 6px; font-size: 15.5px; color: var(--ink-3); }

/* ---------- 7. Handy und schmale Fenster -------------------------------- */
@media (max-width: 1100px) {
  .kat-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quelle-buehne { grid-template-columns: 1fr; padding: 40px 40px 0; }
  .quelle-medien { min-height: 0; height: 260px; }
  .quelle-medien .fenster { top: 24px; transform: none; width: 120%; }
  .eigene-raster { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  .kat-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eigene-raster { grid-template-columns: 1fr; gap: 28px; }
  .wolke { height: 290px; }
  .wolke-hinten { gap: 40px; }
  .wolke-mitte { gap: 34px; }
  .wolke-vorn { gap: 40px; }
}
@media (max-width: 620px) {
  .int-hero { text-align: left; }
  .int-hero h1 { font-size: clamp(38px, 10.6vw, 48px); }
  .int-hero .lead { margin-inline: 0; font-size: 17px; }
  /* Wolke auf dem Handy: zwei Reihen, die aeusseren Kacheln laufen aus dem Bild. */
  .wolke { height: 230px; width: 100vw; margin-inline: calc(50% - 50vw); overflow: hidden; }
  .wolke::before { width: 420px; height: 200px; top: 20px; }
  .wolke-hinten { display: none; }
  .wolke-mitte { top: 8px; gap: 14px; }
  .wolke-vorn { top: 70px; gap: 16px; }
  .wolke-mitte .kachel { width: 48px; height: 48px; border-radius: 14px; }
  .wolke-mitte .kachel img { width: 22px; height: 22px; }
  .wolke-mitte .kachel-initial { font-size: 18px; }
  .wolke-mitte .kachel-zeichen { width: 20px; height: 20px; }
  .wolke-vorn .kachel { width: 60px; height: 60px; border-radius: 16px; }
  .wolke-vorn .kachel img { width: 28px; height: 28px; }
  .wolke-vorn .kachel-initial { font-size: 22px; }
  .wolke-vorn .kachel-zeichen { width: 26px; height: 26px; }
  .wolke::after { height: 90px; }
  .int-filter { flex-direction: column; align-items: stretch; gap: 10px; }
  /* Chips bleiben 40px hoch in einer Zeile, die Leiste wischt seitlich. */
  .int-chips { width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .int-chips::-webkit-scrollbar { display: none; }
  .int-chips button { padding: 0 12px; font-size: 13.5px; }
  .int-suche { width: 100%; }
  .kat-raster { grid-template-columns: 1fr; gap: 12px; }
  .kat-kopf { padding: 20px 18px 20px; }
  .kat-stand { top: 16px; right: 16px; }
  .quelle-buehne { padding: 28px 20px 0; gap: 24px; }
  .quelle-text h2 { font-size: clamp(28px, 8vw, 34px); }
  .quelle-medien { height: 200px; }
  .quelle-medien .fenster { top: 12px; width: 150%; }
  .eigene-kopf h2 { font-size: clamp(30px, 8.6vw, 36px); }
  .eigene-zeile { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .eigene-zeile .fl-icon { width: 36px; height: 36px; border-radius: 11px; }
  .eigene-zeile .fl-icon svg { width: 17px; height: 17px; }
  .schluss-karte { padding: 24px 20px; }
  .schluss-karte .btn { width: 100%; }
}

/* ---------- 8. Reduzierte Bewegung -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .wolke-kachel { transition: none; opacity: 1; transform: translateY(var(--dy, 0px)); }
  .wolke.ist-da .wolke-schwebt { animation: none; }
  .kat-karte, .kat-link svg, .kachel { transition: none !important; }
  .kat-karte.ein { opacity: 1; transform: none; }
}
