/* =========================================================
   timspeak.net — modernes Stylesheet
   ========================================================= */

:root {
  --accent: #20c997;
  --accent-2: #2adda8;
  --accent-soft: rgba(32, 201, 151, 0.12);
  --bg: #0a0e14;
  --bg-2: #0d1320;
  --surface: #121a26;
  --surface-2: #18222f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6edf3;
  --muted: #97a3b3;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --max: 1140px;
  --font: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }

section { position: relative; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03130d;
  box-shadow: 0 10px 30px -10px rgba(32, 201, 151, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); color: #03130d; box-shadow: 0 16px 36px -12px rgba(32, 201, 151, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 12px 24px;
}
.nav-brand {
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 1.15rem;
  color: var(--text);
}
.nav-brand span { color: var(--accent); }
.nav-logo { height: 24px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cdd6e0; font-weight: 600; font-size: .95rem; transition: color .2s ease; }
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--accent-2); }
.nav-links a.nav-cta {
  padding: .55rem 1.25rem;
  background: var(--accent-2);
  color: #000;
  font-weight: 700;
}
.nav-links a.nav-cta:hover { background: #38e7b4; color: #000; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,0.30) 0%, rgba(10,14,20,0.40) 55%, rgba(10,14,20,0.80) 85%, var(--bg) 100%), url(../img/home.jpg) center/cover no-repeat;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(32,201,151,0.18), transparent 65%);
  z-index: -1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(32,201,151,0.25);
  color: var(--accent-2);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(42,221,168,.7); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(42,221,168,.6); }
  70% { box-shadow: 0 0 0 10px rgba(42,221,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,221,168,0); }
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: .2em;
  background: linear-gradient(120deg, #fff 30%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-rotator {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 500;
  color: var(--muted);
  min-height: 1.6em;
}
.hero-rotator b { color: var(--accent-2); font-weight: 600; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-banner { display: inline-block; margin-top: 28px; opacity: .85; transition: opacity .25s ease, transform .25s ease; }
.hero-banner:hover { opacity: 1; transform: translateY(-2px); }
.hero-banner img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 1.4rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Section headings ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-media { position: relative; width: fit-content; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  pointer-events: none;
}
.about-text h3 { font-size: 1.8rem; }
.about-text p { color: var(--muted); }
.about-meta { display: flex; gap: 36px; margin: 28px 0; flex-wrap: wrap; }
.about-meta .num { font-size: 1.8rem; font-weight: 800; color: var(--accent-2); }
.about-meta .lbl { color: var(--muted); font-size: .9rem; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 70px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(32,201,151,0.4); background: var(--surface-2); }
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.feature h4 { font-size: 1.15rem; margin-bottom: .4em; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Platforms ---------- */
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.platform {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.platform:hover { transform: translateY(-6px); border-color: rgba(32,201,151,0.4); }
.platform-icon { font-size: 2.4rem; color: var(--accent-2); margin-bottom: 18px; }
.platform h3 { font-size: 1.5rem; }
.platform p { color: var(--muted); }
.platform .btn { margin-top: 12px; }
.platform::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  right: -80px; top: -80px;
  background: radial-gradient(circle, rgba(32,201,151,0.14), transparent 70%);
}

/* ---------- Insights ---------- */
.insights { display: grid; gap: 28px; }
.insight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.insight:nth-child(even) .insight-media { order: 2; }
.insight-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.insight h3 { font-size: 1.4rem; }
.insight p { color: var(--muted); margin: 0; }
.insight .tag {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- Viewer ---------- */
#insights { padding-bottom: 40px; }
#viewer { padding-top: 40px; }
.viewer-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.viewer-wrap .hint { color: var(--muted); font-size: .9rem; text-align: center; margin: 18px 0 0; }
#ts3viewer_1104239 { min-height: 60px; }

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  top: -160px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(32,201,151,0.16), transparent 65%);
}
.contact-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); position: relative; }
.contact-card p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; position: relative; }
.contact-card .btn { position: relative; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 40px;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 800; display: inline-block; }
.footer-brand span { color: var(--accent); }
.footer-logo { height: 28px; width: auto; display: block; }
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.05rem;
}
.footer-social a:hover { color: var(--accent-2); border-color: var(--accent); transform: translateY(-2px); }
.footer-copy { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 30px; }

