/* =========================================================
   ISG Paderborn - warm theme (all pages)
   Loaded last on every page. Only changes background colours:
   page = warm sand, cards = warm ivory. Logos, buttons, form
   fields and the dark footer keep their own colours.
   ========================================================= */

:root {
  --warm-page: #f4ead9;
  --warm-card: #fbf5ea;
  --warm-band: #ecdcc2;
  --warm-line: #e2d3b9;
  --bg: var(--warm-page);
  --surface: var(--warm-card);
}

html,
body {
  background-color: var(--warm-page) !important;
}

.site-header {
  background-color: rgba(244, 234, 217, .94) !important;
}

.leader-card,
.vp-visual > span,
.legacy-cards article,
.featured-story,
.modern-leader-card,
.partners-home-section,
.money-tip,
.info-banner,
.checklist-card,
.key-point-list article > span,
.home-v2-upcoming,
.home-v2-community,
.home-v2-join-inner,
.home-v2-partners,
.home-v2-partner,
.sg-hero,
.sg-jumpbar,
.sg-section,
.sg-route-card,
.sg-app-card,
.sg-steps article > span,
.sg-help-card,
.db-filter-guide,
.owl-setup,
.sg-simple,
.sgs-tab,
.sgs-panel,
.sgs-resource-title > span,
.sgs-resource-links a,
.sgs-resource-links .sgs-pdf-link > span,
.home-ws-card,
.upb-ws-links a,
.community-board-section,
.volunteer-teams-section,
.volunteer-accordion,
.partner-carousel-viewport,
.partner-carousel-arrow,
.join-soon-only-card,
.join-soon-mark,
.home-academic-deadlines,
.home-academic-card,
.home-academic-featured,
.academic-single-card,
.home-student-quick-card,
.home-student-quick-dates,
.about-compact-hero,
.about-compact-points article > span,
.about-compact-chapter,
.community-board-accordion,
.community-board-coming-soon > span,
.partner-compact-list article > span,
.partner-compact-money,
.diwali-simple-shop,
.diwali-simple-help,
.diwali-simple-experience,
.diwali-night-2026-album-links a,
.events-upcoming-empty,
.former-leader-card,
.dv26 .dv26-photo-grid > li,
.dv26 .dv26-photo-grid > li.dv26-photo-card--lead {
  background-color: var(--warm-card);
}

.partners-note,
.event-archive-section,
.join-registration-section,
.home-v2-about,
.home-v2-join,
.sg-tip,
.sg-warning,
.sg-help,
.owl-links a,
.semester-ticket-facts article,
.sgs-tab > b,
.home-ws-guide,
.join-soon-only,
.home-student-quick,
.about-compact-purpose,
.partner-compact-info {
  background-color: var(--warm-page);
}

@media (max-width: 1000px) {
  .nav-links {
    background-color: var(--warm-card);
  }
}

/* Headings: same serif + deep green as the homepage */
main:not(.join-soon-page):not(.hp) :is(h1, h2):not(.primary-contact > h2):not(.team-join-card h2):not(.partner-contact-section h2) {
  color: #0e4a3b !important;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
}

main:not(.join-soon-page):not(.hp) h1 {
  line-height: 1.05 !important;
}

/* Tighter, even spacing between sections (all pages) */
:root {
  --section-space-y: clamp(40px, 4vw, 56px);
  --section-pad-y: clamp(40px, 4vw, 56px);
  --section-pad-y-compact: clamp(32px, 3.2vw, 44px);
}

main:not(.hp):not(.join-soon-page) > section {
  padding-top: clamp(28px, 3vw, 44px) !important;
  padding-bottom: clamp(28px, 3vw, 44px) !important;
}

main:not(.hp):not(.join-soon-page) > section:first-child {
  padding-top: clamp(36px, 3.8vw, 56px) !important;
}

.hp .hp-hero {
  padding: clamp(36px, 4.2vw, 60px) 0 !important;
}

.hp .hp-section {
  padding: clamp(40px, 4vw, 56px) 0;
}

.hp .hp-events {
  padding-bottom: clamp(24px, 2.6vw, 32px);
}

.hp .hp-thanks {
  padding-bottom: clamp(36px, 3.6vw, 52px);
}

@media (max-width: 600px) {
  .hp .hp-section {
    padding: 36px 0;
  }

  .hp .hp-hero {
    padding: 24px 0 32px !important;
  }
}

/* Smaller page titles so they fit on one line (less empty space) */
main:not(.hp):not(.legal-page):not(.join-soon-page):not(.jn) h1 {
  font-size: clamp(36px, 4vw, 54px) !important;
}

