/* Kopie aus MEO/03_Marketing_Vertrieb/07_Website/site/assets/css/site.css, erzeugt mit sync_website.py.
   Nicht von Hand bearbeiten, Änderungen an der Website vornehmen und neu übernehmen. */
/* me-ctc.de — Website-Stile. Grundlage: 01_Vorlagen/_ME.CTC_Design_System/ui_kits/website/website.css,
   Pfade auf static/img umgestellt, ergänzt um Blog, Beitrag und Lesetext (MEO #235). */

html, body { margin: 0; padding: 0; background: #ffffff; color: var(--ink-900); }
body { font-family: var(--font-sans); }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
/* Die Tokens unterstreichen jeden Link per border-bottom. Auf der Website nur im Lesetext (.prose, text-decoration). */
a { border-bottom: 0; }
.more-link a { text-decoration: underline; text-underline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; }
.skip-link:focus { left: 16px; z-index: 100; background: white; padding: 8px 12px; border-radius: 4px; box-shadow: var(--shadow-focus); }

.section { padding: 96px 0; position: relative; }
.section--muted { background: var(--color-bg-subtle); border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container--reading { max-width: 760px; }

.placeholder-note {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--orange-700); background: var(--orange-100);
  border-radius: 2px; padding: 6px 10px; display: inline-block; margin: 0 0 16px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 32px; max-width: 1200px; margin: 0 auto;
}
.site-header nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a:not(.btn) {
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  text-decoration: none; padding: 6px 0; position: relative;
}
.site-header nav a:not(.btn):hover { color: var(--teal-700); }
.site-header nav a.active { color: var(--ink-900); font-weight: 600; }
.site-header nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--teal-600);
}

