:root {
  --bg: #f2f2f2;
  --text: #555555;
  --muted: #777777;
}

/* ================================
   GLOBAL
   ================================ */

body {
  margin: 0;
  min-height: 100vh;

  background: var(--bg);
  color: var(--text);

  /* Default = Arial (Headlines / UI) */
  font-family: Arial, Helvetica, sans-serif;

  /* Layout der Einstiegsseite (index.html):
     oben / mitte / unten */
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ================================
   EINSTIEGSSEITE (index.html)
   ================================ */

.top {
  display: flex;
  justify-content: center;
  padding-top: 56px;
}

.logo {
  height: 100px;
  width: auto;
  opacity: 0.9;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.entry {
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
}

.entry:hover {
  color: var(--text);
}

.bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px 32px;
}

.legal {
  display: flex;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal a {
  color: var(--muted);
  text-decoration: none;
}

.legal a:hover {
  color: var(--text);
}

.copyright {
  font-size: 12px;
  color: var(--muted);
}

/* ================================
   STANDARDSEITEN (start.html etc.)
   ================================ */

/* Überschreibt das Grid der Einstiegsseite */
.page {
  min-height: 100vh;
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 22px;
  background: var(--bg);
  z-index: 1000;
}

.topbar__logo {
  height: 44px;
  width: auto;
  opacity: 0.9;
}

.topbar__menu {
  appearance: none;
  border: none;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.burger {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--muted);
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--muted);
}

.burger::before { top: -7px; }
.burger::after  { top: 7px; }

/* ================================
   CONTENT
   ================================ */

.content {
  padding: 110px 24px 60px; /* Platz für die Topbar */
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.headline {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.subline {
  margin: 0;
  color: var(--muted);
}

/* ================================
   MENÜ OVERLAY
   ================================ */

.menuOverlay[hidden] { display: none; }

.menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(242,242,242,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1100;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.menuPanel {
  width: min(520px, 92vw);
  background: var(--bg);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  padding: 40px 24px 28px;

  position: relative;
  text-align: center;
}

.menuClose {
  position: absolute;
  top: 14px;
  right: 14px;

  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;

  width: 36px;
  height: 36px;
  border-radius: 10px;

  color: var(--muted);
  font-size: 18px;
}

.menuClose:hover { color: var(--text); }

.menuNav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menuNav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.menuNav a:hover {
  color: var(--muted);
}

.menuLogo {
  display: flex;
  justify-content: center;
  margin: 18px 0 10px;
}

.menuLogo img {
  width: 96px;
  height: auto;
  opacity: 0.9;
}

/* ================================
   STARTSEITE: TEXTSATZ
   ================================ */

.reading {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  padding: 20px 0 10px;
}

/* Fließtext bewusst in Times */
.reading p {
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  line-height: 1.75;
  margin: 0 0 18px;
  color: var(--text);
}

.reading .closing {
  margin-top: 22px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nextLink {
  display: inline-block;
  margin-top: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.nextLink:hover {
  color: var(--text);
}

/* ================================
   IT-RECHT KANZLEI: COSMETIC TUNING
   ================================ */

.itrk-legaltext {
  font-family: "Times New Roman", Times, serif;
  color: var(--text);
}

.itrk-legaltext a,
.itrk-legaltext a:visited {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.itrk-legaltext a:hover {
  color: var(--text);
  opacity: 0.75;
}

.itrk-legaltext img {
  max-height: 48px;
  width: auto;
}

.itrk-legaltext hr {
  border: 0;
  height: 1px;
  background: rgba(85,85,85,0.18);
  margin: 18px 0;
}

.itrk-legaltext [style*="background:#fff"],
.itrk-legaltext [style*="background: #fff"] {
  background: transparent !important;
}

.itrk-legaltext .itrk-legaltext-content,
.itrk-legaltext > div {
  line-height: 1.55;
}

/* IT-Recht: Fairness-Balken killen (zielgenau über :has()) */
.itrk-legaltext :has(a[href*="fairness-im-handel"]) {
  background: transparent !important;
}

.itrk-legaltext :has(a[href*="fairness-im-handel"]) * {
  background: transparent !important;
}

.itrk-legaltext :has(a[href*="fairness-im-handel"]) > :first-child {
  background: transparent !important;
}

.itrk-legaltext :has(a[href*="fairness-im-handel"]) > *:is(div, p, hr) {
  margin-top: 0 !important;
}

.itrk-legaltext *:has(+ * a[href*="fairness-im-handel"]) {
  background: transparent !important;
}

.itrk-legaltext *:has(+ * a[href*="fairness-im-handel"]):is(div, p, hr) {
  display: none !important;
}

.itrk-legaltext div[style*="border-top"][style*="solid white"]{
  border-top: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ================================
   FOOTER
   ================================ */

.siteFooter {
  margin-top: 96px;
  padding: 32px 16px 40px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.footerNav {
  margin-bottom: 10px;
}

.footerNav a {
  color: var(--muted);
  text-decoration: none;
}

.footerNav a:hover,
.footerNav a:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.footerNav span {
  margin: 0 6px;
  color: var(--muted);
}

.footerCopy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ================================
   FORMULARE (Kontakt / Newsletter)
   ================================ */

.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 18px 70px;
  text-align: center;
}

.contact-wrap h1 {
  margin: 0 0 14px;
}

.contact-wrap .lead {
  margin: 0 0 42px;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  opacity: .85;
}

.contact-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 16px 18px;
  font-family: Arial, sans-serif;
  font-size: 18px;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.contact-form input {
  height: 56px;
  margin: 0 0 18px;
}

.contact-form textarea {
  height: 260px;
  resize: vertical;
  margin: 0 0 18px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0 18px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  opacity: .85;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.contact-form button {
  width: 100%;
  height: 56px;
  border-radius: 10px;
  border: 0;
  background: var(--muted);
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--text);
}

.contact-note {
  margin: 10px 0 0;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
  opacity: .65;
}

.contact-error {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(85,85,85,0.08);
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  text-align: center;
}

.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ================================
   GLOBALE LINK-REGELN
   ================================ */

a, a:visited {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 2px;
}

a:hover, a:focus-visible {
  opacity: 0.75;
}

a:active {
  opacity: 0.6;
}

/* Ausnahmen: Navigation & spezielle Links */
.menuNav a,
.footerNav a,
.legal a,
.nextLink,
.entry {
  text-decoration: none;
  opacity: 1;
}

/* ================================
   STICKY HEADER
   ================================ */

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Keine doppelte Sticky-Logik */
#site-header .topbar {
  position: relative;
}

/* ================================
   BEITRAGSPORTAL
   ================================ */

.postList {
  margin-top: 44px;
  display: grid;
  gap: 18px;
}

.postCard {
  display: flex;
  gap: 18px;
  align-items: flex-start;

  background: rgba(255,255,255,0.75);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  text-align: left;
}

.postCardBody {
  flex: 1;
  min-width: 0;
}

.postMeta {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.postCardTitle {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: 0.01em;
  font-family: Arial, Helvetica, sans-serif;
}

.postCardTitle a,
.postCardTitle a:visited {
  text-decoration: none;
}

.postCardTitle a:hover,
.postCardTitle a:focus-visible {
  opacity: 0.75;
}

.postExcerpt {
  margin: 0 0 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.92;
}

.postExcerpt p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 8px;
}

.postTags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.postThumb {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  display: block;
}

.postThumb--empty {
  background: rgba(0,0,0,0.03);
}

.postThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  opacity: 0.92;
}

/* ================================
   TAG-CHIPS & FILTERBAR
   ================================ */

.tagBar {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tagFilter,
.tag {
  appearance: none;
  border: 0;
  outline: 0;
  box-shadow: none;

  background: rgba(85,85,85,0.08);
  color: var(--muted);

  border-radius: 999px;
  padding: 8px 12px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  cursor: pointer;
}

.tagFilter:hover,
.tag:hover {
  background: rgba(85,85,85,0.12);
  color: var(--text);
}

.tagFilter:focus-visible,
.tag:focus-visible {
  background: rgba(85,85,85,0.16);
  color: var(--text);
}

.tagFilter--active {
  background: rgba(85,85,85,0.16);
  color: var(--text);
}

.tag:active {
  transform: none;
}

/* ================================
   BEITRAG (LESEFLUSS)
   ================================ */

.post {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.postHero {
  margin: 18px 0 26px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  padding: 10px;
}

.postHero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.92;
  margin: 0 auto;
}

.postBody p {
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  line-height: 1.75;
  margin: 0 0 18px;
}

.postBody h2 {
  margin: 28px 0 10px;
  font-size: 26px;
  font-family: Arial, Helvetica, sans-serif;
}

.postBody h3 {
  margin: 22px 0 8px;
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.postBody blockquote {
  margin: 26px 0;
  padding-left: 16px;
  border-left: 3px solid rgba(85,85,85,0.2);
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  color: var(--muted);
}

/* ================================
   BEITRAGSNAVIGATION
   ================================ */

.postNav {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(85,85,85,0.14);

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.postNavLeft {
  justify-self: start;
  display: flex;
  justify-content: flex-start;
}

.postNavRight {
  justify-self: end;
  display: flex;
  justify-content: flex-end;
}

.postNavLink {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--muted);
  text-decoration: none;
  opacity: 1;

  display: inline-block;
  padding: 8px 0;
}

.postNavLink:hover,
.postNavLink:focus-visible {
  color: var(--text);
  opacity: 1;
}

.postNavLink:active {
  opacity: 0.85;
}

.backToPosts {
  margin-top: 26px;
  text-align: center;
}

.backToPosts a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.backToPosts a:hover {
  color: var(--text);
}


/* ================================
   PAGINIERUNG
   ================================ */

.postPager {
  margin-top: 32px;
}

.pagerInner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagerLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  transition: background 0.15s, color 0.15s;
}

.pagerLink:hover {
  background: rgba(85,85,85,0.08);
  color: var(--text);
  opacity: 1;
}

.pagerCurrent {
  background: rgba(85,85,85,0.12);
  color: var(--text);
  font-weight: 600;
  cursor: default;
}

.pagerCurrent:hover {
  background: rgba(85,85,85,0.12);
  color: var(--text);
}

.pagerDisabled {
  color: rgba(85,85,85,0.3);
  cursor: default;
}

.pagerDisabled:hover {
  background: transparent;
  color: rgba(85,85,85,0.3);
}

.pagerEllipsis {
  color: var(--muted);
  padding: 0 4px;
  font-size: 14px;
}

.pagerPrev,
.pagerNext {
  font-size: 13px;
  letter-spacing: 0.04em;
}
/* ================================
   MOBILE (max-width: 720px)
   ================================ */

@media (max-width: 720px) {

  .content {
    padding: 92px 18px 54px;
  }

  .postList {
    gap: 14px;
  }

  .postCard {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .postThumb {
    width: 100%;
    height: auto;
    flex: none;
    padding: 8px;
    background: rgba(0,0,0,0.04);
  }

  .postThumb img {
    height: auto;
    max-height: 420px;
    object-fit: contain;
  }

  .postCardTitle {
    font-size: 22px;
  }

  .postExcerpt {
    font-size: 17px;
    line-height: 1.6;
  }

  .tagBar {
    margin-top: 26px;
    gap: 8px;
  }

  .tagFilter,
  .tag {
    padding: 7px 10px;
    font-size: 11px;
  }

  .postTitle {
    font-size: clamp(30px, 8vw, 44px);
  }

  .postLead {
    font-size: 20px;
  }

  .postHero {
    padding: 8px;
  }

  .postHero img {
    max-height: 420px;
  }

  .postNav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .postNavRight {
    justify-self: start;
    justify-content: flex-start;
  }

}
