/*  ============================================================
    MWCC – Markus Weigl Consulting & Coaching e.U.
    styles.css — Hauptstylesheet
    Designsystem nach Briefing §5
    Ziel: < 30 KB gzipped, WCAG 2.1 AA, Dark-Mode-ready
    ============================================================ */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/cormorant-garamond-400.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/cormorant-garamond-600.woff2') format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/mulish-400.woff2') format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/mulish-600.woff2') format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/mulish-700.woff2') format('woff2'); }

/* -- Designtokens (CSS Custom Properties) ----------------- */
:root {
  /* Grundflächen */
  --bg:          #FAF8F2;
  --bg-deep:     #ECE6D4;
  --surface:     #FFFFFF;

  /* Primärton */
  --primary:     #3C4A2C;
  --primary-2:   #6A7A4F;
  --primary-3:   #AEB793;

  /* Akzente */
  --accent-gold: #B0862C;
  --accent-ocker:#9C5A22;

  /* Schrift */
  --text:        #2E2A21;
  --text-muted:  #5E4A33;

  /* Funktional */
  --border:      #DCD4BD;
  --focus:       #B0862C;

  /* Typo */
  --serif:       'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:        'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Maße */
  --content-max: 1180px;
  --read-max:    66ch;
  --radius:      4px;
  --space-section: clamp(4rem, 8vw, 8rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #1B1F18;
    --bg-deep:     #232821;
    --surface:     #232821;
    --primary:     #AEB793;
    --primary-2:   #C5CEAA;
    --primary-3:   #6A7A4F;
    --accent-gold: #D8B463;
    --accent-ocker:#D08E5D;
    --text:        #E8E2D2;
    --text-muted:  #BFB39A;
    --border:      #3A3D34;
  }
}

/* -- Base / Reset ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1.1vw, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* -- Typografie ------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); }
h4 { font-size: 1.125rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
p { margin: 0 0 1.1em; max-width: var(--read-max); }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; color: var(--text); max-width: 50ch; }
small, .small { font-size: .875rem; color: var(--text-muted); }

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-3);
  text-underline-offset: .15em;
  text-decoration-thickness: 1px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
a:hover, a:focus-visible { color: var(--accent-ocker); text-decoration-color: var(--accent-gold); }

::selection { background: var(--primary-3); color: var(--primary); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -- Layout ---------------------------------------------- */
.wrap, .container {
  width: min(100% - 2.5rem, var(--content-max));
  margin-inline: auto;
}
.narrow { max-width: 760px; margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--tinted { background: var(--bg-deep); }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* -- Skiplink -------------------------------------------- */
.skiplink {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--bg);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  z-index: 999;
  transition: top .2s ease;
}
.skiplink:focus { top: 1rem; color: var(--bg); text-decoration: none; }

/* -- Header / Navigation --------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1.5rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
}
.brand small { display: block; font-family: var(--sans); font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 400; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: .5rem .7rem;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--primary);
}
.main-nav { display: flex; gap: 1.5rem; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: .95rem;
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--primary); border-bottom-color: var(--accent-gold); }
.main-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.lang-switch { font-size: .85rem; color: var(--text-muted); margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--border); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    padding: 1.25rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: .8rem;
  }
  .main-nav.is-open { display: flex; }
  .lang-switch { margin: .5rem 0 0; padding: .5rem 0 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* -- Hero ------------------------------------------------ */
.hero {
  padding-block: clamp(4rem, 9vw, 9rem) clamp(3rem, 6vw, 6rem);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.hero__claim { max-width: 22ch; }
.hero__lead { margin-top: 1.5rem; max-width: 46ch; color: var(--text-muted); }
.hero__cta { margin-top: 2.5rem; }

/* -- Buttons --------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--primary); color: var(--bg); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--primary-2); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--primary); color: var(--bg); }
.btn--text { background: none; padding: .25rem 0; border-bottom: 1px solid var(--primary); color: var(--primary); text-decoration: none; }
.btn--text:hover { color: var(--accent-ocker); border-bottom-color: var(--accent-gold); }

/* -- Karten / Wege --------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--primary-3); }
.card h3 { margin-top: 0; }
.card p { color: var(--text-muted); margin-bottom: 1.25rem; }
.card__link { font-size: .95rem; }

/* -- Hairline / Trenner ---------------------------------- */
.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 25%, var(--border) 75%, transparent);
  margin: 3rem 0;
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

/* -- Listen ---------------------------------------------- */
ul, ol { padding-left: 1.25em; max-width: var(--read-max); }
li { margin-bottom: .4em; }
.list-plain { list-style: none; padding-left: 0; }
.list-plain li { padding-left: 1.25em; position: relative; }
.list-plain li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

