/* Lokale Schrift (kein Google-Fonts-Abruf) */
@font-face {
  font-family: "Aboreto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/aboreto--v2-normal-400.woff2") format("woff2");
}

/* ==========================================================
   Rechtsanwalt Marcel Werner – bereinigtes Stylesheet
   ========================================================== */

:root {
  --accent: #fcaf3b;
  --accent-dark: #ab641d;
  --bg: #ffffff;
  --bg-light: #ededed;
  --bg-dark: #14171c;
  --text: #2b2b2b;
  --text-on-dark: #ffffff;

  --font: "Aboreto", Arial, Helvetica, sans-serif;
  --container: 1170px;
  --gutter: 20px;

  /* Überschriften-Skala */
  --fs-body: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);  /* Fließtext: ca. 17 bis 19 px */
  --fs-page: clamp(2rem, 1.3rem + 2.4vw, 2.875rem);  /* Seitentitel (h1, Seiten-h2) */
  --fs-section: 1.5rem;                                /* Abschnittstitel */
  --fs-sub: 1.25rem;                                   /* Unterabschnitt */
  --fs-minor: 1.125rem;                                /* kleinste Überschrift */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

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

h1, h2, h3 { margin: 0 0 .5em; font-weight: 400; line-height: 1.3; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -100px;
  padding: 10px 16px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  z-index: 1000;
}
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 32px; height: auto; }
.brand span { margin-top: 6px; font-size: .8rem; line-height: 1.2; letter-spacing: .02em; }

.main-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; }
.main-nav a {
  display: block;
  padding: 4px 0;
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  padding: 10px 12px;
  background: none;
  border: 1px solid var(--text);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after  { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 700px;
  padding: 80px var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 49% 40%;
}

.hero-quote {
  width: 100%;
  max-width: 1140px;
  margin: 0;
  text-align: center;
  color: var(--text-on-dark);
}

.hero-quote blockquote { margin: 0; }
.hero-quote p,
.hero-quote figcaption {
  margin: 0 0 .5em;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.875rem);
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: .1em .1em #333;
}
.hero-quote strong { font-weight: 400; }

/* ---------- Kompetenzen ---------- */
.competences { padding: 65px 0 26px; }

.competences h2 {
  margin-bottom: 1.2em;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);
  text-align: center;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2em;
}

.competence { text-align: center; }
.competence img { width: 78px; height: auto; margin: 0 auto 20px; }
.competence img.rounded { border-radius: 50%; }
.competence h3 { margin-bottom: .75em; font-size: 1.5rem; }
.competence p { margin-bottom: 20px; }

/* ---------- Podcast-Einbettung ---------- */
.podcast { padding: 26px 0 60px; }

.video-frame {
  max-width: 100%;
  margin-inline: auto;
}
.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 232px;
  border: 0;
  border-radius: 12px;
}

/* ---------- Call-to-Action ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 40px var(--gutter);
  background: var(--bg-dark);
}

.button {
  display: inline-block;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: #010101;
  background: var(--accent);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.button:hover,
.button:focus-visible { background: var(--accent-dark); color: var(--text-on-dark); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 100px; background: var(--bg); }

.footer-social {
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
  border-top: 1px solid var(--bg-light);
}
.footer-social a { display: inline-flex; padding: 4px; color: var(--text); }
.footer-social a:hover { color: #0d66c2; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
}
.footer-inner p { margin: 0; }
.footer-inner ul { display: flex; gap: 20px; }
.footer-inner a { color: var(--text); text-decoration: none; }
.footer-inner a:hover { color: var(--accent-dark); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .main-nav ul { gap: 4px 14px; }
  .hero { min-height: 560px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-top: 1px solid var(--bg-light);
    box-shadow: 0 8px 12px -8px rgba(0, 0, 0, .25);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 0; font-size: .9rem; border-bottom: 1px solid var(--bg-light); }

  .hero { min-height: 480px; padding-block: 60px; }
  .competences { padding-top: 40px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .site-footer { margin-top: 60px; }
}

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

/* ==========================================================
   Ergänzungen: Fettes Menü und Unterseiten
   ========================================================== */
.main-nav a { font-weight: 700; }

.page-title {
  padding: 56px 0 8px;
  text-align: center;
}
.page-title h1 { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.875rem); }
.page-title::after {
  display: block;
  width: 64px; height: 3px;
  margin: 20px auto 0;
  background: var(--accent);
  content: "";
}

.page { padding-block: 32px 40px; }
.narrow { max-width: 820px; margin-inline: auto; }

.prose h2 { margin: 1.6em 0 .6em; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.25rem; }
.prose h4 { margin: 1.4em 0 .4em; font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; }
.prose li { margin-bottom: .4em; }
.prose .caps { text-transform: none; font-size: .92rem; }
.prose address { font-style: normal; margin-bottom: 1em; }

/* Zur Person */
.person-hero {
  padding: 24px 0 40px;
  background: var(--bg-light);
  color: var(--text);
}

