/* ═══════════════════════════════════════════════
   Robin Olbricht – Personal Website
   Design: Refined Industrial Dark
   ═══════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─────────────────────── */
:root {
  --bg:         #0e1016;
  --bg-surface: #14171f;
  --bg-card:    #1a1d27;
  --bg-card-hover: #1f2333;
  --border:     rgba(255,255,255,0.07);
  --border-accent: rgba(232,163,23,0.3);

  --text:       #e8e8e8;
  --text-muted: #7a7f96;
  --text-faint: #3d4155;

  --amber:      #E8A317;
  --amber-glow: rgba(232,163,23,0.15);
  --amber-dark: #b07a0e;
  --blue:       #4d8ef0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans:    'Syne', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --radius:     10px;
  --radius-lg:  18px;
  --radius-pill: 999px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(232,163,23,0.12);
}

/* ─── RESET & BASE ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3 { line-height: 1.2; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
}

h2 em {
  font-style: italic;
  color: var(--amber);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

p { color: var(--text-muted); }

/* ─── LAYOUT ─────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 7rem 0;
}

.section-dark {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: #0e1016;
}
.btn-primary:hover {
  background: #f0b830;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,163,23,0.35);
}

.btn-ghost {
  border: 1.5px solid var(--border-accent);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── HEADER ─────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(14, 16, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-top: 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-initials {
  width: 36px; height: 36px;
  background: var(--amber);
  color: #0e1016;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.logo-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.main-nav a {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.main-nav a:hover { color: #fff; }

.main-nav .nav-cta {
  background: var(--amber);
  color: #0e1016;
  padding: 0.5rem 1.1rem;
}
.main-nav .nav-cta:hover {
  background: #f0b830;
  color: #0e1016;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(232,163,23,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(232,163,23,0.1);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease both;
}

.tag-dot {
  width: 7px; height: 7px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-name .accent { color: var(--amber); }

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-desc {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero-stack {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.5s ease both;
}

.stack-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stack-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.chip {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all var(--transition);
}
.chip:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s 1s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* ─── ABOUT ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 100px;
}

.portrait-frame {
  position: relative;
  display: inline-block;
}

.portrait-placeholder {
  width: 240px;
  height: 300px;
  background: var(--bg-card); /* Fallback, falls Bild nicht lädt */
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;

  /* --- HIER DEIN BILD EINFÜGEN --- */
  background-image: url('/assets/img/portrait.jpg'); 
  background-size: cover;        /* Füllt den Bereich komplett aus */
  background-position: center;   /* Zentriert das Gesicht im Rahmen */
  color: transparent;            /* Versteckt den alten Platzhalter-Text (z.B. deine Initialen) */
  font-size: 0;                  /* Zusätzliche Sicherheit, um Text zu verstecken */
}

.portrait-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 64px; height: 64px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.badge-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: #0e1016;
}

.badge-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(14,16,22,0.7);
  text-transform: uppercase;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-content p { margin-bottom: 1rem; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.fact-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.fact-value .fact-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--amber);
}

.fact-desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── TIMELINE ───────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber) 0%, var(--border) 40%, transparent 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: -2.725rem;
  top: 0.25rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  transition: all var(--transition);
}

.timeline-dot.active {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(232,163,23,0.5);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--amber);
  background: var(--amber);
}

.timeline-period {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.timeline-content p {
  font-size: 0.93rem;
  margin-top: 0.5rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.timeline-tags span {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(232,163,23,0.1);
  border: 1px solid var(--border-accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
}

/* ─── SERVICES ───────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.service-card--featured {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232,163,23,0.04) 100%);
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(232,163,23,0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.service-card p { font-size: 0.93rem; line-height: 1.7; }

.service-features {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-style: normal;
}

.services-cta {
  margin-top: 3rem;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

/* ─── CURRENT / AKTUELLES ────────────────────── */
.current-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.current-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

.current-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.current-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.current-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}

.current-icon--yt { background: rgba(255,0,0,0.1); color: #ff4e4e; }
.current-icon--build { background: rgba(232,163,23,0.1); color: var(--amber); }
.current-icon--study { background: rgba(77,142,240,0.1); color: var(--blue); }

.current-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(232,163,23,0.1);
  border: 1px solid var(--border-accent);
  color: var(--amber);
}

.current-card p { font-size: 0.9rem; margin-top: 0.6rem; }

.current-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  transition: gap var(--transition);
}

.current-link:hover { text-decoration: underline; }

/* ─── CONTACT ────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-method:hover {
  border-color: var(--amber);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 40px; height: 40px;
  background: rgba(232,163,23,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}

.method-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.method-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* ─── FORM ───────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input, textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition);
  resize: vertical;
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,163,23,0.1);
}

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.footer-brand p span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--amber); }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--amber); }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; text-align: center; }
  .portrait-placeholder { margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .current-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-facts { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(14,16,22,0.98);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open ul { flex-direction: column; }
  .nav-toggle { display: flex; }
  .hero-actions { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .hero-name { font-size: clamp(3.5rem, 15vw, 5rem); }
  .timeline { padding-left: 2rem; }
  .section { padding: 4rem 0; }
}
