/* Plauer Project — Stylesheet
   Design-System siehe DESIGN.MD */

/* EK Baumer Headline (Erkin Karamemet) — nur im Schnitt "Bold" lizenziert,
   deshalb ausschließlich für Headlines/Display-Text eingesetzt. Es liegt
   aktuell keine separate Fließtext-Schrift aus der Vorlage vor (siehe
   CLAUDE.MD) — bis diese nachgereicht wird, dient Georgia als Fließtext-Font. */
@font-face {
  font-family: "PlauerHeadline";
  src:
    url("../assets/fonts/EKBaumerHeadline-Bold.woff2") format("woff2"),
    url("../assets/fonts/EKBaumerHeadline-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-cream: #e7e0da;
  --color-cream-light: #f3efe8;
  --color-blue: #b7c6dc;
  --color-green: #6b7355;
  --color-ink: #171614;
  --color-orange: #e8541f;
  --color-white: #ffffff;

  --font-headline: "PlauerHeadline", "Arial Black", sans-serif;
  --font-body: Georgia, "Times New Roman", serif;

  --container-width: 1280px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --section-padding: clamp(3rem, 8vw, 6rem);

  --radius-card: 18px;
  --radius-pill: 999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.2vw + 0.75rem, 1.375rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* safety net: several sections use deliberate bleed effects (negative
     margins, >100% widths) that are contained per breakpoint above, but a
     stray one shouldn't be able to introduce page-wide horizontal scroll */
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
}

h2 {
  font-size: clamp(2.75rem, 3.8vw + 1.2rem, 4.25rem);
}

h3 {
  font-size: clamp(1.4rem, 1.1vw + 1rem, 1.75rem);
}

p {
  margin: 0 0 1.4rem;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utilities ---------- */
.sr-only {
  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 {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--color-ink);
  color: var(--color-cream-light);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
}

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

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

.divider {
  border: none;
  border-top: 1px solid var(--color-ink);
  width: calc(100% + var(--gutter));
  margin: 7rem calc(-1 * var(--gutter)) 2rem 0;
  opacity: 0.85;
}

.divider--light {
  border-top-color: currentColor;
  opacity: 0.35;
}

.arrow-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.arrow-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
}

.arrow-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 0.95em;
  height: 0.7em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='2' y1='12' x2='20' y2='12'/%3E%3Cpolyline points='13 5 20 12 13 19'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='2' y1='12' x2='20' y2='12'/%3E%3Cpolyline points='13 5 20 12 13 19'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-cream-light);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid rgba(23, 22, 20, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-cream-light);
  text-decoration: none;
  border: 2px solid var(--color-ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: var(--color-ink);
}

.btn:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-orange);
  color: var(--color-ink);
  font-family: var(--font-headline);
  font-weight: 700;
  border-radius: 50%;
  width: 9rem;
  height: 9rem;
  transform: rotate(-8deg);
  line-height: 1.1;
  font-size: 1.05rem;
}

/* ---------- Logo ---------- */
.logo-mark {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1.25rem, 3vw, 2.5rem);
  /* keep clear of notches/status bars on phones in landscape (needs
     viewport-fit=cover in the viewport meta tag to have any effect) */
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-left: max(clamp(1.25rem, 3vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 3vw, 2.5rem), env(safe-area-inset-right));
  background: rgba(23, 22, 20, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(243, 239, 232, 0.12);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 2rem);
}

.site-nav a {
  color: var(--color-cream-light);
  text-shadow: 0 1px 6px rgba(23, 22, 20, 0.5);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0.9;
  /* padding widens the tap target beyond the text's own line-height without
     changing the visual gap (negative margin cancels it back out) */
  padding: 0.6rem 0;
  margin: -0.6rem 0;
  transition: opacity 0.2s ease;
}

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

.site-header-cta {
  flex-shrink: 0;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
}

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

.btn--orange:hover,
.btn--orange:focus-visible {
  background: transparent;
  color: var(--color-orange);
}

/* Offset anchor targets so the fixed header doesn't cover the section start */
#ueber-uns,
#lage,
#programm,
#anmelden,
#team {
  scroll-margin-top: 5.5rem;
}

/* ---------- Section shell ---------- */
.section {
  position: relative;
}

.section--cream {
  background: var(--color-cream);
  color: var(--color-ink);
}

.section--blue {
  background: var(--color-blue);
  color: var(--color-ink);
}

