/* ==========================================================================
   Rock'n'Roll Club Elvis e.V. – Stylesheet
   --------------------------------------------------------------------------
   1. Schrift
   2. Variablen (Farben, Abstände)
   3. Basis
   4. Layout (Container, Sektionen, Farbthemen)
   5. Komponenten (Buttons, Fließtext, Formulare)
   6. Kopfzeile & Navigation
   7. Fußzeile
   8. Sektionen der Startseite (Hero, Angebot, Galerie, Team, FAQ, Kontakt)
   9. Lightbox
   ========================================================================== */

/* 1. Schrift -------------------------------------------------------------- */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Variablen ------------------------------------------------------------ */

:root {
  /* Markenfarben */
  --color-crimson: #9f1239;
  --color-orange: #ff9a34;
  --color-grey: #c9c9c9;
  --color-dark: #2c2c2c;
  --color-white: #fff;
  --color-black: #000;
  --color-heading-dark: #0c0a09;
  --color-heading-light: #fcfcfc;
  --color-border: #d8d3d0;
  --color-muted: #766c66;

  /* Buttons */
  --button-bg: #ff8b16;
  --button-bg-hover: #d47000;
  --button-bg-active: #a85800;

  /* Layout */
  --container-width: 1400px;
  --page-gutter: 20px;
  --section-padding: 64px;
  --radius: 8px;

  --font-family: "Instrument Sans", system-ui, sans-serif;

  /* Erlaubt Übergänge zu "height: auto" (FAQ), wo vom Browser unterstützt. */
  interpolate-size: allow-keywords;
}

@media (max-width: 575.98px) {
  :root {
    --section-padding: 32px;
  }
}

/* 3. Basis ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 28px;
  color: var(--color-black);
  background: var(--color-white);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading-color, var(--color-heading-dark));
  font-feature-settings: "ss03", "cv02", "cv01", "cv08";
}

h1 {
  font-size: 64px;
}

h2 {
  font-size: 38.4px;
}

h3 {
  font-size: 28.8px;
}

h4 {
  font-size: 24px;
}

/* Optik einer anderen Überschriftenebene, z. B. <h2 class="h4"> – so bleibt
   die Gliederung korrekt, ohne das Aussehen zu verändern. */
.h3 {
  font-size: 28.8px;
}

.h4 {
  font-size: 24px;
}

@media (max-width: 576px) {
  h1 {
    font-size: 54.4px;
  }

  h2 {
    font-size: 32.64px;
  }
}

/* Seitentitel (h1) der Unterseiten haben die Größe normaler Sektionsüberschriften. */
h1.article__title,
h1.contact__title {
  font-size: 38.4px;
}

@media (max-width: 576px) {
  h1.article__title,
  h1.contact__title {
    font-size: 32.64px;
  }
}

p,
ul,
ol {
  margin: 0;
}

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

a {
  color: var(--link-color, inherit);
}

strong {
  font-weight: 700;
}

hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.2;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--color-white);
  color: var(--color-black);
  transform: translateY(-200%);
}

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

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

/* 4. Layout --------------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--page-gutter), var(--container-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-padding);
  background: var(--section-bg, transparent);
  color: var(--text-color, var(--color-black));
}

.section__title {
  margin-bottom: 38px;
}

.section__title--tight {
  margin-bottom: 32px;
}

.section__title--center {
  text-align: center;
}

/* Farbthemen: setzen nur Variablen, die von Text, Links, Buttons und
   Formularen in der Sektion verwendet werden. */

.theme-white {
  --section-bg: var(--color-white);
  --link-color: #a85800;
}

.theme-grey {
  --section-bg: var(--color-grey);
  --link-color: #7e4000;
}

.theme-orange {
  --section-bg: var(--color-orange);
  --button-shadow: rgb(0 0 0 / 0.44);
  --input-border: #ffc99c;
}

.theme-crimson {
  --section-bg: var(--color-crimson);
  --text-color: var(--color-white);
  --heading-color: var(--color-heading-light);
  --link-color: #ffc296;
  --button-shadow: transparent;
  --button-bg-hover: #ffa764;
  --button-bg-active: #ffc296;
  --input-border: #d97f88;
}

.theme-dark {
  --section-bg: var(--color-dark);
  --text-color: var(--color-white);
  --heading-color: var(--color-heading-light);
  --link-color: #ff8b16;
}

/* Artikel: optionales Bild (16:9), Überschrift, Fließtext */

