/* ============================
   Base / Reset
   ============================ */

:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: #050405;
  background-color: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0 auto;
  min-width: 320px;
  max-width: 1440px;
  min-height: 100vh;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #050405;
  color: #ffffff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Links */
a {
  color: #050405;
  font-size: 16px;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #666666;
}

a:focus-visible {
  outline: 2px solid #666666;
  outline-offset: 2px;
}

/* ============================
   Header
   ============================ */

header {
  padding: 48px 32px;
  max-width: 1440px;
  margin: 0 auto;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.header-left {
  flex: 1;
}

/* Make the logo area clickable without changing layout */
.header-logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.header-logo-link:hover .site-title,
.header-logo-link:hover .site-tagline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-title {
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 4px;
}

.site-tagline {
  font-size: 20px;
  font-style: italic;
  line-height: 1.2;
  color: #050405;
  max-width: 360px;
}

.header-nav {
  display: flex;
  gap: 24px;
  font-size: 20px;
  font-style: italic;
}

.header-nav a {
  font-size: 20px;
  color: #050405;
}

.header-nav a:hover {
  color: #666666;
}

/* ============================
   Layout
   ============================ */

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

/* ============================
   Hero
   ============================ */

.hero {
  padding: 80px 0 120px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}

.pre-hero {
  font-size: 16px;
  font-style: italic;
  color: #666666;
  margin: 80px 0 -16px 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 32px;
}

.hero-headline {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #050405;
  color: #f2f2f2;
  padding: 8px 32px;
  border-radius: 9999px;
  font-size: 20px;
  font-weight: 300;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  min-height: 44px;
  width: fit-content;
  margin-top: 16px;
  margin-left: -8px;
  border: #050405 1px solid;
}

.button:hover {
  opacity: 0.85;
  text-decoration: none;
}

.button:focus-visible {
  outline: 2px solid #050405;
  outline-offset: 2px;
}

.under-button {
  font-size: 16px;
  color: #666666;
  margin-top: -24px;
}

.click-to-copy {
  font-size: 16px;
  color: #666666;
  margin-top: -16px;
}

.b-container {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: left;
  align-items: flex-end;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 8px;
}

.manifest {
  font-size: 24px;
  line-height: 1.5;
  width: 700px;
}

.manifest p {
  margin-bottom: 40px;
}

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

.tech-rider-link {
  font-size: 16px;
  color: #666666;
  text-decoration: underline;
}

.tech-rider-link:hover {
  color: #050405;
}

/* ============================
   Schedule / Events (Homepage)
   ============================ */

.schedule {
  padding: 80px 0;
}

.schedule-heading {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 48px;
}

.year-divider {
  font-size: 16px;
  color: #666666;
  margin: 48px 0 32px;
}

.event-card {
  margin-bottom: 64px;
  padding: 32px 0;
}

.event-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

.event-title-link {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.event-title-link:hover {
  text-decoration: none;
}

.event-subtitle {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
}

.event-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 570px;
}

.event-footer {
  display: flex;
  justify-content: start;
  align-items: baseline;
  gap: 16px;
}

.event-meta {
  font-size: 16px;
  color: #666666;
}

.event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #050405;
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  text-decoration: none;
  border: 1px #050405 solid;
  cursor: pointer;
  transition: opacity 0.2s ease;
  min-height: 44px;
  width: fit-content;
  margin-top: 16px;
  margin-left: -4px;
}

/* Improve hover state for event buttons (contrast) */
.event-button:hover {
  background-color: #050405;
  color: #ffffff;
  text-decoration: none;
}

/* --- Homepage media preview (thumbnail -> click -> iframe) --- */

.event-media {
  margin: 8px 0 16px;
  max-width: 570px; /* matches .event-description width */
}

.event-media-title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-style: italic;
  color: #666666;
}

/* Fixed 16:9 frame to avoid layout shifts */
.event-media-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #f2f2f2;
  overflow: hidden;
}

.event-media-frame > iframe,
.event-media-frame > button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Thumbnail button */
.event-video-preview {
  padding: 0;
  cursor: pointer;
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.event-video-preview--empty {
  background: #f2f2f2;
}

/* Centered play button */
.event-video-preview::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%); /* slight right shift to visually center the triangle */
  width: 0;
  height: 0;
  border-left: 14px solid rgba(255, 255, 255, 0.95);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.event-video-preview::before {
  content: "";
  width: 54px;
  height: 54px;
  border-radius: 999px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

/* Bandcamp compact player */
.event-bandcamp {
  width: 100%;
  height: 42px;
  border: 0;
  background-color: #ffffff;
}

/* ============================
   Quote
   ============================ */

.quote {
  margin-right: 250px;
  padding: 80px 0;
  display: flex;
  justify-content: flex-end;
  font-size: 20px;
  margin-bottom: 160px;
}

blockquote {
  max-width: 327px;
  text-align: left;
  font-size: 20px;
  line-height: 1.6;
}

blockquote p {
  margin-bottom: 16px;
}

blockquote p:last-of-type {
  margin-bottom: 0px;
}

cite {
  font-size: 16px;
  font-style: normal;
  color: #666666;
}

/* ============================
   Footer
   ============================ */

footer {
  padding: 64px 32px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

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

.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 16px;
  margin: 0 auto;
}

.copyright {
  font-size: 16px;
  color: #666666;
  margin: 0 auto;
}

/* Footer tweak for legal links */
.copyright a {
  margin-left: 8px;
  font-style: italic;
  font-size: 14px;
}

/* ============================
   Project detail page
   ============================ */

.project-header {
  padding: 80px 0 48px;
  max-width: 720px;
}

.project-body {
  max-width: 650px;
}

.project-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
}

