/* ═══════════════════════════════════════════════════════════
   AUTOMAGISCH.CH — Design System
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --blue-400:    #42a5f5;
  --blue-500:    #2196f3;
  --blue-600:    #1e88e5;
  --blue-700:    #1565c0;
  --cyan-400:    #26c6da;
  --cyan-500:    #00bcd4;

  --bg-dark:     #07090f;
  --bg-dark2:    #0d1117;
  --bg-card:     rgba(255, 255, 255, 0.04);
  --bg-card-h:   rgba(33, 150, 243, 0.08);

  --text-pri:    #e8eaf6;
  --text-sec:    #b0bec5;
  --text-muted:  #78909c;

  --border:      rgba(255, 255, 255, 0.08);
  --border-blue: rgba(33, 150, 243, 0.35);

  --grad-brand:  linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  --grad-hero:   radial-gradient(ellipse at 50% -10%, rgba(21,101,192,0.18) 0%, transparent 65%);

  --glow-sm:     0 0 16px rgba(33, 150, 243, 0.25);
  --glow-md:     0 0 40px rgba(33, 150, 243, 0.30);
  --glow-lg:     0 0 80px rgba(33, 150, 243, 0.35);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.45);

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:      0.15s;
  --t:           0.3s;
  --t-slow:      0.65s;

  --nav-h:       72px;
  --max-w:       1200px;

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   30px;
  --r-full: 9999px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-pri);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { color: var(--text-sec); }

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container {
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}
section { padding: 96px 0; }

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.navbar.scrolled {
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.15rem;
  font-weight: 700;
  transition: opacity var(--t);
}
.nav-brand:hover { opacity: 0.8; }
.nav-brand img   { width: 40px; height: 40px; object-fit: contain; }
.nav-brand span  {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-menu {
  display: flex;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(7,9,15,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  padding: 16px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
  z-index: 999;
}
.nav-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-link {
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: color var(--t), background var(--t);
}
.nav-link:hover  { color: var(--text-pri); background: var(--bg-card); }
.nav-link.active { color: var(--blue-400); background: rgba(33,150,243,0.1); }

/* hamburger — always visible */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-pri);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 15%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(33,150,243,0.1) 0%, transparent 68%);
  border-radius: 50%;
  animation: pulse-glow 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 820px;
}
.hero-logo {
  width: 130px; height: 130px;
  object-fit: contain;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 24px rgba(33,150,243,0.55));
  animation: float 6s ease-in-out infinite;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: var(--r-full);
  background: rgba(33,150,243,0.1);
  border: 1px solid rgba(33,150,243,0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-400);
  margin-bottom: 1.5rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero h1 { margin-bottom: 1.4rem; letter-spacing: -0.02em; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-sec);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-hint {
  position: absolute;
  bottom: 38px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 1;
  animation: bounce 2.2s ease-in-out infinite;
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--blue-500), transparent);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t);
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--glow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-md); }
.btn-secondary {
  background: transparent;
  color: var(--text-pri);
  border: 1px solid var(--border-blue);
}
.btn-secondary:hover { background: var(--bg-card-h); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--r-full);
  background: rgba(33,150,243,0.1);
  border: 1px solid rgba(33,150,243,0.25);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--blue-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p  { max-width: 540px; margin: 0 auto; font-size: 1rem; }

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t),
              background var(--t);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.card:hover {
  border-color: var(--border-blue);
  background: var(--bg-card-h);
  transform: translateY(-5px);
  box-shadow: var(--glow-sm), var(--shadow-card);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  background: rgba(33,150,243,0.1);
  border: 1px solid rgba(33,150,243,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p   { font-size: 0.93rem; }

/* ═══════════════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════════════ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* ═══════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stat-item { text-align: center; padding: 16px; }
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   ABOUT PAGE — PROFILE
   ═══════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  text-align: center;
}
.page-hero p { max-width: 560px; margin: 12px auto 0; font-size: 1.05rem; }

.profile-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.profile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.profile-img-wrap {
  position: relative;
  width: 220px; height: 220px;
}
.profile-img {
  width: 220px; height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid transparent;
  outline: 3px solid rgba(33,150,243,0.4);
  outline-offset: 4px;
  box-shadow: var(--glow-md);
  transition: filter var(--t);
}
.profile-img:hover { filter: brightness(1.05); }
.profile-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(33,150,243,0.35);
  animation: spin-slow 14s linear infinite;
  pointer-events: none;
}
.profile-ring::after {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 8px var(--blue-500);
}
.profile-name  { font-size: 1.3rem; font-weight: 700; text-align: center; }
.profile-title {
  font-size: 0.8rem;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.4;
}
.profile-right h2 { margin-bottom: 20px; }
.profile-right p  { margin-bottom: 14px; font-size: 0.97rem; }

/* ═══════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════ */
.timeline-wrap {
  position: relative;
  padding-left: 36px;
  margin-top: 8px;
}
.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-500) 0%, rgba(33,150,243,0.15) 100%);
  border-radius: 2px;
}
.tl-item {
  position: relative;
  padding: 0 0 36px 28px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.tl-item.visible { opacity: 1; transform: translateX(0); }
.tl-dot {
  position: absolute;
  left: -43px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grad-brand);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 10px rgba(33,150,243,0.6);
}
.tl-date  {
  font-size: 0.75rem;
  color: var(--blue-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.tl-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 5px; color: var(--text-pri); }
.tl-desc  { font-size: 0.9rem; color: var(--text-sec); }

/* ═══════════════════════════════════════════
   SKILLS TAGS
   ═══════════════════════════════════════════ */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--t), background var(--t), color var(--t);
  cursor: default;
}
.skill-tag:hover {
  border-color: var(--border-blue);
  background: var(--bg-card-h);
  color: var(--blue-400);
}

