/* =========================================================
   KOTTIWORX – Prototype A: "Split-Screen Layout"
   Styles specific to index.html only.
   Relies on CSS variables & base classes from base.css —
   does not redefine them.
   ========================================================= */

/* #landing itself keeps the standard .view padding-top (nav offset)
   from base.css; everything below flows inside it. */

/* ---------- Logo: image-only (no duplicate text label), larger size ---------- */
/* Taller nav bar to give the logo more room (overrides base.css --nav-height,
   which also drives the .view padding-top offset, so both stay in sync). */

:root {
  --nav-height: 120px;
}

.site-nav .logo-link img {
  height: 110px;
  width: auto;
}

/* ---------- Nav "/ Coworking" · "\ Event space" slash accents ---------- */

.nav-slash {
  color: var(--color-orange);
  font-weight: 800;
  margin-right: 4px;
}

/* The tagline is the landing page's main heading (h1) – keep the former paragraph look */
#landing h1.tagline {
  font-family: var(--font-body);
}

#landing .tagline {
  text-align: center;
  padding: 20px 24px 4px;
  color: var(--color-grey);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- Split hero ---------- */

.split-hero {
  position: relative;
  display: flex;
  min-height: 640px;
  overflow: hidden;
}

.split-half {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  padding: 56px 48px;
  position: relative;
  overflow: hidden; /* enlarged hover photos never cross into the other half */
}

.split-content {
  max-width: 460px;
  width: 100%;
}

.split-half h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

/* Day / Coworking half */

.split-day {
  background: var(--color-grey-light);
  color: var(--color-black);
  justify-content: flex-end;
}

.split-day .split-content {
  margin-left: auto;
}

/* Night / Event space half */

.split-night {
  background: var(--color-black);
  color: var(--color-white);
  justify-content: flex-start;
}

.split-night p {
  color: rgba(255, 255, 255, 0.78);
}

.split-night .eyebrow {
  color: var(--color-orange);
}

/* Orange diagonal divider between the two halves */

.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 10px;
  margin-left: -5px;
  background: linear-gradient(var(--color-orange), var(--color-orange-dark));
  transform: skewX(-6deg);
  z-index: 2;
  pointer-events: none;
}

/* Teaser images inside each half */

.split-teasers {
  display: flex;
  gap: 12px;
  margin: 24px 0 28px;
}

.split-teasers img {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  aspect-ratio: 3 / 2; /* same shape as the former 2-photo layout */
  object-fit: cover;
  border-radius: var(--radius);
}

/* Day-lit photos standing in for evening/event mood.
   placeholder – replace with real night-mode photography */
.night-photo {
  filter: brightness(0.55) saturate(1.1);
}

/* Solid orange-on-black CTA for the night half */

.btn-night {
  background: var(--color-orange);
  color: var(--color-black);
  border-color: var(--color-orange);
}

.btn-night:hover {
  background: var(--color-orange-dark);
}

/* ---------- Event space gallery: darken day photos to read as evening ---------- */

.dark .gallery img {
  filter: brightness(0.55) saturate(1.1);
}

/* Real evening photos are already dark – shown as they are */
.dark .gallery img.real-night {
  filter: none;
}

/* ---------- Photo hover effect (landing teasers + all galleries) ---------- */
/* Photos lift slightly with a soft shadow; evening-filtered photos also
   brighten to their natural look. Only on devices that support hover. */

.split-teasers img,
.gallery img {
  position: relative;
  transition: transform 0.4s ease, box-shadow var(--transition-fast), filter var(--transition-fast);
}

@media (hover: hover) {
  .split-teasers img:hover,
  .gallery img:hover {
    transform: scale(3); /* grows to 300% of its size */
    z-index: 3;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  /* Keep enlarged teaser photos inside their own half of the split screen:
     the outer photos grow inward, the middle one grows from its center.
     At 3x the photo is never wider than its column, and .split-half clips
     anything that could still reach over. */
  .split-teasers img:first-child:hover {
    transform-origin: left center;
  }

  .split-teasers img:last-child:hover {
    transform-origin: right center;
  }

  .night-photo:hover,
  .dark .gallery img:hover {
    filter: brightness(1) saturate(1.1);
  }
}

/* ---------- About teaser (full width, below split) ---------- */

.about-teaser {
  background: var(--color-white);
  text-align: center;
  padding: 72px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about-teaser h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.about-teaser p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--color-grey);
  font-size: 1.05rem;
}

/* ---------- Google Maps: static image (offline-friendly) + link (landing "About" teaser + About sub-tab) ---------- */

.map-embed {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 8px auto 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.map-embed a {
  display: block;
  width: 100%;
  height: 100%;
}

.map-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.map-embed a:hover img {
  transform: scale(1.03);
}

/* Landing page: space between the (clickable) map and the "more about" button */
.about-teaser .map-embed {
  margin-bottom: 28px;
}

.map-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-orange-dark);
  text-decoration: underline;
}