dl.facts { display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: .6rem 1.25rem; margin: 1.5rem 0; max-width: var(--read-max); }
dl.facts dt { color: var(--text-muted); font-size: .92rem; }
dl.facts dd { margin: 0; }

/* -- Formular -------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .92rem; margin-bottom: .35rem; color: var(--text-muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s ease;
}
input:focus, textarea:focus { border-color: var(--primary-2); }
textarea { min-height: 9rem; resize: vertical; }
.form-error { color: var(--accent-ocker); font-size: .9rem; margin-top: .3rem; display: none; }
.form-error[aria-live] { display: block; }

/* -- Quote ----------------------------------------------- */
blockquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent-gold);
  color: var(--primary);
  font-style: italic;
  max-width: 56ch;
}
blockquote cite { display: block; font-style: normal; font-size: .9rem; color: var(--text-muted); margin-top: .75rem; font-family: var(--sans); }

/* -- Footer ---------------------------------------------- */
.site-footer {
  background: var(--primary);
  color: var(--bg);
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
  margin-top: var(--space-section);
}
.site-footer a { color: var(--bg); text-decoration: underline; text-decoration-color: var(--primary-3); }
.site-footer a:hover { color: var(--accent-gold); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer__heading { font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--primary-3); margin-bottom: 1rem; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: .6rem; }
.footer__bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: var(--primary-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* -- Porträt-Hero (markus-weigl Seite) ------------------- */
.portrait-hero {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 700px) {
  .portrait-hero { grid-template-columns: 1.4fr 1fr; }
}
.portrait-hero__text { max-width: 36ch; }
.portrait-hero__photo {
  margin: 0;
  max-width: 320px;
  justify-self: center;
}
.portrait-hero__photo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}

/* -- Kleines Porträt im Fließtext (Startseite) ----------- */
.portrait-inline {
  float: right;
  width: 140px;
  height: 140px;
  margin: 0 0 1rem 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}
@media (max-width: 600px) {
  .portrait-inline { float: none; display: block; margin: 0 0 1.5rem; }
}

/* -- Leuchtturm-Akzente (Marken-Motiv mwcc.eu) ----------- */
.lighthouse-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1.25rem;
}
.lighthouse-eyebrow svg { width: 1.6em; height: 1.6em; flex-shrink: 0; }

.lighthouse-section {
  position: relative;
  padding-block: var(--space-section);
  background: var(--bg-deep);
}
.lighthouse-section__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(80px, 120px) 1fr;
  align-items: start;
  max-width: 780px;
  margin-inline: auto;
}
.lighthouse-section__inner svg { width: 100%; height: auto; }
.lighthouse-section h2 { margin-top: 0; }
@media (max-width: 600px) {
  .lighthouse-section__inner { grid-template-columns: 1fr; text-align: left; }
  .lighthouse-section__inner svg { width: 80px; }
}

/* Footer-Akzent: Mini-Leuchtturm dezent neben MWCC-Heading */
.site-footer .footer__grid > div:first-child {
  position: relative;
}
.site-footer .footer__heading + p { position: relative; }

/* -- Bridge-Bar für Übergangsseiten (markusweigl.at) ----- */
.bridge-bar {
  background: var(--accent-gold);
  color: #2E2A21;
  font-size: .95rem;
  text-align: center;
  padding: .75rem 1.25rem;
  line-height: 1.5;
}
.bridge-bar p { margin: 0; max-width: none; }
.bridge-bar a { color: #2E2A21; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(46,42,33,.4); }
.bridge-bar a:hover { color: #2E2A21; text-decoration-color: #2E2A21; }
@media (prefers-color-scheme: dark) {
  .bridge-bar { background: var(--accent-gold); color: #1B1F18; }
  .bridge-bar a { color: #1B1F18; }
}

/* -- Klärungsfrage des Quartals (Mini-Tool) -------------- */
.kf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 64ch;
}
.kf-question {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  color: var(--primary);
  margin: .75rem 0 1.5rem;
}
.kf-details {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}
.kf-details summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  padding: .25rem 0;
}
.kf-details summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.kf-details ul { margin: .75rem 0 0; max-width: none; }
.kf-details li { font-family: var(--serif); font-style: italic; color: var(--text); font-size: 1.0625rem; }
.kf-cta { margin: 1.5rem 0 .5rem; }
.kf-notice { color: var(--text-muted); margin: 0; }

/* -- Transit-Pages (menschen, dao) ----------------------- */
.transit-banner {
  background: var(--bg-deep);
  border-left: 3px solid var(--accent-gold);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  font-size: 1rem;
}
.transit-banner strong { color: var(--primary); }

/* -- Utilities ------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.center { text-align: center; }
.measure { max-width: var(--read-max); }

/* -- Print ----------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .main-nav { display: none; }
  body { background: white; color: black; }
  a { text-decoration: none; color: black; }
}
