/* =========================
   FARBEN / VARIABLEN
========================= */
:root {
  --bg: #f6f3ef;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: #fbf8f5;
  --text: #1e1917;
  --muted: #6b6059;
  --primary: #5d3d34;
  --primary-soft: #9b786b;
  --accent: #d7c1b6;
  --border: #e7dfd8;
  --shadow: 0 10px 35px rgba(40, 28, 23, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --transition: 0.25s ease;
}

/* =========================
   RESET / BASIS
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
}

body {
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(93, 61, 52, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(155, 120, 107, 0.10), transparent 22%),
    linear-gradient(180deg, var(--bg), #f1ebe5);
  color: var(--text);
  line-height: 1.7;
  padding: 1rem;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 8px;
}

/* =========================
   TYPOGRAFIE
========================= */
h1,
h2,
h3 {
  font-family: Merriweather, serif;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.06;
  margin-bottom: 1rem;
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.45rem;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
}

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

.eyebrow,
.section-label,
.hero-card-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.eyebrow,
.hero-card-label {
  margin-bottom: 1rem;
}

.section-label {
  margin-bottom: 0.8rem;
}

/* =========================
   GEMEINSAME BREITE
========================= */
.hero,
.section-card,
.navbar,
.footer {
  width: min(var(--max-width), 100%);
  margin-inline: auto;
}

/* =========================
   NAVIGATION
========================= */
.navbar {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 1rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: Merriweather, serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.menu-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  border-radius: 14px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background var(--transition), border-color var(--transition);
}

.menu-button:hover {
  background: var(--surface-soft);
}

.menu-button span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: var(--transition);
}

.menu-button.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

/* =========================
   SEKTIONEN / KARTEN
========================= */
.hero,
.section-card {
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  padding: clamp(2rem, 5vw, 4rem);
}

.section-card {
  padding: clamp(2rem, 4vw, 3rem);
}

.hero-card,
.panel,
.info-card,
.timeline-box,
.project-card,
.contact-box {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* =========================
   GRIDS
========================= */
.hero-grid,
.about-grid,
.skills-grid,
.project-grid,
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.3fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.about-grid {
  grid-template-columns: 1.35fr 0.95fr;
}

.skills-grid,
.project-grid {
  grid-template-columns: repeat(2, 1fr);
}

.contact-layout {
  grid-template-columns: 1fr;
}

.section-heading {
  margin-bottom: 2rem;
}

.hero-description,
.section-intro {
  max-width: 64ch;
}

/* =========================
   LISTEN / INHALTE
========================= */
.hero-list,
.info-list {
  list-style: none;
}

.hero-list li + li,
.info-list li + li {
  margin-top: 0.7rem;
}

.panel p + p {
  margin-top: 1rem;
}

.info-card {
  min-height: 200px;
}

/* =========================
   BUTTONS / TAGS
========================= */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-highlights span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(93, 61, 52, 0.08);
  border: 1px solid rgba(93, 61, 52, 0.14);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.cta-button:hover {
  transform: translateY(-1px);
  background: var(--primary-soft);
  color: #ffffff;
}

.cta-button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.cta-button.secondary:hover {
  background: var(--surface-soft);
  color: var(--text);
}

/* =========================
   TIMELINE
========================= */
.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 2.3rem;
}

.timeline-dot {
  position: absolute;
  left: 3px;
  top: 1.2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

/* =========================
   PROJEKTE
========================= */
.project-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition), transform var(--transition);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(93, 61, 52, 0.22);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-number {
  font-family: Merriweather, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.project-status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag-group {
  margin-top: 1rem;
}

.tag {
  margin: 0.35rem 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.78rem;
}

/* =========================
   KONTAKT
========================= */
.contact-box p a {
  color: var(--primary);
}

.contact-box p a:hover {
  text-decoration: underline;
}

.contact-box .cta-button,
.contact-box .cta-button:hover {
  color: #ffffff;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 0.7rem 0 2rem;
}

.footer p {
  color: var(--muted);
}

/* =========================
   REVEAL ANIMATION
========================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .menu-button span,
  .cta-button,
  .project-card,
  .nav-links a {
    transition: none;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .skills-grid,
  .project-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.9rem 1rem;
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.95rem 0.2rem;
  }

  .nav-links a.active::after {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0.8rem;
  }

  .hero,
  .section-card {
    padding: 1.4rem;
  }

  .button-group {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.55rem;
  }
}
