/* ============================================================
   Portfolio – Hauptstylesheet
   Ordner: css/style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Variablen ── */
:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1c2330;
  --accent:    #e8f0fe;
  --accent2:   #c2d3fc;
  --highlight: #7fa4f7;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --border:    rgba(255,255,255,0.08);
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  border: 1.5px solid rgba(127,164,247,0.4);
  flex-shrink: 0;
}
.nav-logo img { width: 100%; height: 100%; object-fit: cover; }
.nav-name {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--text); letter-spacing: -0.3px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 0 5vw 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover; background-position: center top;
  filter: brightness(0.35) saturate(0.7);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(13,17,23,1) 0%,
    rgba(13,17,23,0.5) 50%,
    rgba(13,17,23,0.1) 100%
  );
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid rgba(127,164,247,0.35);
  background: rgba(127,164,247,0.08);
  font-size: 13px; color: var(--highlight); letter-spacing: 0.5px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800; line-height: 1.0; letter-spacing: -2px;
  color: var(--text); margin-bottom: 24px;
}
.hero-title span { color: var(--highlight); }
.hero-sub {
  font-size: 18px; color: var(--muted);
  max-width: 520px; line-height: 1.6; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn-primary {
  padding: 13px 28px; border-radius: 8px;
  background: var(--highlight); color: #0d1117;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: #a3c0fb; transform: translateY(-1px); }

.btn-outline {
  padding: 13px 28px; border-radius: 8px;
  background: transparent; color: var(--text);
  font-family: var(--font-body); font-weight: 400; font-size: 15px;
  text-decoration: none; border: 1px solid var(--border);
  cursor: pointer; transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }

/* ── Sections ── */
section { padding: 100px 5vw; }
.section-tag {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--highlight); font-weight: 500; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; letter-spacing: -1px;
  color: var(--text); margin-bottom: 16px;
}
.section-sub { color: var(--muted); max-width: 520px; line-height: 1.7; }
.divider { border: none; border-top: 1px solid var(--border); }

/* ── About ── */
#about { background: var(--bg); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 80px; align-items: center; margin-top: 60px;
}
.about-photo-wrap { display: flex; justify-content: center; }
.about-photo {
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--bg3);
  border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 13px; text-align: center; padding: 20px;
}
.photo-icon { font-size: 36px; opacity: 0.4; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text p:last-of-type { margin-bottom: 0; }

/* ── Skills ── */
#skills { background: var(--bg2); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-top: 48px;
}
.skill-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: rgba(127,164,247,0.4); transform: translateY(-3px); }
.skill-icon { font-size: 22px; margin-bottom: 10px; }
.skill-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.skill-desc { font-size: 13px; color: var(--muted); }
.skill-bar-wrap {
  margin-top: 12px; height: 3px;
  background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
}
.skill-bar { height: 100%; background: var(--highlight); border-radius: 2px; }

/* ── Education / Timeline ── */
#education { background: var(--bg); }
.timeline { margin-top: 52px; position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -35px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--highlight);
}
.timeline-date {
  font-size: 12px; color: var(--highlight); font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}
.timeline-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.timeline-school { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.timeline-desc { font-size: 14px; color: var(--muted); }

/* ── Services ── */
#services { background: var(--bg2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 48px;
}
.service-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 26px; text-decoration: none; display: block;
  transition: border-color 0.25s, transform 0.2s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: '↗'; position: absolute; top: 22px; right: 22px;
  font-size: 16px; color: var(--muted); transition: color 0.2s;
}
.service-card:hover { border-color: rgba(127,164,247,0.45); transform: translateY(-4px); }
.service-card:hover::after { color: var(--highlight); }
.service-logo-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; overflow: hidden;
}
.service-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.service-logo-placeholder { font-size: 20px; color: var(--muted); }
.service-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 6px; }
.service-tagline { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Projects ── */
#projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; margin-top: 48px;
}
.project-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: rgba(127,164,247,0.35); transform: translateY(-4px); }
.project-img {
  width: 100%; height: 190px; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; text-align: center;
}
.project-img-icon { font-size: 32px; opacity: 0.3; }
.project-info { padding: 22px; }
.project-tag {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--highlight); font-weight: 500; margin-bottom: 8px;
}
.project-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); margin-bottom: 8px; }
.project-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.project-link { font-size: 13px; color: var(--highlight); text-decoration: none; font-weight: 500; }
.project-link:hover { text-decoration: underline; }

/* ── Contact ── */
#contact { background: var(--bg2); text-align: center; }
.contact-wrap { max-width: 560px; margin: 0 auto; }
.contact-wrap .section-sub { margin: 0 auto 36px; }
.contact-email {
  display: inline-block; padding: 14px 32px;
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.contact-email:hover { border-color: var(--highlight); background: rgba(127,164,247,0.07); }

/* ── Footer ── */
footer {
  padding: 36px 5vw;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
  flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .hero-title { letter-spacing: -1.5px; }
}
