/* Profilseite Selcuk Saglam – Farben und Schriften wie saglamcreatives.at (CI: Schwarz, Dunkelblau, Dunkelrot) */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --schwarz: #000000;
  --tief: #031d30;
  --tafel: #082a42;
  --rot: #a50432;
  --rot-hell: #f45a7e;
  --weiss: #ffffff;
  --hell: #f1f1f1;
  --hell-2: #d3d9df;
  --grau: #a3adb7;
  --linie: rgba(244, 90, 126, 0.38);
  --linie-hell: rgba(241, 241, 241, 0.13);

  --display: "Archivo", "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --aus: cubic-bezier(0.23, 1, 0.32, 1);
  --rand: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--schwarz); }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--hell);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* Bühnenlicht: Dunkelblau von oben, ein Hauch Dunkelrot */
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(8, 42, 66, 0.95) 0%, rgba(3, 29, 48, 0.55) 38%, rgba(0, 0, 0, 0) 72%),
    radial-gradient(60% 34% at 92% 4%, rgba(165, 4, 50, 0.22) 0%, rgba(165, 4, 50, 0) 70%),
    var(--schwarz);
  background-repeat: no-repeat;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--rot); color: var(--weiss); }
:focus-visible { outline: 2px solid var(--rot-hell); outline-offset: 3px; }

.karte {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  padding: max(28px, env(safe-area-inset-top)) var(--rand) max(24px, env(safe-area-inset-bottom));
  display: grid;
  gap: 28px;
}

/* ---------- Kopf ---------- */
.kopf { display: grid; justify-items: center; text-align: center; }

.avatar {
  --g: 124px;
  position: relative;
  width: var(--g); height: var(--g);
  margin-bottom: 18px;
}
.avatar-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.avatar-ring circle { fill: none; }
.ring-spur { stroke: var(--linie-hell); stroke-width: 1; }
.ring-strich { stroke: var(--rot-hell); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 72 100; stroke-dashoffset: 0; }
.avatar-scheibe {
  position: absolute; inset: 8px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(90% 90% at 30% 22%, #0e3a5c 0%, var(--tief) 58%, #01111d 100%);
  box-shadow: inset 0 0 0 1px rgba(241, 241, 241, 0.1), 0 14px 34px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.monogramm {
  display: flex;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 72%;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--weiss);
  transform: translateY(1px);
}
.monogramm span + span { color: var(--rot-hell); margin-left: -0.06em; }
/* Späteres Foto (siehe Kommentar in index.html) legt sich über das Monogramm */
.avatar img {
  position: absolute; inset: 8px; z-index: 1;
  width: calc(100% - 16px); height: calc(100% - 16px);
  border-radius: 50%; object-fit: cover;
}
.raute {
  position: absolute; z-index: 2;
  width: 12px; height: 12px;
  right: 13px; bottom: 13px;
  background: var(--rot);
  box-shadow: 0 0 0 3px var(--schwarz);
  transform: rotate(45deg);
}

.name {
  display: grid;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(3rem, 15vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--weiss);
}
.zeile { display: block; overflow: hidden; padding-block: 0.08em 0.02em; margin-block: -0.08em -0.02em; }
.zeile > span { display: block; }

.funktion {
  margin-top: 14px;
  display: grid; gap: 2px;
  font-size: 0.9375rem; line-height: 1.4;
}
.funktion span:first-child { color: var(--weiss); font-weight: 650; }
.funktion span:last-child { color: var(--grau); }
.trenner { display: none; }

.ueber {
  margin-top: 16px;
  max-width: 38ch;
  color: var(--hell-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Blöcke ---------- */
.block { display: grid; gap: 10px; }
.block-titel {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 700; font-stretch: 90%;
  text-transform: uppercase;
  font-size: 0.75rem; letter-spacing: 0.14em;
  color: var(--grau);
}
.block-titel::after { content: ""; flex: 1; height: 1px; background: var(--linie-hell); }

.marken { display: grid; gap: 8px; }
.marke {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  min-height: 74px;
  padding: 14px 14px 14px 18px;
  background: var(--tief);
  border: 1px solid rgba(241, 241, 241, 0.08);
  border-radius: 4px;
  transition: transform 160ms var(--aus), border-color 260ms ease;
}
.marke::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--rot);
  transform: translateY(101%);
  transition: transform 420ms var(--aus);
}
.marke-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.marke-name {
  font-family: var(--display);
  font-weight: 800; font-stretch: 78%;
  text-transform: uppercase;
  font-size: 1.5rem; line-height: 1;
  letter-spacing: 0.005em;
  color: var(--weiss);
}
.marke-was { color: var(--grau); font-size: 0.875rem; line-height: 1.35; transition: color 260ms ease; }
.pfeil {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--linie);
  color: var(--rot-hell);
  transition: background-color 260ms ease, border-color 260ms ease, color 260ms ease;
}
.pfeil svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--aus); }
.marke:active { transform: scale(0.98); }
.marke:active::before { transform: translateY(0); transition-duration: 200ms; }
.marke:active .marke-was { color: var(--hell); }
.marke:active .pfeil { background: var(--weiss); border-color: var(--weiss); color: var(--rot); }
@media (hover: hover) and (pointer: fine) {
  .marke:hover { border-color: transparent; }
  .marke:hover::before { transform: translateY(0); }
  .marke:hover .marke-was { color: var(--hell); }
  .marke:hover .pfeil { background: var(--weiss); border-color: var(--weiss); color: var(--rot); }
  .marke:hover .pfeil svg { transform: translate(2px, -2px); }
}

