/* ══════════════════════════════
   INTERNATLAS — Design System
   ══════════════════════════════ */

:root {
  /* Grün */
  --green-dark:   #0d2218;
  --green-mid:    #1a4d35;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;

  /* Blau — nur als kleiner Akzent */
  --blue-mid:     #1a6496;
  --blue-pale:    #daeef7;

  /* Beige & Neutral */
  --beige:        #f5f0e8;
  --beige-dark:   #e8e0d0;
  --text-dark:    #1a1a1a;
  --text-mid:     #4a4a4a;
  --text-light:   #8a8a8a;

  /* Allgemein */
  --cream:        #fafaf8;
  --white:        #ffffff;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
}

/* ── NAVBAR ── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: white; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--green-light);
  color: white !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem !important;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--green-mid); }

.btn-outline {
  border: 2px solid var(--green-light);
  color: var(--green-mid);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--green-light);
  color: white;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 100px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.highlight {
  color: var(--green-light);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── SUCHLEISTE ── */
.search-bar {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  background: white;
  padding: 10px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 10px 16px;
  color: var(--text-dark);
}

.search-bar select {
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-mid);
  background: var(--cream);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.search-bar .btn-primary {
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* ── FEATURED SECTION ── */
.featured {
  padding: 80px 60px;
  background: var(--white);
}

.featured h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 48px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── KARTE ── */
.card {
  background: var(--cream);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-field {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-mid);
  background: var(--green-pale);
  padding: 4px 10px;
  border-radius: 20px;
}

.card-paid {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.paid {
  background: #d8f3dc;
  color: #1a4d35;
}

.unpaid {
  background: #ffeeba;
  color: #856404;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.card-institute {
  font-size: 0.85rem;
  color: var(--green-mid);
  font-weight: 500;
}

.card-location, .card-duration {
  font-size: 0.82rem;
  color: var(--text-light);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}

.card .btn-primary {
  text-align: center;
  margin-top: 8px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer h4 {
  color: white;
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer a:hover { color: var(--green-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  text-align: center;
}

/* ══════════════════════════════
   SEARCH PAGE
   ══════════════════════════════ */

.search-header {
  background: var(--green-dark);
  padding: 40px 60px;
  color: white;
}

.search-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── FILTER SIDEBAR ── */
.filters {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  height: fit-content;
  border: 1px solid var(--beige-dark);
}

.filters h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group > label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--cream);
  outline: none;
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dark);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--green-light);
  width: 15px;
  height: 15px;
}

.btn-reset {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: none;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset:hover {
  border-color: var(--green-light);
  color: var(--green-mid);
}

/* ── RESULTS ── */
.results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.results-header p { font-size: 0.95rem; color: var(--text-mid); }

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-dark);
  background: white;
  outline: none;
  cursor: pointer;
}

/* ── HORIZONTAL CARD ── */
.card-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-direction: row;
}

.card-body { flex: 1; }

.card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.card-meta span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.card-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.card-deadline {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
}
/* ── AUTOCOMPLETE ── */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--beige-dark);
  border-radius: 10px;
  box-shadow: var(--shadow);
  list-style: none;
  z-index: 200;
  display: none;
  overflow: hidden;
  margin-top: 4px;
}

.autocomplete-list li {
  padding: 12px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.15s;
}

.autocomplete-list li:hover {
  background: var(--green-pale);
  color: var(--green-mid);
}

.autocomplete-list li strong {
  color: var(--green-light);
}
/* ── SMART SEARCH ── */
.smart-search {
  background: white;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.smart-search-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.smart-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.smart-field-small {
  flex: 0.5;
}

.smart-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.smart-field input,
.smart-field select {
  border: 1px solid var(--beige-dark);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  background: var(--cream);
  width: 100%;
}

.smart-field input:focus,
.smart-field select:focus {
  border-color: var(--green-light);
}

/* ── COUNTRY TAGS ── */
.country-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--beige-dark);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--cream);
  min-height: 48px;
}

