/* ================================================================
   ZENTRUM X — Zentrale Stylesheet-Datei
   ================================================================
   Struktur:
   0. Schriftarten (lokal, DSGVO-konform)
   1. Custom Properties (Variablen)
   2. Reset & Grundlagen
   3. Typografie
   4. Layout-Helfer
   5. Navigation
   6. Animationen
   7. Komponenten (Cards, Buttons, Badges)
   8. Formular-Elemente (Kontaktseite)
   9. Referenzen (Screenshot-Frame, Tags)
   10. Timeline & Skills (Über-mich-Seite)
   11. Utilities
   ================================================================ */


/* ================================================================
   0. SCHRIFTARTEN (lokal selbst gehostet, keine externe Verbindung)
   ================================================================ */

/* DM Sans — Variable Font, Normal */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/dm-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/dm-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans — Variable Font, Kursiv */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/dm-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/dm-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display — Variable Font, Gewichte 500–700 */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ================================================================
   1. CUSTOM PROPERTIES
   ================================================================ */

:root {
  /* --- Hintergrundfarben (neutral-dunkel, kein Blauton) --- */
  --color-base-950:   #0f0f0f;
  --color-base-900:   #1a1a1a;
  --color-base-850:   #202020;
  --color-base-800:   #272727;
  --color-base-700:   #333333;
  --color-base-600:   #444444;
  --color-base-500:   #5a5a5a;

  /* --- Akzentfarbe (Orange/Amber) --- */
  --color-accent-50:  #fff8f0;
  --color-accent-100: #ffedd5;
  --color-accent-200: #fed7aa;
  --color-accent-300: #fdba74;
  --color-accent-400: #fb923c;
  --color-accent-500: #f97316;
  --color-accent-600: #ea580c;
  --color-accent-700: #c2410c;

  /* --- Textfarben --- */
  --color-text:       #e8e8e8;
  --color-text-muted: #a3a3a3;
  --color-text-dim:   #787878;

  /* --- Oberflächen --- */
  --color-border:     rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(249, 115, 22, 0.3);
  --color-glow:       rgba(249, 115, 22, 0.08);
  --color-glow-strong: rgba(249, 115, 22, 0.15);

  /* --- Abstände --- */
  --space-section:    5rem;    /* 80px — vertikaler Abstand zwischen Sektionen */
  --space-content:    1.5rem;  /* 24px — Standard-Content-Gap */
  --max-width:        72rem;   /* 1152px — maximale Inhaltsbreite */

  /* --- Radien --- */
  --radius-sm:        0.5rem;
  --radius-md:        0.75rem;
  --radius-lg:        1rem;
  --radius-xl:        1.5rem;

  /* --- Transitions --- */
  --transition-fast:  0.2s ease;
  --transition-base:  0.3s ease;
  --transition-slow:  0.7s ease;

  /* --- Schriften --- */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'DM Sans', system-ui, sans-serif;
}


/* ================================================================
   2. RESET & GRUNDLAGEN
   ================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-base-900);
  line-height: 1.6;
}


/* ================================================================
   3. TYPOGRAFIE
   ================================================================ */

.font-display {
  font-family: var(--font-display);
}


/* ================================================================
   4. LAYOUT-HELFER
   ================================================================ */

/* Dezente Grain-Textur als Overlay */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Trennlinie zwischen Sektionen */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(163, 163, 163, 0.12), transparent);
}

/* Akzent-Linie (Deko vor Überschriften) */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--color-accent-500);
  border-radius: 2px;
}


/* ================================================================
   5. NAVIGATION
   ================================================================ */

/* Nav-Link mit animiertem Unterstrich */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-500);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menü */
.mobile-menu {
  transform: translateX(100%);
  transition: transform var(--transition-base);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: var(--color-base-900);
}

.mobile-menu.open {
  transform: translateX(0);
}


/* ================================================================
   6. ANIMATIONEN
   ================================================================ */

/* Fade-In von unten (Scroll-Trigger) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Verzögerungen für gestaffelte Animationen */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ================================================================
   7. KOMPONENTEN
   ================================================================ */

/* --- Service Cards (Startseite) --- */
.service-card {
  transition: transform var(--transition-base), 
              box-shadow var(--transition-base), 
              border-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-glow);
  border-color: var(--color-border-hover);
}

/* --- Detail Cards (Leistungen-Seite) --- */
.detail-card {
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.detail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.25);
}

/* --- Contact Cards (Kontaktseite) --- */
.contact-card {
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
}

/* --- Step Number Badge (Leistungen) --- */
.step-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-accent-400);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Orange Glow-Effekt --- */
.glow-orange {
  box-shadow: 0 0 60px rgba(249, 115, 22, 0.12), 
              0 0 120px rgba(249, 115, 22, 0.04);
}


/* ================================================================
   8. FORMULAR-ELEMENTE (Kontaktseite)
   ================================================================ */

.form-input,
.form-select,
.form-textarea {
  background: var(--color-base-900);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-500);
  box-shadow: 0 0 0 3px var(--color-glow-strong);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-dim);
}

/* Select-Dropdown Pfeil */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23787878' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 01.708 0L8 8.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--color-base-800);
  color: var(--color-text);
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Erfolgs- / Fehlermeldung */
.success-message {
  display: none;
  animation: fadeIn 0.5s ease;
}

.success-message.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ================================================================
   9. REFERENZEN (Screenshot-Frame, Tags)
   ================================================================ */

/* Browser-Fenster Simulation */
.screenshot-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.screenshot-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 
              0 0 40px rgba(249, 115, 22, 0.06);
}

.browser-bar {
  background: var(--color-base-900);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Leistungs-Tags / Technologie-Pills */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-accent-400);
  border: 1px solid rgba(249, 115, 22, 0.15);
}


/* ================================================================
   10. TIMELINE & SKILLS (Über-mich-Seite)
   ================================================================ */

/* Vertikale Timeline-Linie */
.timeline-line {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(249, 115, 22, 0.3), rgba(249, 115, 22, 0.05));
}

/* Timeline-Punkt */
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.1);
  border: 2px solid rgba(249, 115, 22, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Skill-Tag (Über-mich) */
.skill-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base), color var(--transition-base);
}

.skill-tag:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

/* Foto-Platzhalter */
.photo-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-base-800);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(26, 26, 26, 0.8));
}
