/*
Theme Name: Rheinstrasse 14
Theme URI: https://rheinstrasse14.com
Author: Rheinstrasse 14
Description: Minimalistisches, dreisprachiges Onepage-Theme für Rheinstrasse 14 in Köln.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rheinstrasse14
*/

:root {
  --ink: #090909;
  --paper: #f4f4f1;
  --line: rgba(9, 9, 9, 0.22);
  --muted: #656565;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --display: clamp(4.2rem, 12.5vw, 12.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 999; width: auto; height: auto; padding: .65rem 1rem; clip: auto; background: #fff; color: #000; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5rem;
  padding: 0 var(--pad);
  color: #fff;
}
.brand { justify-self: start; text-decoration: none; font-weight: 700; letter-spacing: -.04em; font-size: 1.05rem; mix-blend-mode: difference; }
.brand-number { margin-left: .18em; font-size: 1em; vertical-align: baseline; }
.language-switcher { display: flex; gap: .25rem; justify-self: center; color: #fff; }
.language-switcher button {
  border: 0; padding: .25rem .35rem; background: transparent; color: #fff; cursor: pointer;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; opacity: .82;
  text-shadow: 0 1px 5px rgba(0,0,0,.7);
}
.language-switcher button[aria-pressed="true"] { opacity: 1; border-bottom: 2px solid #fff; }
.menu-toggle {
  justify-self: end; width: 3rem; height: 3rem; padding: .75rem; border: 0; background: transparent; color: #fff; cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.75));
}
.menu-toggle span:not(.screen-reader-text) { display: block; width: 100%; height: 1px; margin: .36rem 0; background: #fff; transition: transform .3s ease, opacity .3s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(.37rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-.37rem) rotate(-45deg); }

.menu-panel {
  position: fixed; z-index: 40; inset: 0; display: grid; align-content: end; padding: 7rem var(--pad) var(--pad);
  background: var(--ink); color: #fff; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility .35s;
}
.menu-panel.is-open { visibility: visible; opacity: 1; }
.menu-panel nav { display: grid; gap: .2rem; }
.menu-panel a { width: fit-content; text-decoration: none; font-size: clamp(2.5rem, 8vw, 7rem); letter-spacing: -.06em; line-height: .95; }
.menu-meta { display: flex; justify-content: space-between; gap: 2rem; margin-top: clamp(3rem, 8vh, 7rem); padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.3); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: end; overflow: hidden; background: #111; color: #fff; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; filter: grayscale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.08) 58%, rgba(0,0,0,.18) 100%); }
.hero-copy { position: relative; z-index: 1; width: 100%; padding: 9rem var(--pad) clamp(2rem, 5vw, 4.5rem); }
.eyebrow { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: #fff; }
.hero h1 {
  display: flex;
  align-items: baseline;
  max-width: none;
  margin: 0;
  font-size: clamp(3.1rem, 10.5vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -.085em;
  line-height: .9;
  white-space: nowrap;
}
.hero h1 span { display: inline; margin-left: .16em; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-top: clamp(3rem, 10vh, 8rem); }
.hero-intro { max-width: 28rem; margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.45rem); }
.scroll-cue { text-decoration: none; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; writing-mode: vertical-rl; }

.section { padding: clamp(6rem, 12vw, 11rem) var(--pad); border-top: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: minmax(10rem, .65fr) minmax(0, 1.8fr); gap: clamp(2.5rem, 8vw, 9rem); }
.section-index { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.section h2 { max-width: 11ch; margin: -.1em 0 clamp(2rem, 5vw, 4rem); font-size: clamp(3rem, 7.6vw, 7.5rem); font-weight: 400; letter-spacing: -.07em; line-height: .9; }
.lead { max-width: 36rem; margin: 0; font-size: clamp(1.2rem, 2.3vw, 2rem); line-height: 1.25; letter-spacing: -.025em; }
.fact-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin-top: clamp(4rem, 8vw, 7rem); background: var(--line); border: 1px solid var(--line); }
.fact { min-height: 12rem; padding: 1.5rem; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.fact-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.fact strong { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 400; letter-spacing: -.045em; }

.address-section { background: var(--ink); color: #fff; }
.address-section .section-grid { min-height: 70vh; align-items: end; }
.address { margin: 0; font-style: normal; font-size: clamp(3.2rem, 9vw, 9rem); line-height: .84; letter-spacing: -.075em; }
.address span { display: block; color: #8d8d8d; }

.contact { min-height: 75vh; display: flex; flex-direction: column; justify-content: space-between; }
.contact-top { display: flex; justify-content: space-between; gap: 2rem; }
.contact h2 { margin: 0; font-size: clamp(3.4rem, 10vw, 10rem); font-weight: 400; line-height: .82; letter-spacing: -.08em; }
.contact-link { display: inline-block; margin-top: clamp(4rem, 10vw, 9rem); text-decoration: none; font-size: clamp(1.25rem, 3.4vw, 3.5rem); letter-spacing: -.035em; border-bottom: 1px solid currentColor; }
.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: rgba(9,9,9,.78);
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, background-color .2s ease;
}
.back-to-top:hover,
.back-to-top:focus-visible { background: #090909; transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.25rem var(--pad); border-top: 1px solid var(--line); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }

[data-lang-content] { display: none; }
html[data-lang="de"] [data-lang-content="de"],
html[data-lang="en"] [data-lang-content="en"],
html[data-lang="fr"] [data-lang-content="fr"] { display: block; }

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: .4rem;
    min-height: 4.25rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .brand { min-width: 0; font-size: .98rem; white-space: nowrap; }
  .language-switcher {
    position: static;
    justify-self: end;
    gap: .15rem;
    z-index: auto;
    color: #fff;
  }
  .language-switcher button {
    padding: .2rem .18rem;
    font-size: .66rem;
    letter-spacing: .12em;
  }
  .menu-toggle { width: 2.75rem; height: 2.75rem; padding: .65rem; }
  .menu-panel {
    padding: 6.5rem max(1rem, env(safe-area-inset-right)) max(5.5rem, calc(env(safe-area-inset-bottom) + 4rem)) max(1rem, env(safe-area-inset-left));
  }
  .menu-panel a { font-size: clamp(2.35rem, 12vw, 4.5rem); overflow-wrap: anywhere; }
  .menu-meta { gap: 1rem; font-size: .7rem; }
  .hero-copy { padding: 7rem max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
  .hero h1 { font-size: clamp(2.45rem, 11.5vw, 5.5rem); line-height: 1; letter-spacing: -.075em; }
  .hero-bottom { align-items: flex-end; gap: 1rem; }
  .hero-intro { max-width: 17rem; }
  .scroll-cue { flex: 0 0 auto; }
  .section { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .section-grid { grid-template-columns: 1fr; gap: 2rem; }
  .fact-row { grid-template-columns: 1fr; }
  .fact { min-height: 9rem; }
  .address-section .section-grid { min-height: 55vh; }
  .address { font-size: clamp(2.55rem, 13vw, 5rem); overflow-wrap: anywhere; }
  .contact-top { display: block; }
  .contact-link { max-width: 100%; overflow-wrap: anywhere; }
  .back-to-top {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 2.8rem;
    height: 2.8rem;
  }
  .site-footer { padding-bottom: 5rem; flex-direction: column; gap: .5rem; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: clamp(2.15rem, 11.2vw, 3.2rem); }
  .hero-intro { max-width: 14rem; font-size: 1rem; }
  .menu-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