.tag {
  background: var(--green-pale);
  color: var(--green-mid);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.tag:hover { background: #b7e4c7; }

.tag-input {
  border: none !important;
  padding: 4px 8px !important;
  font-size: 0.88rem !important;
  background: transparent !important;
  outline: none !important;
  flex: 1;
  min-width: 140px;
}

.smart-search-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem !important;
  border-radius: 12px;
}

/* ── AUTOCOMPLETE ── */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--beige-dark);
  border-radius: 10px;
  box-shadow: var(--shadow);
  list-style: none;
  z-index: 200;
  display: none;
  overflow: hidden;
  margin-top: 4px;
}

.autocomplete-list li {
  padding: 12px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.15s;
}

.autocomplete-list li:hover {
  background: var(--green-pale);
  color: var(--green-mid);
}

.autocomplete-list li strong {
  color: var(--green-light);
}
/* ── LÄNDER AUSWAHL ── */
.country-autocomplete-wrap {
  position: relative;
  border: 1px solid var(--beige-dark);
  border-radius: 10px;
  background: var(--cream);
  padding: 8px 12px;
  min-height: 48px;
}

.country-autocomplete-wrap:focus-within {
  border-color: var(--green-light);
}

.selected-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.country-autocomplete-wrap input {
  border: none !important;
  background: transparent !important;
  padding: 4px 0 !important;
  width: 100%;
  font-size: 0.9rem;
  outline: none !important;
}

.tag-x {
  margin-left: 4px;
  cursor: pointer;
  font-weight: 700;
}

.autocomplete-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

#autocompleteList li {
  display: block;
}

.autocomplete-list li.selected {
  background: var(--green-pale);
}

.country-check {
  font-size: 0.9rem;
  flex-shrink: 0;
}
/* ══════════════════════════════
   LISTING PAGE
   ══════════════════════════════ */

.listing-back {
  padding: 20px 60px;
  background: var(--cream);
}

.listing-back a {
  font-size: 0.88rem;
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 500;
}

.listing-back a:hover { text-decoration: underline; }

.listing-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 0 60px 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.listing-main {
  background: white;
  border-radius: var(--radius);
  padding: 48px;
  border: 1px solid var(--beige-dark);
}

.listing-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.listing-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 8px;
}

.listing-institute {
  font-size: 1rem;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 28px;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--beige-dark);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--beige-dark);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.listing-section {
  margin-bottom: 36px;
}

.listing-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-pale);
}

.listing-section p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.listing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-list li {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.listing-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 700;
}

/* ── SIDEBAR ── */
.listing-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.apply-box {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--beige-dark);
  box-shadow: var(--shadow);
}

.apply-deadline {
  font-size: 0.78rem;
  color: #e67e22;
  font-weight: 600;
  margin-bottom: 12px;
  background: #fef9f0;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

.apply-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.apply-box p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-row input,
.form-row textarea {
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  background: var(--cream);
}

.form-row input:focus,
.form-row textarea:focus { border-color: var(--green-light); }

.form-row textarea {
  resize: none;
  min-height: 90px;
}

.apply-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem !important;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.institute-box {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--beige-dark);
}

.institute-box h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.institute-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.institute-desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.institute-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* ══════════════════════════════
   POST PAGE
   ══════════════════════════════ */

.post-header {
  background: var(--green-dark);
  padding: 60px;
  color: white;
}

.post-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.post-header p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.7;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 48px 60px 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.post-form-wrap {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--beige-dark);
  overflow: hidden;
}

.post-form {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--beige-dark);
}

.post-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-mid);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.radio-group {
  display: flex;
  gap: 24px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
}

.post-guidelines {
  background: #fffbf0;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.post-guidelines h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 14px;
}

.post-guidelines ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-guidelines ul li {
  font-size: 0.85rem;
  color: #92400e;
  padding-left: 16px;
  position: relative;
}

.post-guidelines ul li::before {
  content: '•';
  position: absolute;
  left: 0;
}

.checkbox-agree {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
  font-size: 0.85rem !important;
  color: var(--text-mid) !important;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  margin-bottom: 20px;
}

