/* ==========================================================================
   MATGE – Stylesheet
   Mobile-first. All colours, spacing and type sizes are custom properties
   in :root, so the look can be adjusted in one place.
   ========================================================================== */

/* Fonts (self-hosted, no external requests) ------------------------------ */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Design tokens ----------------------------------------------------------- */
:root {
  /* Colours: monochrome, one off-white and a few greys */
  --c-black: #0b0b0b;
  --c-ink: #141414;
  --c-surface: #1b1b1b;
  --c-line: #2e2e2e;
  --c-grey: #8a8a8a;
  --c-grey-light: #c9c9c6;
  --c-paper: #f4f3ef;
  --c-white: #ffffff;
  /* Accent: orange from the hero photo (stage light), one shade per background */
  --c-orange: #f08a2e;       /* on black: 7.85:1 */
  --c-orange-deep: #a9530a;  /* on paper: 4.81:1, white text on it: 5.35:1 */

  /* Default (dark) section */
  --bg: var(--c-black);
  --fg: var(--c-paper);
  --muted: var(--c-grey);
  --line: var(--c-line);
  --card: var(--c-surface);
  --accent: var(--c-orange);
  --accent-fg: var(--c-black);   /* text on accent */

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-xxl: clamp(2.5rem, 1.6rem + 4.5vw, 5rem);
  --lh-tight: 1.1;
  --lh-base: 1.6;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6rem;

  /* Layout */
  --container: 72rem;
  --gutter: var(--sp-4);
  --header-h: 4rem;
  --radius: 4px;
  --transition: 180ms ease;
}

@media (min-width: 48em) {
  :root {
    --gutter: var(--sp-6);
    --header-h: 4.5rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-paper);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--sp-4);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-xl);
}

h3 {
  font-size: var(--fs-lg);
}

p {
  margin: 0 0 var(--sp-4);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-paper);
  color: var(--c-black);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Layout helpers ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-8);
  background: var(--bg);
  color: var(--fg);
  scroll-margin-top: var(--header-h);
}

@media (min-width: 48em) {
  .section {
    padding-block: var(--sp-9);
  }
}

/* Light variant: inverts the palette for alternating sections */
.section--light {
  --bg: var(--c-paper);
  --fg: var(--c-ink);
  --muted: #5c5c5c;
  --line: #d6d5d0;
  --card: var(--c-white);
  --accent: var(--c-orange-deep);
  --accent-fg: var(--c-white);
}

.section__head {
  max-width: 40rem;
  margin-bottom: var(--sp-6);
}

.eyebrow {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  font-size: var(--fs-md);
  color: var(--muted);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 3rem;
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn:hover {
  background: transparent;
  color: var(--accent);
}

.btn--ghost {
  border-color: var(--fg);
  background: transparent;
  color: var(--fg);
}

.btn--ghost:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 11, 0.92);
  border-bottom: 1px solid var(--c-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  min-height: var(--header-h);
}

.brand img {
  display: block;
  width: auto;
  height: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-paper);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
}

.site-nav a {
  display: inline-block;
  padding-block: var(--sp-2);
  color: var(--c-grey-light);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--c-orange);
}

/* Collapsed mobile nav (only when JS is available) */
@media (max-width: 47.99em) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: calc(var(--sp-2) * -1);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--c-paper);
    cursor: pointer;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle__bars::before {
    top: -7px;
  }

  .nav-toggle__bars::after {
    top: 7px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
    padding-bottom: var(--sp-4);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
  }

  .js .site-nav a {
    display: block;
    padding-block: var(--sp-3);
    font-size: var(--fs-md);
    border-bottom: 1px solid var(--c-line);
  }
}

@media (min-width: 48em) {
  .site-nav ul {
    gap: var(--sp-6);
  }
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  padding-block: var(--sp-7);
  background: var(--c-black);
  color: var(--c-grey-light);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
}

.site-footer__inner {
  display: grid;
  gap: var(--sp-5);
}

