/* ==========================================================================
   Gut Vibes – Social (Abschluss mit Instagram-Phone)
   --------------------------------------------------------------------------
   Aus dem Designentwurf zusammengefasst (letzter Stand der Kaskade).
   Nutzt die CSS-Variablen des Themes: --ink, --paper, --muted, --line,
   --pink-text, --content-gutter. Der Button nutzt "btn btn-primary" des Themes.
   Grundgerüst, Hintergrund, Dachzeile, Überschrift und Seitenränder kommen aus
   Resources/Public/Css/sections.css (Klasse gv-section).
   ========================================================================== */

.closing-social {
  /* Hintergrund im ::before, damit der Paint-Trail darüber laufen kann */
  --section-fill: radial-gradient(ellipse at 25% 105%, #321127 0%, #190e1d 49%, #100c13 85%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: center;
  /* unten ohne Abstand: das Smartphone ragt über die Kante und wird abgeschnitten */
  padding: 65px var(--content-gutter) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* Text ------------------------------------------------------------------ */

.closing-social .social-copy {
  padding-bottom: clamp(38px, 5vw, 75px);
}

/* Dachzeile hier gedämpft und etwas enger als in den übrigen Sections */
.closing-social .eyebrow {
  letter-spacing: .12em;
  color: var(--muted);
}

.closing-social h2 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 6vw, 5.6rem);
}

.closing-social p {
  max-width: 55ch;
  margin-bottom: 23px;
  color: var(--muted);
}

/* Pfeil direkt hinter dem Text (Entwurf), statt rechts außen wie beim Theme-Button */
.closing-social .btn {
  gap: .3em;
  justify-content: flex-start;
}

.closing-social a:focus-visible {
  outline-color: var(--pink-text);
}

/* Smartphone ------------------------------------------------------------ */

.social-phone {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(100%, 258px);
  min-width: 0;
  margin: 0 0 -84px;
  padding: 7px;
  background: #110b14;
  border: 2px solid #81657a;
  border-radius: 31px;
  box-shadow: 0 13px 32px #0b090d75;
}

/* Kamera-Aussparung oben */
.social-phone::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 1;
  width: 27%;
  height: 10px;
  background: #110b14;
  border-radius: 9px;
  transform: translateX(-50%);
}

.social-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  background: #170f1b;
  border-radius: 23px;
}

/* Optionaler Screenshot füllt den ganzen Bildschirm */
.social-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Nachgebaute Profil-Vorschau */
.social-preview {
  padding: 27px 6px 0;
}

.social-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 2px;
  color: var(--paper);
}

.social-avatar {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  aspect-ratio: 1;
  font-size: .65rem;
  font-weight: 900;
  color: var(--paper);
  background: #38172e;
  border: 1px solid var(--pink-text);
  border-radius: 50%;
}

.social-profile strong {
  font-size: .87rem;
}

.social-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

.social-photo {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #321625;
}

.social-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-type {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  aspect-ratio: 2 / 1;
  padding: 5px;
  font: 900 clamp(.67rem, 2vw, 1rem)/1 Barlow, Arial, sans-serif;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--pink-text);
  background: #291426;
}

/* Tablet ---------------------------------------------------------------- */

/* Mobil ----------------------------------------------------------------- */

@media (max-width: 640px) {
  .closing-social {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 45px;
  }

  .closing-social .social-copy {
    padding-bottom: 0;
  }

  .social-phone {
    width: min(100%, 192px);
    margin-bottom: -72px;
  }
}
