/* Self-hosted fonts */
@font-face { font-family: 'Averia Libre'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/AveriaLibre-Light.woff2') format('woff2'); }
@font-face { font-family: 'Averia Libre'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/AveriaLibre-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Averia Libre'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/AveriaLibre-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Averia Libre'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/AveriaLibre-Light-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Averia Libre'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/AveriaLibre-Regular-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Averia Libre'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/AveriaLibre-Bold-Italic.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexMono-Medium.woff2') format('woff2'); }

/**
 * DISSIDENZ FRONTEND STYLES
 * Using values from js/config.js for easy customization
 */

/* ── TOKENS ── */
:root {
  --teal:       #004147;   /* Petrol */
  --teal-light: #005c54;
  --orange:     #e84d0e;   /* Orange */
  --orange-dim: #c4400c;
  --cream:      #f2ede6;
  --ink:        #1c1c1a;
  --ink-light:  #4a4a46;
  --white:      #ffffff;
  --tape-w:     18px;
}

/* ── FONTS ── */
@font-face {
  font-family: 'Gangster Grotesk';
  src: url('../fonts/GangsterGrotesk-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gangster Grotesk';
  src: url('../fonts/GangsterGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gangster Grotesk';
  src: url('../fonts/GangsterGrotesk-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Averia Libre', cursive;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── TAPE DECORATION ── */
.tape {
  position: absolute;
  display: block;
  opacity: 0.92;
  pointer-events: none;
  z-index: 1;
}
div.tape {
  height: var(--tape-w);
  border-radius: 1px;
}
.tape-orange { background: var(--orange); }
.tape-teal   { background: var(--teal); }
.tape-cream  { background: var(--cream); }

/* ── NAV ── */
nav {
  background: rgba(28,28,26,0.98);
  padding: 1.25rem 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Gangster Grotesk', sans-serif;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--orange);
}
.nav-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.75rem;
}
.nav-logo span { color: var(--orange); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--teal);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 5vw 0;
  border-bottom: 9px solid var(--orange);
}


.hero .tape-1 { width: 420px; top: 14%;    left: -40px; transform: rotate(-2deg); }
.hero .tape-2 { width: 280px; top: 34%;    right: 8%;   transform: rotate(1.5deg); }
.hero .tape-3 { width: 180px; bottom: 20%; left: 15%;   transform: rotate(-1deg); }

/* Two-column layout inside hero */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  padding-bottom: 3rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-label {
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.5rem;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

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


/* Photo collage from poster */
.hero-collage {
  position: relative;
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-collage img {
  max-width: 100%;
  height: calc(100% - 2.5rem);
  width: auto;
  display: block;
  object-fit: contain;
  transform: rotate(var(--collage-rotate, 2deg)) translateZ(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5));
  margin-top: auto;
}
.hero-collage img:hover {
  transform: rotate(0deg) translateZ(0);
}
.hero-collage img.collage-fade-out {
  opacity: 0;
}

.hero-foerderung a {
  color: inherit;
  text-decoration: none;
}

.hero-foerderung {
  font-family: 'Averia Libre', cursive;
  font-size: clamp(0.8rem, 1.5vw, 1.3rem);
  font-style: normal;
  line-height: 1.1 !important;
  color: var(--orange) !important;
  text-align: right;
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--white);
  padding: 3rem 5vw;
  margin: 0 -5vw -9px -5vw;
  border-bottom: 9px solid var(--orange);
}
.hero-meta p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.hero-meta strong { font-family: 'Gangster Grotesk', sans-serif; font-weight: 700; color: var(--orange); display: block; margin-bottom: 0.25rem; }

.hero-meta-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.hero-meta-logos a {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.hero-meta-logos a:hover { opacity: 1; }

.hb-logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.hb-logo-gwzo {
  height: 64px;
}

.hero-meta-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.leibniz-lab-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.leibniz-lab-logo-link {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.leibniz-lab-logo-link:hover { opacity: 1; }

.hero-meta-text {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: flex-start;
  flex: 1;
}

.hero-meta-text p {
  max-width: 300px;
  margin: 0;
  flex-shrink: 0;
}

.hero-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 300px;
  flex-shrink: 0;
}

.hero-meta .hero-meta-heading {
  font-family: 'Gangster Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--orange);
  margin: 0;
}

.hero-meta-foerderung {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.35) !important;
  margin-top: 0.75rem;
  max-width: none !important;
}

.hero-scroll {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(232,77,14,0.6);
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '↓';
  display: block;
  font-size: 1.2rem;
  color: rgba(232,77,14,0.4);
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── STANDORT-TICKER ── */
.standort-ticker-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  text-decoration: none;
  overflow: hidden;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  border-radius: 0 0 2px 2px;
}
.standort-ticker {
  overflow: hidden;
  width: 100%;
}
.standort-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 18s linear infinite;
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
  padding: 0.35rem 0;
}
.standort-ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.standort-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0 1.5rem;
}
.standort-current { color: var(--orange); }
.standort-ticker-label {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  padding: 0 1.5rem 0 0;
  white-space: nowrap;
}
.standort-dates {
  opacity: 0.85;
  font-size: 0.9em;
  margin-left: 0.4em;
}
.standort-current .standort-dates {
  color: var(--orange);
}
.standort-sep {
  opacity: 0.3;
  padding: 0 0.5rem;
}

/* ── STANDORT-ÜBERSICHT (Balken unten) ── */
.standort-uebersicht {
  background: var(--ink);
  border-top: 3px solid var(--orange);
  font-family: 'Gangster Grotesk', sans-serif;
  padding: 0.75rem 5%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 2rem;
}
.standort-uebersicht-titel {
  font-family: 'Gangster Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255,255,255,0.9);
  padding-right: 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}
.standort-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.location-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  align-items: baseline;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}
.location-item--hidden { display: none; }
.location-status {
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}
.location-status--current { color: var(--orange); }
.location-status--future  { color: rgba(255,255,255,0.9); }
.location-status--past    { color: rgba(255,255,255,0.35); }

.location-item:has(.location-status--current) .location-name,
.location-item:has(.location-status--current) .location-city,
.location-item:has(.location-status--current) .location-laufzeit { color: var(--orange); }

.location-item:has(.location-status--future) .location-name,
.location-item:has(.location-status--future) .location-city,
.location-item:has(.location-status--future) .location-laufzeit { color: rgba(255,255,255,0.9); }

.location-item:has(.location-status--past) .location-name,
.location-item:has(.location-status--past) .location-city,
.location-item:has(.location-status--past) .location-laufzeit { color: rgba(255,255,255,0.35); }

.location-laufzeit { font-size: 0.7rem; }
.location-link { text-decoration: none; color: inherit; }
.location-link:hover { text-decoration: underline; }
.locations-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0 0;
  text-align: left;
  transition: color 0.2s;
}
.locations-toggle:hover { color: rgba(255,255,255,0.7); }

