/* ================================================
   SCHRIFT – Neue-Kabel-Dateien in /fonts legen
   und Dateinamen hier anpassen.
   ================================================ */
@font-face {
  font-family: "Neue Kabel";
  src: url("fonts/NeueKabel-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neue Kabel";
  src: url("fonts/NeueKabel-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --radius: 14px;        /* Ecken der Projektbilder */
  --radius-sm: 8px;      /* Ecken der Buttons & Dropdown */
  --bg: #fff;
  --fg: #000;
  --muted: #9a9a9a;
  --pill: #f0f0f0;
  --pad: 12px;
  --card-w: clamp(220px, 17vw, 300px);
  --gap: 12px;
  --font: "Neue Kabel", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- HEADER ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--pad);
}
.logo { font-weight: 500; font-size: 14px; }
.header-nav { display: flex; gap: 4px; }
.pill {
  background: var(--pill);
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.pill:hover { background: var(--fg); color: var(--bg); }

/* ---------- CONTACT-DROPDOWN ---------- */
.dropdown { position: relative; }
.contact-btn[aria-expanded="true"] { background: var(--fg); color: var(--bg); }
.contact-panel {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--pill); border-radius: var(--radius-sm);
  padding: 10px 12px; white-space: nowrap;
  font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.contact-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.contact-panel .label-sm { font-weight: 400; margin-bottom: 2px; }
.contact-panel a:hover { color: var(--muted); }

/* ---------- HERO ---------- */
/* Seite füllt genau den Bildschirm: Headline oben, Galerie unten bündig */
main { min-height: 100svh; display: flex; flex-direction: column; }
.hero { padding: 0 var(--pad); padding-top: 56px; flex: 1; }

/* ---------- INFO-PANEL ---------- */
.info-btn .arrow { display: inline-block; transition: transform 0.35s ease; }
.info-btn[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.info-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.info-panel.open { grid-template-rows: 1fr; }
.info-inner { overflow: hidden; min-height: 0; }
.info-group {
  font-size: 14px; font-weight: 500; line-height: 1.3;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.info-group:first-child { padding-top: 20px; }
.info-group + .info-group { padding-top: 22px; }
.info-group .label-sm { font-weight: 400; margin-bottom: 2px; }
.info-group a:hover { color: var(--muted); }
.info-panel.open .info-group { opacity: 1; transform: none; transition-delay: 0.15s; }
.info-panel.open .info-group + .info-group { transition-delay: 0.22s; }
.hero-title {
  font-weight: 500;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: none;
}

/* ---------- LABELS ---------- */
.label { font-weight: 500; padding: 0 var(--pad) 8px; }
.label-sm { color: var(--muted); margin-bottom: 4px; }

/* ---------- CAROUSEL ---------- */
.work { padding-top: 40px; flex: none; }
.carousel {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.carousel.dragging { cursor: grabbing; }
.track {
  display: flex; gap: var(--gap);
  width: max-content;
  will-change: transform;
}
.card { width: var(--card-w); flex: none; display: block; }
.card-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden;
  background: #eee;
}
.card-img img { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: none; }
.card:hover .card-img img { transform: scale(1.03); }
.card-name { margin-top: 10px; font-weight: 500; }
.card-type { color: var(--muted); }

/* Abstand unten statt Footer */
main { padding-bottom: var(--pad); }

/* ---------- MOBILE ---------- */
@media (max-width: 700px) {
  :root { --card-w: 62vw; }
  .hero { padding-top: 64px; }
}
.lab-intro { margin-top: 16px; color: var(--muted); font-size: 14px; }
