/* BAUSHAM · Digitale Visitenkarte (bausham.com/links)
   Eigenständige Seite für die Bio-Links von Instagram/TikTok/Facebook.
   Farben und Schriften wie bausham.css; Icons: Lucide + Simple Icons (web/icons). */

:root {
  --nacht: #16191C;
  --anthrazit: #2B3035;
  --putz: #E8E4DD;
  --beton: #A6A39D;
  --gold: #C9A36A;
  --gold-hell: #D6B581;
  --bronze: #7A5A33;
  --flaeche: rgba(232, 228, 221, .04);
  --flaeche-hover: rgba(201, 163, 106, .09);
  --haarlinie: rgba(232, 228, 221, .09);
  --goldlinie: rgba(201, 163, 106, .32);
  --rund: 16px;
  --raus: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--nacht);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--bronze) var(--nacht);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--putz);
  font-family: 'IBM Plex Sans Arabic', 'Geeza Pro', sans-serif;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(90% 46% at 50% 0%, rgba(201, 163, 106, .10) 0%, rgba(22, 25, 28, 0) 72%),
    var(--nacht);
  position: relative;
}

::selection { background: rgba(201, 163, 106, .35); color: #fff; }

[lang="en"] { font-family: 'Jost', 'Avenir Next', sans-serif; }
.zahl {
  font-family: 'Jost', 'Avenir Next', sans-serif;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.karte {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
  padding: max(44px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* --- Kopf ---------------------------------------------------------------- */
.karte__kopf { text-align: center; display: flex; flex-direction: column; align-items: center; }
.karte__logo {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #2a2f35 0%, #191c20 74%);
  box-shadow:
    0 0 0 1px var(--goldlinie),
    0 0 0 7px rgba(22, 25, 28, .9),
    0 0 0 8px var(--haarlinie),
    0 18px 40px -12px rgba(0, 0, 0, .7);
  margin-bottom: 22px;
}
.karte__logo svg { width: 64px; height: auto; transform: translateY(2px); }
.karte h1 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.1;
  color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.karte h1 span {
  font-family: 'Jost', sans-serif;
  font-size: 13px; font-weight: 400;
  letter-spacing: .38em; padding-inline-start: .38em;
  color: var(--gold);
}
.karte__kopf p { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--putz); }
.karte__kopf p.en { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--beton); }

/* --- Hauptwege: WhatsApp + Anruf ----------------------------------------- */
.karte__haupt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.haupt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 16px 16px 15px;
  border-radius: var(--rund);
  border: 1px solid var(--goldlinie);
  background: var(--flaeche);
  transition: background-color .25s var(--raus), border-color .25s var(--raus), transform .25s var(--raus);
}
.haupt:hover { background: var(--flaeche-hover); border-color: var(--gold); }
.haupt:active { transform: scale(.98); }
.haupt__zeichen svg { width: 24px; height: 24px; display: block; color: var(--gold); }
.haupt__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.haupt__text b { font-family: 'Cairo', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.25; }
.haupt__text small { font-size: 13.5px; color: var(--beton); white-space: nowrap; }
.haupt__text small.zahl { margin-top: 4px; color: var(--putz); opacity: .8; }

.haupt--gold { background: var(--gold); border-color: var(--gold); color: var(--nacht); }
.haupt--gold:hover { background: var(--gold-hell); border-color: var(--gold-hell); }
.haupt--gold .haupt__zeichen svg { color: var(--nacht); }
.haupt--gold .haupt__text small { color: rgba(22, 25, 28, .72); }
.haupt--gold .haupt__text small.zahl { color: var(--nacht); opacity: .78; }

/* --- Abschnitte ---------------------------------------------------------- */
.karte__teil { display: flex; flex-direction: column; gap: 12px; }
.karte__teil h2 {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 700; color: var(--putz);
}
.karte__teil h2 span { font-size: 13px; font-weight: 400; color: var(--beton); letter-spacing: .02em; }
.karte__teil h2::after { content: ""; flex: 1; height: 1px; background: var(--haarlinie); }

/* Kanäle (Instagram, Facebook, TikTok) */
.kanaele { display: grid; grid-template-columns: repeat(var(--anzahl, 3), minmax(0, 1fr)); gap: 10px; }
.kanal {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 8px 14px;
  text-align: center;
  border-radius: var(--rund);
  background: var(--flaeche);
  border: 1px solid var(--haarlinie);
  transition: background-color .25s var(--raus), border-color .25s var(--raus), color .25s var(--raus);
}
.kanal svg { width: 24px; height: 24px; flex: none; }
.kanal span { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.kanal b { white-space: nowrap; }
.kanal b { font-family: 'Cairo', sans-serif; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.kanal small { font-size: 13px; color: var(--beton); }
.kanal:hover { background: var(--flaeche-hover); border-color: var(--goldlinie); }
.kanal:hover svg { color: var(--gold); }

/* Zeilen-Liste */
.zeilen {
  list-style: none;
  border-radius: var(--rund);
  background: var(--flaeche);
  border: 1px solid var(--haarlinie);
  overflow: hidden;
}
.zeilen li + li { border-top: 1px solid var(--haarlinie); }
.zeile {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 11px 16px;
  transition: background-color .2s var(--raus);
}
.zeile:hover { background: var(--flaeche-hover); }
.zeile__zeichen svg { width: 21px; height: 21px; display: block; color: var(--gold); }
.zeile__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.zeile__text b { font-family: 'Cairo', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.3; }
.zeile__text small { font-size: 13px; color: var(--beton); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile__ende svg { width: 18px; height: 18px; display: block; color: var(--beton); transition: transform .25s var(--raus), color .25s var(--raus); }
.zeile:hover .zeile__ende svg { color: var(--gold); transform: translate(-2px, -2px); }

/* --- Adresse, Zeiten ----------------------------------------------------- */
.karte__info { display: flex; flex-direction: column; gap: 14px; padding-inline: 4px; }
.karte__info p { display: flex; align-items: flex-start; gap: 12px; }
.karte__info p > svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--beton); }
.karte__info p > span { display: flex; flex-direction: column; }
.karte__info .zahl { white-space: nowrap; }
.karte__info b { font-size: 14.5px; font-weight: 500; color: var(--putz); }
.karte__info small { font-size: 13px; color: var(--beton); text-align: right; }

.karte__teilen {
  align-self: center;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border-radius: 999px;
  background: none; border: 1px solid var(--goldlinie);
  color: var(--gold); font: inherit; font-size: 14px; cursor: pointer;
  transition: background-color .25s var(--raus);
}
.karte__teilen:hover { background: var(--flaeche-hover); }
.karte__teilen svg { width: 17px; height: 17px; }
.karte__teilen[hidden] { display: none; }

.karte__fuss { text-align: center; font-size: 12.5px; color: var(--beton); }
.karte__fuss a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--goldlinie); }
.karte__fuss a:hover { color: var(--gold); }

/* --- Erster Auftritt: nur die Hauptwege, einmal ------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .karte__haupt { animation: auftritt .7s var(--raus) .08s both; }
  @keyframes auftritt { from { opacity: .001; transform: translateY(8px); } }
}

@media (max-width: 359px) {
  .karte__haupt, .kanaele { grid-template-columns: 1fr; }
}