.article {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.article__title {
  margin-bottom: 38px;
}

.media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5. Komponenten ---------------------------------------------------------- */

/* Buttons */

.button {
  display: inline-block;
  width: fit-content;
  padding: 9px 20px;
  border: 0;
  border-radius: 0;
  background: var(--button-bg);
  box-shadow: inset 0 0 0 1px var(--button-shadow, rgb(0 0 0 / 0.12));
  color: var(--color-black);
  font: 500 16px/22px var(--font-family);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.16s ease-out,
    box-shadow 0.16s ease-out;
}

.button:hover,
.button:focus-visible {
  background: var(--button-bg-hover);
}

.button:active {
  background: var(--button-bg-active);
  transition-duration: 0.08s;
}

.button--large {
  padding: 12px 24px;
  font-size: 20px;
  line-height: 28px;
}

/* Fließtext aus dem Redaktionsbereich (Absätze, Listen, Zwischenüberschriften) */

.prose {
  line-height: 1.5;
}

.prose > :is(p, ul, ol, h2, h3, h4) {
  margin-bottom: 1em;
}

.prose > * + :is(h2, h3, h4) {
  margin-top: 1em;
}

.prose :is(ul, ol) {
  padding-left: 1.4em;
}

.prose li {
  padding-left: 0.1em;
}

.prose a {
  text-decoration: underline;
}

.prose a:hover {
  text-decoration: none;
}

/* Social-Media-Icons */

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: block;
  transition: opacity 0.16s;
}

.social-links a:hover {
  opacity: 0.7;
}

.social-links img {
  width: 24px;
  height: 24px;
}

/* Formulare mit „schwebenden“ Beschriftungen */

.form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  height: 56px;
  padding: 24px 12px 6px;
  border: 1px solid var(--input-border, var(--color-border));
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-black);
  font: 16px/1.2 var(--font-family);
}

.field textarea {
  height: 100px;
  min-height: 100px;
  padding-top: 28px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: transparent;
}

.field label {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  padding: 14px 13px;
  overflow: hidden;
  color: var(--color-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform-origin: 0 0;
  transition:
    transform 0.1s ease-in-out,
    opacity 0.1s ease-in-out;
}

.field :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label {
  opacity: 0.7;
  transform: scale(0.8) translate(3px, -11px);
}

.form .button {
  margin-top: 6px;
}

.form__status:empty {
  display: none;
}

/* Spamschutz-Feld: außerhalb des sichtbaren Bereichs, nur für Bots „sichtbar“. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 6. Kopfzeile & Navigation ----------------------------------------------- */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--color-white);
  box-shadow: inset 0 -1px 0 rgb(216 211 208 / 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 24px;
}

@media (max-width: 575.98px) {
  .site-header__inner {
    width: 100%;
  }
}

.site-header__logo {
  flex-shrink: 1;
  min-width: 0;
  margin-block: 8px;
  transition: opacity 0.16s;
}

.site-header__logo:hover {
  opacity: 0.7;
}

.site-header__logo img {
  width: auto;
  max-height: 32px;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  margin: 0 -8px 0 16px;
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle img {
  width: 24px;
  height: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__links {
  display: flex;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  display: block;
  padding: 6.5px 13px;
  color: var(--color-black);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.16s;
}

.site-nav__links a:hover {
  opacity: 0.7;
}

.site-nav .social-links {
  margin: 0 31px 0 11px;
}

/* Mobile Navigation: Aufklappmenü unter der Kopfzeile. Die Desktop-Navigation
   braucht mit Logo ca. 1230px Platz, darunter wird das Menü eingeklappt. */
@media (max-width: 1319.98px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: min(420px, 100%);
    max-height: calc(100dvh - 80px);
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    box-shadow:
      0 9px 18px rgb(0 0 0 / 0.28),
      0 0 1px rgb(0 0 0 / 0.3);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__links {
    flex-direction: column;
  }

  .site-nav__links a {
    padding-inline: 0;
  }

  .site-nav .social-links {
    gap: 24px;
    margin: 0;
    padding-block: 12px;
    border-block: 1px solid rgb(0 0 0 / 0.2);
  }

  .site-nav .button {
    width: 100%;
  }
}

/* Ohne JavaScript lässt sich das Menü nicht aufklappen – dann wird es
   einfach dauerhaft unter der Kopfzeile angezeigt. */
@media (max-width: 1319.98px) and (scripting: none) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    width: 100%;
    padding: 12px 0 0;
    border: 0;
    box-shadow: none;
  }
}

/* 7. Fußzeile ------------------------------------------------------------- */

.site-footer {
  padding-block: var(--section-padding);
  background: var(--color-white);
  box-shadow: inset 0 1px 0 var(--color-border);
  --link-color: #a85800;
}

.site-footer__logo {
  display: block;
  width: fit-content;
  margin-bottom: 48px;
  transition: opacity 0.16s;
}

.site-footer__logo:hover {
  opacity: 0.7;
}

.site-footer__logo img {
  width: auto;
  max-height: 32px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  line-height: 1.5;
}

.site-footer__legal {
  display: flex;
  gap: 24px;
  padding: 0;
  list-style: none;
}

.site-footer__legal a:hover {
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .site-footer__logo {
    margin-bottom: 24px;
  }
}

/* 8. Sektionen der Startseite --------------------------------------------- */

/* Hero */

.hero {
  --link-color: #7e4000;
  --button-shadow: rgb(0 0 0 / 0.34);
  background:
    linear-gradient(rgb(201 201 201 / 0.69), rgb(201 201 201 / 0.69)),
    url("../images/hero.webp") center / cover no-repeat;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 640px;
  margin-inline: auto;
}