main:not(.hp):not(.legal-page):not(.join-soon-page):not(.jn) h2:not(.primary-contact > h2) {
  font-size: clamp(28px, 2.8vw, 40px) !important;
}

/* Team: leader photos fill the card */

.modern-leader-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 25%;
}

/* Contact: email address on one line */
main .primary-contact > h2 {
  font-size: clamp(24px, 2.5vw, 34px) !important;
  overflow-wrap: anywhere;
}

/* Homepage hero: less empty space above/below, shorter photo */
.hp .hp-hero {
  padding: clamp(24px, 2.8vw, 40px) 0 !important;
}

.hp .hp-hero-inner {
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
}

.hp .hp-hero-photo {
  aspect-ratio: 16 / 10;
}

.hp h1.hp-hero-title {
  font-size: clamp(38px, 4.2vw, 58px);
}

.hp .hp-hero-lead {
  margin-top: 16px !important;
}

.hp .hp-hero-actions {
  margin-top: 24px;
}

.hp .hp-dates-inner {
  padding: 20px 0;
}

@media (max-width: 600px) {
  .hp .hp-hero {
    padding: 20px 0 28px !important;
  }
}

/* Homepage: tighter hero bottom + slimmer dates band */
.hp .hp-hero {
  padding-bottom: clamp(20px, 2vw, 28px) !important;
}

.hp .hp-hero-photo {
  box-shadow: 0 12px 28px rgba(28, 36, 32, .08);
}

.hp .hp-dates-inner {
  padding: 14px 0;
  gap: 12px 28px;
}

.hp .hp-dates-head a {
  font-size: 19px;
}

.hp .hp-date {
  padding-left: 16px;
}

.hp .hp-date small {
  font-size: 12px;
}

.hp .hp-date strong {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.3;
}

.hp .hp-dates + .hp-section {
  padding-top: clamp(32px, 3.2vw, 44px);
}

/* Homepage guide on phones: 2 x 3 compact tiles instead of 6 tall rows */
@media (max-width: 600px) {
  .hp .hp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hp .hp-steps a {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: start;
    gap: 8px;
    padding: 12px;
    min-height: 0;
  }

  .hp .hp-step-icon {
    width: 34px;
    height: 34px;
  }

  .hp .hp-step-icon .hp-icon {
    width: 18px;
    height: 18px;
  }

  .hp .hp-step-name {
    font-size: 15px;
    line-height: 1.25 !important;
  }

  .hp .hp-step-arrow {
    display: none;
  }
}

/* Homepage guide on phones: 3 per row */
@media (max-width: 600px) {
  .hp .hp-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hp .hp-steps a {
    justify-items: center;
    gap: 6px;
    padding: 12px 6px;
    text-align: center;
  }

  .hp .hp-step-text {
    align-items: center;
  }

  .hp .hp-step-icon {
    width: 32px;
    height: 32px;
  }

  .hp .hp-step-name {
    font-size: 13.5px;
    overflow-wrap: anywhere;
  }
}

/* Homepage guide on laptop/tablet: compact tiles (6 in a row on laptop, 3 on tablet) */
@media (min-width: 601px) {
  .hp .hp-steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .hp .hp-steps a {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: center;
    gap: 10px;
    padding: 18px 10px 16px;
    text-align: center;
  }

  .hp .hp-step-text {
    align-items: center;
  }

  .hp .hp-step-icon {
    width: 42px;
    height: 42px;
  }

  .hp .hp-step-name {
    font-size: 16px;
  }

  .hp .hp-step-note,
  .hp .hp-step-arrow,
  .hp .hp-step-no {
    display: none;
  }
}

