/* ═══════════════════════════════════════════
   Simon Reif — Portfolio
   Colors: Beige #e9e3cf · Black #1a1a1a · White #fff
   Font: IBM Plex Sans (self-hosted)
   ═══════════════════════════════════════════ */


/* ── Self-hosted IBM Plex Sans (DSGVO-konform) ── */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/IBMPlexSans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/IBMPlexSans-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;
}

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

html, body {
  overflow-x: hidden;
}

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3 {
  font-weight: 400;
}


/* ═══════════════════════════════════════════
   LEFT PANEL — Fixed sidebar + landscape image
   ═══════════════════════════════════════════ */

.left-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 42vw;
  height: 100vh;
  display: flex;
  z-index: 10;
}

.left-bar {
  width: 3rem;
  flex-shrink: 0;
  background: #e9e3cf;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-block: 2.5rem;
  border-right: 1px solid rgba(26, 26, 26, 0.06);
}

.left-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #1a1a1a;
}

.left-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.left-studio {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.2s;
  border: 1px solid transparent;
  border-radius: 2em;
  padding: 1em 0.4em;
  margin: -1em -0.4em;
}

.left-studio:hover {
  opacity: 1;
}

.left-image {
  flex: 1;
  background: #2a2f2a;
  overflow: hidden;
}

.left-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}


/* ═══════════════════════════════════════════
   RIGHT PANEL — Scrollable content
   ═══════════════════════════════════════════ */

.right-panel {
  margin-left: 42vw;
  width: 58vw;
  min-height: 100vh;
  background: #f7f5f0;
  font-size: 1.075rem;
}

.right-panel header,
.right-panel main,
.right-panel footer {
  padding-inline: clamp(2.5rem, 5vw, 5rem);
}


/* ── Header ── */

header {
  padding-block: 2rem;
  display: flex;
  justify-content: flex-end;
}

header nav {
  display: flex;
  gap: 0.5rem;
}

.lang-switch {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switch a {
  text-decoration: none;
}

.lang-active {
  font-weight: 500;
}

.lang-sep {
  opacity: 0.3;
}

.header-cta {
  font-size: 0.8125rem;
  text-decoration: none;
  border: 1px solid #1a1a1a;
  border-radius: 2em;
  padding: 0.45em 1.25em;
  transition: background 0.2s, color 0.2s;
}

.header-cta:hover {
  background: #1a1a1a;
  color: #fff;
}


/* ── Hero ── */

.hero {
  padding-block: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4rem);
}

.hero-tagline {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.4;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight: 300;
  line-height: 1.35;
  max-width: 22em;
  letter-spacing: -0.01em;
}

.hero h1 strong {
  font-weight: 600;
}



/* ── Section label ── */

.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.4;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}


/* ── About ── */

.about {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-portrait img {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
}

.about-text {
  max-width: 36em;
}

.about-text p {
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  line-height: 1.8;
}

.about-text p + p {
  margin-top: 1.25rem;
}

.about-cta {
  margin-top: 1.75rem;
}


/* ── Services ── */

.services {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.services-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 64rem) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

.services-grid h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.services-grid p {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.6;
}

.services-tags-intro {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: clamp(3rem, 5vw, 4rem);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  font-size: 0.9375rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.services-tags-group {
}

.services-tags-group details {
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.services-tags-group details:first-child {
  border-top: none;
}

.services-tags-group summary {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.45;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}

.services-tags-group summary::-webkit-details-marker {
  display: none;
}

.services-tags-group summary::after {
  content: "+";
  float: right;
  font-size: 0.875rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.services-tags-group details[open] summary::after {
  content: "−";
}

.services-tags-group details[open] .services-tags {
  padding-bottom: 1rem;
}

.services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-tags li {
  font-size: 0.8125rem;
  padding: 0.4em 1em;
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 2em;
  opacity: 0.5;
}


/* ── Work ── */

.work {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.work-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  gap: 1.5rem;
}

.work-list li:first-child {
  border-top: 1px solid rgba(26, 26, 26, 0.06);
}

.work-list li span {
  font-size: 0.9375rem;
  font-weight: 400;
}

.work-list li span:last-child:not(:first-child) {
  opacity: 0.4;
  text-align: right;
  flex-shrink: 0;
}


/* ── Logos ── */

.logos {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  justify-items: center;
}

.logos-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
}

.logos-grid img {
  width: auto;
  height: auto;
  max-width: 7.5rem;
  max-height: 2.25rem;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%) brightness(0);
}

/* Per-logo size overrides to match visual weight */
.logos-grid li:nth-child(2) img { max-width: 2.5rem; }   /* Telekom */
.logos-grid li:nth-child(4) img { max-width: 9rem; }     /* Deutsche Kinemathek */
.logos-grid li:nth-child(6) img { max-width: 4rem; }     /* OTTO */
.logos-grid li:nth-child(7) img { max-width: 9rem; }     /* Steinway */
.logos-grid li:nth-child(8) img { max-width: 3.5rem; }   /* NDR */
.logos-grid li:nth-child(9) img { max-width: 10rem; max-height: 5rem; } /* IBM iX */


/* ── Contact ── */

.contact {
  padding-block: clamp(5rem, 10vw, 10rem);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.contact h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.contact-location {
  font-size: 0.8125rem;
  opacity: 0.35;
}


/* ── Cases Fade ── */

.cases-fade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-bottom: 2.5rem;
  overflow: hidden;
  border-radius: 6px;
}

.case-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.case-slide.active {
  opacity: 0.35;
}


/* ── Network ── */

.network {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.network-text {
  font-size: 0.75rem;
  line-height: 1.8;
  opacity: 0.4;
}

.network-text a {
  text-decoration: underline;
}

.membership-logos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.membership-logos img {
  height: 3rem;
  width: auto;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.membership-logos a:hover img {
  opacity: 1;
}


/* ── Footer ── */

footer {
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  padding-block: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.55;
}

footer a {
  transition: opacity 0.15s;
}

footer a:hover {
  opacity: 1;
}


/* ── Impressum ── */

.impressum-body {
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.impressum-body p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 36em;
}

.impressum-body h2 {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.4;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.impressum-body h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}


/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile (<768px)
   ═══════════════════════════════════════════ */

@media (max-width: 48rem) {

  .left-panel {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 18rem;
  }

  .left-bar {
    width: 2.5rem;
    padding-block: 1.5rem;
  }

  .right-panel {
    margin-left: 0;
    width: 100%;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-portrait img {
    width: 6rem;
    height: 6rem;
  }

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

  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.25rem;
  }

  .logos-grid li {
    height: 2.5rem;
  }

  .logos-grid li:nth-child(n) img {
    max-width: 100%;
    max-height: 1.5rem;
  }

  .work-list li {
    gap: 0.75rem;
  }

  .work-list li span {
    font-size: 0.75rem;
  }
}