.hero__title {
  margin-bottom: 0;
}

.hero__text {
  margin: 32px 0 20px;
  font-size: 20px;
  line-height: 1.5;
}

.hero__text p + p {
  margin-top: 20px;
}

.hero .button {
  margin-block: 12px 16px;
}

@media (min-width: 992px) {
  .hero__content {
    width: calc(100% * 8 / 12);
  }
}

@media (max-width: 768px) {
  .hero {
    background-image: linear-gradient(rgb(201 201 201 / 0.69), rgb(201 201 201 / 0.69)), url("../images/hero-klein.webp");
  }

  .hero__content {
    min-height: 420px;
  }
}

/* Unser Angebot */

.services {
  display: grid;
  gap: 40px;
  padding: 0;
  list-style: none;
}

@media (min-width: 992px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.service__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 20px;
}

/* Galerie */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0;
  list-style: none;
}

.gallery li:first-child {
  grid-column: span 2;
}

@media (min-width: 992px) {
  /* Reihen mit 2, 3 und 2 Bildern */
  .gallery {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery li {
    grid-column: span 2;
  }

  .gallery li:is(:nth-child(1), :nth-child(2), :nth-child(6), :nth-child(7)) {
    grid-column: span 3;
  }
}

.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: background-color 0.16s;
}

.gallery a:hover::after {
  background: rgb(0 0 0 / 0.15);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Vorstand & Trainer */

.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 40px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.member {
  width: 100%;
  padding-bottom: 40px;
}

.team--2 .member {
  padding-bottom: 0;
}

@media (min-width: 992px) {
  .team--3 .member {
    width: calc((100% - 2 * 40px) / 3);
  }

  .team--2 .member {
    width: calc((100% - 40px) / 2);
  }
}

.member__photo {
  width: 220px;
  height: 220px;
  margin: 32px auto 8px;
  border-radius: 50%;
  object-fit: cover;
}

.member__name {
  margin: 24px 0 16px;
}

.member__role {
  margin-bottom: 20px;
  color: var(--color-orange);
  font-size: 20px;
  line-height: 1.5;
}

.member__text {
  padding-inline: 6.5px;
}

.member__text p {
  margin-bottom: 16px;
}

.member__text a {
  text-decoration: underline;
}

.member__text a:hover {
  text-decoration: none;
}

.member__social {
  display: flex;
  justify-content: center;
  margin: 8px 0 32px;
}

.member__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-shadow: inset 0 0 0 1.5px rgb(0 0 0 / 0.2);
  transition: background-color 0.16s;
}

.member__social a:hover {
  background: rgb(0 0 0 / 0.2);
  box-shadow: none;
}

.member__social img {
  width: 20px;
  height: 20px;
}

@media (max-width: 576px) {
  .member__photo {
    width: 200px;
    height: 200px;
  }
}

/* Häufige Fragen */

.faq__item {
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 24px;
  color: var(--heading-color);
  font-size: 24px;
  line-height: 1.2;
  font-feature-settings: "ss03", "cv02", "cv01", "cv08";
  list-style: none;
  cursor: pointer;
  transition: background-color 0.16s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  background: rgb(255 255 255 / 0.06);
}

.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: url("../icons/chevron-down.svg") center / contain no-repeat;
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  transform: rotate(-180deg);
}

.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.3s ease-out,
    content-visibility 0.3s allow-discrete;
}

.faq__item[open]::details-content {
  block-size: auto;
}

.faq__answer {
  padding: 0 48px 16px 24px;
}

/* Kontakt & Aufnahmeantrag */

.contact__title {
  margin-bottom: 16px;
  text-align: center;
}

.contact__intro {
  margin-bottom: 24px;
  text-align: center;
}

.contact__intro p {
  margin-bottom: 13px;
}

.contact__grid {
  display: grid;
  gap: 32px 40px;
  padding-bottom: 39px;
}

@media (min-width: 992px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__grid--single {
    grid-template-columns: min(681px, 100%);
    justify-content: center;
  }

  .contact__map {
    margin-top: 32px;
  }
}

/* Karte: wird erst nach Klick geladen (Datenschutz) */

.map {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  min-height: 358px;
  padding: 32px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.25);
}

.map__note {
  font-size: 14px;
  line-height: 1.5;
}

.map iframe {
  width: 100%;
  height: 358px;
  border: 0;
}

.map.is-loaded {
  padding: 0;
  overflow: hidden;
}

/* 9. Lightbox (Galerie-Großansicht) --------------------------------------- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.9);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__image {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 96px);
  object-fit: contain;
}

.lightbox__button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: var(--color-white);
  font: 28px/1 var(--font-family);
  cursor: pointer;
}

.lightbox__button:hover {
  background: rgb(255 255 255 / 0.25);
}

.lightbox__button--close {
  top: 16px;
  right: 16px;
}

.lightbox__button--prev {
  left: 16px;
}

.lightbox__button--next {
  right: 16px;
}