.site-footer .brand {
  font-size: 1.125rem;
}

.site-footer .brand img {
  height: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

.footer-links a {
  color: var(--c-grey-light);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.copyright {
  margin: 0;
  color: var(--c-grey);
}

@media (min-width: 48em) {
  .site-footer__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-nav {
    justify-self: end;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

/* Legal pages ------------------------------------------------------------- */
.legal {
  max-width: 44rem;
}

.legal h1 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-6);
}

.legal h2 {
  margin-top: var(--sp-7);
  font-size: var(--fs-lg);
}

.legal h3 {
  margin-top: var(--sp-5);
  font-size: var(--fs-md);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: var(--sp-2);
}

.legal .note {
  padding: var(--sp-4);
  border-left: 3px solid var(--fg);
  background: var(--card);
}

/* Hero (LRV-123) ---------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--sp-7);
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  z-index: -2;
}

.hero__media img {
  object-fit: cover;
  object-position: 50% 30%;
}

/* Darken the photo so the white text stays readable */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 11, 11, 0.92) 0%, rgba(11, 11, 11, 0.55) 45%, rgba(11, 11, 11, 0.25) 100%);
}

.hero__content {
  max-width: var(--container);
}

.hero__title {
  margin-bottom: var(--sp-4);
}

.hero__name {
  display: block;
  font-size: var(--fs-xxl);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero__claim {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero__sub {
  max-width: 34rem;
  color: var(--c-grey-light);
  font-size: var(--fs-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

@media (min-width: 48em) {
  .hero {
    align-items: center;
  }
}

/* Über mich (LRV-123) ----------------------------------------------------- */
.about {
  display: grid;
  gap: var(--sp-7);
}

.trust-list {
  display: grid;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-6) !important;
}

.trust-list li {
  position: relative;
  padding-left: 2rem;
  font-weight: 600;
}

/* Check mark drawn with borders, so it works without an icon font */
.trust-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.3em;
  width: 0.5rem;
  height: 0.9rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.about__media {
  position: relative;
  padding-bottom: var(--sp-7);
}

.about__photo img {
  width: 100%;
  border-radius: var(--radius);
}

.about__photo--main {
  display: block;
  width: 80%;
}

.about__photo--secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  outline: 6px solid var(--bg);
  border-radius: var(--radius);
}

@media (min-width: 48em) {
  .about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--sp-8);
  }
}

/* Musik (LRV-124) --------------------------------------------------------- */
.music {
  display: grid;
  gap: var(--sp-8);
}

.music__heading {
  margin-bottom: var(--sp-5);
}

.mix {
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}

.mix__title {
  margin-bottom: var(--sp-1);
  font-size: var(--fs-md);
}

.mix__event {
  margin-bottom: var(--sp-4);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.music__more {
  margin-top: var(--sp-5);
}

@media (min-width: 64em) {
  .music {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }

  .music__reel {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-5));
  }
}

/* Click-to-load embeds (LRV-124, reused by LRV-126) ----------------------- */
.embed {
  width: 100%;
  max-width: 100%;
}

.embed__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 166px; /* = SoundCloud player height, avoids layout shift */
  padding: var(--sp-4) var(--sp-5);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.embed__service {
  margin: 0;
  font-weight: 700;
}

