: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.)
   ================================ */

/* Startseiten-Layout: ü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: #F2F2F2;
  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 (einmalig definiert) */
.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: #f2f2f2;
  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;
}

/* Leiser Link zur nächsten Seite */
.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: #555555;
}

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

.itrk-legaltext a:hover {
  color: #333333;
}

.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 (Standardseiten)
   ================================ */

.siteFooter{
  margin-top: 96px;
  padding: 32px 16px 40px;
  text-align: center;
  font-size: 0.9rem;
  color: #777777;
}

.footerNav{
  margin-bottom: 10px;
}

.footerNav a{
  color: #777777;
  text-decoration: none;
}

/* Kein Underline im Hover – nur dezenter Farbwechsel */
.footerNav a:hover,
.footerNav a:focus-visible{
  color: #555555;
  text-decoration: none;
}

.footerNav span{
  margin: 0 6px;
  color: #999999;
}

.footerCopy{
  font-size: 0.8rem;
  color: #999999;
}

/* ================================
   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: #999999;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  cursor: pointer;
}

.contact-form button:hover{
  background: #777777;
}

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

.hp{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px; height:1px;
  overflow:hidden;
}
/* ================================
   STOARIA – Globale Link-Regeln
   (keine blauen / lila Links)
   ================================ */

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 sollen clean bleiben */
.menuNav a,
.footerNav a,
.legal a,
.nextLink,
.entry {
  text-decoration: none;
  opacity: 1;
}
/* Sticky Header – robust auch bei injected Layout */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Damit es keine doppelte Sticky-Logik gibt */
#site-header .topbar {
  position: relative;
}
/* ================================
   STOARIA – Beitragsportal (magazinartig, ruhig)
   ================================ */

.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;
}

.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;
}

.postExcerpt{
  margin: 0 0 14px;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.92;
}

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

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

.tag{
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(85,85,85,0.08);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}
/* ================================
   STOARIA – Beitrag (Lesefluss)
   ================================ */

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

.postHeader {
  margin-bottom: 28px;
}

.postTitle {
  margin: 6px 0 10px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.02em;
  font-family: Arial, Helvetica, sans-serif;
}

.postLead {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.9;
}

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

/* Überschriften im Text */
.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;
}

/* Zitat – sparsam, ruhig */
.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: #666666;
}
/* Beitragsbild im Portal */
.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;         /* Thumbnail darf ruhig “tight” sein */
  display: block;
  filter: grayscale(100%);
  opacity: 0.92;
}

/* ================================
   STOARIA – Hero im Beitrag: ganzes Bild sichtbar
   ================================ */

.postHero{
  margin: 18px 0 26px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  padding: 10px; /* kleiner Rahmen für “Galerie”-Gefühl */
}

.postHero img{
  display: block;
  width: 100%;
  height: auto;              /* entscheidend: kein fixes Height */
  max-height: 560px;         /* damit es nicht “endlos” groß wird */
  object-fit: contain;       /* entscheidend: kein Crop */
  filter: grayscale(100%);
  opacity: 0.92;
  margin: 0 auto;
}
/* ================================
   STOARIA – Tags: Filterbar
   ================================ */

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

.tagFilter{
  appearance: none;
  border: 0;
  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--active{
  background: rgba(85,85,85,0.16);
  color: var(--text);
}
/* Portal: Titel-Links ohne Underline */
.postCardTitle a,
.postCardTitle a:visited {
  text-decoration: none;
}

.postCardTitle a:hover,
.postCardTitle a:focus-visible {
  opacity: 0.75;
}
/* Portal: Tag-Chips in Karten (flach, ruhig, ohne Button-Ränder) */
.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;
}

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

/* Fokus sichtbar, aber stoisch (kein “Rand-Gekrissel”) */
.tag:focus-visible{
  background: rgba(85,85,85,0.16);
  color: var(--text);
}

/* Kein “eingedrückter Button”-Look */
.tag:active{
  transform: none;
}
/* ================================
   STOARIA – Beitragsportal: Mobile Layout
   ================================ */

@media (max-width: 720px){

  .postList{
    gap: 14px;
  }

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

  .postThumb{
    width: 100%;
    height: 190px;
    flex: none;
  }

  .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;
  }
}

/* Beitrag: Mobile Feintuning */
@media (max-width: 720px){

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

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

  .postLead{
    font-size: 20px;
  }

  .postHero{
    padding: 8px;
  }

  .postHero img{
    max-height: 420px;
  }
}
/* Mobile: Thumbnails ohne Crop (ganzer Bildinhalt sichtbar) */
@media (max-width: 720px){
  .postThumb{
    height: auto;
    padding: 8px;
    background: rgba(0,0,0,0.04);
  }

  .postThumb img{
    height: auto;
    max-height: 420px;
    object-fit: contain;
  }
}
/* ================================
   STOARIA – Beitragsnavigation
   (passt zu post.php: .postNavLeft/.postNavRight/.postNavLink)
   ================================ */

.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;
}

/* Wrapper richten die Links wirklich an die Außenkanten */
.postNavLeft{
  justify-self: start;
  display: flex;
  justify-content: flex-start;
}

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

/* Link-Styling: ruhig, ohne Underline, sauberer Hover */
.postNavLink{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

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

  /* überschreibt globale Link-Regeln (opacity) */
  opacity: 1;

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

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

.postNavLink:active{
  opacity: 0.85;
}

/* Mobile: untereinander, beide links ausgerichtet */
@media (max-width: 720px){
  .postNav{
    grid-template-columns: 1fr;
    gap: 12px;
  }

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



/* ================================
   STOARIA – Zurück zur Beitragsübersicht
   ================================ */
.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);
}
