/* ─────────────────────────────────────────
   FONTS
───────────────────────────────────────── */
@font-face {
  font-family: 'Coolvetica';
  src: url('fonts/coolvetica.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* ─────────────────────────────────────────
   RESET & GRUNDLAGEN
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-border: #e8e8e8;
  --color-tag-bg: #f2f2f2;
  --color-tag-text: #444444;
  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-heading: 'Coolvetica', sans-serif;
  --font-handwriting: 'Dancing Script', cursive;
  --max-width: 1100px;
  --nav-height: 96px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

h1 { font-size: 64px; }
h2 { font-size: 36px; }
h3 { font-size: 30px; }

p {
  font-size: 17px;
  font-family: var(--font-main);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
}

.logo {
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

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

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 8rem) 5% 7rem;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.hero-top h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-text);
  white-space: nowrap;
}

.handwriting-img {
  display: inline-block;
  height: 1.7em;
  width: auto;
  vertical-align: top;
  margin: 0 4px;
  filter: saturate(0);
}



.hero-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 620px;
}

/* ─────────────────────────────────────────
   PROJEKTE
───────────────────────────────────────── */
.projects {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 5% 8rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
}

.project-card {
  cursor: pointer;
}

.project-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-border);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 2px;
}

.project-info {
  padding: 1rem 0 0.5rem;
}

.project-info h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.project-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.tag {
  font-size: 16px;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 5%;
  border-top: 1px solid var(--color-border);
}

.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-photo {
  flex: 0 0 340px;
}

.about-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
}

.about h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 5%;
  border-top: 1px solid var(--color-border);
}

.contact h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.contact-icons {
  display: flex;
  gap: 2rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  padding: 0;
  transition: color 0.2s;
}

.contact-icon:hover {
  color: var(--color-text);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 5%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ─────────────────────────────────────────
   RESPONSIVE – MOBILE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
  }

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

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 3rem);
  }

  .hero-top {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-top h1 {
    white-space: normal;
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-photo {
    width: 160px;
    height: 160px;
    align-self: flex-end;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}