.checkbox-agree input { margin-top: 2px; flex-shrink: 0; }

.post-submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1rem !important;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* ── POST SIDEBAR ── */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.post-info-box {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--beige-dark);
}

.post-info-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.post-step {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.step-num {
  background: var(--green-light);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.post-step strong {
  font-size: 0.88rem;
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
}

.post-step p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.post-accept-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-accept-list li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
}

.post-accept-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 700;
}

.post-info-red .post-accept-list li::before {
  content: '✗';
  color: #e74c3c;
}
/* ── POST PAGE SPACING FIX ── */
.post-form .form-row {
  margin-bottom: 24px;
}

.post-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
}

.post-section h2 {
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.post-form .form-row input,
.post-form .form-row select,
.post-form .form-row textarea {
  padding: 14px 16px;
  font-size: 0.92rem;
  border-radius: 10px;
}

.post-form .form-row textarea {
  min-height: 120px;
}

.post-form .checkbox-group {
  gap: 14px;
}

.post-form .checkbox-group label {
  font-size: 0.92rem;
  gap: 10px;
}

.post-form .radio-group {
  gap: 28px;
}

.post-form .radio-group label {
  font-size: 0.92rem;
}

.post-form .form-grid {
  gap: 28px;
  margin-bottom: 24px;
}

.post-form .form-row label {
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.post-guidelines {
  padding: 28px 32px;
  margin-bottom: 32px;
}

.post-guidelines ul {
  gap: 12px;
}
/* ── FIELD SELECTOR ANIMATION ── */
#subField, #subFieldSearch {
  transition: all 0.3s ease;
  border-color: var(--green-light) !important;
  background: #f0faf4 !important;
}
/* ── SUBFIELD LIST SCROLLABLE ── */
#subFieldList {
  max-height: 280px;
  overflow-y: auto;
}

#subFieldList::-webkit-scrollbar {
  width: 6px;
}

#subFieldList::-webkit-scrollbar-track {
  background: var(--cream);
}

#subFieldList::-webkit-scrollbar-thumb {
  background: var(--green-pale);
  border-radius: 3px;
}
/* ══════════════════════════════
   WHY PAGE
   ══════════════════════════════ */

/* Hero */
.why-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--green-dark);
}
.why-hero-inner {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.why-tag {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
}
.why-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}
.why-italic { font-style: italic; font-weight: 400; }
.why-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 420px;
}
.why-hero-visual {
  background: rgba(255,255,255,0.04);
  padding: 60px;
  display: flex;
  align-items: center;
}
.why-stat-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.why-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 8px;
}
.why-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 280px;
}

/* Sections */
.why-section { padding: 100px 60px; }
.why-section-light { background: var(--white); }
.why-section-dark { background: var(--green-dark); }
.why-section-green { background: var(--green-mid); }

.why-content { max-width: 1100px; margin: 0 auto; }
.why-section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
}
.why-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 32px;
}
.why-section h2 em {
  font-style: italic;
  font-weight: 400;
}

/* Text block */
.why-text-block p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 18px;
  max-width: 680px;
}

/* Quote */
.why-quote-block {
  margin-top: 56px;
  border-left: 3px solid var(--green-light);
  padding-left: 28px;
}
.why-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}
.why-quote-author {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

/* Pillars */
.why-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.why-pillar {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid rgba(255,255,255,0.08);
}
.why-pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.why-pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.why-pillar p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

/* Story */
.why-story {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}
.why-story-img-placeholder {
  width: 100%;
  height: 420px;
  background: var(--green-pale);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.why-story-img-placeholder span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-mid);
}
.why-story-badge {
  margin-top: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--green-light);
}
.why-story-badge strong {
  font-size: 0.9rem;
  color: var(--text-dark);
}
.why-story-badge span {
  font-size: 0.78rem;
  color: var(--text-light);
}
.why-story-text p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 16px;
  max-width: 600px;
}
.why-founder-sig {
  margin-top: 28px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--green-mid);
}

