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

/* ── CUSTOM CURSOR ── */
*, a, button { cursor: none !important; }

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  border-radius: 50%;
  background: #fff;
}

@media (hover: none) {
  *, a, button { cursor: auto !important; }
  #custom-cursor { display: none !important; }
}

@media (max-width: 768px) {
  .about-footer-inner { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

@media (max-width: 768px) {
  .hover-footer {
    min-height: 0 !important;
    padding: 1rem 1.5rem !important;
  }
  .hover-footer img { height: 28px !important; width: auto !important; }
  .hover-footer a { font-size: 1rem !important; gap: 0.6rem !important; }
}

/* ── FONTS ── */
/* Platzhalter für Soleil — ersetzen mit @font-face sobald Fontdateien vorhanden */
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-v20-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── TYPOGRAFIE-SKALA ── */
:root {
  --font: 'Jost', 'Helvetica Neue', sans-serif;

  /* Schriftgrößen */
  --h1: clamp(3.5rem, 9vw, 8rem);    /* Hero-Überschrift */
  --h2: clamp(1.8rem, 4vw, 3rem);    /* Sektions-Titel */
  --h3: clamp(1.1rem, 2vw, 1.4rem);  /* Karten-Titel, Sub-Heads */
  --body: 1rem;                        /* 16px Fließtext */
  --small: 0.8125rem;                  /* 13px Labels, Meta */

  /* Gewichte */
  --light: 400;
  --regular: 500;
  --medium: 600;

  /* Farben */
  --black: #000;
  --gray: #777;
  --border: #e4e4e0;
  --bg: #fff;
  --bg-warm: #f7f6f3;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--body);
  font-weight: var(--regular);
  line-height: 1.6;
  color: var(--black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  background: transparent;
  mix-blend-mode: difference;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--small);
  font-weight: var(--medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: var(--body);
  font-weight: var(--regular);
  color: #fff;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--black);
  transition: 0.2s;
}

/* ── HERO ── */
.hero {
  padding: 14rem 2.5rem 6rem;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero h1 {
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero h1 em {
  font-style: italic;
  font-weight: var(--light);
}

.hero-sub {
  margin-top: 2rem;
  font-size: var(--h3);
  font-weight: var(--light);
  color: var(--gray);
  max-width: 480px;
  line-height: 1.5;
}

/* ── SECTION ── */
.section {
  padding: 5rem 2.5rem;
  border-top: none;
}

.section-label {
  font-size: var(--small);
  font-weight: var(--medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.about-portrait {
  width: 100%;
  height: auto;
}

.about-text h2 {
  font-size: var(--h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.about-text p {
  font-size: var(--body);
  color: #000;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 560px;
}

.about-text .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--small);
  font-weight: var(--medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}

.about-text .link-arrow:hover { opacity: 0.5; }

/* ── AREAS (Home) ── */
.areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.area-card {
  background: var(--bg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
  cursor: pointer;
}

.area-card:hover { background: var(--bg-warm); }

.area-number {
  font-size: var(--small);
  color: var(--gray);
  letter-spacing: 0.08em;
}

.area-card h3 {
  font-size: var(--h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.area-card p {
  font-size: var(--small);
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
}

.area-card .arrow {
  font-size: var(--small);
  color: var(--gray);
  align-self: flex-end;
  transition: transform 0.2s;
}

.area-card:hover .arrow { transform: translate(4px, -4px); }

/* ── PROJECT GRID (Unterseiten) ── */
.page-hero {
  padding: 10rem 2.5rem 4rem;
}

.page-hero h1 {
  font-size: var(--h1);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.page-hero p {
  margin-top: 1.5rem;
  font-size: var(--body);
  color: var(--gray);
  max-width: 480px;
  line-height: 1.7;
}

.project-grid {
  padding: 0 2.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-item {
  cursor: pointer;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-warm);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s;
}

.project-item:hover .project-thumb img {
  transform: scale(1.03);
  opacity: 0.9;
}

.project-name {
  font-size: var(--small);
  font-weight: var(--medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-meta {
  font-size: var(--small);
  color: var(--gray);
  margin-top: 0.2rem;
}

/* ── FOOTER ── */
.site-footer {
  border-top: none;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer p,
.site-footer a {
  font-size: var(--small);
  color: var(--gray);
}

.site-footer a:hover { color: var(--black); }

.footer-links { display: flex; gap: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .areas { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-portrait { max-width: 280px; }
}

@media (max-width: 600px) {
  :root { --h1: clamp(2.8rem, 12vw, 5rem); }

  .site-nav { padding: 1.2rem 1.5rem; }
  .hero { padding: 10rem 1.5rem 4rem; }
  .section { padding: 3.5rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  .project-grid { padding: 0 1.5rem 4rem; grid-template-columns: 1fr 1fr; gap: 1rem; }

  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: #fff;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.3rem;
    z-index: 99;
  }
  .nav-links.open a { color: #000; }
  .site-nav:has(.nav-links.open) { mix-blend-mode: normal; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle span { background: #fff; }
}
