/* RAUM 21 — shared stylesheet
   Rebuild of raum21-kunst.de. Values follow 00 Context/visual-direction.md. */

@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --bar: #f0f0f0;
  --text: #404043;
  --muted: #b7b7be;
  --accent: #f1a80a;
  --line: #d2d2d2;

  --font: Arial, Helvetica, sans-serif;
  --font-nav: "Raleway", Arial, sans-serif;

  --container: 1170px;
  --gutter: 20px;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}

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

a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  text-transform: uppercase;
}

h1 { font-size: 58px; font-weight: 700; line-height: 62px; margin-bottom: 60px; }
h2 { font-size: 48px; font-weight: 800; line-height: 48px; margin-bottom: 60px; }
h3 { font-size: 28px; font-weight: 700; line-height: 36px; margin-bottom: 30px; }
h4 { font-size: 20px; font-weight: 500; line-height: 27px; margin-bottom: 20px; }

p {
  margin: 0;
  padding-bottom: 25px;
}

ul {
  margin: 0;
  padding: 0;
}

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

[hidden] {
  display: none !important;
}

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

/* ---------- Header and menu ---------- */

.site-header {
  background: var(--white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 30px;
  min-height: 70px;
}

.wordmark {
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  line-height: 70px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.wordmark span {
  color: var(--text);
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--muted);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  list-style: none;
  font-family: var(--font-nav);
}

.menu a,
.footer-links a {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.menu a[aria-current="page"],
.footer-links a[aria-current="page"] {
  text-decoration-color: var(--text);
}

.menu a:hover,
.menu a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  padding-bottom: 17px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 15px 0 0;
  border-top: 1px solid var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 10px;
  color: var(--muted);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* ---------- Slider (home) ---------- */

.slider {
  position: relative;
  aspect-ratio: 2719 / 1140;
  max-height: 80vh;
  width: 100%;
  overflow: hidden;
  background: var(--white);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-info {
  position: absolute;
  top: 25%;
  left: 0;
  right: 0;
  color: var(--white);
}

.slide-title {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 110px;
  margin: 0;
  text-transform: uppercase;
  color: var(--white);
}

.slide-info p {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 3px;
  line-height: 32px;
  text-transform: uppercase;
  padding: 0;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 40px;
  line-height: 48px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.slider-nav:hover,
.slider-nav:focus-visible {
  opacity: 1;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ---------- Sections ---------- */

main {
  padding: 60px 0;
}

.home main {
  padding: 0;
}

.home-section {
  padding: 160px 0 120px;
}

.home-section + .home-section {
  padding-top: 40px;
}

.section-title::before {
  content: "";
  display: block;
  width: 135px;
  height: 2px;
  background: var(--line);
  margin-bottom: 50px;
}

.home-section h3 {
  font-size: 20px;
  line-height: 27px;
  font-weight: 500;
  margin-bottom: 20px;
}

.text {
  max-width: 780px;
}

/* On a .container, keep the full width so text lines up with the logo,
   and limit the line length of what's inside instead. */
.container.text {
  max-width: var(--container);
}

.container.text > * {
  max-width: 780px;
}

.page-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 48px;
}

/* ---------- Arbeiten ---------- */

.works {
  list-style: none;
}

.work {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding-bottom: 50px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--line);
}

.work:last-child {
  border-bottom: 0;
}

.work h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
  margin-bottom: 15px;
}

.work h2 a {
  color: var(--text);
}

.work h2 a:hover,
.work h2 a:focus-visible {
  color: var(--accent);
}

.work p {
  padding-bottom: 5px;
}

/* ---------- Ausstellungen ---------- */

.header-image {
  margin-bottom: 50px;
}

.exhibitions {
  list-style: none;
}

.exhibitions li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.exhibitions .year {
  display: inline-block;
  min-width: 60px;
  font-weight: 700;
}

/* ---------- Über mich ---------- */

.about {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 50px;
  align-items: start;
}

.bio {
  list-style: none;
  margin-bottom: 25px;
}

.bio li {
  padding-bottom: 10px;
}

/* ---------- Kontakt ---------- */

.contact-details p {
  padding-bottom: 0;
}

.contact-details {
  margin-bottom: 40px;
}

.button {
  display: inline-block;
  padding: 0 40px;
  line-height: 50px;
  border: 0;
  cursor: pointer;
  background: var(--text);
  color: var(--white);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 0.5s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--muted);
  color: var(--white);
}

/* ---------- Legal pages ---------- */

.legal h2 {
  font-size: 20px;
  line-height: 27px;
  font-weight: 700;
  margin: 50px 0 15px;
}

.legal h3 {
  font-size: 20px;
  line-height: 27px;
  font-weight: 500;
  margin: 30px 0 15px;
}

.legal h4 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  margin: 25px 0 10px;
}

/* Numbered points inside the legal text: tighter spacing */
.legal .item {
  padding-bottom: 8px;
  padding-left: 20px;
}

.legal .item.last {
  padding-bottom: 25px;
}

.legal ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.legal a {
  word-break: break-word;
}

/* ---------- Footer ---------- */

.footer-info {
  background: var(--text);
  color: var(--white);
  padding: 120px 0 100px;
}

.footer-info .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.footer-info h2 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  margin-bottom: 30px;
}

.footer-info p {
  padding-bottom: 15px;
}

.copyright {
  padding: 10px 0;
  text-align: center;
}

.copyright .wordmark {
  font-size: 26px;
  font-weight: 800;
  line-height: 60px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
  list-style: none;
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 300;
}

.copyright p {
  font-size: 12px;
  padding: 0 0 10px;
}

/* ---------- Mid-size screens ---------- */

@media (max-width: 979px) {
  h1 { font-size: 40px; line-height: 44px; }
  h2,
  .page-title { font-size: 34px; line-height: 38px; margin-bottom: 40px; }

  .slide-title { font-size: 36px; line-height: 44px; }
  .slide-info p { font-size: 18px; line-height: 22px; }

  .home-section { padding: 80px 0 60px; }

  .about { grid-template-columns: 1fr; }
  .about img { max-width: 360px; }

  .footer-info { padding: 80px 0 60px; }
  .footer-info .container { grid-template-columns: 1fr; }
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  .wordmark { font-size: 24px; line-height: 56px; }
  .site-header .container { padding-bottom: 14px; }
  .menu { gap: 0 20px; }

  .slider { aspect-ratio: 4 / 3; }
  .slide-info { top: 15%; }
  .slide-title { font-size: 24px; line-height: 32px; }
  .slide-info p { font-size: 14px; line-height: 18px; letter-spacing: 1px; }
  .slider-nav { font-size: 30px; }

  .work { grid-template-columns: 1fr; gap: 15px; }
  .work img { max-width: 320px; }
}

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

/* ---------- Contact reveal ---------- */

.reveal-result {
  padding: 0;
  line-height: 30px;
}

.reveal-result a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.reveal-result a:hover,
.reveal-result a:focus-visible {
  color: var(--accent);
}

.footer-info .button {
  background: var(--white);
  color: var(--text);
}

.footer-info .button:hover,
.footer-info .button:focus-visible {
  background: var(--muted);
  color: var(--white);
}

.footer-info .reveal-result a {
  color: var(--white);
}

.footer-info .reveal-result a:hover,
.footer-info .reveal-result a:focus-visible {
  color: var(--accent);
}
