/* =========================================================
   The Bluesanovas – Website
   Nachbau des bisherigen Shopify-Looks (Theme "Canopy"),
   ohne Shop, ohne Tracking, Schriften lokal eingebunden.
   ========================================================= */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif";
  src: url("../fonts/noto-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben & Grundwerte ---------- */
:root {
  --dark: #1b1b1b;
  --light: #dfdfd8;
  --white: #ffffff;
  --cream: #f9f4ec;
  --tint: rgba(27, 27, 27, 0.24);
  --container: 1296px;
  --gutter: 20px;
  --font-body: "Jost", sans-serif;
  --font-nav: "Instrument Sans", sans-serif;
  --font-heading: "Noto Serif", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--dark);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0 0 0.7em;
}

p {
  margin: 0 0 1em;
}

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

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 1000;
  background: var(--dark);
  color: var(--white);
  padding: 8px 14px;
}
.skip-link:focus {
  top: 8px;
}

/* ---------- Laufschrift / Ankündigungsleiste ---------- */
.announcement {
  background: var(--dark);
  color: var(--light);
  font-size: 15.2px;
  line-height: 22.4px;
  padding: 7.6px 0;
}
.announcement__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.announcement__text {
  text-align: center;
  margin: 0;
}
.announcement .social-links {
  justify-self: start;
}
.announcement .social-links svg {
  width: 17px;
  height: 17px;
  fill: var(--light);
}

/* ---------- Social-Icons ---------- */
.social-links {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-links a {
  display: inline-flex;
  opacity: 1;
  transition: opacity 0.2s;
}
.social-links a:hover {
  opacity: 0.7;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.toolbar {
  background: var(--light);
}
.toolbar__inner {
  height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo {
  grid-column: 2;
  display: block;
  width: 50px;
  height: 50px;
}
.logo img {
  width: 50px;
  height: 50px;
}
.menu-toggle {
  display: none;
  grid-column: 1;
  justify-self: start;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: -8px;
  cursor: pointer;
  color: var(--dark);
}
.menu-toggle svg {
  width: 26px;
  height: 26px;
  display: block;
}

.main-nav {
  background: var(--white);
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.main-nav a {
  display: block;
  font-family: var(--font-nav);
  font-size: 16px;
  line-height: 17.6px;
  padding: 17.6px 16px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- Inhalt ---------- */
main {
  flex: 1 0 auto;
}

.section {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Bild mit Abdunklung (wie "has-tint" im alten Theme) */
.tinted {
  position: relative;
  overflow: hidden;
}
.tinted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tint);
  pointer-events: none;
}
.tinted img {
  width: 100%;
}

.hero img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top center;
}

.strip {
  height: 250px;
}
.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.text-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.text-block h1,
.text-block h2 {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 16.8px;
}
.text-block .lead {
  font-size: 19px;
  line-height: 30.4px;
  margin: 0;
}
.awards p {
  line-height: 25.6px;
  margin: 0 0 16px;
}
.awards p:last-child {
  margin-bottom: 0;
}

/* ---------- Kontakt ---------- */
.contact-card {
  max-width: 436px;
  margin: 0 auto;
  text-align: center;
}
.contact-card img {
  width: 284px;
  margin: 0 auto 24px;
}
.contact-card h1 {
  font-size: 26px;
  line-height: 36px;
  margin: 0 0 10px;
}
.contact-card p {
  line-height: 25.6px;
}
.contact-card a:hover {
  text-decoration: underline;
}

/* ---------- Media ---------- */
.media-page {
  max-width: 1209px;
  margin: 22px auto 32px;
  padding: 0 var(--gutter);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.gallery__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gallery a {
  display: block;
  overflow: hidden;
  background: var(--dark);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
}
.gallery a:hover img {
  transform: scale(1.03);
}
.gallery .landscape {
  aspect-ratio: 3 / 2;
}
.gallery .portrait {
  aspect-ratio: 4 / 5;
}

.videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}

/* YouTube: erst nach Einwilligung laden */
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  color: var(--white);
  font: inherit;
  text-align: left;
}
.yt__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.yt__poster:hover img {
  opacity: 0.7;
}
.yt__title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 18px 30px;
  font-size: 17px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), transparent);
}
.yt__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
}
.yt__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 26px 18px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  pointer-events: none;
}
.yt__note a {
  pointer-events: auto;
}
.yt.is-loaded .yt__note {
  display: none;
}
.yt__note a {
  text-decoration: underline;
}

/* ---------- Lightbox für Fotos ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 15, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 16px;
}
.lightbox__close {
  top: 10px;
  right: 10px;
}
.lightbox__prev {
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__next {
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Rechtstexte ---------- */
.policy {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.policy h1 {
  font-size: 32px;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 22px;
}
.policy h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  margin: 2em 0 0.6em;
}
.policy h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin: 1.5em 0 0.5em;
}
.policy p,
.policy li {
  line-height: 1.6;
}
.policy ul {
  padding-left: 1.3em;
}
.policy a {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 48px;
}
.back-to-top {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.back-to-top a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.footer__social {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 64px;
}
.footer__social svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}
.footer__nav ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 25px;
}
.footer__nav a,
.footer__nav button {
  color: var(--white);
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.footer__nav a:hover,
.footer__nav button:hover {
  text-decoration: underline;
}
.footer__copy {
  font-size: 14.4px;
}

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.12);
  padding: 18px 24px;
  font-size: 15px;
  line-height: 1.5;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.cookie-banner__text {
  margin: 0;
  max-width: 820px;
}
.cookie-banner__text a {
  text-decoration: underline;
}
.cookie-banner__buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--dark);
  border-radius: 3px;
  cursor: pointer;
  background: var(--white);
  color: var(--dark);
  white-space: nowrap;
}
.btn--dark {
  background: var(--dark);
  color: var(--white);
}
.btn:hover {
  opacity: 0.85;
}
.cookie-settings {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.cookie-settings[hidden] {
  display: none;
}
.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.cookie-option input {
  margin-top: 5px;
  width: 16px;
  height: 16px;
  accent-color: var(--dark);
}
.cookie-option small {
  display: block;
  color: #555;
}

/* ---------- Tablet / Mobil ---------- */
@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .announcement {
    font-size: 14px;
  }
  .announcement__inner {
    grid-template-columns: 1fr;
  }
  .announcement .social-links,
  .announcement__inner > span {
    display: none;
  }

  .toolbar__inner {
    height: 64px;
  }
  .toolbar {
    border-bottom: 1px solid rgba(27, 27, 27, 0.08);
  }
  .logo,
  .logo img {
    width: 42px;
    height: 42px;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
  }
  .main-nav.is-open {
    display: block;
    border-bottom: 1px solid rgba(27, 27, 27, 0.08);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }
  .main-nav a {
    padding: 14px var(--gutter);
    font-size: 18px;
  }
  .main-nav a::after {
    display: none;
  }

  .section {
    margin-top: 32px;
    margin-bottom: 32px;
  }
  .text-block .lead {
    font-size: 17px;
    line-height: 28px;
  }
  .strip {
    height: 150px;
  }

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

  .footer__social {
    justify-content: center;
    margin-bottom: 40px;
  }
  .footer__nav ul {
    justify-content: center;
  }
  .footer__copy {
    text-align: center;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__buttons {
    flex-direction: column-reverse;
  }
  .btn {
    width: 100%;
    padding: 12px 18px;
  }
}

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