/* ==========================================================
   tobiasklammer.com — Personal Link-Hub
   Clean Dark (adcelerate-Stil) + Orange Akzent (Tobias-CI)
   ========================================================== */

@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #050506;
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.07);
  --text: #f5f5f6;
  --text-dim: #97979f;
  --accent: #ff6b00;
  --accent-soft: rgba(255, 107, 0, 0.12);
  --green: #34d399;
  --radius: 20px;
}

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

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 107, 0, 0.10), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Dotfield-Canvas (hinter allem) ---- */
#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* statisches Raster als Fallback ohne Animation */
@media (prefers-reduced-motion: reduce) {
  body {
    background-image:
      radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 107, 0, 0.10), transparent 70%),
      radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 26px 26px;
  }
}

/* ---- Navigation (Glas-Pill) ---- */
nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  max-width: 620px;
  margin: 16px auto 0;
  padding: 0 20px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-name .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0c;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.nav-cta:hover { opacity: 0.88; }

/* ---- Layout ---- */
.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 20px 48px;
}

/* ---- Kopf ---- */
.head { text-align: center; }

.head h1 {
  margin-top: 16px;
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.head h1 em {
  font-style: italic;
  color: var(--accent);
}

/* ---- Name-Entrance (Buchstaben) ---- */
.h1-ready .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(6deg) scale(0.8);
  filter: blur(10px);
  animation: ltr-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes ltr-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 0.83rem;
  color: var(--text-dim);
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ---- Hero-Buttons (Pill-Paar) ---- */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.18s ease-out;
}
.nav-cta { transition: opacity 0.2s ease, transform 0.18s ease-out; }

/* Shine-Sweep über den orangen Button */
.btn--solid::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine {
  0%, 55% { left: -80%; }
  75%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--solid::after { animation: none; }
}
.btn--ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.04); }
.btn--solid {
  color: #0a0a0c;
  background: var(--accent);
  border: 1px solid var(--accent);
}
.btn--solid:hover { opacity: 0.88; }
.btn-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}

/* ---- Hero-Foto (großes Visual) ---- */
.hero-photo {
  margin-top: 40px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: transform 0.25s ease;
  will-change: transform;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

/* ---- Sektionen ---- */
section { margin-top: 56px; }

.sec-title {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 18px;
}

/* ---- Karten (Unternehmen) ---- */
.cards { display: grid; gap: 12px; }

.card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  border-color: rgba(255, 107, 0, 0.5);
  background: rgba(255, 107, 0, 0.05);
}

.card .mark {
  flex: 0 0 58px;
  width: 58px;
  height: 50px;
  display: grid;
  place-items: center;
}
.card .mark img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card .body { flex: 1; min-width: 0; }
.card .body b { display: block; font-size: 1.02rem; font-weight: 600; }
.card .body p { font-size: 0.85rem; color: var(--text-dim); margin-top: 3px; }
.card .body small { display: block; font-size: 0.77rem; color: var(--accent); margin-top: 5px; }

.card .arrow {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.card:hover .arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0c;
}

/* ---- Social-Links ---- */
.links { display: grid; gap: 10px; }

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 15px 22px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.link:hover {
  border-color: rgba(255, 107, 0, 0.5);
  background: rgba(255, 107, 0, 0.05);
}
.link svg { flex: 0 0 20px; color: var(--accent); }
.link span { flex: 1; }
.link em { font-style: normal; font-size: 0.8rem; color: var(--text-dim); }

/* ---- Footer ---- */
footer {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--card-border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .legal { margin-top: 6px; display: flex; justify-content: center; gap: 16px; }

/* ---- Legal-Seiten ---- */
.legal-page { max-width: 720px; }
.legal-page h1 { font-size: 1.6rem; margin-bottom: 24px; letter-spacing: -0.02em; }
.legal-page h2 { font-size: 1.05rem; margin: 28px 0 8px; }
.legal-page p, .legal-page li { font-size: 0.92rem; color: var(--text-dim); }
.legal-page ul { padding-left: 20px; }
.legal-page a { color: var(--accent); text-decoration: none; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.back:hover { color: var(--accent); }

@media (max-width: 420px) {
  .card { padding: 18px; }
}