/* Kontakt */
.kontakte {
  background: var(--tief);
  border: 1px solid rgba(241, 241, 241, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.kontakte li + li { border-top: 1px solid var(--linie-hell); }
.kontakt {
  display: flex; align-items: center; gap: 14px;
  min-height: 60px;
  padding: 10px 16px;
  transition: background-color 220ms ease, transform 160ms var(--aus);
}
.kontakt-symbol {
  flex: none; width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(244, 90, 126, 0.12);
  color: var(--rot-hell);
}
.kontakt-symbol svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kontakt-text { min-width: 0; display: grid; }
.kontakt-art { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grau); }
.kontakt-wert { font-size: 1rem; font-weight: 600; color: var(--weiss); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kontakt:active { background: var(--tafel); }
@media (hover: hover) and (pointer: fine) {
  .kontakt:hover { background: var(--tafel); }
}

.knopf {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px;
  background: var(--rot); color: var(--weiss);
  border-radius: 4px;
  font-weight: 650; font-size: 1rem; letter-spacing: 0.01em;
  transition: transform 160ms var(--aus), color 260ms ease;
}
.knopf::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--weiss);
  transform: translateY(101%);
  transition: transform 380ms var(--aus);
}
.knopf-inhalt { display: inline-flex; align-items: center; gap: 10px; }
.knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.knopf:active { transform: scale(0.97); }
.knopf:focus-visible { outline-color: var(--weiss); }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { color: var(--rot); }
  .knopf:hover::before { transform: translateY(0); }
}

.adresse { text-align: center; color: var(--grau); font-size: 0.875rem; }

/* ---------- Fuß ---------- */
.fuss {
  display: grid; justify-items: center; gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--linie-hell);
  text-align: center;
  color: var(--grau);
  font-size: 0.8125rem;
}
.fuss-logo { width: 132px; height: auto; margin-bottom: 6px; }
.fuss-links { display: flex; gap: 4px; }
.fuss-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px;
  color: var(--hell-2);
  text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .fuss-links a:hover { color: var(--weiss); text-decoration-color: var(--rot-hell); }
}

