:root {
  --bg: #ffffff;
  --card: #f4f4f4;
  --muted: #777777;
  --text: #000000;
  --brand: #000000;
  --accent: #000000;
  --ok: #000000;
  --shadow: 0 10px 30px rgba(0,0,0,.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a {
  color: var(--text);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #ccc;
  z-index: 40;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: .3px;
}

#mainnav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}

#mainnav a {
  padding: 8px 10px;
  border-radius: 10px;
}

#mainnav a:hover {
  background: #00000011;
  text-decoration: none;
}

/* Section spacing */
section {
  padding: 40px 0;
}

h2 {
  font-size: clamp(22px, 3.6vw, 32px);
  margin: 0 0 14px;
}

p.lead {
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  padding: 72px 0 40px;
}

.headline {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
  margin: 0 0 12px;
  padding: 20px;
  background-image: url('https://tse3.mm.bing.net/th/id/OIP.T2QX4qdlvaC1Ke3eVjSgDwHaEF?pid=Api&P=0&h=180');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.sub {
  color: var(--muted);
  margin: 0 0 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #00000011;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  color: #000;
}

/* Grid & Card */
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: repeat(2,1fr); }
.three { grid-template-columns: repeat(3,1fr); }

.card {
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eeeeee;
  border: 1px solid #ccc;
  font-weight: 600;
  color: #000;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 14px;
}

.timeline .tl-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.timeline time {
  font-weight: bold;
  color: var(--muted);
}

.timeline .role {
  font-weight: 700;
}

.timeline details summary {
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
  color: var(--brand);
}

.timeline details ul {
  margin-top: 6px;
  padding-left: 18px;
}

/* Projekte */
.project-scroll-wrapper {
  overflow: hidden;
  width: 100vw;
  padding: 20px 0;
  box-sizing: border-box;
}

.project-scroll {
  display: flex;
  gap: 20px;
  animation: scrollProjects 25s linear infinite;
  white-space: nowrap;
  overflow: hidden;
  width: 200vw;
  padding: 20px 0;
  box-sizing: border-box;
}

.project-scroll-wrapper:hover .project-scroll {
  animation-play-state: paused;
}

.project-scroll .project {
  min-width: 240px;
  flex-shrink: 0;
}

/* Keyframes */
@keyframes scrollProjects {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
}

.contact form {
  display: grid;
  gap: 10px;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  color: #000;
}

input::placeholder, textarea::placeholder {
  color: #999;
}

/* Footer */
.site-footer {
  padding: 28px 0 60px;
  color: var(--muted);
  border-top: 1px solid #ccc;
}

/* To top */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  display: none;
}

.to-top.show {
  display: inline-flex;
}

/* Navigation Mobile */
.nav-toggle {
  display: none;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  nav#mainnav {
    display: none !important;
  }

  .contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero .card + div {
    order: 2;
  }

  .hero .profile-info {
    order: 1;
    margin-bottom: 24px;
  }

  .timeline .tl-item {
    padding: 12px;
  }
}

@media (min-width: 769px) {
  nav#mainnav {
    display: flex !important;
    gap: 16px;
  }

  nav#mainnav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  nav#mainnav li {
    padding: 0;
  }

  nav#mainnav a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
  }
}
.logo::before {
  content: "💻 ";
  font-size: 1.2em;
}
.logo {
  text-decoration: none;
  border-bottom: none !important;
}
.fancy-footer {
  background: linear-gradient(90deg, #333333);
  color: white;
  padding: 40px 0;
  border-top: none;
  margin-top: 80px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.fancy-footer .footer-text {
  font-size: 16px;
  margin: 0;
}

.fancy-footer a {
  color: #00d1ff;
  text-decoration: none;
  font-weight: 500;
}

.fancy-footer a:hover {
  text-decoration: underline;
}

.footer-social {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-social img {
  width: 26px;
  height: 26px;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: brightness(1.1);
}

.footer-social img:hover {
  transform: scale(1.2);
  opacity: 1;
}