.person-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2em;
}
@media (min-width: 782px) {
  .person-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.person-photo img { width: 100%; height: auto; margin-inline: auto; }

.person-text { align-self: center; }
.person-text h2 { margin: 0 0 .6em; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.875rem); }
.person-text p { margin-bottom: 1.2em; }

.person-video { margin-top: 2em; }
.person-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.person-source { margin: 1.5em 0 0; font-size: .95rem; word-break: break-word; }
.person-source a { color: var(--accent-dark); }

.vita-section { padding-block: 48px 100px; text-align: center; }
.vita-title { margin: 0 0 1em; font-size: 1rem; font-weight: 700; }
.vita-entry { margin-bottom: 1.4em; }

.info-box {
  margin-top: 20px;
  padding: 15px;
  background: #f0f0f0;
  border-radius: 5px;
  text-align: center;
}
.info-box h3 { margin: 0; font-size: 1.25rem; }
.info-box p { margin: 5px 0; }
.info-box:first-of-type { margin-top: 48px; }

.source { font-size: .9rem; word-break: break-word; }

/* Gemeinsame Bausteine */
.page-h2 { margin: 0 0 .6em; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.875rem); }

.big-title { padding-top: 40px; padding-bottom: 8px; }
.big-title h1 { margin: 0; font-size: clamp(2.25rem, 1rem + 3.5vw, 4.375rem); line-height: 1.2; }

.bullets { margin: 0 0 1em; padding-left: 1.4em; list-style: disc; }
.bullets li { margin-bottom: .6em; }

/* Media-Text (Bild + Text nebeneinander) */
.media-text {
  display: grid;
  grid-template-columns: 15% 1fr;
  align-items: center;
  margin: 2em 0 16px;
}
.media-text img { width: 100%; height: auto; }
.media-text-title { margin: 0; padding: 0 8%; }

/* Kompetenzen */
.comp-page { padding-top: 39px; padding-bottom: 60px; }
.comp-body p { margin-bottom: 1em; }
@media (max-width: 600px) {
  .media-text { grid-template-columns: 72px 1fr; }
  .media-text-title { padding-left: 16px; padding-right: 0; }
}

/* Publikationen */
.pub-page { padding-block: 24px 60px; }
.media-right { grid-template-columns: 1fr 50%; margin: 0; }
.media-right .media-text-content { padding: 0 8% 0 0; word-break: break-word; }
.media-right .media-text-media { margin: 0; }
.media-right .media-text-media img { display: block; }
@media (max-width: 600px) {
  .media-right { grid-template-columns: 100%; }
  .media-right .media-text-media { grid-row: 1; margin-bottom: 1.5em; }
  .media-right .media-text-content { grid-row: 2; padding: 0; }
}

/* Vortrags- und Lehrtätigkeit */
.talks-page { padding-block: 24px 60px; }
.talks-cols { display: flex; flex-wrap: wrap; gap: 2em; }
.talks-left { flex: 1 1 38%; min-width: 0; }
.talks-right { flex: 1 1 62%; min-width: 0; padding-top: 2.5em; }
.talks-left img { width: 100%; max-width: 330px; height: auto; }
.talks-left figcaption { margin-top: .5em; font-size: .75rem; }
.talks-right .year { margin: 0 0 .5em; }
.talks-right .bullets { margin-bottom: 1.6em; }
@media (min-width: 782px) {
  .talks-left { flex: 0 0 calc(38% - 1em); }
  .talks-right { flex: 0 0 calc(62% - 1em); }
}

/* Kontakt */
.contact-head { padding-top: 39px; }
.contact-cover { background: var(--bg-light); min-height: 420px; padding: 80px 0 30px; }
.contact-inner p { margin-bottom: 1em; }
.mail-card {
  width: min(100%, 360px);
  margin: 2em auto 0;
  padding: 24px 15px;
  background: var(--bg);
  text-align: center;
}
.mail-card img { width: 65px; height: auto; margin: 0 auto 24px; }
.mail-card a { font-size: .95rem; color: var(--text); word-break: break-word; }
.mail-card a:hover { color: var(--accent-dark); }

/* ==========================================================
   Einheitliche Überschriften (alle Seiten, fett)
   Ebene 1: Seitentitel / Hauptüberschrift
   Ebene 2: Abschnittsüberschrift
   Ebene 3: Unterüberschrift, Karten- und Boxtitel
   Ebene 4: Kleinere Zwischenüberschrift
   ========================================================== */
:root {
  --fs-h1: clamp(1.75rem, 1.2rem + 1.6vw, 2.875rem);
  --fs-h2: clamp(1.4rem, 1.15rem + 1vw, 1.75rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --fs-h4: 1.1rem;
  --fw-heading: 700;
  --lh-heading: 1.3;
}

/* Ebene 1 */
.page-title h1,
.big-title h1,
.page-h2,
.person-text h2,
.competences h2 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
}

/* Ebene 2 */
.prose h2,
.vita-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
}