/* Researchers */
.why-researchers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-researchers h2 { color: white; }
.why-researchers p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  max-width: 440px;
}
.why-researcher-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-r-point {
  font-size: 0.95rem;
  color: white;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  border-left: 3px solid var(--green-light);
}

/* CTA */
.why-cta {
  padding: 100px 60px;
  text-align: center;
  background: var(--cream);
}
.why-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.why-cta h2 em { font-style: italic; font-weight: 400; }
.why-cta p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 36px;
}
.why-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
  .why-hero { grid-template-columns: 1fr; }
  .why-hero-visual { display: none; }
  .why-hero-inner { padding: 60px 24px; }
  .why-section { padding: 70px 24px; }
  .why-pillars { grid-template-columns: 1fr 1fr; }
  .why-story { grid-template-columns: 1fr; }
  .why-researchers { grid-template-columns: 1fr; }
  .why-cta { padding: 70px 24px; }
}
/* ── SUBFIELD LIST SCROLLABLE — post.html & search.html ── */
#subFieldPostList,
#subFieldSearch {
  max-height: 260px;
  overflow-y: auto;
}

#subFieldPostList::-webkit-scrollbar,
#subFieldSearch::-webkit-scrollbar {
  width: 6px;
}

#subFieldPostList::-webkit-scrollbar-track,
#subFieldSearch::-webkit-scrollbar-track {
  background: var(--cream);
}

#subFieldPostList::-webkit-scrollbar-thumb,
#subFieldSearch::-webkit-scrollbar-thumb {
  background: var(--green-pale);
  border-radius: 3px;
}
#subFieldSearchList {
  max-height: 260px;
  overflow-y: auto;
}

#subFieldSearchList::-webkit-scrollbar { width: 6px; }
#subFieldSearchList::-webkit-scrollbar-track { background: var(--cream); }
#subFieldSearchList::-webkit-scrollbar-thumb { background: var(--green-pale); border-radius: 3px; }
/* ── MAIN CATEGORY LIST SCROLLABLE ── */
#mainCategoryList {
  max-height: 260px;
  overflow-y: auto;
}