/* ═══════════════════════════════════════════
   COMING SOON (Projekte)
   ═══════════════════════════════════════════ */
.coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-h) 1.5rem 2rem;
}
.cs-inner { max-width: 600px; }
.cs-icon  {
  font-size: 6rem;
  margin-bottom: 2rem;
  display: block;
  animation: float 4.5s ease-in-out infinite;
}
.cs-inner h1 { margin-bottom: 1.2rem; }
.cs-inner p  { font-size: 1.05rem; margin-bottom: 2rem; }
.cs-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 2rem;
}
.cs-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue-500);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.cs-dots span:nth-child(2) { animation-delay: 0.2s; }
.cs-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ═══════════════════════════════════════════
   PASSWORD / TESTUMGEBUNG
   ═══════════════════════════════════════════ */
.pw-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-h) 1.5rem 2rem;
}
.pw-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 44px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.pw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
}
.pw-icon { font-size: 2.8rem; margin-bottom: 1.4rem; display: block; }
.pw-card h2 { margin-bottom: 8px; }
.pw-card > p { margin-bottom: 2rem; font-size: 0.93rem; }
.pw-form { display: flex; flex-direction: column; gap: 14px; }
.pw-input {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-pri);
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  font-family: inherit;
}
.pw-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
}
.pw-input::placeholder { color: var(--text-muted); }
.pw-error {
  color: #ef5350;
  font-size: 0.83rem;
  min-height: 1.2em;
  transition: opacity var(--t);
  opacity: 0;
}
.pw-error.show { opacity: 1; }

.test-page {
  display: none;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  text-align: center;
}
.test-page.visible { display: block; }
.test-page h1 { margin-bottom: 1rem; }
.test-page > .container > p { font-size: 1.05rem; margin-bottom: 2.5rem; }
.booking-wrap {
  display: inline-block;
  padding: 40px 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--r-xl);
  box-shadow: var(--glow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.booking-wrap:hover { transform: translateY(-4px); box-shadow: var(--glow-md); }
.booking-wrap p { margin-bottom: 20px; font-size: 0.92rem; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand img  { width: 34px; height: 34px; object-fit: contain; }
.footer-brand span {
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer p { font-size: 0.82rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50%       { opacity: 0.9;  transform: translateX(-50%) scale(1.08); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.65); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .profile-left {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    text-align: left;
  }
  .profile-img-wrap { flex-shrink: 0; }
}

@media (max-width: 768px) {
  section { padding: 68px 0; }
  .container { width: min(var(--max-w), 100% - 2rem); }

  .hero-cta { flex-direction: column; align-items: center; }
  .btn      { width: fit-content; }

  .profile-left {
    flex-direction: column;
    text-align: center;
  }

  .pw-card { padding: 32px 24px; }
  .booking-wrap { padding: 30px 32px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero-logo { width: 100px; height: 100px; }
}