.map-link:hover {
  color: var(--color-orange);
}

/* About page: intro paragraph centred, at a comfortable reading width */
.about-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1em;
}

/* About intro: the "/" and "\" are orange links to the landing page
   (same bold orange as the slashes in the menu) */
a.slash-home {
  color: var(--color-orange);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

a.slash-home:hover,
a.slash-home:focus-visible {
  color: var(--color-orange-dark);
}

/* ---------- About sub-tab: two-column location layout (address left, map right) ---------- */

.about-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 24px 0 40px;
}

.about-location-text p {
  margin: 0 0 8px;
}

/* Brand line above the address (same look as the footer brand line) */
.about-brand .footer-x {
  color: var(--color-orange);
}

.about-brand strong {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-black);
}

/* About page: map with "how to find us..." and the directions underneath */
/* keep the address text centred next to the map (as before), not next to map + directions */
.about-location {
  align-items: start;
}

.about-location-text {
  aspect-ratio: 16 / 9; /* same height as the map in the other column */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.about-map-col .event-map-title {
  margin-top: 16px;
}

.about-map-col .event-directions {
  margin-bottom: 0;
}

.about-location .map-embed {
  margin: 0;
  max-width: none;
}

.about-location-text .btn {
  margin-top: 8px; /* orange "open in google maps..." button below the address */
}

@media (max-width: 720px) {
  .about-location {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-location-text {
    aspect-ratio: auto;
  }
}

/* ---------- Upcoming events page: one card per event (flyer + details) ---------- */

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin: 24px 0 48px;
}

.event-flyer {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.event-info p {
  margin: 0 0 10px;
}

.event-date {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-orange);
}

.event-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 10px;
}

.event-subtitle {
  font-weight: 700;
  font-size: 1.15rem;
}

.event-volume,
.dark .event-volume {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-orange);
}

