/* WECHSELPUNKT Blog — Design der Hauptseite (Tokens, Schrift, Header, Footer, CTA).
   Spiegel der Stile von wechselpunkt.com. Blog-spezifische Regeln stehen in ../style.css. */

:root {
  --paper: #f4f2ec;
  --ink: #1d1d1b;
  --yellow: #ffdf08;
  --cream: #ece9e1;
  --line: #dcd8cd;
  --muted: #5c5a54;
  --muted-2: #3a3a37;
  --line-dark: #45443f;
  --eyebrow-dark: #b9b6ad;
  --lead-dark: #e6e3db;
  --pad-x: clamp(20px, 4vw, 48px);
  --container: 1200px;
  --section-y: clamp(72px, 10vw, 130px);
  --radius: 2px;
  --header-h: 81px;
  --page-max: 1440px;
  --backdrop: #dddad2;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

@font-face { font-family: 'Switzer'; src: url('../assets/fonts/Switzer-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../assets/fonts/Switzer-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../assets/fonts/Switzer-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--backdrop); scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Switzer', system-ui, sans-serif; font-size: 17px; line-height: 1.6; background: var(--backdrop); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
img { max-width: 100%; }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.page { max-width: var(--page-max); margin: 0 auto; background: var(--paper); min-height: 100vh; }
.page__content { position: relative; z-index: 1; background: var(--paper); }
body.curtain .end { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--page-max); z-index: 0; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.h1, .h2 { margin: 0; font-weight: 900; text-transform: uppercase; overflow-wrap: break-word; }
.h1 { font-size: clamp(40px, 6.6vw, 96px); line-height: 0.94; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; }
@media (max-width: 767px) { .h1, .h2 { hyphens: auto; -webkit-hyphens: auto; } }
.dot { color: var(--yellow); }
.btn { display: inline-block; text-decoration: none; padding: 16px 26px; border-radius: var(--radius); font-weight: 400; transition: background .2s ease, color .2s ease; }
.btn:hover { color: inherit; }

/* Fokus (Tastatur) */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cta :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible, .blog-hero :focus-visible, .burger[aria-expanded="true"]:focus-visible { outline-color: var(--yellow); }
:focus:not(:focus-visible) { outline: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(244,242,236,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 8px var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { height: 64px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.nav__group { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__slider { position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0; opacity: 0; background: var(--yellow); border-radius: var(--radius); pointer-events: none; transition: left .32s cubic-bezier(.2,.8,.2,1), width .32s cubic-bezier(.2,.8,.2,1), top .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.nav__link { position: relative; z-index: 1; text-decoration: none; color: var(--ink); padding: 8px 12px; display: block; }
.nav__link:hover { color: var(--ink); }
.nav__dd { position: relative; z-index: 2; }
.nav__link--dd { display: flex; align-items: center; gap: 8px; }
.nav__chev { display: inline-block; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); margin-top: -3px; transition: transform .2s ease; }
.nav__dd.is-open .nav__chev { transform: rotate(-135deg); }
.nav__panel-wrap { position: absolute; top: 100%; left: 0; padding-top: 10px; display: none; }
.nav__dd.is-open .nav__panel-wrap { display: block; }
.nav__panel { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(29,29,27,0.10); padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.nav__panel a { display: block; text-decoration: none; color: var(--ink); padding: 10px 14px; border-radius: var(--radius); white-space: nowrap; }
.nav__panel a:hover, .nav__panel a:focus-visible { background: var(--yellow); color: var(--ink); }
.nav__cta { text-decoration: none; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--radius); font-weight: 400; transition: background .2s ease, color .2s ease; }
.nav__cta:hover { background: var(--yellow); color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; z-index: 12; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease, background .2s ease; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span { background: var(--paper); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 9; background: var(--ink); padding: 104px var(--pad-x) 40px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { display: block; color: var(--paper); text-decoration: none; font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 8vw, 40px); line-height: 1.1; letter-spacing: -0.03em; padding: 10px 0; }
.mobile-menu a:hover, .mobile-menu a:focus-visible { color: var(--yellow); }
.mobile-menu .mobile-menu__cta { margin-top: 20px; display: inline-block; background: var(--yellow); color: var(--ink); padding: 16px 26px; font-weight: 400; font-size: 18px; text-transform: none; letter-spacing: 0; border-radius: var(--radius); }
.mobile-menu .mobile-menu__cta:hover { background: var(--paper); color: var(--ink); }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--ink); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .site-header__logo img { filter: invert(1) hue-rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) { animation: fade-in 300ms ease-out; }
  .mobile-menu:not([hidden]) li { animation: menu-link-in 450ms var(--ease-out) backwards; }
  .mobile-menu:not([hidden]) li:nth-child(1) { animation-delay: 60ms; } .mobile-menu:not([hidden]) li:nth-child(2) { animation-delay: 120ms; }
  .mobile-menu:not([hidden]) li:nth-child(3) { animation-delay: 180ms; } .mobile-menu:not([hidden]) li:nth-child(4) { animation-delay: 240ms; }
  .mobile-menu:not([hidden]) li:nth-child(5) { animation-delay: 300ms; } .mobile-menu:not([hidden]) li:nth-child(6) { animation-delay: 360ms; }
  .mobile-menu:not([hidden]) li:nth-child(7) { animation-delay: 420ms; }
}
@keyframes menu-link-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) {
  .nav { display: none; }
  .burger { display: block; }
  .site-header__logo img { height: 52px; }
  :root { --header-h: 69px; }
}

/* ---------- CTA + Footer ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.cta__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(29,29,27,.85) 0%, rgba(29,29,27,.35) 60%, rgba(29,29,27,.15) 100%); }
.cta__wrap { width: 100%; position: relative; }
.cta__inner { padding-top: var(--section-y); padding-bottom: var(--section-y); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.cta__h2 { max-width: 760px; color: var(--paper); font-size: clamp(38px, 5vw, 68px); }
.cta__action { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta__btn { background: var(--yellow); color: var(--ink); padding: 18px 28px; font-size: 18px; }
.cta__btn:hover { background: var(--paper); color: var(--ink); }
.cta__note { font-size: 15px; color: var(--lead-dark); }

.site-footer { background: var(--ink); color: var(--eyebrow-dark); font-size: 14px; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 40px var(--pad-x); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer__claim { color: var(--paper); }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--eyebrow-dark); }
.site-footer a:hover { color: var(--yellow); }