@media (min-width: 601px) and (max-width: 960px) {
  .hp .hp-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Team page: side-by-side leader cards, matching accordions, readable CTA */
.leadership-grid-balanced {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.modern-leader-card {
  display: grid !important;
  grid-template-columns: minmax(160px, 40%) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.modern-leader-photo {
  height: auto !important;
  min-height: 240px;
  aspect-ratio: auto !important;
}

.modern-leader-info {
  align-self: center;
  padding: 22px 24px !important;
}

main:not(.hp):not(.legal-page):not(.join-soon-page):not(.zz) .community-board-accordion summary h2 {
  font-size: clamp(20px, 1.8vw, 26px) !important;
}

.dv26 {
  width: auto !important;
  max-width: 1160px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.dv26-event {
  box-shadow: none !important;
}

.dv26 .dv26-title {
  font-size: 16px !important;
}

.team-join-card h2 {
  color: #fffaf0 !important;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
}

@media (max-width: 700px) {
  .leadership-grid-balanced {
    grid-template-columns: 1fr !important;
  }

  .modern-leader-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .modern-leader-photo {
    min-height: 170px;
  }

  .modern-leader-info {
    padding: 14px 16px !important;
  }
}

/* Team page "Join ISG" button: text centred, pill shape like other buttons */
.team-join-card a {
  display: inline-flex !important;
  align-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  height: auto !important;
  min-height: 48px !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  background: #fffaf0 !important;
  color: #0e4a3b !important;
  font-weight: 700;
  line-height: 1 !important;
  white-space: nowrap;
}

.team-join-card a:hover {
  background: #f2b66d !important;
  color: #0e4a3b !important;
}

/* Homepage guide intro: button + PDF link side by side, less empty space */
.hp .hp-guide {
  gap: 24px;
}

.hp .hp-guide-intro {
  align-items: center;
}

.hp .hp-guide-intro > .hp-title {
  grid-row: 2 / 4;
  align-self: center;
}

.hp .hp-guide-intro > .hp-guide-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 4px;
}

.hp .hp-guide-intro > .hp-guide-actions .hp-btn {
  min-height: 46px;
}

.hp .hp-guide-intro > .hp-guide-actions .hp-link {
  font-size: 14.5px;
}

@media (min-width: 761px) {
  .hp .hp-guide-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Typography check: consistent heading sizes on the homepage */
.hp h2.hp-title,
.hp h2.hp-join-title {
  font-size: clamp(32px, 3.2vw, 44px) !important;
  line-height: 1.08 !important;
}

.hp .hp-partners-label {
  font-size: 20px !important;
  font-weight: 600 !important;
}

/* Menu: real chevron instead of the "v"-looking character (all pages) */
.nav-dropdown-toggle span {
  display: inline-block;
  font-size: 0 !important;
  line-height: 0;
}

.nav-dropdown-toggle span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

/* ---------- Bug fixes 2026-11-15 ---------- */
/* Datenschutz/Impressum: long German title no longer wider than a phone screen */
main.legal-page h1 {
  font-size: clamp(30px, 7.5vw, 54px) !important;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Readable small text (was 9.5-11px) on TK, partner and team pages.
   Selectors are repeated on purpose to beat the TK page's own !important rules. */
html body main .tk-contact-field.tk-contact-field.tk-contact-field > span,
html body main .tk-contact-check.tk-contact-check.tk-contact-check span {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

html body main .tk-contact-field.tk-contact-field.tk-contact-field > small,
html body main .tk-contact-message-meta.tk-contact-message-meta.tk-contact-message-meta small,
html body main .tk-contact-warning.tk-contact-warning.tk-contact-warning p,
html body main .tk-turnstile-wrap.tk-turnstile-wrap.tk-turnstile-wrap small,
html body main .tk-form-trust-row.tk-form-trust-row.tk-form-trust-row span,
html body main .tk-v12-resource.tk-v12-resource.tk-v12-resource small,
html body main .tk-v12-campus-meta.tk-v12-campus-meta.tk-v12-campus-meta span,
html body main .tk-v12-campus-meta.tk-v12-campus-meta.tk-v12-campus-meta small,
html body main .tk-v12-contact-guide.tk-v12-contact-guide.tk-v12-contact-guide span,
html body main .tk-v12-more-summary-text.tk-v12-more-summary-text.tk-v12-more-summary-text small,
html body main .tk-v12-more-action.tk-v12-more-action.tk-v12-more-action,
html body main .tk-v12-secure-pill.tk-v12-secure-pill.tk-v12-secure-pill,
html body .partner-disclaimer.partner-disclaimer p,
html body main .volunteer-teams-section.volunteer-teams-section small {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

html body main .former-leader-role {
  font-size: 11.5px !important;
}

/* 404 page */
.nf {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: clamp(40px, 6vw, 80px) 0;
  text-align: center;
}

.nf-code {
  margin: 0;
  color: #b8560f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.nf p.nf-text {
  max-width: 460px;
  margin: 12px auto 0;
  color: #66706b;
  font-size: 16px;
  line-height: 1.6;
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.nf-links a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #0e4a3b;
  border-radius: 999px;
  color: #0e4a3b;
  font-weight: 700;
  text-decoration: none;
}

.nf-links a.is-main {
  background: #0e4a3b;
  color: #fffaf0;
}

/* Complete ISG logo mark (with the yellow ribbon) in header and footer */
.site-header .brand-logo {
  width: auto !important;
  height: 46px !important;
  object-fit: contain;
}

.site-footer .footer-logo {
  width: auto !important;
  height: 60px !important;
  object-fit: contain;
}

/* Homepage "Come say namaste": wide green banner instead of centred text with empty sides */
.hp .hp-join {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  grid-template-areas:
    "kicker actions"
    "title  actions"
    "lead   more";
  align-items: center;
  gap: 10px clamp(28px, 5vw, 72px);
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4.5vw, 60px);
  border-radius: 28px;
  background: linear-gradient(125deg, #0e4a3b 0%, #12584a 60%, #0b3c30 100%);
  color: #fffaf0;
  text-align: left;
}

.hp .hp-join > .hp-kicker { grid-area: kicker; color: #f2b66d; }
.hp .hp-join > .hp-join-title { grid-area: title; margin: 0; color: #fffaf0 !important; }
.hp .hp-join > .hp-lead { grid-area: lead; margin: 0; color: #d9e6df; }
.hp .hp-join > .hp-join-actions { grid-area: actions; justify-content: flex-end; align-self: end; }
.hp .hp-join > .hp-join-more { grid-area: more; justify-content: flex-end; align-self: start; }

.hp .hp-join .hp-btn-green {
  background: #f2b66d;
  color: #0e4a3b;
}

.hp .hp-join .hp-btn-green:hover {
  background: #fffaf0;
}

.hp .hp-join .hp-btn-outline {
  border-color: rgba(255, 250, 240, .7);
  color: #fffaf0;
}

.hp .hp-join .hp-btn-outline:hover {
  background: rgba(255, 250, 240, .12);
}

.hp .hp-join .hp-link {
  border-color: rgba(255, 250, 240, .5);
  color: #fffaf0;
}

@media (max-width: 860px) {
  .hp .hp-join {
    grid-template-columns: 1fr;
    grid-template-areas: "kicker" "title" "lead" "actions" "more";
    gap: 12px;
  }

  .hp .hp-join > .hp-join-actions,
  .hp .hp-join > .hp-join-more {
    justify-content: flex-start;
    margin-top: 8px;
  }
}

/* ---------- Team page: ISG Alumni ---------- */
.alumni-accordion {
  border: 1px solid #e2d3b9;
  border-radius: 18px;
  background: #fbf5ea;
}

.alumni-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.alumni-accordion summary::-webkit-details-marker { display: none; }

.alumni-accordion summary strong {
  display: block;
  color: #1c2420;
  font-size: 16px;
}

.alumni-accordion summary small {
  display: block;
  margin-top: 2px;
  color: #66706b;
  font-size: 13px;
}

.alumni-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6efe9;
  color: #0e4a3b;
  font-weight: 700;
  transition: transform .2s ease;
}

.alumni-accordion[open] .alumni-toggle { transform: rotate(45deg); }

.alumni-body {
  display: grid;
  gap: 22px;
  padding: 4px 22px 22px;
  border-top: 1px solid #ecdfc8;
}

.alumni-group h3 {
  margin: 16px 0 10px;
  color: #b8560f;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.alumni-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alumni-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #ecdfc8;
  border-radius: 12px;
  background: #fffdf8;
  color: #1c2420;
  font-size: 14.5px;
  font-weight: 600;
}

.alumni-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6efe9;
  color: #0e4a3b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.alumni-group:nth-child(2n) .alumni-avatar {
  background: #f6dcbc;
  color: #8a3f0b;
}

.alumni-photo {
  object-fit: cover;
}

.alumni-list li > span {
  min-width: 0;
}

.alumni-list li small {
  display: block;
  color: #b8560f;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.alumni-in {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 6px;
  background: #0e4a3b;
  color: #fffaf0;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

/* Partner pages (Deutsche Bank, Hausarzt): contact band in ISG green, readable text */
.partner-contact-section {
  background: linear-gradient(125deg, #0e4a3b 0%, #12584a 60%, #0b3c30 100%) !important;
}

.partner-contact-section h2 {
  color: #fffaf0 !important;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
}

.partner-contact-section .section-label {
  color: #f2b66d !important;
}

.partner-contact-section .contact-person-card {
  border-color: rgba(255, 250, 240, .18) !important;
  background: rgba(255, 250, 240, .08) !important;
}

.partner-contact-section .contact-person-card h3 {
  color: #fffaf0 !important;
}