/* Ebene 3 */
.prose h3,
.person-text h3,
.competence h3,
.info-box h3,
.media-text-title,
.talks-right .year {
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
}
.person-text h3 { margin: 1.6em 0 .5em; }
.vita-title { margin: 0 0 1em; }

/* Ebene 4 */
.prose h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
}

/* Fett auch für eingebettete strong-Tags in Überschriften */
.media-text-title strong,
.talks-right .year strong { font-weight: inherit; }

/* ==========================================================
   Einheitliches Überschriften-System (alle Seiten, fett)
   Ebene 1: Seiten- und Abschnittstitel
   Ebene 2: Bereichsüberschriften
   Ebene 3: Zwischenüberschriften
   ========================================================== */
:root {
  --fs-h1: clamp(2rem, 1.3rem + 2.2vw, 2.75rem);
  --fs-h2: clamp(1.375rem, 1.2rem + .6vw, 1.625rem);
  --fs-h3: 1.125rem;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }

/* Ebene 1 */
.page-title h1,
.big-title h1,
.page-h2,
.person-text h2,
.competences h2 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.2;
}

/* Ebene 2 */
.competence h3,
.media-text-title,
.media-text-title strong,
.prose h2,
.info-box h3,
.vita-title,
.talks-right .year {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
}

/* Ebene 3 */
.prose h3,
.prose h4,
.subhead,
.talks-right .year strong {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
}
.talks-right .year strong { font-size: inherit; }

.subhead { margin: 1.6em 0 .5em; }
.prose h2 { margin: 1.8em 0 .6em; }
.prose h3 { margin: 1.5em 0 .5em; }
.prose h4 { margin: 1.3em 0 .4em; }
.competence h3 { margin-bottom: .75em; }
.vita-title { margin-bottom: 1em; }


/* ==========================================================
   Überschriften vereinheitlicht (Größe + Fettschrift)
   ========================================================== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }

/* Ebene 1: Seitentitel */
.page-title h1,
.big-title h1,
.page-h2,
.person-text h2,
.competences h2 {
  font-size: var(--fs-page);
  font-weight: 700;
  line-height: 1.2;
}

/* Ebene 2: Abschnitts- und Kartentitel */
.competence h3,
.media-text-title,
.person-text h3,
.vita-title,
.info-box h3,
.prose h2 {
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 1.3;
}

/* Ebene 3 und 4: Rechtstexte */
.prose h3 { font-size: var(--fs-sub); font-weight: 700; }
.prose h4 { font-size: var(--fs-minor); font-weight: 700; }

/* Abstände der Zwischenüberschriften */
.person-text h3 { margin: 1.6em 0 .5em; }
.media-text-title { margin: 0; }
.vita-title { margin: 0 0 1em; }
.info-box h3 { margin: 0 0 .4em; }


/* ==========================================================
   Fließtext besser lesbar (größer, leicht gesperrt)
   ========================================================== */
body {
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: .01em;
}

/* kleinere Sondertexte relativ zum Fließtext */
.prose .caps,
.source,
.person-source { font-size: .95em; }
.mail-card a { font-size: 1em; }
.talks-left figcaption { font-size: .8em; }

/* ==========================================================
   Startseite: Kompetenzen als Karten
   ========================================================== */
.competences {
  padding: 72px 0 80px;
  background: #f5f5f5;
}
.competences h2 { text-align: center; margin-bottom: 1.4em; }

.competence-grid { gap: 1.75rem; }

.competence {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem 2rem;
  text-align: left;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, .06);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(20, 23, 28, .04), 0 12px 32px -12px rgba(20, 23, 28, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.competence:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(20, 23, 28, .06), 0 22px 44px -14px rgba(20, 23, 28, .28);
}

.competence img,
.competence img.rounded {
  width: 76px;
  height: 76px;
  margin: 0 0 1.5rem;
  padding: 14px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(252, 175, 59, .16);
}

.competence h3 { margin: 0 0 .75em; }
.competence p { margin: 0; }

@media (max-width: 600px) {
  .competences { padding: 48px 0 56px; }
  .competence { padding: 1.75rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .competence { transition: none; }
  .competence:hover { transform: none; }
}

/* Startseite: Karten kompakter */
.competence {
  padding: 1.75rem 1.5rem 1.5rem;
}
.competence img,
.competence img.rounded {
  width: 60px;
  height: 60px;
  padding: 11px;
  margin-bottom: 1.1rem;
}
.competence h3 {
  font-size: 1.25rem;
  margin-bottom: .55em;
}
.competence p {
  font-size: .84em;
  line-height: 1.6;
  letter-spacing: 0;
}
@media (max-width: 600px) {
  .competence { padding: 1.5rem 1.25rem; }
}


/* Hero-Zitat in Fettschrift */
.hero-quote p,
.hero-quote figcaption,
.hero-quote strong { font-weight: 700; }

/* Schriftzug unter dem Logo: größer und fett */
.brand span {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .03em;
  text-align: center;
}
@media (max-width: 720px) {
  .brand span { font-size: .95rem; }
}