/* Menü-Schalter, nur auf schmalen Bildschirmen und nur mit JavaScript sichtbar */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; }
  .js-nav .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: white; border: 1px solid var(--ink-150); border-radius: 6px;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-900); cursor: pointer;
  }
  .nav-toggle__icon { display: inline-flex; flex-direction: column; gap: 4px; }
  .nav-toggle__icon span { display: block; width: 18px; height: 2px; background: var(--ink-900); transition: transform .2s, opacity .2s; }
  .nav-open .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle__icon span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .js-nav .site-header nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 8px 0 12px; border-top: 1px solid var(--ink-100);
  }
  .js-nav.nav-open .site-header nav { display: flex; }
  .js-nav .site-header nav a:not(.btn) { font-size: 16px; padding: 10px 0; }
  .js-nav .site-header nav .btn { margin-top: 8px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; font-size: 14px; font-weight: 600;
  border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; font-family: inherit;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn--primary { background: var(--ink-900); color: white; }
.btn--primary:hover { background: var(--ink-1000); color: white; }
.btn--petrol { background: var(--petrol-700); color: white; }
.btn--petrol:hover { background: var(--petrol-800); color: white; }
.btn--outline { background: white; color: var(--ink-900); border-color: var(--ink-200); }
.btn--outline:hover { border-color: var(--ink-700); color: var(--ink-900); }
.btn .arr { font-family: var(--font-mono); }

/* ===== Hero ===== */
.hero {
  position: relative; background: var(--ink-1000); color: var(--color-fg-on-dark);
  overflow: hidden; padding: 140px 0 120px;
  --fs: clamp(56px, 8vw, 96px);   /* Schriftgroesse der beiden Zeilen (Tagline bzw. Claim) */
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("../img/pattern-network.svg");
  /* Mint-Leiterbahn (y = 540 im Muster) zwischen den Tagline-Zeilen, Werte aus dem UI-Kit */
  background-size: 1920px 1080px; background-repeat: no-repeat;
  background-position: center calc(204px + 1.324 * var(--fs) - 540px);
  opacity: 0.95;
}
.hero__mark {
  position: absolute; z-index: 0; pointer-events: none;
  width: 417.39px; height: 417.39px;
  left: calc(50% + 292.17px);
  top: calc(1.324 * var(--fs) - 36.87px);
  background: url("../img/clarity-core-mark-dark.svg") center / contain no-repeat;
  filter: url(#cc-dim);
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--node-mint); line-height: 16px; margin-bottom: 48px;
}
.hero__tagline { margin: 0; color: inherit; }
.hero__line1, .hero__line2 { display: block; font-size: var(--fs); line-height: 1; }
.hero__line1 { font-weight: 300; letter-spacing: -0.015em; color: #ddeeff; }
.hero__line2 { font-weight: 700; letter-spacing: -0.02em; margin-top: 0.44em; color: white; }
.hero__roles { margin-top: 36px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--node-mint); }
.hero__subtitle { margin-top: 14px; font-size: 18px; line-height: 1.55; max-width: 620px; color: #a8b6c9; }
.hero__cta { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__cta .btn--outline { background: transparent; color: white; border-color: rgba(255,255,255,0.2); }
.hero__cta .btn--outline:hover { border-color: var(--node-mint); color: var(--node-mint); }
.brackets { position: absolute; inset: 24px; pointer-events: none; z-index: 2; }
.brackets svg { width: 100%; height: 100%; }

/* ===== Kopfbereich Variante: Porträt statt Mark ===== */
/* Gleiche Höhe wie der Wallpaper-Kopfbereich (gemessen 08.11.2026: 534 px + 2,44 × Tagline-Größe).
   Claim mit derselben Zeilenmechanik wie die Tagline, die Mint-Leiterbahn liegt zwischen den Zeilen. */
.hero--portrait {
  --fs: clamp(26px, 3.9vw, 50px);
  min-height: calc(534px + 2.44 * clamp(56px, 8vw, 96px));
}
.hero-portrait__grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 64px; align-items: start; }
.hero-portrait__text { min-width: 0; }
.hero--portrait .hero__line1, .hero--portrait .hero__line2 { white-space: nowrap; }
.hero-portrait__figure { margin: 0; justify-self: end; width: 100%; max-width: 380px; }
.hero-portrait__photo { aspect-ratio: 4/5; width: 100%; border-radius: 8px; overflow: hidden; border: 1px solid #142a48; }
.hero-portrait__photo picture, .hero-portrait__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-portrait__more {
  display: inline-flex; gap: 8px; margin-top: 14px; float: right;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--node-mint); text-decoration: none;
}
.hero-portrait__more:hover { color: white; }
.brand__mark.brand__mark--code { background-image: url("../img/clarity-core-mark.svg"); }

/* ===== Abschnittsköpfe ===== */
.section-heading { margin-bottom: 48px; max-width: 720px; }
.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 16px; color: var(--ink-1000); }

/* ===== Leistungen ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: white; border: 1px solid var(--ink-150); border-radius: 8px;
  padding: 32px 28px; position: relative;
}
.service.expertise::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--petrol-600); border-radius: 8px 8px 0 0;
}
.service__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-fg-subtle); margin-bottom: 14px; }
.service.expertise .service__num { color: var(--petrol-700); }
.service h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--ink-1000); line-height: 1.25; }
.service p { font-size: 15px; line-height: 1.6; color: var(--ink-600); margin: 0; }

/* ===== Beitragskarten (Startseite) ===== */
.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: white; border: 1px solid var(--ink-150); border-radius: 8px; padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.post-card:hover { box-shadow: var(--shadow-sm); border-color: var(--ink-200); }
.post-card__meta, .post-list__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-fg-subtle); margin-bottom: 10px; }
.post-card h3 { font-size: 19px; line-height: 1.35; margin: 0 0 10px; }
.post-card h3 a, .post-list h3 a { color: var(--ink-1000); text-decoration: none; }
.post-card h3 a:hover, .post-list h3 a:hover { color: var(--color-link); }
.post-card p { font-size: 15px; line-height: 1.6; color: var(--ink-600); margin: 0; }
.more-link { margin: 32px 0 0; font-weight: 600; }