.embed__note,
.embed__empty {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.embed__empty {
  color: var(--fg);
  font-weight: 600;
}

/* Load controls only make sense with JS and a URL */
.embed__controls {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
}

.embed.is-ready .embed__controls {
  display: flex;
}

/* Neutral, so orange stays reserved for the booking calls to action */
.btn.embed__load {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.btn.embed__load:hover {
  background: transparent;
  color: var(--fg);
}

.embed__load {
  min-height: 2.5rem;
  padding: var(--sp-2) var(--sp-4);
}

.embed__remember {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  cursor: pointer;
}

.embed__remember input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: currentColor;
}

.embed__direct {
  font-size: var(--fs-sm);
}

.embed__frame iframe {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
}

.embed--soundcloud .embed__frame iframe {
  height: 166px;
}

.embed--instagram {
  max-width: 26rem;
}

/* Start height; embed.js resizes the frame to the height Instagram reports */
.embed--instagram .embed__frame iframe {
  height: 640px;
  background: var(--c-white);
}

.embed--map .embed__card {
  min-height: 18rem;
}

.embed--map .embed__frame iframe {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 18rem;
}

/* Referenzen (LRV-125) ---------------------------------------------------- */
.references__heading {
  margin-bottom: var(--sp-5);
}

.venues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--sp-4);
  margin-bottom: var(--sp-8) !important;
}

.venues li {
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.35;
}

@media (min-width: 48em) {
  .venues {
    gap: 0 var(--sp-6);
  }

  .venues li {
    padding-block: var(--sp-3);
    font-size: var(--fs-base);
  }
}

@media (min-width: 64em) {
  .venues {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Logo wall: every logo sits in an identical box and is rendered greyscale,
   so logos with different proportions and colours look uniform. */
.logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
}

.logo {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.logo:hover img {
  opacity: 1;
}

/* 15 logos: 3 columns (5 full rows) on phones, 5 columns (3 full rows) from tablet up */
@media (min-width: 48em) {
  .logos {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .logos {
    gap: var(--sp-3);
  }
}

/* Bewertungen (LRV-126) --------------------------------------------------- */
.reviews {
  display: grid;
  gap: var(--sp-7);
}

.reviews__list {
  display: grid;
  align-items: start;
  gap: var(--sp-4);
}

.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.stars {
  width: 6.25rem;
  height: 1.25rem;
  color: var(--accent);
}

.review__text {
  flex: 1;
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.5;
}

.review__text p:last-child {
  margin-bottom: 0;
}

.review__author {
  font-weight: 700;
}

.review__author span {
  color: var(--muted);
  font-weight: 400;
}

.reviews__all {
  margin-top: var(--sp-5);
}

@media (min-width: 48em) {
  .reviews__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .reviews {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }
}

/* Kontakt (LRV-127) ------------------------------------------------------- */
.contact {
  display: grid;
  gap: var(--sp-7);
}

@media (min-width: 64em) {
  .contact {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--sp-8);
  }
}

.booking-form {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 40em) {
  .booking-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4) var(--sp-5);
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: var(--sp-1);
  align-content: start;
  min-width: 0;
}

.field label {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.field__optional {
  color: var(--muted);
  font-weight: 400;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--sp-3);
  border: 1px solid #a9a8a3;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-ink);
  font: inherit;
  /* 16px+ prevents the iOS zoom on focus */
  font-size: max(1rem, 16px);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field--check label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-weight: 400;
  font-size: var(--fs-base);
  cursor: pointer;
}

.field--check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15em 0 0;
  accent-color: var(--c-ink);
}

/* Errors: monochrome, so marked with a thick border and a warning sign */
.field.has-error input:not([type="checkbox"]),
.field.has-error select,
.field.has-error textarea {
  border: 2px solid var(--c-ink);
  box-shadow: inset 4px 0 0 var(--c-ink);
}

.field__error {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.field__error::before {
  content: "⚠ ";
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-2);
}

.booking-form__hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.booking-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  padding: var(--sp-4) var(--sp-5);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-white);
  font-weight: 600;
}

.form-status:focus {
  outline: none;
}

.form-status.is-success {
  background: var(--c-ink);
  color: var(--c-paper);
}

/* Server-rendered pages of api/contact.php (no-JS fallback) */
.form-page {
  min-height: calc(100vh - var(--header-h));
}

.form-page__box {
  max-width: 44rem;
}

.form-page h1 {
  font-size: var(--fs-xl);
}

.form-page .booking-form {
  margin-top: var(--sp-6);
}
