/* ==========================================================
   Thomas Greiderer – Website
   ========================================================== */

/* ---------- Schriften (lokal, SIL Open Font License – siehe fonts/OFL-LICENSE.txt) ---------- */

@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/big-shoulders-display-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}

:root {
  --bg: #0D0D0C;
  --bg-light: #F2EEE6;
  --text: #F2EEE6;
  --text-dark: #161614;
  --muted: #C9C4BA;
  --muted-2: #A8A39A;
  --muted-dark: #4A463F;
  --accent: #D9A441;        /* Messing */
  --accent-dark: #8A5A0B;   /* Messing auf hellem Grund */
  --line: rgba(242, 238, 230, .14);
  --line-light: #D8D2C6;

  --f-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --f-body: 'Instrument Sans', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 84rem;
  --section-y: clamp(5rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--text); transition: color .2s ease; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

p { margin: 0; }
h1, h2, h3 { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--bg); padding: .75rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* ---------- Typografie ---------- */

.eyebrow {
  margin-bottom: 1.25rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}

.num {
  margin-bottom: .5rem;
  font-family: var(--f-display); font-weight: 600; font-size: 1.25rem;
  color: var(--accent);
}

.h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.75rem, 5vw, 4rem); line-height: .95;
  text-transform: uppercase;
  hyphens: manual;
}

.lead {
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.25;
}
.lead--sm { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.3; }

.muted { color: var(--muted); }

.stack { display: flex; flex-direction: column; gap: 1.5rem; }

.rule { margin: 0; border: 0; border-top: 1px solid var(--line); }

/* ---------- Buttons & Links ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--solid { background: var(--accent); color: var(--bg); }
.btn--solid:hover { background: var(--text); color: var(--bg); }
.btn--ghost { border: 1px solid rgba(242, 238, 230, .3); font-weight: 500; }
.btn--ghost:hover { border-color: var(--accent); }

.text-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-weight: 600; text-underline-offset: 5px;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.5rem var(--gutter);
}

.logo {
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  position: relative; z-index: 2;
}

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem 2.25rem;
}
.main-nav a {
  display: inline-block; padding: .5rem 0;
  font-size: .95rem; font-weight: 500; letter-spacing: .02em; text-decoration: none;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: max(42rem, 100vh);
  min-height: max(42rem, 100svh);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: left center;
}

.hero__text {
  position: relative;
  margin-left: auto;
  width: 46%;
  padding: 8rem var(--gutter) 6rem 0;
}

.hero__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(3rem, 7.2vw, 7.5rem); line-height: .88;
  overflow-wrap: anywhere; letter-spacing: -.01em;
  text-transform: uppercase;
}

.slides { position: relative; height: 4.5rem; margin-top: 1.5rem; }
.slide {
  position: absolute; left: 0; top: 0;
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.2;
  color: var(--accent);
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.slide.is-active { opacity: 1; transform: none; }
.slide.is-past { transform: translateY(-14px); }

/* Ohne JavaScript: alle Begriffe untereinander zeigen */
html:not(.js) .slides { height: auto; }
html:not(.js) .slide { position: static; opacity: 1; transform: none; }
html:not(.js) .slide-dots { display: none; }

.slide-dots { display: flex; gap: .25rem; margin-top: 1.25rem; }
.slide-dots button {
  width: 44px; height: 44px; padding: 0; border: 0;
  background: transparent; cursor: pointer;
  display: flex; align-items: center;
}
.slide-dots span {
  display: block; height: 3px; width: 16px;
  background: rgba(242, 238, 230, .4);
  transition: width .4s ease, background .4s ease;
}
.slide-dots .is-active span { width: 36px; background: var(--accent); }

.scroll-cue {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-top: 3rem;
  border: 1px solid rgba(242, 238, 230, .35); border-radius: 50%;
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Zeilen (Jazzmusiker / Unterrichtender) ---------- */

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem;
}
.row__label { grid-column: 1 / span 4; }
.row__body { grid-column: 6 / span 7; }

