/*
Theme Name: Axel Friedrich
Theme URI: https://axelfriedrich.de/
Description: Sachliches, barrierearmes One-Page-Theme für Dr. Axel Friedrich. Ohne externe Ressourcen, Tracking oder Page-Builder.
Author: axelfriedrich.de
Version: 1.0.0
Requires at least: 6.8
Tested up to: 6.9
Requires PHP: 8.1
License: All rights reserved
Text Domain: axelfriedrich
*/

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #eef2f5;
  --text: #142126;
  --muted: #526169;
  --line: #dbe1e5;
  --accent: #075e54;
  --accent-strong: #064b44;
  --accent-soft: #dcece9;
  --warm: #e5a54b;
  --max: 1120px;
  --read: 760px;
  --radius: 16px;
  --shadow: 0 16px 48px rgba(18, 33, 38, .07);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent-strong); text-decoration-thickness: .13em; }
h1, h2, h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: .7rem 1rem;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.shell {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 .85rem;
  color: var(--accent);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.external-mark { margin-left: .25em; font-size: .88em; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(219, 225, 229, .84);
  background: rgba(247, 248, 250, .9);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}
.site-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .72rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}
.brand__mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .04em;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .45rem .78rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { background: var(--surface); color: var(--text); }

.hero {
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 88% 20%, rgba(229, 165, 75, .19), transparent 28rem),
    linear-gradient(180deg, #fbfcfc 0%, var(--bg) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .7fr);
  align-items: end;
  gap: clamp(2.5rem, 7vw, 6.5rem);
}
.hero__copy { max-width: 800px; }
.hero h1 { margin-bottom: .25em; }
.hero__lead {
  max-width: 34ch;
  margin-bottom: 1.3rem;
  color: var(--accent);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 650;
  line-height: 1.35;
  text-wrap: balance;
}
.hero__copy > p:not(.eyebrow, .hero__lead) { max-width: 68ch; color: var(--muted); }
.hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.3rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.15rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--accent-strong); color: #fff; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 750; }
.profile-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}
.profile-card ul { list-style: none; }
.profile-card li { padding: .72rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.profile-card li:first-child { padding-top: 0; border-top: 0; }
.profile-card li:last-child { padding-bottom: 0; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-heading { max-width: var(--read); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-heading h2 { margin-bottom: .55em; }
.section-heading > p:last-child { color: var(--muted); }
.section--press { border-top: 1px solid var(--line); background: var(--surface); }
.language-section + .language-section { margin-top: clamp(4rem, 8vw, 7rem); }
.language-section__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .9rem;
  border-bottom: 2px solid var(--text);
}
.language-section__title > span { color: var(--muted); font-size: .87rem; font-weight: 700; }
.press-list { list-style: none; }
[hidden] { display: none !important; }
.press-filter {
  margin: 2.2rem 0 3.2rem;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0;
  border: 1px solid var(--line);
  border-width: 1px 0;
  background: var(--surface);
}
.press-filter__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 3vw, 2.2rem) 1.4rem;
}
.press-filter__header h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -.035em;
  line-height: 1.1;
}
.press-filter__eyebrow {
  margin: 0 0 .3rem;
  color: var(--accent);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.press-filter__category {
  min-width: 0;
  margin: 0;
  padding: 1.35rem clamp(1rem, 3vw, 2.2rem) 1.6rem;
  border: 0;
  border-top: 1px solid var(--line);
}
.press-filter__category legend {
  margin-bottom: .7rem;
  color: var(--text);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.press-filter__choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.press-filter__choice {
  position: relative;
  display: grid;
  min-height: 48px;
  cursor: pointer;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .65rem .8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: .84rem;
  font-weight: 750;
}
.press-filter__choice:hover { background: #f8faf9; }
.press-filter__choice:has(input:checked) {
  padding-left: calc(.8rem - 3px);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.press-filter__choice:focus-within { outline: 3px solid var(--warm); outline-offset: 2px; }
.press-filter__choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.press-filter__choice small {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.press-filter__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) minmax(250px, auto);
  align-items: end;
  gap: 1rem 1.5rem;
  padding: 1.35rem clamp(1rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
}
.press-filter__select {
  display: grid;
  gap: .38rem;
  color: var(--text);
}
.press-filter__select > span {
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.press-filter__select > span small { color: var(--muted); font-size: .82em; font-weight: 750; }
.press-filter__select select {
  width: 100%;
  min-height: 48px;
  padding: .6rem 2.2rem .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.press-filter__select select:hover,
.press-filter__select select:focus { border-color: var(--accent); }
.press-filter__select select:focus { outline: 3px solid var(--warm); outline-offset: 2px; }
.press-filter__note {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}
.press-filter__paywall {
  position: relative;
  display: flex;
  min-height: 48px;
  cursor: pointer;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-weight: 750;
}
.press-filter__paywall input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.press-filter__paywall:has(input:focus-visible) { outline: 3px solid var(--warm); outline-offset: 2px; }
.press-filter__paywall small { color: var(--muted); font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.press-filter__switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid #aebbc0;
  border-radius: 11px;
  background: #d9e0e2;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.press-filter__switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 33, 38, .22);
  content: "";
  transition: transform 160ms ease;
}
.press-filter__paywall input:checked + .press-filter__switch { border-color: var(--accent); background: var(--accent); }
.press-filter__paywall input:checked + .press-filter__switch::after { transform: translateX(18px); }
.press-filter__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
}
.press-filter__status {
  min-height: 1.2em;
  margin: 0;
  text-align: right;
  color: var(--text);
  font-size: .82rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.press-filter__reset {
  flex: 0 0 auto;
  min-height: 40px;
  padding: .45rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 750;
  white-space: nowrap;
}
.press-filter__reset:disabled { cursor: default; opacity: .35; }
.press-filter__reset:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }
.press-filter__empty {
  margin: 0 0 2.5rem;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
}
.press-item {
  display: grid;
  grid-template-columns: minmax(175px, .28fr) minmax(0, 1fr);
  gap: .5rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.press-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  align-items: center;
  gap: .18rem .38rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.press-item__format {
  margin-left: .25rem;
  padding: .14rem .4rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: .68rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.press-item__topic,
.press-item__paywall,
.press-item__uncertain {
  margin-left: .25rem;
  padding: .14rem .4rem;
  border-radius: 999px;
  background: #e4eeec;
  color: #31534e;
  font-size: .68rem;
  letter-spacing: .02em;
}
.press-item__paywall {
  background: #fff1d9;
  color: #7a4d00;
  font-weight: 850;
  text-transform: uppercase;
}
.press-item__uncertain {
  background: #edf0f1;
  color: #4e5d63;
  font-weight: 800;
}
.press-item__title {
  display: inline;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 780;
  line-height: 1.4;
  text-decoration-color: transparent;
  text-wrap: pretty;
}
.press-item__title:hover { color: var(--accent); text-decoration-color: currentColor; }
.press-item > p {
  grid-column: 2;
  margin: .05rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.52;
}
.press-archive { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.press-archive summary {
  display: flex;
  min-height: 54px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  color: var(--accent);
  font-weight: 800;
  list-style: none;
}
.press-archive summary::-webkit-details-marker { display: none; }
.press-archive summary span { font-size: 1.5rem; font-weight: 400; transition: transform .2s ease; }
.press-archive[open] summary span { transform: rotate(45deg); }
.press-archive__content { padding: 0 1rem 1rem; }
.press-year { margin-top: 2.4rem; }
.press-year h3 { padding-bottom: .6rem; border-bottom: 1px solid var(--line); font-size: 1rem; letter-spacing: .02em; }

.section--energy { background: var(--accent); color: #fff; }
.energy-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2.5rem 4rem; }
.energy-card > div { max-width: 780px; }
.energy-card .eyebrow { color: #c9e5e1; }
.energy-card h2 { margin-bottom: .55em; color: #fff; }
.energy-card p:last-child { margin-bottom: 0; color: #e0efed; }
.button--light { min-width: 250px; background: #fff; color: var(--accent-strong); }
.button--light:hover { background: var(--accent-soft); color: var(--accent-strong); }
.section--contact { background: var(--surface-soft); }
.contact-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); align-items: start; gap: clamp(2.5rem, 7vw, 6rem); }
.contact-intro { position: sticky; top: 112px; }
.contact-intro h2 { margin-bottom: .65em; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact-intro p:not(.eyebrow) { color: var(--muted); }
.text-link--large { font-size: clamp(1rem, 2.2vw, 1.3rem); overflow-wrap: anywhere; }
.contact-panel { min-width: 0; }
.contact-notice {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border-left: 4px solid var(--accent);
  background: #fff;
  color: var(--text);
  font-weight: 700;
}
.contact-notice--error { border-left-color: #a94b3f; }
.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--text);
}
.contact-form__field { display: grid; gap: .4rem; color: var(--text); }
.contact-form__field > span { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .8rem;
  border: 1px solid #aebbc0;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
}
.contact-form__field textarea { min-height: 180px; resize: vertical; }
.contact-form__field input:hover,
.contact-form__field textarea:hover { border-color: var(--accent); }
.contact-form__field input:focus,
.contact-form__field textarea:focus { border-color: var(--accent); outline: 3px solid var(--warm); outline-offset: 2px; }
.contact-form__field--message,
.contact-form__footer { grid-column: 1 / -1; }
.contact-form__footer { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.contact-form__footer p { max-width: 510px; margin: 0; color: var(--muted); font-size: .79rem; }
.contact-form__submit { flex: 0 0 auto; border: 0; }
.contact-form__honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer__inner {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: .87rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer a { color: var(--muted); }

.legal-main { min-height: 60vh; padding: clamp(4rem, 9vw, 7rem) 0; background: var(--surface); }
.prose { max-width: var(--read); }
.prose h1 { margin-bottom: .8em; font-size: clamp(2.5rem, 6vw, 4.2rem); }
.prose h2 { margin: 2.1em 0 .6em; font-size: 1.45rem; letter-spacing: -.02em; }
.prose h3 { margin: 1.7em 0 .5em; font-size: 1.15rem; letter-spacing: -.01em; }
.prose p, .prose li { color: #35454d; }
.prose ul, .prose ol { padding-left: 1.3rem; }

@media (max-width: 820px) {
  html { scroll-padding-top: 124px; }
  .site-header__inner { min-height: 96px; flex-direction: column; justify-content: center; gap: .1rem; padding: .5rem 0; }
  .site-nav a { min-height: 36px; padding: .3rem .55rem; font-size: .82rem; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .profile-card { display: grid; grid-template-columns: 1fr; align-items: start; }
  .energy-card { grid-template-columns: 1fr; align-items: start; }
  .button--light { justify-self: start; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
  .press-filter__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-filter__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-filter__paywall { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 28px, var(--max)); }
  .site-nav { width: 100%; justify-content: center; }
  .hero { padding-top: 4rem; }
  .profile-card { grid-template-columns: 1fr; }
  .press-item { grid-template-columns: 1fr; gap: .5rem; }
  .press-item > p { grid-column: 1; }
  .press-filter__header { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .press-filter__status { text-align: left; }
  .press-filter__choices { grid-template-columns: 1fr; }
  .press-filter__controls { grid-template-columns: 1fr; }
  .press-filter__paywall { grid-column: 1; }
  .press-filter__footer { align-items: flex-start; flex-direction: column; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__field--message, .contact-form__footer { grid-column: 1; }
  .contact-form__footer { align-items: flex-start; flex-direction: column; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
  .site-footer__inner { justify-content: center; padding: 1.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media print {
  .site-header, .site-footer, .hero__links, .press-archive summary { display: none; }
  body, .section, .hero { background: #fff !important; color: #000 !important; }
  .press-archive:not([open]) > .press-archive__content { display: block; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; overflow-wrap: anywhere; }
}
