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

:root {
  --gold: #c8861a;
  --gold-light: #e8a830;
  --gold-dark: #8a5a0a;
  --cream: #f5edd8;
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --bg-card: #181818;
  --border: rgba(200, 134, 26, 0.2);
  --border-hover: rgba(200, 134, 26, 0.5);
  --text: #f0e8d8;
  --text-muted: #9a8a70;
}

body {
  padding-top: 70px;
  background-color: var(--bg);
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 100;
}

.nav-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cream);
}

.nav-links li.active a {
  color: var(--gold-light);
}

/* ── Background Video ── */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.18;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 7rem 2rem 5rem;
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 2rem auto 0;
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-transform: uppercase;
}

.hero p {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ── Sections ── */
section {
  margin-bottom: 4rem;
}

section h2 {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2rem;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.25s;
}

.card:hover {
  border-color: var(--border-hover);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Divider ── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--gold-dark);
  margin: 0 auto 2rem;
}

/* ── About text ── */
.about p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* ── Project grid ── */
.project-grid {
  display: flex;
  gap: 1.5rem;
}

.project-grid .card {
  flex: 1;
  min-width: 0;
}

/* ── CTA ── */
.cta {
  text-align: center;
}

.cta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons / Links ── */
.primary {
  display: inline-block;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.primary:hover {
  background: var(--gold-light);
}

.secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.secondary:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ── Screenshots ── */
.screenshot-grid {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.screenshot-item {
  flex: 1;
  min-width: 0;
}

.screenshot-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  transition: border-color 0.25s;
}

.screenshot-item img:hover {
  border-color: var(--border-hover);
}

.screenshot-caption {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  text-align: center !important;
  margin-top: 0.6rem !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  letter-spacing: 0.02em;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.25s;
}

.feature-card:hover {
  border-color: var(--border-hover);
}

.feature-icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.feature-card h4 {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
}

/* ── Catania Hero ── */
.catania-hero {
  background-image:
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0) 0%,
      rgba(10, 10, 10, 0.85) 100%
    ),
    url("../Catania/Sunset.png");
  background-size: cover;
  background-position: center 30%;
  padding: 10rem 2rem 6rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* ── Catania Gallery ── */
.catania-gallery {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.gallery-main {
  flex: 1.6;
  min-width: 0;
}

.gallery-main img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  height: 100%;
  object-fit: cover;
  transition: border-color 0.25s;
}

.gallery-main img:hover {
  border-color: var(--border-hover);
}

.gallery-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-side img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
  transition: border-color 0.25s;
}

.gallery-side img:hover {
  border-color: var(--border-hover);
}

/* ── Wide single screenshot ── */
.he-wide {
  width: 100%;
}

/* ── Wide single screenshot (Editor) ── */
.he-wide img {
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  object-fit: contain;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  transition: border-color 0.25s;
}

.he-wide img:hover {
  border-color: var(--border-hover);
}

/* ── Code Window ── */
.code-window {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0d1117;
  transition: border-color 0.25s;
}

.code-window:hover {
  border-color: var(--border-hover);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-window-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 6px;
  letter-spacing: 0.03em;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.code-window img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Contact ── */
.contact-grid {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.contact-info p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  padding: 0;
  margin-bottom: 1.75rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--gold-light);
}

.contact-link-icon {
  font-size: 1rem;
  color: var(--gold);
  width: 20px;
  text-align: center;
}

.contact-form-card {
  flex: 1.6;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-dark);
}

/* ════════════════════════════════
   RESPONSIVE — Tablet (≤ 768px)
   ════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  nav {
    padding: 0 1.25rem;
    height: 60px;
  }

  .nav-logo {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 12px;
  }

  /* Hero */
  .hero {
    padding: 5rem 1.5rem 3.5rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  /* Container */
  .container {
    padding: 0 1.25rem 3rem;
  }

  /* Feature Grid — 1 Spalte */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Project Grid — untereinander */
  .project-grid {
    flex-direction: column;
  }

  /* Screenshot Grid — untereinander */
  .screenshot-grid {
    flex-direction: column;
  }

  /* Catania Gallery — untereinander */
  .catania-gallery {
    flex-direction: column;
  }

  .gallery-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .gallery-side > div {
    flex: 1;
    min-width: calc(50% - 0.5rem);
  }

  /* Contact Grid — untereinander */
  .contact-grid {
    flex-direction: column;
    gap: 2rem;
  }

  /* Code BG Section */
  .code-bg-content {
    padding: 2rem 1.5rem;
  }

  /* Catania Hero */
  .catania-hero {
    padding: 7rem 1.5rem 4rem;
    min-height: 320px;
  }

}

/* ════════════════════════════════
   RESPONSIVE — Mobile (≤ 480px)
   ════════════════════════════════ */
@media (max-width: 480px) {

  /* Nav — Links verstecken bei sehr kleinen Screens */
  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  /* Hero */
  .hero {
    padding: 4.5rem 1rem 3rem;
  }

  /* Container */
  .container {
    padding: 0 1rem 2rem;
  }

  /* Buttons untereinander */
  .btn-row {
    flex-direction: column;
    align-items: center;
  }

  .primary, .secondary {
    width: 100%;
    text-align: center;
  }

  /* Gallery Side — untereinander auf sehr kleinen Screens */
  .gallery-side {
    flex-direction: column;
  }

  .gallery-side > div {
    min-width: 100%;
  }

  /* Contact Form */
  .contact-form-card {
    padding: 1.25rem;
  }

  /* Feature Cards */
  .feature-card {
    padding: 1.25rem;
  }

}