/* ---------- Legal pages (Impressum etc.) ---------- */
.legal { padding: 140px 0 100px; }
.legal-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.legal-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-head p { color: var(--muted); margin: 0; }
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.legal-card h2 {
  font-size: 1.2rem;
  margin-top: 36px;
  color: var(--accent-2);
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--muted); margin: 0 0 .6em; }
.legal-card a { word-break: break-word; }
.legal-card .legal-name { color: var(--text); font-weight: 600; }
.legal-card .legal-note { font-size: .85rem; margin-top: 36px; }
.legal-back { display: inline-flex; align-items: center; gap: .5em; margin-top: 40px; }

/* ---------- Language Switcher ---------- */
.lang-switcher { position: relative; }
.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  transition: color .2s, border-color .2s;
}
.lang-btn:hover { color: var(--text); border-color: var(--accent); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  list-style: none;
  margin: 0;
  min-width: 130px;
  z-index: 100;
  box-shadow: var(--shadow);
}
.lang-dropdown.open { display: block; }
.lang-dropdown li {
  padding: 7px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: .88rem;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.lang-dropdown li:hover { background: var(--surface-2); color: var(--text); }
.lang-dropdown li.active { color: var(--accent); font-weight: 600; }

/* ---------- Name Origin ---------- */
.name-origin {
  margin: 20px 0 24px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.name-origin .tag { display: inline-block; margin-bottom: 6px; }
.name-origin p { margin: 0; color: var(--muted); font-size: .95rem; }
.name-origin b { color: var(--accent-2); }

/* ---------- Features 4-col ---------- */
.features-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .features-4 { grid-template-columns: 1fr 1fr; } }

/* ---------- Security Board ---------- */
.security-board {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(32,201,151,0.22);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 70px -20px rgba(32,201,151,0.18), var(--shadow);
}
.security-board-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(32,201,151,0.05);
}
.security-shield-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(32,201,151,0.3);
  color: var(--accent-2);
  font-size: 1.35rem;
  flex-shrink: 0;
}
.security-header-text { flex: 1; line-height: 1.3; }
.security-header-text span {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}
.security-header-text strong { font-size: 1.05rem; color: var(--text); font-weight: 700; }
.security-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(32,201,151,0.1);
  border: 1px solid rgba(32,201,151,0.28);
  color: var(--accent-2);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.sec-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s infinite;
}
.security-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.security-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
  position: relative;
}
.security-item:hover { background: rgba(32,201,151,0.04); }
.security-item:nth-child(2n) { border-right: none; }
.security-item:nth-child(3),
.security-item:nth-child(4) { border-bottom: none; }
.security-item-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.security-item-body { flex: 1; }
.security-item-body h4 { font-size: 1rem; margin-bottom: .25em; }
.security-item-body p { color: var(--muted); font-size: .9rem; margin: 0; }
.security-item-check {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.05rem;
  padding-top: 2px;
  opacity: .85;
}

/* ---------- Legal notice banner ---------- */
.legal-notice-banner {
  background: var(--accent-soft);
  border: 1px solid rgba(32,201,151,0.2);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer-GIF (statisch, direkt über Footer-Linie) ---------- */
.footer-gif-wrap {
  display: flex;
  justify-content: center;
  background: var(--bg);
  padding-bottom: 0;
  margin-bottom: 0;
}
.footer-gif {
  display: block;
  height: auto;
  max-width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .insight, .platforms { grid-template-columns: 1fr; }
  .insight:nth-child(even) .insight-media { order: 0; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .security-items { grid-template-columns: 1fr; }
  .security-item { border-right: none !important; }
  .security-item:nth-child(3) { border-bottom: 1px solid var(--border) !important; }
  .security-item:nth-child(4) { border-bottom: none !important; }
  .security-status-pill { display: none; }
  .hero-rotator { min-height: 3.3em; }
  .lang-btn { border-color: transparent; padding: 10px 0; font-size: 1.1rem; min-height: 44px; }
  .lang-dropdown { position: static; box-shadow: none; border: none; background: transparent; padding: 4px 0 0 16px; min-width: unset; }
  .lang-dropdown li { padding: 5px 8px; font-size: 1rem; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(13, 19, 32, 0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: block; z-index: 60; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
