/* ============================================================
   STUDIO 0-2 Kunstverein e.V.
   Farben und Typografie hier zentral anpassen.
   ============================================================ */

:root {
  --bg: #d9d8d3; /* warmes, ruhiges Grau */
  --bg-alt: #cfd6cd; /* gedämpftes Grün-Grau */
  --paper: #f3f0ea; /* warmes Off-White */
  --ink: #2d2b2a;
  --muted: #66605d;
  --accent: #7a2438; /* Bordeaux */
  --accent-deep: #5c1b2a; /* dunkles Bordeaux */
  --green: #66775e; /* gedämpftes Grün */
  --green-deep: #4e5d48;
  --green-soft: #b9c4b3;
  --accent-soft: #c9a7af;
  --line: #66775e;
  --shadow: 0 18px 50px rgba(45, 43, 42, 0.08);
  --radius: 22px;
  --header-h: 84px;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.container.narrow {
  width: min(760px, calc(100% - 2.4rem));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(217, 216, 211, 0.96);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--green-deep);
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 42px;
  height: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.2rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 3px solid var(--green);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
}

/* Hero */

.hero {
  padding: 1.5rem 1.2rem 3.5rem;
}

.ornament-frame {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  min-height: 78vh;
  display: grid;
  box-shadow: var(--shadow);
}

.ornament-frame::before,
.ornament-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  pointer-events: none;
  z-index: 3;
}

.ornament-frame::after {
  inset: 18px;
  opacity: 0.55;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--green-soft);
}

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

.hero-media img[data-missing="true"] {
  display: none;
}

.hero-media:has(img[data-missing="true"]) .hero-overlay {
  background: rgba(45, 43, 42, 0.28);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 43, 42, 0.22);
}

.hero-content {
  position: relative;
  z-index: 4;
  align-self: end;
  padding: clamp(2rem, 7vw, 5.5rem);
  color: #f8fbfa;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--green-deep);
  margin-bottom: 0.9rem;
}

.hero-content .eyebrow {
  color: #f1e9e4;
}

.icon-inline svg,
.section-icon svg,
.goal-icon svg,
.board-icon svg,
.contact-icon svg {
  width: 100%;
  height: 100%;
}

.icon-inline {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.hero-name {
  display: block;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  letter-spacing: 0.1em;
  font-weight: 500;
  white-space: nowrap;
}

.hero-legal {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-style: italic;
  letter-spacing: 0.04em;
}

.hero-lead {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.hero-intro {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
  font-family: inherit;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fffaf7;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.membership-panel .btn-ghost,
.legal-close {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

/* Sections */

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-alt {
  background: var(--bg-alt);
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
}

.section-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.section-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.8rem;
  color: var(--green-deep);
  display: block;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.section-intro,
.prose {
  color: var(--muted);
}

.section-intro {
  max-width: 38rem;
  margin: 1rem auto 0;
}

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

.note {
  margin-top: 1.4rem;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
}

.goal-grid,
.project-grid,

.goal-grid {
  grid-template-columns: repeat(4, 1fr);
}

.goal-card,
.project-card,
.contact-card,
.membership-panel {
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.goal-card {
  padding: 1.5rem 1.4rem 1.6rem;
}

.goal-icon,
.contact-icon {
  width: 32px;
  height: 32px;
  color: var(--green-deep);
  display: block;
  margin-bottom: 0.85rem;
}

.goal-card h3,
.project-body h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.goal-card p,
.project-body p {
  color: var(--muted);
  margin: 0;
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: #c6b7b8;
  position: relative;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 3px solid var(--accent);
  pointer-events: none;
}

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

.project-media img[data-missing="true"] {
  display: none;
}

.project-body {
  padding: 1.3rem 1.35rem 1.5rem;
}

.membership-panel {
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}

.membership-panel .prose {
  margin-bottom: 1.6rem;
}





/* Kultur & Kooperation */
#kooperation {
  position: relative;
  overflow: hidden;
}

#kooperation::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: 70px;
  border: 2px solid var(--accent-soft);
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}

#kooperation::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: 45px;
  border: 2px solid var(--green-soft);
  border-radius: 42% 58% 55% 45%;
  transform: rotate(-12deg);
  opacity: 0.45;
  pointer-events: none;
}

#kooperation .container {
  position: relative;
  z-index: 1;
}

#kooperation .section-header h2 {
  color: var(--accent-deep);
}

#kooperation .section-icon {
  color: var(--green-deep);
}

#kooperation .prose {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--green);
  border-top: 7px solid var(--accent);
  border-bottom: 7px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
}

#kooperation .prose p {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

#kooperation .prose p:first-child::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.6rem;
  line-height: 0.85;
  padding-right: 0.4rem;
  color: var(--accent-deep);
}

.contact-card {
  padding: 2rem 1.6rem;
  font-style: normal;
  text-align: center;
}

.contact-org {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.contact-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

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

.contact-list a:hover {
  border-bottom-color: var(--accent-deep);
}

.placeholder-hint {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

a[data-placeholder="true"] {
  border-bottom: 1px dashed var(--accent-deep);
}

/* Footer */

.site-footer {
  border-top: 4px solid var(--accent);
  padding: 2rem 0 2.4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: 0.06em;
}

.footer-nav {
  display: flex;
  gap: 1.2rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--accent-deep);
}

.legal {
  position: fixed;
  inset: 0;
  background: rgba(45, 43, 42, 0.32);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 1rem;
}

.legal[hidden] {
  display: none;
}

.legal-panel {
  width: min(560px, 100%);
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 2rem;
}

.legal-panel h2 {
  margin-bottom: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .project-card,
  .btn {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .goal-grid,
  .project-grid,
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(217, 216, 211, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 1rem 1.4rem 1.4rem;
    gap: 0.9rem;
  }

  .hero {
    padding: 1rem 0.8rem 2.5rem;
  }

  .ornament-frame {
    min-height: 88vh;
  }

  .goal-grid,
  .project-grid,
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
  }

  #kooperation::before,
  #kooperation::after {
    display: none;
  }

  #kooperation .prose {
    padding: 1.5rem 1.2rem;
  }
}


/* Zusätzliche klare Farbakzente ohne Verläufe */
.section:nth-of-type(odd) .section-header h2 {
  color: var(--accent-deep);
}

.section:nth-of-type(even) .section-header h2 {
  color: var(--green-deep);
}

.goal-card:nth-child(odd) {
  border-top: 6px solid var(--accent);
}

.goal-card:nth-child(even) {
  border-top: 6px solid var(--green);
}

.project-card:nth-child(1),
.project-card:nth-child(3) {
  border-top: 6px solid var(--accent);
}

.project-card:nth-child(2) {
  border-top: 6px solid var(--green);
}

.contact-card {
  border-left: 8px solid var(--accent);
  border-right: 8px solid var(--green);
}

.membership-panel {
  border-top: 7px solid var(--green);
  border-bottom: 7px solid var(--accent);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-deep);
}

.footer-brand {
  color: var(--green-deep);
}