/* ===== Über mich ===== */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.about__more { margin-top: 56px; }
.about__photo {
  aspect-ratio: 4/5; background: var(--ink-100); border-radius: 6px; border: 1px solid var(--ink-150);
  display: flex; align-items: center; justify-content: center;
}
.about__photo { overflow: hidden; }
.about__photo picture, .about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__bio .eyebrow { margin-bottom: 16px; }
.about__bio p { font-size: 17px; line-height: 1.7; color: var(--ink-800); }

/* ===== Kontakt ===== */
.contact-cta { background: var(--teal-50); border-top: 1px solid var(--teal-200); padding: 80px 0; }
.contact-cta__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.contact-cta h2 { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 14px; color: var(--ink-1000); }
.contact-cta p { font-size: 17px; line-height: 1.6; color: var(--ink-700); margin: 0 0 24px; max-width: 480px; }
.contact-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.kontakt h1 { margin: 12px 0 16px; }
.kontakt__intro { font-size: 18px; line-height: 1.6; color: var(--ink-700); margin: 0 0 24px; max-width: 520px; }
.kontakt__hinweise { margin-top: 64px; }
.btn--primary.is-current { background: var(--ink-1000); }
.contact-card { background: white; border: 1px solid var(--ink-150); border-radius: 8px; padding: 28px; box-shadow: var(--shadow-sm); }
.contact-card__line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ink-100); font-size: 14px; }
.contact-card__line:first-child { padding-top: 0; }
.contact-card__line:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-card__line .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-fg-subtle); }
.contact-card__line .v { font-weight: 500; color: var(--ink-900); }

/* ===== Seiten, Blog, Beitrag ===== */
.page__head, .article__head { margin-bottom: 40px; }
.page__head .eyebrow, .article__head .eyebrow { margin-bottom: 16px; }
.page__head h1, .article__head h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 20px; }
/* Überschrift der eRecht24-Texte wie die Seitenüberschrift */
.rechtstext h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 20px; }
/* Zweiter Text im selben Dokument (Social Media, vom Plugin angehängt) braucht Abstand nach oben */
.rechtstext * + h1 { margin-top: 2.4em; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--color-fg-subtle); }
.article__lead { font-size: 19px; line-height: 1.6; color: var(--ink-700); margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--ink-150); }

.post-year { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; color: var(--petrol-700); margin: 48px 0 8px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list__item { padding: 24px 0; border-bottom: 1px solid var(--ink-100); }
.post-list h3 { font-size: 21px; line-height: 1.35; margin: 0 0 8px; }
.post-list p { margin: 0; color: var(--ink-600); font-size: 15px; }

.prose { font-size: 17px; line-height: 1.7; color: var(--ink-800); }
.prose > * + * { margin-top: 1.1em; }
.prose p { font-size: inherit; line-height: inherit; color: inherit; margin: 0; }
/* Abstand zwischen Absätzen und nach Listen: .prose p setzt margin 0 und schlägt sonst die Regel oben */
.prose > * + p { margin-top: 1.1em; }
.prose h2 { font-size: 26px; line-height: 1.25; margin-top: 2.2em; margin-bottom: 0; }
.prose h3 { font-size: 20px; line-height: 1.3; margin-top: 1.8em; margin-bottom: 0; }
.prose a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-link-hover); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--ink-200); color: var(--ink-700); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ink-150); }
.prose th { font-weight: 600; color: var(--ink-1000); border-bottom-color: var(--ink-200); }
.prose hr { border: 0; border-top: 1px solid var(--ink-150); margin: 2.4em 0; }
.prose .footnotes { font-size: 14px; color: var(--ink-600); }

.article__contact {
  margin-top: 64px; padding: 28px; border: 1px solid var(--ink-150); border-radius: 8px;
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.article__contact::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--petrol-600); border-radius: 8px 8px 0 0; }
.article__contact p { margin: 0; font-weight: 600; color: var(--ink-1000); }

