/* ============================================================
   Chris Höllich · Link in Bio — NeoCore Creme
   Tokens gespiegelt aus neocore-expats-en/theme-creme.css
   ============================================================ */

:root {
  --nc-bg:          #F5EDE1;  /* Creme */
  --nc-bg-2:        #EDE3D4;  /* Creme, tiefer */
  --nc-card:        #FFFFFF;
  --nc-card-2:      #FAF6EE;
  --nc-line:        rgba(28, 31, 42, 0.12);
  --nc-line-strong: rgba(28, 31, 42, 0.22);
  --nc-accent:      #1f273e;  /* Navy = CTA */
  --nc-accent-2:    #2c3756;
  --nc-text:        #1C1F2A;  /* Ink */
  --nc-muted:       #4B4D57;  /* Ink, soft */
  --nc-shadow:      0 18px 50px -24px rgba(28, 31, 42, 0.35);
  --nc-shadow-sm:   0 8px 24px -16px rgba(28, 31, 42, 0.4);
  --radius:         18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(120% 80% at 50% -10%, var(--nc-card-2) 0%, var(--nc-bg) 55%) fixed,
    var(--nc-bg);
  color: var(--nc-text);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

.page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

/* ---------- 1) Profil ---------- */
.profile {
  text-align: center;
  margin: 0 0 26px;
}

/* Brand-Anker: NeoCore-Logo statt Foto */
.brandmark {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
}
.brandmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.profile__name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}

.profile__handle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--nc-muted);
  margin: 0 0 10px;
}

.profile__tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--nc-muted);
  margin: 0 auto;
  max-width: 22em;
}

/* ---------- 2) Social-Row (abgerundete Quadrate, wie Vorlage) ---------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.social {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--nc-accent);
  color: var(--nc-bg);
  box-shadow: var(--nc-shadow-sm);
  transition: transform .18s ease, background .18s ease;
}

.social svg { width: 23px; height: 23px; fill: currentColor; }

.social:hover,
.social:focus-visible {
  background: var(--nc-accent-2);
  transform: translateY(-2px);
  outline: none;
}

/* ---------- 3) Lead-Magnet-Karte — Bild ragt aus dem Balken ---------- */
.leadmagnet {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 26px 0 16px;          /* oberer Abstand für den herausragenden Kopf */
  border-radius: var(--radius);
  background:
    radial-gradient(130% 120% at 0% 0%, var(--nc-accent-2) 0%, var(--nc-accent) 72%);
  box-shadow: var(--nc-shadow);
  text-decoration: none;
  overflow: visible;            /* lässt das Bild über den Rand ragen */
  transition: transform .18s ease, box-shadow .18s ease;
}

.leadmagnet:hover,
.leadmagnet:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px -26px rgba(28, 31, 42, 0.65);
  outline: none;
}

.leadmagnet__text {
  flex: 1 1 auto;
  padding: 18px 12px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--nc-bg);
  min-width: 0;
}

.leadmagnet__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nc-accent);
  background: var(--nc-bg);
  padding: 4px 10px;
  border-radius: 999px;
}

.leadmagnet__title {
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.leadmagnet__sub {
  font-size: 0.83rem;
  line-height: 1.4;
  color: rgba(245, 237, 225, 0.82);
}

.leadmagnet__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nc-bg);
}
.leadmagnet__cta svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Figur-Spalte: feste Breite, Bild bottom-anchored und nach oben überstehend */
.leadmagnet__figure {
  position: relative;
  flex: 0 0 150px;
  align-self: stretch;
}
.leadmagnet__figure img {
  position: absolute;
  right: 2px;
  bottom: 0;
  height: 206px;                /* näher: Kopf-Brust-Cutout, überragt die Karte oben */
  width: auto;
  filter: drop-shadow(0 12px 18px rgba(28, 31, 42, 0.35));
}

@media (max-width: 360px) {
  .leadmagnet__figure { flex-basis: 124px; }
  .leadmagnet__figure img { height: 184px; }
  .leadmagnet__title { font-size: 1.06rem; }
}

/* ---------- 4) Link-Karten — Thumbnail links, Titel über volle Breite zentriert ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.link-card {
  position: relative;
  display: block;
  min-height: 84px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--nc-card);
  border: 1px solid var(--nc-line);
  box-shadow: var(--nc-shadow);
  text-decoration: none;
  color: var(--nc-text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--nc-line-strong);
  box-shadow: 0 22px 56px -26px rgba(28, 31, 42, 0.5);
  outline: none;
}

/* Thumbnail schwebt links, vertikal zentriert */
.link-card__thumb {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--nc-card-2);
  display: grid;
  place-items: center;
}

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

.link-card__thumb--plain { background: var(--nc-card-2); border: 1px solid var(--nc-line); }
.link-card__thumb--plain svg { width: 38px; height: 38px; }

.link-card__thumb--icon { background: rgba(31, 39, 62, 0.08); }
.link-card__thumb--icon svg { width: 30px; height: 30px; fill: var(--nc-accent); }

/* Text über die volle Kartenbreite zentriert (mit Platz fürs Thumbnail) */
.link-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 0 58px;
}

.link-card__title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.link-card__sub {
  font-size: 0.82rem;
  color: var(--nc-muted);
  margin-top: 3px;
  line-height: 1.35;
}

/* Live Google-Rating-Zeile */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}
.rating__stars {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}
.rating__stars-base { color: rgba(28, 31, 42, 0.18); }
.rating__stars-fill {
  position: absolute;
  left: 0; top: 0;
  width: var(--fill, 100%);
  overflow: hidden;
  color: #FBBC04;            /* Google-Gelb */
}
.rating__num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nc-text);
}

/* ---------- 4) Newsletter ---------- */
.newsletter {
  background: var(--nc-card);
  border: 1px solid var(--nc-line-strong);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: var(--nc-shadow);
}

.newsletter__title {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.newsletter__sub {
  font-size: 0.9rem;
  color: var(--nc-muted);
  margin: 0 0 16px;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter__row {
  display: flex;
  gap: 10px;
}
.newsletter__row .field { flex: 1 1 0; min-width: 0; }

.field {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--nc-line-strong);
  background: var(--nc-card);
  color: var(--nc-text);
  font-family: inherit;
  font-size: 0.98rem;
}

.field::placeholder { color: #9a9ba3; }
.field:focus {
  outline: none;
  border-color: var(--nc-accent);
  box-shadow: 0 0 0 3px rgba(31, 39, 62, 0.12);
}

.btn-submit {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: var(--nc-accent);
  color: var(--nc-bg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.btn-submit:hover:not(:disabled) { background: var(--nc-accent-2); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.7; cursor: default; }

.newsletter__msg {
  font-size: 0.86rem;
  margin: 4px 0 0;
  min-height: 1.1em;
}
.newsletter__msg.is-ok { color: #1f6b3a; }
.newsletter__msg.is-error { color: #9a2b2b; }

/* ---------- 5) Footer ---------- */
.footer {
  text-align: center;
  color: var(--nc-muted);
}

.footer__brand {
  font-weight: 700;
  color: var(--nc-accent);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.footer__links a {
  color: var(--nc-muted);
  text-decoration: none;
  font-size: 0.86rem;
}
.footer__links a:hover { color: var(--nc-text); text-decoration: underline; }
.footer__dot { margin: 0 8px; opacity: 0.6; }

.footer__copy {
  font-size: 0.78rem;
  margin: 10px 0 0;
  opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 380px) {
  .page { padding: 24px 16px 44px; }
  .profile__name { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