/* ---------- Schreibtisch: schmale Spalte, mittig ---------- */
@media (min-width: 640px) {
  .karte { padding-top: 64px; padding-bottom: 40px; gap: 32px; }
  .avatar { --g: 136px; }
  .name { font-size: 4.25rem; }
  .karte { max-width: 480px; }
  .funktion { display: block; }
  .funktion span { white-space: nowrap; }
  .trenner { display: inline-block; width: 5px; height: 5px; margin: 0 10px; vertical-align: 0.2em; background: var(--rot); transform: rotate(45deg); }
}

/* ---------- Einstiegsbewegung (nur mit html.bewegt, also mit JS und ohne „Bewegung reduzieren“) ---------- */
@keyframes auf {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes zeile-hoch {
  from { transform: translateY(105%); }
  to { transform: none; }
}
@keyframes scheibe {
  from { opacity: 0; transform: scale(0.82); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes ring {
  from { stroke-dashoffset: 72; opacity: 0.2; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes blende {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ring-drehen {
  from { transform: rotate(-200deg); }
  to { transform: rotate(-90deg); }
}
@keyframes raute {
  from { opacity: 0; transform: rotate(45deg) scale(0.4); }
  60% { opacity: 1; transform: rotate(45deg) scale(1.25); }
  to { opacity: 1; transform: rotate(45deg) scale(1); }
}

.bewegt .auf { animation: auf 760ms var(--aus) var(--d, 0ms) both; }
.bewegt .zeile > span { animation: zeile-hoch 900ms var(--aus) var(--d, 0ms) both; }
.bewegt .avatar-scheibe { animation: scheibe 900ms var(--aus) 0ms both; }
.bewegt .avatar-ring { animation: ring-drehen 1400ms var(--aus) 0ms both; }
.bewegt .ring-strich { animation: ring 1400ms var(--aus) 80ms both; }
.bewegt .ring-spur { animation: blende 600ms ease 0ms both; }
.bewegt .raute { animation: raute 560ms var(--aus) 820ms both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
}

/* Marken als Logo (Inhaber 13.11.2026) */
.marke-logo{display:block;height:30px;width:auto;margin-bottom:8px}
.marke-logo-hoch{height:46px}

/* Marken: nur Logo, zentriert (Inhaber 13.11.2026) */
.marke{justify-content:center;text-align:center;padding-block:22px}
.marke-text{display:flex;justify-content:center;align-items:center;flex:1}
.marke-logo{margin:0 auto;height:34px}
.marke-logo-hoch{height:52px}
.marke{min-height:96px;padding-block:14px}
.marke-logo-hoch{height:50px}

/* ---------- Hologramm-Kopf statt Monogramm (Inhaber 13.11.2026) ----------
   holo.js setzt .holo-an erst nach dem ersten gezeichneten Bild; ohne WebGL/JS bleibt das Monogramm. */
.avatar { --g: 260px; }
.monogramm { font-size: calc(var(--g) * 0.36); }
.holo {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  display: block;
}
.avatar.holo-an .avatar-scheibe,
.avatar.holo-an .avatar-ring { display: none; }
.holo-warten .avatar:not(.holo-an) > :not(.holo) { visibility: hidden; }
/* Bühnenschein hinter dem Kopf und Lichtfleck des Projektors, weich ohne Kanten */
.avatar.holo-an::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: -6%;
  background:
    radial-gradient(30% 6% at 50% 86%, rgba(244, 90, 126, 0.28) 0%, rgba(244, 90, 126, 0) 100%),
    radial-gradient(42% 46% at 50% 42%, rgba(14, 58, 92, 0.6) 0%, rgba(3, 29, 48, 0) 100%);
}
/* Der rote Lichtring ist jetzt der Sockel; die Raute würde ihn verdecken */
.avatar.holo-an .raute { display: none; }
.bewegt .holo { animation: blende 500ms ease 0ms both; }
@media (min-width: 640px) {
  .avatar { --g: 288px; }
}