/* Map at the bottom of the upcoming page (same map as on the landing page) */
.event-map {
  margin: 0 auto 12px;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Night-life look for the map on the upcoming page only: dark-grey streets,
   colours kept roughly as they are (invert + hue-rotate). Landing/About maps stay light. */
.event-map img {
  filter: invert(0.92) hue-rotate(180deg) saturate(0.85) brightness(0.95) contrast(0.95);
}

/* KOTTIWORX address card (upper left) + orange pin on ALL maps.
   The card covers the address box that is part of the map image; sizes scale with the map width.
   Light maps (landing teaser, About page): white card. Dark map (upcoming page): see .event-map below. */
.map-embed {
  container-type: inline-size;
}

.map-embed .map-address {
  position: absolute;
  left: 1.4%;
  top: 0;
  width: 47%;
  height: 22.4%;
  box-sizing: border-box;
  padding: 1.6cqw 2.4cqw;
  background: #ffffff;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3cqw;
  color: #5f6368;
  font-size: 1.95cqw;
  line-height: 1.3;
  text-align: left;
  pointer-events: none;
}

.map-embed .map-address-brand {
  color: #202124;
  white-space: nowrap;
}

.map-embed .map-address strong {
  color: #000000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5cqw;
  letter-spacing: 0.03em;
}

.map-embed .map-address .footer-x {
  color: var(--color-orange);
}

/* Orange KOTTIWORX pin; its tip sits on Adalbertstr. 4 */
.map-embed .map-pin {
  position: absolute;
  left: 50%;
  top: 50.4%;
  width: 34px;
  height: 46px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 0 8px rgba(255, 128, 0, 0.45)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

/* Dark (night-life) version on the upcoming page */
.event-map .map-address {
  background: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  color: #c8c8c8;
}

.event-map .map-address-brand,
.event-map .map-address strong {
  color: #ffffff;
}

.event-map .map-pin {
  filter: drop-shadow(0 0 10px rgba(255, 128, 0, 0.55)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

/* Small headline below the map */
.event-map-title {
  text-align: center;
  font-size: 1.15rem;
  margin: 0 0 12px;
}

/* Directions text below "how to find us..." */
.event-directions {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.6;
}

/* KOTTIWORX is always written in capitals with an orange X, on every page:
   write it as KOTTIWOR<span class="footer-x">X</span> in the HTML. */
.footer-x {
  color: var(--color-orange);
}

/* Exception: on the orange buttons an orange X would be invisible, so there it is white */
.btn-solid .footer-x {
  color: var(--color-white);
}

/* The orange X links to the landing page (set up in tabs.js) */
.kwx-home-x {
  cursor: pointer;
}
.map-embed .map-address .kwx-home-x {
  pointer-events: auto;
}

.event-artists {
  font-weight: 700;
}

/* "...yummy snacks & drinks by legendary Café Mori..." – a bit below the artists */
.event-catering {
  margin-top: 18px !important;
}

/* Name links on the event card (e.g. "Café Mori" → Instagram):
   orange text, no underline – the colour alone shows it is a link */
a.quiet-link,
a.quiet-link:visited {
  color: var(--color-orange);
  text-decoration: none;
  font: inherit;
  transition: color var(--transition-fast);
}

a.quiet-link:hover {
  color: var(--color-orange-dark);
  text-decoration: none;
}

/* The orange heart in the directions on the upcoming page leads to the landing page */
a.heart-home {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

a.heart-home:hover,
a.heart-home:focus-visible {
  transform: scale(1.3);
}

/* "entry 10€" with more breathing room below the line-up */
.event-info .event-entry {
  margin-top: 28px;
}

/* vol. 1 + artists on the left, QR code to this page on the right */
.event-lineup {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.event-qr {
  flex: 0 0 auto;
  display: block;
  padding: 6px;
  background: var(--color-grey-light);
  border-radius: var(--radius);
  line-height: 0;
}

.event-qr img {
  width: 88px;
  height: 88px;
  display: block;
}

.event-meta {
  color: var(--color-grey-light);
  opacity: 0.8;
  margin-top: 28px !important; /* more space between the artists and the address */
}

@media (max-width: 720px) {
  .event-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Footer: address/contact line + Impressum link ---------- */

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.7rem;
}

.footer-inner a {
  text-decoration: underline;
}

/* Brand line on top of the footer (same footer on every page) */
.footer-inner .footer-brand {
  font-size: 0.85rem;
}

/* The brand line is a button that leads back to the landing page,
   but looks exactly like plain text. */
.footer-brand-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.85rem;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.footer-brand .footer-x {
  color: var(--color-orange); /* the "X" in the same orange as buttons and nav accents */
}

.footer-brand strong {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-black);
}

.footer-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.65rem;
  color: var(--color-grey);
  text-decoration: underline;
  padding: 0;
}

.footer-link:hover {
  color: var(--color-orange);
}

/* ---------- Responsive: stack the split on narrow viewports ---------- */

@media (max-width: 800px) {
  .split-hero {
    flex-direction: column;
    min-height: 0;
  }

  .split-half {
    padding: 48px 24px;
    justify-content: center !important;
  }

  .split-day .split-content,
  .split-night .split-content {
    margin-left: 0;
    max-width: none;
  }

  .split-divider {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 8px;
    margin-left: 0;
    margin-top: -4px;
    transform: skewY(-2deg);
  }
}

/* ---------- Mobile navigation (hamburger menu) ---------- */
/* Hidden on desktop; base.css already shrinks .nav-link padding/font
   below 720px, but below 760px here we switch to a full dropdown panel
   instead, since logo + 4 links no longer fit comfortably in one row. */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .site-nav .logo-link img {
    height: 79px;
    width: auto;
  }

  :root {
    --nav-height: 90px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  body.nav-open .site-nav nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* Enlarged photos near the viewport edge must never cause sideways scrolling */
body {
  overflow-x: clip;
}

/* Coworking AND Event space pages: gallery photos grow to 150% of their size
   on hover (scale 1.5). Only the landing page teasers keep the larger effect
   above (scale 3). */
@media (hover: hover) {
  #coworking .gallery img:hover,
  #event-space .gallery img:hover {
    transform: scale(1.5);
  }
}

/* Upcoming page: "...get a ticket !..." button between the event and the map */
.event-ticket {
  text-align: center;
  margin: 0 0 48px;
}

/* Upcoming page: note above the ticket button */
.event-ticket .event-notice {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
  line-height: 1.6;
}

/* Upcoming page: the event flyer grows to 150% on hover (scale 1.5) – ONLY on
   computers with a mouse. Phones and tablets get exactly the normal flyer, untouched.
   It grows from its left edge towards the text, so it never leaves the screen. */
@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
  .event-flyer {
    position: relative;
    transition: transform 0.4s ease, box-shadow var(--transition-fast);
    transform-origin: left center;
  }

  .event-flyer:hover {
    transform: scale(1.5);
    z-index: 3;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }

  /* The enlarged flyer reaches 25% of its height (120px) below its normal edge,
     so the "...get a ticket !..." button sits lower and stays fully visible. */
  .event-ticket {
    margin-top: 180px;
  }
}

/* All bullet points (Coworking, Event space, About) end with "..."
   Try-out: delete this rule to remove the dots again. */
.feature-list li::after {
  content: "...";
}

/* Call-to-action line at the bottom of the Coworking and Event space pages:
   text and button with generous horizontal space; wraps cleanly on phones. */
.cta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

/* Menu texts in lower case (desktop menu and mobile dropdown).
   Try-out: delete this rule to get the capitals back. */
.nav-link {
  text-transform: lowercase;
}

/* ---------- Accessibility ---------- */
/* "skip to content" link: only visible while it has keyboard focus */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  background: var(--color-orange);
  color: var(--color-black);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* headings/main get focus from the script, but should not show a ring for mouse users */
h1[tabindex="-1"]:focus,
main[tabindex="-1"]:focus {
  outline: none;
}