.year { display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; }
.year__num {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(5rem, 10vw, 8rem); line-height: .8;
  color: var(--accent);
}
.year__label {
  font-size: .85rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Projekte ---------- */

.section--light { background: var(--bg-light); color: var(--text-dark); }
.section--light .num { color: var(--accent-dark); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1.5rem;
  margin-bottom: 4rem;
}
.section-head__intro { max-width: 26rem; color: var(--muted-dark); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
}

.card { display: flex; flex-direction: column; gap: 1rem; }
.card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s ease;
}
.card img.img--sheet { object-position: center top; background: #fff; outline: 1px solid var(--line-light); }
.card img.img--top { object-position: center 35%; }
.card > p { font-size: 1rem; color: var(--muted-dark); }

.card__meta {
  margin-top: .25rem;
  font-size: .8rem !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dark) !important;
}
.card__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: 2rem; line-height: 1; text-transform: uppercase;
}
.card .card__lineup { font-size: .9rem; color: var(--text-dark); }
.card__lineup strong { font-weight: 600; }

.card__links {
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem;
  margin-top: auto; padding-top: .5rem;
  border-top: 1px solid var(--line-light);
}
.card__links a {
  display: inline-block; padding: .6rem 0;
  color: var(--text-dark); font-weight: 600; text-decoration: none;
}
.card__links a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Jazzkaffee ---------- */

.kaffee {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
}

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  padding: .45rem 1rem;
  border: 1px solid rgba(242, 238, 230, .25); border-radius: 999px;
  font-size: .9rem;
}

.kaffee .btn { margin-top: 1rem; }

.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo img.img--team { object-position: center 38%; }
.photo figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted-2); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 4rem; }
.site-footer__inner {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 2rem;
}
.site-footer__name {
  margin-bottom: .75rem;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 3rem); line-height: .9; text-transform: uppercase;
}
.site-footer .muted { color: var(--muted-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.site-footer a { display: inline-block; padding: .6rem 0; font-size: .95rem; }

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kaffee { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .row__label { grid-column: 1 / -1; margin-bottom: 2rem; }
  .row__body { grid-column: 1 / -1; }
  .hero__text { width: 52%; }
}

@media (max-width: 820px) {
  /* Mobile Navigation */
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 0;
    background: rgba(13, 13, 12, .6); border: 1px solid rgba(242, 238, 230, .3); border-radius: 50%;
    color: var(--text); cursor: pointer;
    position: relative; z-index: 2;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor;
    transition: transform .3s ease, background .3s ease;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .main-nav {
    position: fixed; inset: 0;
    background: var(--bg);
    display: flex; align-items: center; padding: 6rem var(--gutter) 3rem;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .js .nav-open .main-nav { opacity: 1; visibility: visible; }
  .js .main-nav ul { flex-direction: column; gap: .5rem; }
  .js .main-nav a {
    font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.1; text-transform: uppercase; letter-spacing: 0;
  }
  .nav-open .logo, .nav-open .nav-toggle { position: fixed; }
  .nav-open .logo { left: var(--gutter); top: 1.5rem; }
  .nav-open .nav-toggle { right: var(--gutter); top: 1.5rem; }
  body.no-scroll { overflow: hidden; }

  /* Ohne JS: Menü einfach umbrechen */
  html:not(.js) .site-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
  html:not(.js) .main-nav ul { gap: .25rem 1.25rem; }

  /* Hero: Foto oben, Text darunter */
  .site-header { position: relative; background: var(--bg); padding-block: 1rem; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__title { font-size: clamp(3rem, 15vw, 6rem); }
  .hero__img { position: relative; height: 26rem; object-position: 28% center; }
  .hero__text { width: auto; margin-left: 0; padding: 2.5rem var(--gutter) 3.5rem; }
  .slides { height: 3.5rem; }

  .cards { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero__img { height: 20rem; }
}

@media (hover: hover) {
  .card:hover img { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================
   Ergänzungen: Hinweise, Unterseiten (Impressum, Datenschutz, JazzWALTz)
   ========================================================== */

.note { font-size: .9rem; color: var(--muted-2); margin-top: .5rem; }

.site-footer a[aria-current="page"] { color: var(--accent); }

/* Kopfzeile der Unterseiten */
.subpage-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  padding: 1.5rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.subpage-header nav { display: flex; gap: 1.75rem; font-size: .95rem; font-weight: 500; }
.subpage-header nav a { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 0; text-decoration: none; }

.page { max-width: 52rem; margin-inline: auto; padding: clamp(4rem, 8vw, 6rem) var(--gutter) clamp(5rem, 9vw, 8rem); }
.page-title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(3rem, 8vw, 5.5rem); line-height: .9; text-transform: uppercase;
}
.label {
  margin-bottom: 1.25rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2);
}
.h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; text-transform: uppercase; color: var(--text); }

/* Impressum */
.facts-list {
  margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem; row-gap: 1rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--line);
}
.facts-list dt { color: var(--muted-2); }
.facts-list dd { margin: 0; font-family: var(--f-serif); font-size: 1.6rem; line-height: 1.3; overflow-wrap: anywhere; }
.facts-list dd a { text-decoration: none; }

.prose { display: flex; flex-direction: column; gap: 2.75rem; color: var(--muted); }
.prose section { display: flex; flex-direction: column; gap: .75rem; }
.prose a { text-underline-offset: 4px; }
.prose ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.prose .strong { color: var(--text); }

/* JazzWALTz */
.intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem; row-gap: 3rem; align-items: start;
}
.intro__text { grid-column: 1 / span 7; }
.intro__img { grid-column: 9 / span 4; margin: 0; }
.intro__img img { width: 100%; background: #fff; }
.intro__img figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted-2); }
.display-xl {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 8rem); line-height: .85; text-transform: uppercase;
  margin-bottom: 2rem;
}

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 5rem; }
.stats > div { border-top: 1px solid var(--accent); padding-top: 1rem; }
.stats strong {
  display: block; font-family: var(--f-display); font-weight: 900;
  font-size: 3.5rem; line-height: 1; color: var(--accent);
}
.stats span { color: var(--muted); }

