/* ==========================================================================
   C SCHOOL — Ausbildungsprogramm der Clemens Media Produktion
   Farben ausschließlich aus dem C-School-Logo / clemens-media-produktion.at:
   Schwarz #111111, Weiß #FFFFFF, Orange #FFA800 — plus neutrale Graustufen
   aus Schwarz/Weiß gemischt. Keine zusätzlichen Farbtöne.
   ========================================================================== */

:root{
  --black: #111111;
  --black-raised: #1b1b1b;
  --black-raised-2: #242424;
  --line: #333333;

  --white: #ffffff;
  --grey-1: #d4d4d4;   /* Fließtext auf Schwarz */
  --grey-2: #8f8f8f;   /* gedämpfter Text */
  --grey-3: #5c5c5c;   /* sehr gedämpft / Footer */

  --orange: #ffa800;
  --orange-deep: #cc8600;

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Roboto Mono", monospace;

  --wrap: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Tally bar ---------- */
.tally-bar{
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}
.tally-dot{
  width: 7px; height: 7px;
  background: var(--black);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand{ display: flex; align-items: center; }
.brand img{ height: 30px; width: auto; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--grey-1);
}
.main-nav a{ transition: color .15s ease; white-space: nowrap; }
.main-nav a:hover{ color: var(--white); }
.main-nav a.is-active{ color: var(--orange); }
.nav-cta{
  color: var(--black) !important;
  background: var(--orange);
  padding: 9px 18px;
  border-radius: 2px;
  font-weight: 600;
}
.nav-cta:hover{ background: var(--orange-deep); color: var(--black) !important; }
.nav-toggle{ display: none; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-block;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary{
  background: var(--orange);
  color: var(--black);
}
.btn-primary:hover{ background: var(--orange-deep); transform: translateY(-1px); }
.btn-ghost{
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover{ border-color: var(--orange); color: var(--orange); }

/* ---------- Typography helpers ---------- */
.display-md{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 10px 0 26px;
  max-width: 18ch;
}
.accent{ color: var(--orange); }

.eyebrow-mono{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--grey-3);
  margin: 0;
}
.eyebrow-mono.light{ color: rgba(255,255,255,0.4); }

.lead-text{
  font-size: 19px;
  line-height: 1.6;
  color: var(--white);
  max-width: 42em;
}
.lead-wide{ max-width: 60ch; }

.body-text{
  color: var(--grey-1);
  max-width: 46em;
  margin-bottom: 16px;
}
.body-text strong{ color: var(--white); }
.body-text a{ color: var(--orange); border-bottom: 1px solid rgba(255,168,0,0.4); }
.body-text a:hover{ border-color: var(--orange); }

.tc{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
  display: block;
  margin-bottom: 6px;
}

/* ---------- Sections ---------- */
.section{ padding: 96px 0; }
.section-inverse{ background: var(--black-raised); }

/* ---------- Editorial two-column text (fix for narrow 01 text) ---------- */
.editorial{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 34px;
}
.editorial-col{ max-width: none; }
.editorial-col .lead-text{ max-width: none; }
.editorial-col .body-text{ max-width: none; }

/* ---------- Full-width banner photo ---------- */
.banner-photo{
  margin-top: 56px;
  position: relative;
}
.banner-photo img{
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center 30%;
}
.banner-photo--group img{
  object-fit: contain;
  background: var(--black-raised-2);
  max-height: 720px;
}
.banner-photo figcaption{
  padding: 16px 4px 0;
  font-size: 15px;
  color: var(--grey-2);
  max-width: 60ch;
}
.banner-photo figcaption .tc{ display: inline; margin-right: 8px; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media{ position: absolute; inset: 0; }
.hero-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}
.hero-scrim{
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(17,17,17,0.94) 0%, rgba(17,17,17,0.6) 40%, rgba(17,17,17,0.18) 66%, rgba(17,17,17,0.4) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  padding-bottom: 76px;
  padding-top: 140px;
}
.cam-tag{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin: 0 0 22px;
}
.hero-logo{
  height: 74px;
  width: auto;
  margin-bottom: 26px;
}
.hero-headline{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  max-width: 16ch;
  margin: 0 0 24px;
}
.hero-lede{
  max-width: 40em;
  font-size: 18px;
  color: var(--grey-1);
  margin: 0 0 34px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Zigzag (Methode) ---------- */
.zigzag{ margin-top: 56px; display: flex; flex-direction: column; gap: 56px; }
.zigzag-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.zigzag-row--reverse .zigzag-media{ order: 2; }
.zigzag-row--reverse .zigzag-text{ order: 1; }
.zigzag-media img{
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}
.zigzag-text p{ color: var(--grey-1); margin: 0; max-width: 34em; }

/* ---------- Split photo pair (Projekte) ---------- */
.split-photo{
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.split-photo img{
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.split-photo figcaption{
  padding: 14px 2px 0;
  font-size: 14.5px;
  color: var(--grey-2);
}
.split-photo figcaption .tc{ display: inline; margin-right: 6px; }

/* ---------- Team ---------- */
.team-grid{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-photo{
  aspect-ratio: 3/3.6;
  overflow: hidden;
  background: var(--black-raised-2);
  margin-bottom: 14px;
}
.team-photo img{ width: 100%; height: 100%; object-fit: cover; }
.team-card h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 4px;
}
.team-role{
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}
.team-bio{ color: var(--grey-1); font-size: 15px; margin: 0; }

.case-study{
  margin-top: 56px;
  padding: 34px 36px;
  border-left: 4px solid var(--orange);
  background: var(--black-raised-2);
}
.case-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin: 0 0 20px;
}
.case-body{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}
.case-photos{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-photos img{ width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.case-text{
  font-size: 18px;
  color: var(--white);
  margin: 0;
  max-width: 40em;
}

/* ---------- Ausblick ---------- */
.outlook-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.outlook-media{ position: relative; }
.outlook-media img{ width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.cam-tag--light{
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(17,17,17,0.78);
  padding: 6px 12px;
  margin: 0;
}

/* ---------- Kontakt ---------- */
.contact-grid{
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card{
  background: var(--black-raised-2);
  padding: 34px;
  border-top: 3px solid var(--orange);
}
.contact-card h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 12px;
}
.contact-card p{ color: var(--grey-1); margin: 0 0 22px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--black-raised);
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--grey-3);
  font-size: 13.5px;
}
.footer-inner a:hover{ color: var(--orange); }
.footer-links{ display: flex; gap: 20px; }
.footer-copy{ width: 100%; margin: 6px 0 0; font-size: 12.5px; }

/* ---------- Lightbox (falls einzelne Fotos künftig anklickbar werden) ---------- */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
  padding: 40px;
}
.lightbox.is-open{ display: flex; }
.lightbox img{ max-width: 88vw; max-height: 78vh; object-fit: contain; }
.lightbox p{
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 16px;
  text-align: center;
  max-width: 60ch;
}
.lightbox-close{
  position: absolute; top: 24px; right: 28px;
  background: none; border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .editorial{ grid-template-columns: 1fr; gap: 8px; }
  .zigzag-row, .zigzag-row--reverse{ grid-template-columns: 1fr; }
  .zigzag-row--reverse .zigzag-media{ order: 1; }
  .zigzag-row--reverse .zigzag-text{ order: 2; }

  .split-photo{ grid-template-columns: 1fr; }

  .team-grid{ grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }

  .case-body{ grid-template-columns: 1fr; }
  .case-photos{ order: -1; }

  .outlook-inner{ grid-template-columns: 1fr; }
  .outlook-media{ order: -1; }

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

  .display-md{ max-width: none; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed; top: 59px; left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    transform: translateY(-140%);
    transition: transform .25s ease;
  }
  .main-nav.is-open{ transform: translateY(0); }
  .main-nav a{ padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta{ margin-top: 12px; text-align: center; }
  .nav-toggle{
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; background: none; border: none; cursor: pointer;
  }
  .nav-toggle span{ display: block; height: 2px; background: var(--white); }

  .hero{ min-height: 100vh; }
  .hero-logo{ height: 52px; }
  .hero-actions{ flex-direction: column; }
  .hero-actions .btn{ text-align: center; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .tally-dot{ animation: none; }
}
