/* Engagementstiftung Sachsen — Corporate Design Tokens */

@font-face {
  font-family: 'Anek Devanagari';
  src: url('Fonts/AnekDevanagari.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('Fonts/AtkinsonHyperlegibleNext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --essn-green: #008444;
  --essn-green-dark: #006B37;
  --essn-obsidian: #1D252D;
  --essn-black: #000000;
  --essn-offwhite: #F2F0FF;
  --essn-white: #FFFFFF;
  --essn-fuchsia: #FF4763;
  --essn-orange: #FF8503;
  --essn-petrol: #57A7AB;
  --essn-yellow: #FCE48D;
  --essn-raspberry: #A60366;

  --font-display: 'Anek Devanagari', 'Segoe UI', sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Segoe UI', sans-serif;

  --essn-green-light: color-mix(in srgb, var(--essn-green) 50%, white 50%);

  --radius-lg: 28px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.4;
  color: var(--essn-obsidian);
  background: var(--essn-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

a { color: var(--essn-green); text-decoration: none; }
a:hover { text-decoration: underline; }

.essn-content, .essn-header__inner, .essn-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.essn-header {
  background: var(--essn-white);
  border-bottom: 1px solid #E5E2F0;
}
.essn-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.essn-logo {
  display: flex;
  align-items: center;
}
.essn-logo:hover { text-decoration: none; }
.essn-logo__img {
  height: 44px;
  width: auto;
  display: block;
}
.essn-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.essn-nav a {
  color: var(--essn-obsidian);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.essn-nav a:hover,
.essn-nav a.neos-current {
  color: var(--essn-green);
  border-bottom-color: var(--essn-green);
}

/* Hero */
.essn-hero {
  background: var(--essn-obsidian);
  padding: 64px 24px;
  display: flex;
  justify-content: center;
}
.essn-hero__box {
  max-width: 640px;
  color: var(--essn-white);
}
.essn-hero__topline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--essn-green);
  margin: 0 0 12px;
}
.essn-hero__headline {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.essn-hero__text {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 28px;
  color: #E9E7F5;
}

/* Buttons */
.essn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.essn-button:hover { text-decoration: none; transform: translateY(-1px); }
.essn-button--light {
  background: var(--essn-white);
  color: var(--essn-obsidian);
}
.essn-button--light:hover { background: var(--essn-green); color: var(--essn-white); }
.essn-button--primary {
  background: var(--essn-green);
  color: var(--essn-white);
}
.essn-button--primary:hover { background: var(--essn-green-dark); }
.essn-button--sm { padding: 10px 22px; font-size: 0.88rem; }

/* Content sections */
.essn-content {
  padding: 56px 24px;
}
.essn-content--page {
  max-width: 760px;
}
.essn-page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 0.98;
  margin-bottom: 24px;
  color: var(--essn-obsidian);
}
.essn-content p { margin: 0 0 1.2em; }
.essn-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
}
.essn-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.4em 0 0.5em;
}
.essn-content img { max-width: 100%; border-radius: var(--radius-md); height: auto; }

/* Generic rounded card, available to content elements */
.essn-card {
  background: var(--essn-offwhite);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.essn-news-entry__date {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--essn-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* Footer */
.essn-footer {
  background: var(--essn-green-dark);
  color: var(--essn-white);
  margin-top: 40px;
  padding: 72px 0 32px;
}

.essn-footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 48px 0;
}
.essn-footer__divider--tight {
  margin: 32px 0 20px;
}

/* Top: eyebrow + headline / intro + CTA */
.essn-footer__top-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.essn-footer__intro-left {
  flex: 1 1 320px;
}
.essn-footer__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--essn-green-light);
  margin: 0 0 16px;
}
.essn-footer__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.essn-footer__intro-right {
  flex: 1 1 320px;
  max-width: 440px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.essn-footer__intro-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.essn-footer__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Columns + newsletter row */
.essn-footer__columns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.essn-footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  flex: 1 1 600px;
}
.essn-footer__col {
  flex: 1 1 140px;
  min-width: 140px;
}
.essn-footer__col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--essn-green-light);
  margin: 0 0 18px;
}
.essn-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.essn-footer__link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.essn-footer__link:hover { color: var(--essn-white); }

.essn-footer__newsletter {
  flex: 0 1 320px;
  min-width: 240px;
}
.essn-footer__newsletter h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--essn-green-light);
  margin: 0 0 18px;
}
.essn-footer__newsletter-text {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.essn-footer__newsletter-form {
  display: flex;
  gap: 8px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 12px;
}
.essn-footer__newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 4px 0;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--essn-white);
}
.essn-footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.essn-footer__newsletter-input:focus {
  outline: none;
}
.essn-footer__newsletter-submit {
  background: none;
  border: none;
  color: var(--essn-white);
  cursor: pointer;
  padding: 4px;
  display: flex;
}

/* Address + socials row */
.essn-footer__contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.essn-footer__address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}
.essn-footer__address-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.essn-footer__address a { color: inherit; }
.essn-footer__address a:hover { color: var(--essn-white); }

.essn-footer__socials {
  display: flex;
  gap: 10px;
}
.essn-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--essn-white);
}
.essn-footer__social:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

/* Meta row */
.essn-footer__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.essn-footer__legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.essn-footer__legal-links a { color: inherit; }
.essn-footer__legal-links a:hover { color: var(--essn-white); }

@media (max-width: 720px) {
  .essn-header__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .essn-nav ul { gap: 16px; }
  .essn-footer { padding-top: 56px; }
  .essn-footer__top-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .essn-footer__intro-right { max-width: 100%; margin-left: 0; }
  .essn-footer__divider { margin: 32px 0; }
  .essn-footer__contact-row { flex-direction: column; align-items: flex-start; }
}
