/* thomas-speicher.de – Stylesheet
   Keine externen Schriften, keine externen Ressourcen. */

:root {
  --bg: #07090d;
  --bg-2: #0d1118;
  --card: #111722;
  --card-2: #151c29;
  --line: #1f2837;
  --text: #e6ebf2;
  --muted: #8d98aa;
  --led: #19c6ff;          /* LED-Blau (Alexa-Ring) */
  --led-2: #0a7cff;
  --led-glow: rgba(25, 198, 255, .45);
  --red: #c8102e;          /* Diamond Red */
  --red-glow: rgba(200, 16, 46, .45);
  --radius: 14px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before { /* feines Raster im Hintergrund */
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(25,198,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,198,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--led); text-decoration: none; }
a:hover { text-shadow: 0 0 12px var(--led-glow); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 13, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-family: var(--mono); font-weight: 700; color: var(--text); letter-spacing: .5px; }
.logo span { color: var(--led); text-shadow: 0 0 10px var(--led-glow); }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav ul a { color: var(--muted); font-size: 15px; }
.nav ul a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: center; }
.eyebrow { font-family: var(--mono); color: var(--led); font-size: 14px; letter-spacing: 1px; }
.eyebrow::before { content: "> "; color: var(--muted); }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.08; margin: 12px 0 18px; letter-spacing: -1px; }
h1 .hl { color: var(--led); text-shadow: 0 0 24px var(--led-glow); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.tag { font-family: var(--mono); font-size: 13px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--card);
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.btn:hover { border-color: var(--led); box-shadow: 0 0 18px var(--led-glow); text-shadow: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--led), var(--led-2)); border-color: transparent; color: #031018; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* LED-Ring um das Profilbild (inspiriert vom Alexa-Leuchtring) */
.avatar-wrap { justify-self: center; position: relative; width: min(340px, 78vw); aspect-ratio: 1; }
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 15%, var(--led) 30%, var(--led-2) 45%, transparent 60% 70%, var(--led) 85%, transparent 100%);
  filter: drop-shadow(0 0 18px var(--led-glow));
  animation: spin 7s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.avatar {
  position: absolute; inset: 16px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #1b2535, #0b0f16 70%);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .initials { font-family: var(--mono); font-size: 78px; font-weight: 700; color: var(--led);
  text-shadow: 0 0 30px var(--led-glow); letter-spacing: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sektionen ---------- */
section { padding: 84px 0; }
section.alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.sec-head { margin-bottom: 40px; }
.sec-head .num { font-family: var(--mono); color: var(--led); font-size: 14px; }
h2 { font-size: clamp(28px, 4vw, 38px); margin: 6px 0 10px; letter-spacing: -.5px; }
.sec-head p { color: var(--muted); max-width: 40em; margin: 0; }
h3 { margin: 0 0 8px; font-size: 19px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: rgba(25,198,255,.5); box-shadow: 0 0 0 1px rgba(25,198,255,.15), 0 10px 40px -12px var(--led-glow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(25,198,255,.08); border: 1px solid rgba(25,198,255,.25); margin-bottom: 16px; font-size: 21px; }
.card.red:hover { border-color: rgba(200,16,46,.6); box-shadow: 0 10px 40px -12px var(--red-glow); }
.card.red .ico { background: rgba(200,16,46,.1); border-color: rgba(200,16,46,.35); }

/* Über mich */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about p { color: #c4ccd8; margin-top: 0; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-weight: 600; }

/* Beruf */
.job { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.job .card h3 small { display: block; color: var(--led); font-family: var(--mono); font-size: 13px; font-weight: 400; margin-bottom: 4px; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.skill-group h3 { font-size: 15px; font-family: var(--mono); color: var(--led); font-weight: 600; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.chip.main { border-color: rgba(25,198,255,.55); box-shadow: inset 0 0 12px rgba(25,198,255,.12); }

.terminal { font-family: var(--mono); font-size: 14px; background: #05070a; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.terminal .bar { display: flex; gap: 7px; padding: 11px 14px; background: #0c1017; border-bottom: 1px solid var(--line); }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3342; }
.terminal .bar i:first-child { background: var(--red); }
.terminal pre { margin: 0; padding: 18px 20px; color: #b9c3d1; white-space: pre-wrap; }
.terminal .k { color: var(--led); } .terminal .s { color: #7ee2a8; } .terminal .c { color: #5d6878; }

/* Videos */
.video { display: block; color: var(--text); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--card); transition: border-color .25s, box-shadow .25s, transform .25s; }
.video:hover { border-color: var(--red); box-shadow: 0 12px 40px -14px var(--red-glow); transform: translateY(-2px); text-shadow: none; }
.thumb { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 25% 30%, rgba(25,198,255,.25), transparent 55%),
              radial-gradient(circle at 80% 75%, rgba(200,16,46,.28), transparent 55%), #0b0f16; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s, transform .4s; }
.video:hover .thumb img { opacity: 1; transform: scale(1.03); }
.play { position: relative; width: 66px; height: 66px; border-radius: 50%; background: rgba(0,0,0,.55);
  border: 2px solid rgba(255,255,255,.85); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.play::after { content: ""; margin-left: 5px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.video:hover .play { background: var(--red); border-color: var(--red); }
.video .meta { padding: 18px 20px; }
.video .meta small { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.video .meta h3 { margin: 4px 0 0; font-size: 17px; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 16px; }

/* Freizeit */
.hobbies { grid-template-columns: repeat(3, 1fr); }
.hobbies .wide { grid-column: 1 / -1; }
.split { display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: center; }
.split img { width: 220px; height: 220px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(200,16,46,.45); }
.car { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; overflow: hidden; margin-top: 20px; }
.car .txt { padding: 30px; }
.car .pic { min-height: 340px; background:
  linear-gradient(120deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%),
  radial-gradient(ellipse at 60% 60%, rgba(200,16,46,.55), transparent 65%), #120709;
  display: grid; place-items: center; color: rgba(255,255,255,.55); font-family: var(--mono); font-size: 13px; }
.car .pic { position: relative; }
.car .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(200,16,46,.6); color: #ff6b81; margin-bottom: 12px; }

/* Kontakt */
.contact { text-align: center; }
.contact .card { max-width: 640px; margin: 0 auto; padding: 44px 30px; }
.contact p { margin-bottom: 26px; }
.socials { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); margin-left: 18px; }
footer a:hover { color: var(--led); }

/* Rechtstexte (Impressum / Datenschutz) */
.legal { padding: 70px 0 90px; }
.legal .card { padding: 40px; }
.legal .card:hover { transform: none; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-top: 0; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; color: var(--led); }
.legal h3 { font-size: 17px; margin: 26px 0 6px; color: var(--text); }
.legal p, .legal li, .legal td { color: #c4ccd8; }
.legal td { padding: 3px 18px 3px 0; vertical-align: top; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.back { display: inline-block; margin-top: 30px; font-family: var(--mono); font-size: 14px; }

/* Einblend-Animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding-top: 56px; }
  .hero .wrap, .about, .job, .car, .split { grid-template-columns: 1fr; }
  .split img { width: 100%; height: auto; aspect-ratio: 1; }
  .avatar-wrap { order: -1; width: min(250px, 66vw); }
  .g3, .g2, .hobbies { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav ul { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(7,9,13,.97); border-bottom: 1px solid var(--line); padding: 8px 22px 16px; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 10px 0; }
  section { padding: 64px 0; }
  .legal .card { padding: 26px 20px; }
  footer a { margin: 0 18px 0 0; }
}

/* Auto-Slider */
.slider { cursor: pointer; overflow: hidden; }
.slider img { opacity: 0; transition: opacity .6s ease; }
.slider img.active { opacity: 1; }
.dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; background: rgba(0,0,0,.4); padding: 0; cursor: pointer; }
.dots button.active { background: var(--red); border-color: var(--red); box-shadow: 0 0 10px var(--red-glow); }

/* Ballonfahrt */
.balloon { margin-top: 20px; }
.balloon p { max-width: 46em; }
.badge.blue { border-color: rgba(25,198,255,.6); color: var(--led); }
.balloon blockquote { margin: 18px 0 24px; padding: 14px 20px; border-left: 3px solid var(--led);
  background: rgba(25,198,255,.06); border-radius: 0 10px 10px 0; font-style: italic; font-size: 18px; color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery img:last-child { grid-column: 1 / -1; aspect-ratio: 4/3; } }

/* Mini-Video in der Faasend-Kachel */
.video.mini { display: grid; grid-template-columns: 200px 1fr; align-items: center; margin-top: 20px; max-width: 560px; }
.video.mini .play { width: 46px; height: 46px; }
.video.mini .play::after { border-width: 9px 0 9px 15px; margin-left: 4px; }
.video.mini .meta { padding: 12px 18px; }
.video.mini .meta h3 { font-size: 15.5px; }
@media (max-width: 560px) { .video.mini { grid-template-columns: 1fr; } }