.section--alt { background: #161614; }

.pieces-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.piece {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem; row-gap: 1.5rem; align-items: start;
  padding-block: 3rem; border-top: 1px solid var(--line);
}
.piece:last-child { border-bottom: 1px solid var(--line); }
.piece__meta { grid-column: 1 / span 2; }
.piece__meta .num { margin: 0; }
.piece__meta p:last-child { font-size: .9rem; color: var(--muted-2); }
.piece__main { grid-column: 3 / span 6; display: flex; flex-direction: column; gap: 1rem; }
.piece__title { font-family: var(--f-display); font-weight: 800; font-size: 2.25rem; line-height: 1; text-transform: uppercase; margin-bottom: .5rem; }
.piece__style { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; color: var(--accent); }
.piece__main > p { color: var(--muted); }
.piece__info { font-size: .95rem; }
.piece__info strong { font-weight: 600; color: var(--text); }
.piece__sheet { grid-column: 10 / span 3; display: block; overflow: hidden; background: #fff; }
.piece__sheet img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; transition: transform .4s ease; }

.btn--small { min-height: 44px; padding: 0 1.25rem; font-size: .95rem; }

.ensembles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.ensembles h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; margin-bottom: .5rem; }
.ensembles p { color: var(--muted); }

@media (hover: hover) {
  .piece__sheet:hover img { transform: scale(1.03); }
}

@media (max-width: 1080px) {
  .intro__text { grid-column: 1 / -1; }
  .intro__img { grid-column: 1 / span 6; }
  .piece__meta { grid-column: 1 / -1; }
  .piece__main { grid-column: 1 / span 8; }
  .piece__sheet { grid-column: 9 / span 4; }
}

@media (max-width: 820px) {
  .subpage-header { padding-block: 1rem; }
  .facts-list { grid-template-columns: minmax(0, 1fr); row-gap: .25rem; }
  .facts-list dd { margin-bottom: 1.25rem; }
  .intro__img { grid-column: 1 / -1; }
  .piece__main { grid-column: 1 / -1; }
  .piece__sheet { grid-column: 1 / -1; max-width: 22rem; }
  .stats, .ensembles { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

.piece__draft {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
}

/* Wolfsbluemen */
.page-hero { padding-top: clamp(4rem, 8vw, 6rem); padding-bottom: 3rem; }
.tagline {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.15; color: var(--accent);
}
.wide-img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 55%; }

.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 2rem; align-items: start; }
.story__lead { grid-column: 1 / span 5; font-family: var(--f-serif); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.25; }
.story__body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 1.25rem; color: var(--muted); }

.quote { max-width: 60rem; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--f-serif); font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.25; }
.quote em { color: var(--accent); }

.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 2.5rem; align-items: center; }
.duo__img { grid-column: 1 / span 7; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.duo__text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 1.75rem; }
.duo__name { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.duo__text .actions { margin-top: 0; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 1080px) {
  .story__lead, .story__body, .duo__img, .duo__text { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .wide-img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
}