#mainCategoryList::-webkit-scrollbar { width: 6px; }
#mainCategoryList::-webkit-scrollbar-track { background: var(--cream); }
#mainCategoryList::-webkit-scrollbar-thumb { background: var(--green-pale); border-radius: 3px; }
/* ── FILE UPLOAD ── */
.file-upload-area {
  border: 2px dashed var(--beige-dark);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  background: var(--cream);
}
.file-upload-area:hover {
  border-color: var(--green-light);
  background: var(--green-pale);
}
.file-upload-icon { font-size: 1.8rem; margin-bottom: 8px; }
.file-upload-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.file-upload-sub {
  font-size: 0.78rem;
  color: var(--text-light);
}
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--green-pale);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--green-mid);
}
.file-item-remove {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-light);
  padding: 0 4px;
}
.file-item-remove:hover { color: red; }
/* ── STAT SOURCE LINK ── */
.why-stat-source {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.2s, border-color 0.2s;
}
.why-stat-source:hover {
  color: var(--green-light);
  border-color: var(--green-light);
}
/* ════════════════════════════════════════════════
   MOBILE RESPONSIVE — COMPLETE
   ════════════════════════════════════════════════ */

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: var(--green-dark);
  padding: 20px 24px;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .why-pillars { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .listing-layout { grid-template-columns: 1fr; }
  .listing-sidebar { order: -1; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
}

@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 48px 20px 60px; text-align: center; }
  .hero h1 { font-size: 1.9rem; line-height: 1.25; }
  .hero p { font-size: 0.95rem; }
  .hero .btn-primary { width: 100%; text-align: center; display: block; }

  .smart-search { padding: 18px; margin-top: 28px; }
  .smart-search-row { flex-direction: column; gap: 14px; }
  .smart-field-small { flex: 1; }
  .smart-search-btn { font-size: 0.9rem !important; }

  .featured { padding: 48px 20px; }
  .featured h2 { font-size: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; }
  .card-top { flex-wrap: wrap; gap: 8px; }

  .card-horizontal { flex-direction: column; gap: 16px; }
  .card-action { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .card-action .btn-primary { flex: 1; text-align: center; }

  .footer { padding: 40px 20px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { font-size: 0.72rem; text-align: center; }

  .search-header { padding: 28px 20px; }
  .search-header h1 { font-size: 1.5rem; margin-bottom: 16px; }
  .search-bar { flex-direction: column; gap: 10px; padding: 14px; }
  .search-bar input, .search-bar select { width: 100%; padding: 12px; }
  .search-bar .btn-primary { width: 100%; padding: 14px; }
  .search-layout { padding: 20px; }
  .results { gap: 12px; }
  .results-header { flex-direction: column; gap: 10px; align-items: flex-start; }

  .listing-back { padding: 14px 20px; }
  .listing-layout { grid-template-columns: 1fr; padding: 0 20px 48px; gap: 20px; }
  .listing-sidebar { order: -1; }
  .listing-main { padding: 24px 20px; }
  .listing-title { font-size: 1.4rem; }
  .listing-meta { gap: 8px; }
  .meta-item { font-size: 0.8rem; padding: 6px 12px; }
  .apply-box { padding: 24px 20px; }
  .institute-box { padding: 20px; }

  .post-header { padding: 36px 20px; }
  .post-header h1 { font-size: 1.5rem; }
  .post-layout { grid-template-columns: 1fr; padding: 20px 20px 48px; }
  .post-sidebar { display: none; }
  .post-form { padding: 24px 20px; }
  .post-section { padding-bottom: 32px; margin-bottom: 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .radio-group { flex-wrap: wrap; gap: 16px; }

  .why-hero { grid-template-columns: 1fr; }
  .why-hero-inner { padding: 48px 20px; }
  .why-hero-title { font-size: 1.9rem; }
  .why-hero-visual { padding: 32px 20px; }
  .why-stat-num { font-size: 2.2rem; }
  .why-section { padding: 56px 20px; }
  .why-section h2 { font-size: 1.7rem; }
  .why-pillars { grid-template-columns: 1fr; gap: 16px; }
  .why-pillar { padding: 24px 20px; }
  .why-story { grid-template-columns: 1fr; gap: 32px; }
  .why-story-img { order: -1; }
  .why-researchers { grid-template-columns: 1fr; gap: 32px; }
  .why-cta { padding: 56px 20px; }
  .why-cta h2 { font-size: 1.8rem; }
  .why-cta-btns { flex-direction: column; gap: 12px; }
  .why-cta-btns a { text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .listing-title { font-size: 1.2rem; }
  .why-hero-title { font-size: 1.6rem; }
  .navbar { padding: 12px 16px; }
  .logo { font-size: 1.1rem; }
}
/* ── MOBILE FIXES ── */
@media (max-width: 768px) {

  /* Homepage — Felder linksbündig */
  .smart-search { text-align: left; }
  .smart-field label { text-align: left; }

  /* Abstand zwischen Suchleiste oben und Research Category */
  .smart-search { margin-top: 40px; }
  .smart-search-row:first-child { margin-top: 0; }

  /* Compensation & Duration gleich groß wie andere Felder */
  .smart-field-small { flex: 1; width: 100%; }
  .smart-field select,
  .smart-field input {
    width: 100%;
    box-sizing: border-box;
  }

  /* Why Page — Zahlen nicht am Rand abgeschnitten */
  .why-hero-visual { padding: 32px 28px; }
  .why-stat-grid { padding: 0 16px; }
  .why-stat-num {
    font-size: 2.4rem;
    padding-left: 8px;
  }
  .why-stat-label { padding-left: 8px; }
  .why-stat-source { padding-left: 8px; }
  .why-stat { padding: 0 8px; }
}
/* ── FILTER TOGGLE BUTTON (nur Handy) ── */
.filter-toggle-btn {
  display: none;
}

@media (max-width: 768px) {
  .filter-toggle-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--green-dark);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
  }

  .filters {
    display: none;
    margin-bottom: 20px;
  }

  .filters.open {
    display: block;
  }
}