.project-meta {
  font-size: 16px;
  font-style: italic;
  color: #666666;
  margin-bottom: 24px;
}

.project-subtitle {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
}

.project-description {
  font-size: 16px;
  line-height: 1.6;
  max-width: 650px;
}

.project-media {
  padding: 0 0 64px;
}

.project-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #f2f2f2;
}

.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-bandcamp {
  padding-bottom: 64px;
}

.project-bandcamp-title {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 16px;
}

/* Keep the Bandcamp player compact on project pages */
.project-bandcamp iframe {
  width: 100%;
  height: 42px;
  border: 0;
  background-color: #ffffff;
}

.project-gallery {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
}

.project-photo {
  flex: 1;
}

.project-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: #f2f2f2;
}

.project-caption {
  font-size: 14px;
  font-style: italic;
  color: #666666;
  text-align: center;
  margin: 0 0 80px;
}

/* ============================
   Have an Idea? section
   ============================ */

.idea-section {
  padding: 80px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: 80px;
  row-gap: 24px;
  border-top: 1px solid #f2f2f2;
}

.idea-heading {
  display: flex;
  align-items: flex-start;
}

.idea-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.idea-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.idea-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
}

.idea-email {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.idea-email .click-to-copy {
  color: #666666;
  margin-left: 4px;
}

.idea-email:hover .click-to-copy {
  text-decoration: underline;
}

/* ============================
   Similar Projects
   ============================ */

.similar-projects {
  padding: 64px 0 96px;
  border-top: 1px solid #f2f2f2;
}

.similar-heading {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
}

.similar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.similar-card {
  flex: 1 1 0;
  min-width: 260px;
  max-width: 440px;
}

.similar-title {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 4px;
}

.similar-meta {
  font-size: 16px;
  font-style: italic;
  color: #666666;
  margin-bottom: 16px;
}

.similar-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.similar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
}

/* ============================
   Legal pages (Impressum / Privacy)
   ============================ */

.legal-page {
  padding-top: 80px;
  padding-bottom: 80px;
}

.legal-header {
  margin-bottom: 48px;
}

.legal-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
}

.legal-title-secondary {
  font-weight: 400;
}

.legal-intro {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.legal-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  row-gap: 48px;
  margin-bottom: 80px;
}

.legal-column {
  font-size: 16px;
  line-height: 1.6;
}

.legal-section + .legal-section {
  margin-top: 32px;
}

.legal-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.legal-contact {
  margin-top: 16px;
}

/* ============================
   Cookie banner
   ============================ */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  z-index: 9999;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.cookie-banner button {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 4px 14px;
  cursor: pointer;
  font-size: 14px;
}

.cookie-banner button:hover {
  background: #ffffff;
  color: #000000;
}

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

@media (max-width: 1024px) {
  .project-header {
    padding-top: 64px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-headline {
    font-size: 36px;
  }

  .manifest {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 32px 24px;
  }

  .header-container {
    flex-direction: column;
  }

  main {
    padding: 0 24px;
  }

  .hero {
    padding: 48px 0 80px;
  }

  .hero-headline {
    font-size: 32px;
  }

  .manifest {
    font-size: 20px;
    max-width: 300px;
  }

  .button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    min-height: 44px;
    width: fit-content;
    margin-top: 16px;
    margin-left: -8px;
    border: #050405 1px solid;
    background-color: #050405;
  }

  .b-container {
    display: block;
  }

  #copyBooking {
    background-color: #050405;
  }

  .tech-rider-link {
    display: block;
    font-size: 16px;
    color: #666666;
    padding-top: 24px;
  }

  .event-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote {
    justify-content: flex-start;
    margin-right: 0;
  }

  blockquote {
    text-align: left;
  }

  footer {
    padding: 48px 24px 32px;
  }

  .footer-nav {
    flex-wrap: wrap;
  }

  .project-gallery {
    flex-direction: column;
  }

  .idea-section {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .idea-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .similar-list {
    flex-direction: column;
  }

  .legal-columns {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .legal-page {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 24px 16px;
  }

  main {
    padding: 0 16px;
  }

  .hero {
    padding: 32px 0 64px;
  }

  .hero-headline {
    font-size: 28px;
  }

  .tech-rider-link {
    display: block;
    font-size: 16px;
    color: #666666;
    padding-top: 24px;
  }

  .schedule {
    padding: 64px 0;
  }

  .quote {
    padding: 64px 0;
    margin-right: 0 !important;
  }

  footer {
    padding: 40px 16px 24px;
  }

  .project-header {
    padding-top: 48px;
  }

  .project-caption {
    margin-bottom: 64px;
  }

  .idea-section {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .similar-projects {
    padding-top: 48px;
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
