/* klima-modern.css
   Gemeinsame Basis für schrittweise modernisierte Seiten auf klima-retten.info
*/

:root {
  --color-bg: #f4f7f7;
  --color-surface: #ffffff;
  --color-surface-soft: #eef5f4;
  --color-text: #1d2a2e;
  --color-muted: #5c6a6e;
  --color-line: #cbd8d7;
  --color-primary: #176b72;
  --color-primary-dark: #0d4d54;
  --color-primary-soft: #e1f0ef;
  --color-accent: #5b8f3a;
  --color-accent-soft: #edf5e8;
  --color-link: #126a86;
  --color-focus: #f2b84b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(24, 55, 60, 0.08);
  --shadow-md: 0 10px 30px rgba(24, 55, 60, 0.10);

  --content-width: 1180px;
  --text-width: 820px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  color: var(--color-primary-dark);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.025em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  width: min(var(--content-width), calc(100% - 32px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--color-text);
}

.brand__logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__title {
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--color-primary-dark);
}

.brand__tagline {
  margin-top: 4px;
  font-size: 0.91rem;
  color: var(--color-muted);
}

.main-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: #294044;
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}


.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-primary-dark);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 720;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--color-primary-soft);
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after  { top: 7px; }

.nav-open .nav-toggle__icon {
  background: transparent;
}
.nav-open .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-open .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.page-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: clamp(42px, 7vw, 78px) 0 34px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: var(--text-width);
  margin: 18px auto 0;
  color: var(--color-muted);
  font-size: clamp(1.03rem, 2vw, 1.18rem);
}

.hero__shortlink {
  margin-top: 18px;
  font-size: 0.95rem;
}

.hero__shortlink a {
  font-weight: 750;
}

.espm-intro {
  max-width: 960px;
  margin: 0 auto 34px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.espm-intro__heading {
  margin-bottom: 16px;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 750;
}

.espm-intro__background {
  margin-bottom: 22px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.step {
  padding: 18px 20px;
  background: var(--color-surface-soft);
  border: 1px solid #c7dcda;
  border-radius: var(--radius-md);
  text-align: left;
}

.step__number {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step__text {
  font-weight: 720;
}

.steps__arrow {
  align-self: center;
  color: var(--color-accent);
  font-size: 1.65rem;
  font-weight: 800;
}

.section {
  margin: 0 0 48px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 780px;
  color: var(--color-muted);
}

.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch;
}

.table-scroll__hint {
  display: none;
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.tool-matrix {
  width: 100%;
  min-width: 1020px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--color-surface);
  font-size: 0.94rem;
  line-height: 1.42;
}

.tool-matrix caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tool-matrix th,
.tool-matrix td {
  padding: 15px 14px;
  vertical-align: middle;
  text-align: center;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  overflow-wrap: anywhere;
}

.tool-matrix tr > :last-child {
  border-right: 0;
}

.tool-matrix tbody tr:last-child > * {
  border-bottom: 0;
}

.tool-matrix .matrix-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f7faf9;
  color: #33484c;
  font-weight: 720;
  text-align: left;
}

.tool-matrix .matrix-head {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 0.97rem;
  font-weight: 780;
}

.tool-matrix .matrix-head.matrix-label {
  z-index: 4;
  background: #d6e9e7;
}

.tool-matrix .section-row th {
  position: static;
  padding: 13px 18px;
  background: var(--color-primary-dark);
  color: #fff;
  border-right: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-align: left;
}

.tool-matrix .group-cell {
  background: #f7fbfb;
  box-shadow: inset 0 0 0 1px rgba(23, 107, 114, 0.03);
}

.tool-matrix .group-cell--accent {
  background: var(--color-accent-soft);
}

.tool-matrix .tool-link {
  display: inline-block;
  font-weight: 760;
}

.tool-matrix .secondary-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.89rem;
}

.tool-matrix .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}

.tool-matrix .icon-link:hover {
  border-color: #99b8b5;
}

.tool-matrix .excel-icon {
  width: 40px;
  height: 40px;
}

.tool-matrix .paper-icon {
  width: 64px;
  height: 64px;
}

.tool-matrix ul {
  margin: 10px 0 0;
  padding-left: 1.25rem;
  text-align: left;
}

.tool-matrix li + li {
  margin-top: 5px;
}

.merged-note {
  color: #27454a;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card__kicker {
  margin-bottom: 7px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0 0 12px;
}

.card p {
  color: var(--color-muted);
}

.card__link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 60px;
  background: #173d43;
  color: #e6efef;
}