/* ===== Footer ===== */
.site-footer { background: var(--ink-1000); color: #a8b6c9; padding: 64px 0 32px; }
/* Drei Säulen: Die Mitten der äußeren Spalten liegen auf der linken und rechten Kante der Textbreite
   (Textbreite 696 px: .container--reading mit 760 px abzüglich 2 × 32 px Innenabstand), die mittlere Spalte in der Mitte. */
.site-footer__inner {
  --textbreite: 696px; --spalte: 200px;
  display: flex; justify-content: space-between; gap: 24px;
  max-width: calc(var(--textbreite) + var(--spalte) + 64px);
}
.site-footer__inner > div { flex: 0 0 var(--spalte); text-align: center; }
.site-footer__h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--petrol-400); margin: 0 0 14px; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: 14px; }
.site-footer li a { color: #a8b6c9; text-decoration: none; }
.site-footer li a:hover { color: var(--node-mint); }
.site-footer__mitglied { margin: 40px auto 0; text-align: center; font-size: 13px; color: #8fa3bf; }
.site-footer__mitglied + .site-footer__bottom { margin-top: 24px; }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #142a48; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-450); text-align: center; }

/* ===== Marke ===== */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; background: url("../img/clarity-core-mark-small.svg") center / contain no-repeat; }
.brand__mark--dark { background-image: url("../img/clarity-core-mark-small-dark.svg"); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text .a { font-size: 14px; font-weight: 300; color: var(--ink-1000); letter-spacing: 0.5px; }
.brand__text .b { font-size: 14px; font-weight: 700; color: var(--ink-1000); margin-top: 2px; }
.brand__text .b span { color: var(--teal-600); }
/* Wortmarke im Header: Proportionen nach logo-primary.svg (Name zweizeilig, Trennstrich, Rolle) */
.brand--header { gap: 14px; }
.brand--header .brand__mark { width: 53px; height: 53px; }
.brand--header .brand__text .a, .brand--header .brand__text .b { font-size: 25px; line-height: 1.02; }
/* Laufweite wie im Logo (logo-primary.svg: letter-spacing 1 bei 32px), sonst wirkt die Light-Zeile gequetscht */
.brand--header .brand__text .a { letter-spacing: 0.03em; }
.brand--header .brand__text .b { margin-top: 1px; }
.brand__role { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin-left: 10px; padding-left: 18px; border-left: 1px solid var(--ink-900); align-self: stretch; }
.brand__role .r1 { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--petrol-700); padding-bottom: 6px; border-bottom: 1px solid var(--ink-900); }
.brand__role .r2 { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-500); }
.brand__text--dark .a { color: #ddeeff; }
.brand__text--dark .b { color: white; }
.brand__text--dark .b span { color: var(--node-mint); }

/* ===== Schmale Bildschirme ===== */
@media (max-width: 1100px) {
  .brand__role { display: none; }
}
@media (max-width: 900px) {
  .hero-portrait__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait__figure { justify-self: start; max-width: 260px; }
  .hero--portrait { min-height: 0; }
  .services, .post-cards { grid-template-columns: 1fr; }
  .about, .contact-cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { max-width: 280px; }
  .site-footer__inner { flex-wrap: wrap; justify-content: center; gap: 32px 48px; }
  .hero__mark { display: none; }
}
@media (max-width: 640px) {
  .container, .site-header__inner { padding-left: 16px; padding-right: 16px; }
  .site-header nav { justify-content: flex-start; gap: 16px; }
  .brand--header .brand__mark { width: 40px; height: 40px; }
  .brand--header .brand__text .a, .brand--header .brand__text .b { font-size: 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 96px 0 80px; }
  .section-heading h2 { font-size: 30px; }
  .site-footer__inner > div { flex-basis: 100%; }
}