/* ── SECTION HEADER ── */
.status-banner {
  position: absolute;
  top: 0.75rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: clamp(0.6rem, 1.5vw, 0.9rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  z-index: 10;
  max-width: calc(100% - 4rem);
}
.hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}
.hero-scroll-btn:hover {
  opacity: 1;
  transform: translateY(3px);
}
.hero-scroll-pfeil {
  width: 3rem;
  height: auto;
  transform: rotate(120deg);
  display: block;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.section-header {
  padding: 3rem 5%;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-header h2 {
  font-family: 'Gangster Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.counter {
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

/* ── TILES GRID ── */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
  padding: 2rem 5%;
  background: var(--cream);
}

.tile-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1rem 1.5rem 1.5rem;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 320px;
  overflow: hidden;
}
.tile-card:hover {
  box-shadow: 0 12px 32px rgba(0,65,71,0.12);
  transform: translateY(-4px);
}

.tile-featured {
  grid-column: span 2;
  background: var(--teal);
  color: var(--white);
  border: none;
  min-height: 420px;
}
.tile-card.tile-featured > div:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.tile-headline-featured {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.tile-headline-sub {
  align-self: flex-start;
  width: 35%;
  height: auto;
  opacity: 1;
}
.tile-headline-featured .tile-headline {
  align-self: center;
  margin-top: auto;
  margin-bottom: 0;
  width: 80%;
  height: auto;
}
.tile-featured .tile-number { color: rgba(255,255,255,0.5); }
.tile-featured .tile-title { color: var(--white); }
.tile-featured .tile-question { color: rgba(255,255,255,0.9); }

.tile-tape {
  position: absolute;
  display: block;
  opacity: 0.92;
  pointer-events: none;
}

.tile-number {
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.tile-card > div:first-child {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 200px;
}

.tile-headline {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
}
.tile-headline-text {
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--teal);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.tile-card--compact {
  min-height: 0;
}
.tile-title .sub {
  font-weight: 300;
  font-style: italic;
  font-size: 0.5em;
  display: block;
  letter-spacing: 0.05em;
}

.tile-question {
  font-size: clamp(1.1rem, 1.3vw + 0.4rem, 1.35rem);
  line-height: 1.35;
  font-weight: 500;
  position: relative;
}

.tile-footer {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tile-count {
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.65rem;
  color: var(--ink-light);
  letter-spacing: 0.1em;
}
.tile-card.tile-featured .tile-count { color: rgba(255,255,255,0.5); }
.tile-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}
.tile-arrow-pfeil {
  width: 36px;
  height: auto;
  display: block;
}
.tile-card:hover .tile-arrow { opacity: 1; transform: translate(3px, -3px); }

/* ── MODAL / OVERLAY ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12,20,18,0.85);
  z-index: 200;
  display: none;
  backdrop-filter: blur(4px);
}
.overlay.open { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }

/* Modal-Navigation: Pfeiltasten */
.modal-nav-btn {
  position: fixed;
  top: 50%;
  background: none;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  z-index: 205;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.modal-nav-btn:hover { opacity: 1; }
.modal-nav-prev { left: 0.5rem; transform: translateY(-50%) rotate(210deg); }
.modal-nav-next { right: 0.5rem; transform: translateY(-50%) rotate(30deg); }
.modal-nav-pfeil {
  width: 2.5rem;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
@media (max-width: 700px) { .modal-nav-btn { display: none; } }

.modal {
  background: var(--cream);
  width: 100%;
  max-width: 760px;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.22,1,0.36,1);
  margin: auto;
  overflow-y: auto;
  max-height: calc(100vh - 4rem);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
  opacity: 0.6;
  z-index: 2;
  transition: opacity 0.2s;
}
.modal-close:hover { opacity: 1; }

.modal-header {
  background: var(--teal);
  color: var(--white);
  padding: 2rem 2.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-headline-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
}

.modal-number {
  display: none;
}
.modal-title {
  margin: 0;
}
.modal-headline-svg {
  display: block;
  width: 65%;
  max-width: 420px;
  margin: 0 auto;
}

.modal-question-box {
  background: var(--orange);
  padding: 2rem 2.5rem;
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 700;
  color: var(--white);
}

.modal-jump-btn {
  display: none;
  background: var(--teal);
  text-align: center;
  padding: 0.7rem 2.5rem;
}
.modal-jump-btn button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.modal-jump-btn button:hover { opacity: 1; }

.modal-body { padding: 2rem clamp(1rem, 5vw, 2.5rem); }

/* ── CONTENT SECTION ── */
.content-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.content-section:last-child {
  border-bottom: none;
}
.content-section h3,
#modal-content h3 {
  font-family: 'Gangster Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
#modal-content a {
  color: var(--teal);
  text-decoration: none;
}
#modal-content a:hover { text-decoration: underline; }
#modal-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
#modal-content ul {
  list-style: none;
  padding-left: 1.4rem;
  margin: 0;
}
#modal-content ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}
#modal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.65rem;
  height: 0.65rem;
  background: url('../assets/banner/Pfeil.svg') center / contain no-repeat;
  opacity: 0.55;
}
.content-section p,
#modal-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

/* Post-it wall */
.postit-wall-wrap {
  margin-bottom: 2rem;
  padding: 0.5rem 0;
}
.postit-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  min-height: 80px;
}
.postit {
  position: relative;
  overflow: visible;
  background: transparent;
  width: min(240px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: rotate(var(--r, -1deg));
  transition: transform 0.2s;
}
.postit-short,
.postit-long {
  display: block;
}
.postit-short[hidden],
.postit-long[hidden] { display: none; }
.postit:hover {
  z-index: 2;
}
.postit-card {
  width: 100%;
  background: #e84e0f;
  clip-path: polygon(
    0%   5%,
    4%   0%,
    88%  0%,
    100% 4%,
    99%  95%,
    94%  100%,
    5%   99%,
    0%   96%
  );
  padding: 9% 14% 14% 12%;
  box-sizing: border-box;
  filter: drop-shadow(1px 5px 14px rgba(0,0,0,0.22));
}
/* Rechteck-Variante: kein clip-path, wirkt wie ein echtes Post-it */
.postit-card--rect {
  clip-path: none;
  border-radius: 2px;
  padding: 10% 12%;
  box-shadow: 2px 6px 16px rgba(0,0,0,0.22);
  filter: none;
}
.postit-bg {
  display: none;
}
.postit-text {
  font-family: 'Averia Libre', cursive;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-height: 155px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.postit-text.expanded {
  max-height: 2000px;
}
.postit-expand-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--teal);
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0 0;
  text-decoration: underline;
  opacity: 0.75;
}
.postit-expand-btn:hover { opacity: 1; }
.postit-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.5rem;
  padding: 0.35rem 0.5rem 0.4rem;
}
.postit .postit-meta {
  font-family: 'Averia Libre', cursive;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.05em;
  opacity: 0.8;
  word-break: break-word;
}
.postit .votes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.2rem 0.6rem 0.2rem 0.8rem;
  background: rgba(0, 65, 71, 0.08);
  border-radius: 4px;
  min-width: 4rem;
}
.vote-count {
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.85;
  min-width: 1ch;
}
.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  transition: transform 0.15s, opacity 0.15s;
  opacity: 0.45;
}
.vote-btn:hover { transform: scale(1.2); opacity: 0.85; }
.vote-btn.voted { opacity: 1; }
.vote-herz {
  width: 1.4rem;
  height: auto;
  display: block;
}