.site-footer__inner {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.site-footer a {
  color: #ffffff;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.site-footer__meta {
  color: #c9d9d9;
  font-size: 0.9rem;
}

.facebook-badge {
  width: 69px;
  height: 20px;
  vertical-align: middle;
}

@media (max-width: 1080px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .main-nav {
    display: none;
    position: absolute;
    top: calc(100% - 8px);
    right: 0;
    z-index: 20;
    width: min(360px, calc(100vw - 32px));
    padding: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .js .nav-open .main-nav {
    display: block;
  }

  .js .main-nav ul {
    display: block;
  }

  .js .main-nav li + li {
    margin-top: 2px;
  }

  .js .main-nav a {
    padding: 10px 11px;
    white-space: normal;
  }

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

@media (max-width: 720px) {
  .site-header__inner {
    min-height: 76px;
  }

  .brand__logo {
    width: 54px;
    height: 54px;
  }

  .brand__tagline {
    display: none;
  }

  .nav-toggle__text {
    display: none;
  }


  body {
    font-size: 15.5px;
  }

  .page-shell,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 22px, var(--content-width));
  }

  .brand__logo {
    width: 54px;
    height: 54px;
  }

  .hero {
    padding-top: 34px;
  }

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

  .steps__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .espm-intro {
    padding: 18px;
  }

  .table-scroll__hint {
    display: block;
  }

  .tool-matrix {
    min-width: 930px;
  }

  .tool-matrix th,
  .tool-matrix td {
    padding: 13px 11px;
  }

  .tool-matrix .matrix-label {
    min-width: 132px;
    box-shadow: 5px 0 8px -8px rgba(0, 0, 0, 0.7);
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ---------- Reusable content-page components ---------- */

.utility-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.utility-nav a {
  display: block;
  padding: 8px 11px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: #294044;
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.utility-nav a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.content-narrow {
  max-width: 900px;
  margin-inline: auto;
}

.content-card {
  padding: clamp(20px, 3vw, 30px);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.content-card--soft {
  background: var(--color-surface-soft);
}

.content-card--accent {
  background: var(--color-accent-soft);
  border-color: #cbdcbd;
}

.content-card > :last-child {
  margin-bottom: 0;
}

.lead-quote {
  max-width: 940px;
  margin: 0 auto 32px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--color-surface);
  border-left: 5px solid var(--color-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.13rem);
}

.data-table-wrap {
  max-width: 650px;
  margin: 22px auto;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--color-line);
  text-align: center;
}

.data-table thead th {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: 780;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(even) {
  background: #fafcfc;
}

.stat-note {
  max-width: 650px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
}

.stat-note strong {
  color: #fff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.button--secondary {
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-primary-dark);
}

.button--secondary:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.section-rule {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: var(--color-line);
}

.embed-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.responsive-frame {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius-md);
  background: #fff;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.app-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.app-card p {
  color: var(--color-muted);
}

.app-card__image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  margin: 10px 0 18px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #f8fbfb;
  overflow: hidden;
}

.app-card__image img {
  display: block;
  max-height: 390px;
  width: auto;
}

.app-card__link {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: criteria;
}

.criteria li {
  position: relative;
  min-height: 72px;
  padding: 16px 16px 16px 52px;
  border: 1px solid #cbdcbd;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  font-weight: 700;
}

.criteria li::before {
  counter-increment: criteria;
  content: counter(criteria);
  position: absolute;
  left: 15px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.policy-note {
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: #173d43;
  color: #eaf2f2;
  box-shadow: var(--shadow-sm);
}

.policy-note h2,
.policy-note a {
  color: #fff;
}

.policy-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .utility-nav a {
    padding: 7px 9px;
    font-size: 0.84rem;
  }

  .app-grid,
  .criteria {
    grid-template-columns: 1fr;
  }

  .responsive-frame {
    height: 315px;
  }

  .app-card__image {
    min-height: 180px;
  }
}


/* ---------- IPCC budgets: related tools ---------- */

.app-card--national {
  border-color: #b8d2cf;
}

.app-card--overview {
  background: var(--color-surface-soft);
}

.app-versions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 8px 0 18px;
}

.app-version {
  padding: 14px 15px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
}

.app-version__label {
  margin-bottom: 4px;
  color: var(--color-primary-dark);
  font-weight: 800;
}

.app-version p {
  margin-bottom: 7px;
  color: var(--color-muted);
  font-size: 0.93rem;
}

.app-version a {
  font-weight: 750;
  overflow-wrap: anywhere;
}

.app-card__details {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}

.app-card__details .criteria {
  grid-template-columns: 1fr;
}

.overview-symbol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0;
}

.overview-symbol span {
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 10px;
  border: 1px solid #c7dcda;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  font-weight: 760;
  text-align: center;
}



.overview-row {
  margin-top: 20px;
}

.overview-row .app-card--overview {
  max-width: 100%;
}

.overview-row .overview-symbol {
  max-width: 520px;
}

