/* Winchline website: one light look (white, black text), Roboto served from the site itself. */

@font-face { font-family: "Roboto"; src: url("fonts/Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/Roboto-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Condensed Bold"; src: url("fonts/Roboto-BoldCondensed.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #000;
  --muted: #2b2b2b;
  --red: #c4101f;        /* text and buttons on white (contrast 6:1) */
  --red-bright: #e22e2e; /* bars and the logo */
  --line: #dcdcdc;
  --soft: #f4f4f2;
  --bg: #fff;
  --max: 1180px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: #8f0a16; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font: 700 clamp(28px, 4vw, 40px)/1.1 "Roboto Condensed Bold", "Roboto", sans-serif; letter-spacing: .01em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

/* Languages: html.de shows the German text, otherwise the English */
html.de .en, html:not(.de) .de, [hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font: 700 24px/1 "Roboto Condensed Bold", "Roboto", sans-serif; letter-spacing: .12em; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; }
.nav a:hover { color: var(--red); }
@media (min-width: 960px) { .nav { display: flex; } }
.lang { margin-left: auto; display: flex; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; }
@media (min-width: 960px) { .lang { margin-left: 8px; } }
.lang button {
  font: 700 14px/1 "Roboto", sans-serif; padding: 8px 11px; border: 0; background: #fff; color: var(--ink); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Hero: the picture, then a white card over its lower edge */
.hero { position: relative; background: #dfe7ee; }
.hero picture img { width: 100%; height: min(78vh, 56.25vw); min-height: 300px; object-fit: cover; object-position: 30% 15%; }
/* Phones: their own picture (hero-m, 4:5, the helicopter in the middle), as tall as the screen allows */
@media (max-width: 699px) {
  .hero picture img { height: min(125vw, 66vh); min-height: 0; object-position: 50% 40%; }
}
.hero-card {
  position: relative; background: #fff; padding: 26px var(--gutter) 6px;
}
.hero-card .bar { width: 64px; height: 6px; background: var(--red-bright); margin-bottom: 18px; }
.hero-card h1 { margin: 0; font: 700 clamp(48px, 9vw, 78px)/.9 "Roboto Condensed Bold", "Roboto", sans-serif; letter-spacing: .08em; }
.hero-card .region { font: 700 clamp(22px, 3.2vw, 30px)/1.2 "Roboto", sans-serif; color: var(--red); margin: 10px 0 16px; letter-spacing: .02em; }
.hero-card .pitch { font-size: clamp(19px, 2.2vw, 22px); max-width: 30em; margin-bottom: 6px; }
@media (min-width: 900px) {
  .hero-card {
    position: absolute; right: max(32px, calc((100vw - var(--max)) / 2 + 32px)); bottom: 40px;
    width: 520px; padding: 30px 34px 26px; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  }
}
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 6px;
  font: 700 17px/1.2 "Roboto", sans-serif; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); background: #fff;
}
.btn:hover { background: var(--soft); color: var(--ink); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #a00c18; border-color: #a00c18; color: #fff; }
.btn.soon { border-style: dashed; color: var(--muted); cursor: default; }
.btn.soon:hover { background: #fff; }

/* Numbers */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
@media (min-width: 800px) { .facts ul { grid-template-columns: repeat(4, 1fr); } }
.facts b { display: block; font: 700 clamp(28px, 4vw, 40px)/1 "Roboto Condensed Bold", "Roboto", sans-serif; }
.facts span { font-size: 16px; color: var(--muted); }

/* Intro */
.intro { padding: 56px 0 20px; }
.intro .lead { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.5; max-width: 40em; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.kinds li { border: 1px solid var(--ink); border-radius: 999px; padding: 4px 13px; font-size: 16px; }

/* Features: text beside its pictures, sides alternating */
.feature { padding: 48px 0; border-top: 1px solid var(--line); }
.feature .wrap { display: grid; gap: 26px; align-items: start; }
@media (min-width: 900px) {
  .feature .wrap { grid-template-columns: 5fr 7fr; gap: 48px; }
  .feature.flip .text { order: 2; }
}
.feature .kicker { font: 700 14px/1 "Roboto", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.feature ul { padding-left: 1.2em; margin: 0 0 1em; }
.feature li { margin: 0 0 .35em; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shots figure { margin: 0; }
.shots figure:first-child { grid-column: 1 / -1; }
.shots.two figure:first-child { grid-column: auto; }
.shot {
  display: block; width: 100%; padding: 0; border: 0; background: #ddd; cursor: zoom-in; border-radius: 4px; overflow: hidden;
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.025); }
.shot:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* Story missions as cards */
.cards { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--line); border-left: 5px solid var(--red-bright); padding: 12px 16px; border-radius: 4px; background: #fff; }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card p { margin: 0; font-size: 16px; color: var(--muted); }

/* Gallery */
.gallery { padding: 56px 0; background: var(--soft); border-top: 1px solid var(--line); }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 20px; }

/* Follow */
.follow { padding: 56px 0 64px; border-top: 1px solid var(--line); }
.follow .wrap { display: grid; gap: 30px; }
@media (min-width: 900px) { .follow .wrap { grid-template-columns: 7fr 5fr; gap: 48px; } }
.status { border: 2px solid var(--ink); border-radius: 6px; padding: 20px 22px; }
.status h3 { margin-bottom: 10px; }
.status ul { margin: 0; padding-left: 1.2em; }

/* Footer */
footer { background: var(--soft); border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: 15px; color: var(--muted); }
footer p { margin: 0 0 .7em; max-width: 60em; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; font-size: 16px; font-weight: 700; }

/* Picture viewer */
dialog.viewer {
  border: 0; padding: 0; background: #000; color: #fff; width: 100vw; height: 100vh; max-width: none; max-height: none;
}
dialog.viewer::backdrop { background: rgba(0, 0, 0, .9); }
.viewer .frame { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 16px; }
.viewer img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.viewer p { color: #fff; margin: 12px 0 0; font-size: 16px; text-align: center; max-width: 50em; }
.viewer button {
  position: absolute; background: rgba(0, 0, 0, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 6px;
  font: 700 22px/1 "Roboto", sans-serif; width: 48px; height: 48px; cursor: pointer;
}
.viewer button:hover { background: rgba(255, 255, 255, .2); }
.viewer .close { top: 10px; right: 10px; }
.viewer .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.viewer .next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Legal page */
.legal { padding: 40px 0 60px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font: 700 clamp(32px, 5vw, 44px)/1.1 "Roboto Condensed Bold", "Roboto", sans-serif; }
.legal h2 { font-size: 28px; margin-top: 1.6em; }
.legal h3 { margin-top: 1.4em; }
.fill { background: #fff3a8; padding: 0 4px; border-radius: 3px; }