.no-postits {
  color: var(--ink-light);
  font-style: italic;
  font-size: 0.9rem;
}

/* ── FORM ── */
.form-title {
  font-family: 'Gangster Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 2rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
}

input[type="text"],
textarea {
  border: 1px solid rgba(0,0,0,0.15);
  padding: 0.75rem;
  font-family: 'Averia Libre', cursive;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,77,14,0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
  grid-column: 1 / -1;
}

.form-group.checkbox-group {
  flex-direction: row;
  align-items: center;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.form-group.checkbox-group label {
  margin-bottom: 0;
  margin-left: 0.5rem;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.submit-wrap {
  position: relative;
  display: inline-block;
}
.submit-tape {
  position: absolute;
  left: -18px;
  right: -10px;
  top: 50%;
  width: calc(100% + 28px);
  height: auto;
  transform: translateY(-50%) rotate(-1.5deg);
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
}
button[type="submit"], #modal-featured-cta button {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--white);
  border: none;
  padding: 0.85rem 2rem;
  font-family: 'Gangster Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
button[type="submit"]:hover, #modal-featured-cta button:hover {
  transform: translateY(-2px);
}
#modal-featured-cta button { text-transform: none; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: var(--white);
  padding: 1.5rem 5%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}
footer p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
footer a { color: inherit; text-decoration: none; }
footer p a:hover { opacity: 0.7; }
.footer-col-sm {
  flex: 0 0 auto;
  width: 14%;
  min-width: 120px;
}
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-left: auto;
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-foerderung {
  margin-left: 0;
  font-size: 0.75rem;
}
.footer-legal {
  background: var(--ink);
  padding: 0.6rem 5%;
  display: flex;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-legal a {
  font-family: 'Gangster Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

footer h4 {
  font-family: 'Gangster Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .modal-header { padding: 1.25rem 1.25rem; }
  .tile-card.tile-featured { grid-column: span 1; }
  .tile-headline-featured .tile-headline { width: 100%; }
  .footer-foerderung { text-align: left; }
  .footer-col-sm { width: 100%; }
  .hb-logo-zfl { height: 40px; }
  .hero-scroll-btn { display: flex; margin-left: auto; margin-right: auto; }
  .hero-meta .hero-foerderung {
    margin-left: 0;
    align-self: flex-start;
    text-align: right;
  }
  .form-row { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section-header { flex-direction: column; gap: 0.5rem; }

  /* Hero: stack collage below text on mobile */
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-collage { order: -1; height: min(45vw, 260px); }
  .hero-collage img { transform: rotate(1deg); }

  .status-banner {
    right: 0;
    left: 0;
    top: 0;
    max-width: 100%;
    justify-content: center;
    border-radius: 0;
  }

  .hero-meta-right {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hero-meta-logos {
    gap: 1rem;
  }
  .leibniz-lab-logo-img {
    height: 48px;
  }
  .hb-logo-gwzo {
    height: 48px;
  }
}

/* ── ANIMATIONS ── */
.tile-card {
  animation: fadeUp 0.5s both;
}
.tile-card:nth-child(1) { animation-delay: 0.05s; }
.tile-card:nth-child(2) { animation-delay: 0.10s; }
.tile-card:nth-child(3) { animation-delay: 0.15s; }
.tile-card:nth-child(4) { animation-delay: 0.20s; }
.tile-card:nth-child(5) { animation-delay: 0.25s; }
.tile-card:nth-child(6) { animation-delay: 0.30s; }
.tile-card:nth-child(7) { animation-delay: 0.35s; }
.tile-card:nth-child(8) { animation-delay: 0.40s; }
.tile-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