/* ---------- Gemeinsamer moderner Seitenkopf und Drawer ---------- */

body.modern-shell {
  min-height: 100%;
  background:
    radial-gradient(1100px 560px at 12% 8%, rgba(91, 143, 58, 0.09), transparent 62%),
    radial-gradient(980px 560px at 90% 18%, rgba(23, 107, 114, 0.06), transparent 60%),
    var(--color-bg);
}

body.modern-shell.menu-open {
  overflow: hidden;
}

.modern-shell .modern-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-line);
  background: rgba(248, 252, 248, 0.92);
  backdrop-filter: blur(12px);
}

.modern-shell .modern-brand {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}

.modern-shell .modern-brand:hover {
  color: var(--color-text);
}

.modern-shell .modern-logo {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.modern-shell .modern-logo img {
  display: block;
  width: 34px;
  height: 34px;
}

.modern-shell .modern-brand__title {
  display: block;
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.modern-shell .modern-brand__tagline {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.modern-shell .modern-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modern-shell .modern-action-link,
.modern-shell .modern-burger {
  min-height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

.modern-shell .modern-action-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.modern-shell .modern-action-link:hover,
.modern-shell .modern-burger:hover {
  border-color: rgba(91, 143, 58, 0.38);
  background: var(--color-accent-soft);
  color: var(--color-primary-dark);
}

.modern-shell .modern-burger {
  display: grid;
  width: 46px;
  padding: 0;
  place-items: center;
  cursor: pointer;
}

.modern-shell .modern-burger__lines {
  position: relative;
  width: 18px;
  height: 12px;
}

.modern-shell .modern-burger__lines span {
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.22s ease;
}

.modern-shell .modern-burger__lines span:nth-child(1) { top: 0; }
.modern-shell .modern-burger__lines span:nth-child(2) { top: 5px; opacity: 0.9; }
.modern-shell .modern-burger__lines span:nth-child(3) { top: 10px; opacity: 0.85; }
.modern-shell .modern-burger[aria-expanded="true"] .modern-burger__lines span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.modern-shell .modern-burger[aria-expanded="true"] .modern-burger__lines span:nth-child(2) { opacity: 0; }
.modern-shell .modern-burger[aria-expanded="true"] .modern-burger__lines span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.modern-shell .modern-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(13, 36, 40, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.modern-shell .modern-overlay[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.modern-shell .modern-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: flex;
  width: min(420px, 88vw);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  overflow: hidden;
  border-left: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: -16px 0 42px rgba(24, 55, 60, 0.18);
  backdrop-filter: blur(14px);
  transform: translateX(102%);
  transition: transform 0.22s ease;
}

.modern-shell .modern-drawer[data-open="true"] {
  transform: translateX(0);
}

.modern-shell .modern-drawer__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 6px 6px 12px;
  border-bottom: 1px solid var(--color-line);
}

.modern-shell .modern-drawer__head strong {
  color: var(--color-primary-dark);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modern-shell .modern-drawer__close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface-soft);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.modern-shell .modern-menu {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding: 6px 6px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(92, 106, 110, 0.44) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.modern-shell .modern-menu::-webkit-scrollbar { width: 10px; }
.modern-shell .modern-menu::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(92, 106, 110, 0.36);
  background-clip: padding-box;
}

.modern-shell .modern-menu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid rgba(29, 42, 46, 0.10);
  border-radius: 14px;
  background: rgba(238, 245, 244, 0.82);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.modern-shell .modern-menu > a:hover,
.modern-shell .modern-menu > a[aria-current="page"] {
  border-color: rgba(91, 143, 58, 0.34);
  background: var(--color-accent-soft);
  color: var(--color-primary-dark);
}

.modern-shell .modern-menu__heading {
  margin: 1.1em 0 0.35em;
  padding: 0.8em 4px 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modern-shell .modern-menu__startpages {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0.55em 4px 0.8em;
  flex-wrap: wrap;
}

.modern-shell .modern-menu__languages {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.modern-shell .modern-menu__languages a {
  display: inline-flex;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-surface-soft);
  color: var(--color-primary-dark);
  font-size: 0.86rem;
  font-weight: 720;
  text-decoration: none;
}

@media (max-width: 720px) {
  .modern-shell .modern-header { min-height: 70px; padding: 12px; }
  .modern-shell .modern-brand { min-width: 0; }
  .modern-shell .modern-brand__title { font-size: 13px; }
  .modern-shell .modern-brand__tagline { font-size: 11px; }
  .modern-shell .modern-action-link { display: none; }
  .modern-shell .modern-drawer { width: 90vw; max-width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .modern-shell .modern-overlay,
  .modern-shell .modern-drawer,
  .modern-shell .modern-burger__lines span {
    transition: none !important;
  }
}
