/* ==========================================
   Stativkarawane – Modern CSS
   ========================================== */

:root {
  --color-bg:           #faf9f5;
  --color-surface:      #ffffff;
  --color-surface-alt:  #f2f1e8;
  --color-accent:       #7a8e3a;
  --color-accent-hover: #5e6e2c;
  --color-text:         #2c2c2c;
  --color-text-muted:   #666;
  --color-border:       #dedcd0;
  --color-heading:      #1a2010;
  --color-nav-bg:       #1a2010;
  --font-sans:          -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  --max-width:          960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: inherit;
}

/* ==========================================
   HERO
   ========================================== */

header {
  position: relative;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 92px;
}

.hero-img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 92px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(10, 16, 4, 0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.5rem;
}

.site-title {
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.site-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.main-nav {
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.85rem 0;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(0,0,0,0.7);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-input:checked + .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle-input:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}
.nav-toggle-input:checked + .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
}

.nav-list a {
  display: block;
  padding: 0.9rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.65);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: #000;
  border-bottom-color: var(--color-accent);
}

/* ==========================================
   SECTION STRUCTURE
   ========================================== */

.section {
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.section-alt {
  background-color: var(--color-surface-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--color-heading);
  margin-bottom: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.section-intro {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.section-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.section-note a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
}

/* ==========================================
   NEWS CARDS
   ========================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.news-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.news-card-img-link {
  display: block;
  overflow: hidden;
}

.news-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-card-img-link:hover .news-card-img {
  transform: scale(1.03);
}

.news-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  display: block;
}

.badge {
  display: inline-block;
  background: #b92c1e;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 7px;
  vertical-align: middle;
}

.news-card-body p {
  font-size: 0.9rem;
  flex: 1;
  color: var(--color-text-muted);
}

.news-card-body strong {
  color: var(--color-text);
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  transition: background 0.2s;
  align-self: flex-start;
  margin-top: auto;
}

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

.btn-sm {
  font-size: 0.68rem;
  padding: 0.4rem 0.8rem;
}

/* ==========================================
   ABOUT
   ========================================== */

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

.about-text p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.quote {
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.quote cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  color: var(--color-text-muted);
}

.about-img {
  width: 100%;
  border-radius: 4px;
  display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.img-caption {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ==========================================
   MEMBERS
   ========================================== */

.member-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.member-list li {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.member-list li:last-child {
  border-bottom: none;
}

.member-list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.member-list a:hover {
  color: var(--color-accent);
}

.member-nolink {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ==========================================
   PROJECTS
   ========================================== */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-item {
  padding: 1.1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 4px 4px 0;
}

.project-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-heading);
}

.project-year {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 0.4rem;
}

.project-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.project-item a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.project-item a:hover {
  border-bottom-color: var(--color-accent);
}

/* ==========================================
   PRESS / NACHLESEN
   ========================================== */

.press-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.press-item {
  display: flex;
  background: var(--color-surface);
}

.press-year {
  background: var(--color-nav-bg);
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.1rem 0.25rem;
}

.press-content {
  padding: 1.1rem 1.25rem;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.65;
}

.press-content p {
  margin-bottom: 0.5rem;
}

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

.press-content a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.press-content a:hover {
  border-bottom-color: var(--color-accent);
}

.press-img-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  text-decoration: none;
  margin-top: 0.6rem;
}

.press-thumb {
  max-width: 180px;
  border-radius: 3px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 1px solid var(--color-border);
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  background: var(--color-nav-bg);
  color: rgba(255,255,255,0.45);
  padding: 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-text {
  font-size: 0.78rem;
}

.footer-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 720px) {
  .section {
    padding: 2.25rem 1rem;
  }

  .site-title {
    font-size: 1.9rem;
  }

  .hero-overlay {
    padding: 1.5rem 1rem;
  }

  /* Mobile nav */
  .nav-toggle-label {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 245, 243, 0.95);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }

  .nav-toggle-input:checked ~ .nav-list {
    display: flex;
  }

  .nav-list a {
    padding: 1.6rem 1.6rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    border-left: 2px solid transparent;
  }

  .nav-list a:hover,
  .nav-list a.active {
    border-bottom-color: rgba(0,0,0,0.07);
    border-left-color: var(--color-accent);
  }

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

  .member-list {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
}

@media (max-width: 92px) {
  .site-title {
    font-size: 1.5rem;
    letter-spacing: 0.12em;
  }

  .member-list {
    grid-template-columns: 1fr;
  }

  .press-year {
    width: 46px;
    font-size: 0.65rem;
  }

  .news-card-img {
    height: 180px;
  }
}
