/* docyard.ch – nach dem Vorbild der alten Adobe-Portfolio-Seite (Stand 6.11.2026) */

@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Logo";
  src: url("fonts/barlow-semicondensed-800-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #222;
  --text: #fff;
  --green: #00fa8c;
  --gap: 15px;
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--green); }

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

/* Kopf: Navigation links, Logo Mitte, Social rechts */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 5%;
}

.nav, .social {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social { justify-content: flex-end; gap: 22px; }

.nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 22px;
}
.nav a[aria-current="page"] { color: var(--green); }

.social a { display: inline-flex; text-decoration: none; }
.social svg { width: 26px; height: 26px; fill: currentColor; }

/* Logo: vorläufig als Schrift, bis die Logo-Datei da ist */
.logo {
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
  font-family: "Barlow Logo", var(--font);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo:hover { color: transparent; }
.logo img { height: clamp(40px, 6vw, 80px); width: auto; }

/* Kopfbild der Startseite (bewegt, abgedunkelt) */
.masthead {
  position: relative;
  height: max(260px, calc(50vh - 60px));
  background: #000 url("img/kopf-diy-racer.gif") center / cover no-repeat;
}
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.7;
}

/* Raster mit Filmplakaten: 3 nebeneinander, 15 px Abstand */
.covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: var(--gap) 0 60px;
}

.cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  text-decoration: none;
  background: #111;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-details {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #222;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.cover:hover .cover-details,
.cover:focus-visible .cover-details { opacity: 1; }
.cover:hover { color: #222; }
.cover-title { font-weight: 700; font-size: 20px; line-height: 1.1; }
.cover-year { font-size: 14px; margin-top: 4px; }

@media (max-width: 932px) {
  .covers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .covers { grid-template-columns: 1fr; }
}

/* Ohne Maus (Handy, Tablet): Titel unter dem Plakat */
@media (hover: none) {
  .cover { aspect-ratio: auto; background: none; }
  .cover img { aspect-ratio: 3 / 4; height: auto; }
  .cover-details {
    position: static;
    opacity: 1;
    background: none;
    color: var(--text);
    padding: 8px 0 12px;
  }
}

/* Filmseite */
.film {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 5% 60px;
  text-align: center;
}
.film h1 {
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 4px;
}
.film .credits { margin: 0 0 32px; font-size: 17px; }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.weblink { margin: 18px 0 0; }

/* grüne Pfeilchen: Trenner und zugleich Link zurück zur Übersicht */
.arrows {
  display: inline-block;
  margin: 28px 0;
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.12em;
  text-decoration: none;
}
.arrows:hover { color: var(--text); }

/* Text: einspaltig und linksbündig (bewusst anders als das Original, besser lesbar).
   Deutsch zuerst, Englisch in Grau darunter. */
.cols {
  text-align: left;
  font-size: 17px;
  line-height: 1.55;
}
.cols > div + div { margin-top: 28px; }
.cols [lang="en"] { color: #bbb; }
.cols h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.cols p { margin: 0 0 12px; }

.festivals { font-size: 16px; }
.festivals > div + div { margin-top: 0; }
.festivals h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin: 22px 0 6px;
}
.festivals > div:first-child h3:first-child { margin-top: 0; }
.festivals p { margin: 0 0 6px; }
.festivals ul { list-style: none; padding: 0; margin: 0; }
.festivals li { margin: 0 0 5px; }

.support { margin: 28px auto 0; }
.support img { margin: 0 auto; height: auto; }

@media (max-width: 640px) {
  .site-header { grid-template-columns: 1fr; justify-items: center; padding: 18px 16px; }
  .site-header .logo { order: -1; }
  .film { padding-left: 16px; padding-right: 16px; }
  .cols { font-size: 16px; }
}

/* Fuss */
.site-footer {
  text-align: center;
  font-size: 14px;
  padding: 30px 5% 40px;
}
.site-footer a:hover { color: var(--green); }