.section--dark {
  background: var(--color-ink);
  color: var(--color-cream-light);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--color-ink);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--gutter);
  padding-bottom: clamp(2rem, 6vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-content .tagline {
  color: var(--color-cream-light);
  font-size: 1.15rem;
  margin: 0;
}

.hero-content .social {
  color: var(--color-cream-light);
  font-size: 0.95rem;
  text-align: right;
  line-height: 1.4;
}

.hero-content .social a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Below 900px, min-height:100svh + object-fit:cover on a wide landscape image
   crops most of its width (incl. the "Plauer Project" wordmark, which sits at
   the image's far left) — match the section's aspect ratio to the image's so
   cover has nothing left to crop. */
@media (max-width: 899.98px) {
  .hero {
    min-height: auto;
    aspect-ratio: 2200 / 1238;
  }
}

/* ---------- Split layout (2 & 4 & 5 & 9) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    min-height: 100svh;
  }

  .split--divider {
    border-left: 1px solid var(--color-ink);
  }
}

.split-text {
  padding: var(--section-padding) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-text--top {
  justify-content: flex-start;
  padding-top: clamp(3rem, 7vw, 5rem);
}

.split-text--spread {
  justify-content: space-between;
}

.heading-bleed {
  position: relative;
  z-index: 1;
  width: 135%;
  max-width: none;
}

/* 135% width is a deliberate desktop bleed effect — on narrow single-column
   mobile layouts it pushes past the viewport edge and causes horizontal
   scrolling, so keep it contained below 900px. */
@media (max-width: 899.98px) {
  .heading-bleed {
    width: 100%;
  }
}

.split-text p {
  max-width: 56ch;
}

.split-media {
  position: relative;
  min-height: 320px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* The signup photo carries a baked-in "Limitiert auf 15 Plätze" badge and
   plauer-project.de pill near its edges — the fixed 320px min-height crops
   them out on narrow single-column mobile layouts. Match its aspect ratio
   instead so cover has nothing left to crop. */
@media (max-width: 899.98px) {
  #anmelden .split-media {
    min-height: 0;
    aspect-ratio: 2200 / 2422;
  }
}

/* ---------- Location / Map section ---------- */
.map-section {
  position: relative;
  background: var(--color-blue);
}

.map-bg {
  width: 100%;
  height: auto;
}

/* ---------- Card sections (4 & 5) ---------- */
.cards-media {
  display: flex;
  align-items: center;
  padding: 1.5rem clamp(1rem, 2vw, 1.5rem);
}

.cards-media img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: initial;
}

@media (min-width: 900px) {
  .cards-media {
    padding: 1.5rem 1rem 1.5rem 0;
  }
}

.cta-big {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-size: clamp(2.75rem, 3.8vw + 1.2rem, 4.25rem);
  margin-top: 2rem;
}

/* ---------- Topics full-bleed (6) ---------- */
.topics {
  position: relative;
}

.topics-bg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2200 / 1238;
}

/* ---------- Programme / Schedule (7) ---------- */
.programme {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .programme {
    grid-template-columns: 1fr 1fr;
  }
}

.programme-col {
  padding: var(--section-padding) var(--gutter);
}

.programme-col.section--blue {
  border-left: 1px solid var(--color-ink);
}

.schedule-day {
  font-size: clamp(2.2rem, 2.5vw + 1rem, 3.25rem);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.schedule-block {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.schedule-kicker {
  /* sideways-lr has no Chrome/Safari/Edge support (Firefox-only) — vertical-rl
     rotated 180° reads bottom-to-top the same way and works everywhere. */
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.9rem;
  line-height: 1;
  margin-top: 0.55em;
  opacity: 1;
  white-space: nowrap;
}

.schedule-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-block li {
  margin-bottom: 0.3rem;
}

.programme-facts p {
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

.programme-facts h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: normal;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0;
}

.programme-facts .fact-group {
  margin-bottom: 1.75rem;
}

/* ---------- Signup (8) ---------- */
.signup-text h2 {
  margin-bottom: 2rem;
}

.signup-text .price {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 1.6vw + 1.1rem, 2.25rem);
  margin: 0 0 3rem;
}

.signup-text .signup-emphasis {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 1.6vw + 1.1rem, 2.25rem);
  max-width: none;
  margin-bottom: 0;
}

.signup-text .footnote {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.4rem;
}

.signup-text .signup-cta {
  margin-top: 3.5rem;
}

.signup-text .signup-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.signup-text .signup-cta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- Team (9) ---------- */
.team-intro {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 1.8vw + 1rem, 2.25rem);
  max-width: none;
}

.team-photos {
  position: relative;
  padding: var(--section-padding) var(--gutter);
  --team-photo-w: clamp(15rem, 23vw, 21rem);
  --team-secondary-top: calc(var(--section-padding) + var(--team-photo-w) * 4 / 3 * 0.62);
  min-height: calc(var(--team-secondary-top) + var(--team-photo-w) * 4 / 3 + var(--section-padding) + 8rem);
}

.team-photo {
  position: absolute;
  margin: 0;
  width: var(--team-photo-w);
}

.team-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 30px rgba(23, 22, 20, 0.18);
}

.team-photo--primary {
  top: var(--section-padding);
  left: var(--gutter);
}

.team-photo--secondary {
  top: var(--team-secondary-top);
  right: var(--gutter);
}

.team-caption {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 0.4vw + 0.85rem, 1.15rem);
}

.team-caption strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
}

/* The absolute-positioned overlap layout needs the wide desktop column to
   avoid the two photos colliding — below 900px (.split is single-column),
   stack them normally instead. */
@media (max-width: 899.98px) {
  .team-photos {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 var(--gutter) var(--section-padding);
    min-height: 0;
  }

  .team-photo {
    position: static;
    width: min(100%, 20rem);
  }

  .team-photo--secondary {
    align-self: flex-end;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-cream-light);
  padding: 2.5rem var(--gutter);
}

.footer-inner {
  max-width: var(--container-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: currentColor;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: var(--section-padding) 0;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
