/* TUXAMOON – Stylesheet der Artikelseiten (aus _vorlagen/artikel.html ausgelagert). */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --black: #0a0a0a;
    --white: #ffffff;
    --mid: #888;
    --light: #e8e8e8;
    --accent: #c00;
    --body-width: calc(7.32vw + 624px);
    --wide-width: 940px;
    --pad: 40px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
  }

  a { text-decoration: none; color: inherit; }

  /* ── CONTENT GRID ── */
  .qodef-content-grid {
    margin-left: 4.9%;
    margin-right: 4.9%;
  }

  /* ── HEADER ── */
  .site-header {
    padding-top: 0;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    position: relative;
  }

  .header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0.02em;
    color: var(--black);
    text-decoration: none;
    transition: color 0.15s;
  }

  .header-center:hover { color: var(--mid); }

  .site-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 29px;
    letter-spacing: 0.02em;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .site-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0.02em;
    color: var(--black);
    transition: color 0.15s;
  }

  .site-nav a:hover { color: var(--mid); }

  .nav-dot {
    color: var(--mid);
    font-size: 12px;
  }

  /* ── MASTHEAD ── */
  .site-masthead { margin: 0; }

  .masthead-rule {
    border: none;
    border-top: 1px solid var(--black);
    margin: 0;
  }

  /* ── LOGO ANIMATION ── */
  .tx-logo svg { display: block; }
  .tx-logo svg path:first-child {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1px;
    stroke-linejoin: round;
    transform-origin: center center;
    animation: 3s cubic-bezier(0.54, 0.32, 0.05, 0.96) infinite tx-logo-outer;
  }
  .tx-logo svg path:last-child {
    transform-origin: center center;
    animation: 3s cubic-bezier(0.54, 0.32, 0.05, 0.96) infinite tx-logo-inner;
  }
  @keyframes tx-logo-outer {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
  }
  @keyframes tx-logo-inner {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(0.7); }
  }

  /* ── HERO IMAGE ── */
  .article-hero {
    margin: 130px auto 0;
    width: 75.7%;
    overflow: hidden;
  }

  .article-hero img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ── ARTICLE HEADER ── */
  .article-header {
    width: 75.7%;
    margin: 0 auto;
    padding-top: 40px;
  }

  .article-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--black);
  }

  .kicker-sep { color: var(--mid); }

  .kicker-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .kicker-tag {
    border: 1px solid var(--black);
    border-radius: 20px;
    padding: 3px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--black);
  }

  .article-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 4vw, 77px);
    font-weight: 500;
    line-height: 1.104;
    color: var(--black);
    text-transform: uppercase;
    margin: 30px 0 0 0;
  }

  .article-author-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--light);
  }

  .author-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--light);
    flex-shrink: 0;
  }

  .author-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--mid);
  }

  .author-name-small {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
  }

  /* ── ARTICLE BODY ── */
  .article-body {
    max-width: var(--body-width);
    margin: 0 auto;
    padding: 0;
  }

  /* Text block */
  .block-text {
    padding: 40px 0 0;
  }

  .block-text p {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 34px;
    color: #000;
    margin-bottom: 1.4em;
  }

  .block-text p:last-child {
    margin-bottom: 0;
  }

  .block-text a,
  .block-intro a,
  .block-twocol a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  .block-text h2, .block-intro h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 50px;
    color: inherit;
    margin: 0 0 8px;
  }

  .block-text h3, .block-intro h3 {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 34px;
    color: inherit;
    margin: 28px 0; /* oben wie unten = Absatzabstand (1.4em x 20px) */
  }

  /* Intro box (grey background) */
  .block-intro {
    padding: 28px 32px;
    background: #EEEEEE;
    margin: 32px 0 0;
  }

  .block-intro p {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 34px;
    color: #000;
    margin-bottom: 1.4em;
  }

  .block-intro p:last-child { margin-bottom: 0; }

  /* Drop-cap */
  .drop-cap {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 5.5em;
    font-weight: 700;
    float: left;
    line-height: 0.78;
    margin: 6px 8px 0 0;
    color: var(--black);
  }

  /* Image block */
  .block-image {
    margin: 80px calc(50% - 50vw) 30px;
    width: 100vw;
  }

  .block-image figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--mid);
    letter-spacing: 0.06em;
    padding: 10px 4.9% 0;
    line-height: 1.5;
    text-align: right;
  }

  .block-image.size-medium {
    margin: 80px calc(50% - 30.25vw) 30px;
    width: 60.5vw;
  }

  .block-image.size-medium figcaption {
    padding: 10px 0 0;
    text-align: right;
  }

  .block-image.size-small {
    margin: 80px calc(50% - 13.7vw) 30px;
    width: 27.4vw;
  }

  .block-image.size-small figcaption {
    padding: 10px 0 0;
    text-align: right;
  }

  .block-image.size-sehr-klein {
    margin: 80px auto 30px;
    width: 500px;
    max-width: 500px;
  }

  .block-image.size-sehr-klein figcaption {
    padding: 10px 0 0;
    text-align: right;
  }

  .block-image img {
    width: 100%;
    display: block;
    filter: grayscale(10%);
  }

  /* ── FOOTNOTE TEXT ── */
  .fn {
    display: block;
    font-size: 11px;
    color: var(--mid);
    line-height: 1.5;
    letter-spacing: 0.06em;
  }

  /* Quote block */
  .block-quote {
    margin: 48px 0;
    padding: 0 0 0 24px;
    border-left: 3px solid var(--black);
  }

  .block-quote blockquote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;
    color: var(--black);
    margin-bottom: 14px;
  }

  .block-quote cite {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
  }

  /* Pull-quote block */
  .block-pullquote {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin: 50px calc(50% - 30.25vw) 20px;
    width: 60.5vw;
    padding: 0;
  }

  .block-pullquote img {
    width: 60px;
    flex-shrink: 0;
    margin-top: 4px;
  }

  .block-pullquote-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--black);
  }

  .block-pullquote cite {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--mid);
    margin-top: 12px;
  }

  /* Two-column block */
  .block-twocol {
    margin: 40px 0;
    overflow: hidden; /* clearfix */
  }

  .block-twocol figure {
    width: 45%;
    margin-bottom: 12px;
  }

  .block-twocol figure.img-left {
    float: left;
    margin-right: 32px;
  }

  .block-twocol figure.img-right {
    float: right;
    margin-left: 32px;
  }

  .block-twocol img {
    width: 100%;
    display: block;
    filter: grayscale(10%);
  }

  .block-twocol figcaption {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: var(--mid);
    letter-spacing: 0.06em;
    margin-top: 8px;
  }

  .block-twocol .twocol-text p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: #1a1a1a;
    margin-bottom: 1.2em;
  }

  .block-twocol .twocol-text p:last-child { margin-bottom: 0; }

  .block-twocol-bg {
    background: #EEEEEE;
    padding: 28px 32px;
    border-radius: 4px;
  }

  .block-twocol-wide {
    width: 60.5vw;
    margin-left: calc(50% - 30.25vw);
    margin-right: calc(50% - 30.25vw);
  }

  /* Separator */
  .block-sep {
    margin: 48px 0;
    border: none;
    border-top: 1px solid var(--light);
  }

  @media (max-width: 640px) {
    .block-pullquote { margin: 36px 0; flex-direction: column; gap: 16px; }
    .block-twocol figure { float: none; width: 100%; margin: 0 0 20px 0; }
    .block-image.size-medium,
    .block-image.size-small { max-width: 100%; }
  }

  /* ── AUTHOR BIO ── */
  .author-bio {
    width: 75.7%;
    margin: 170px auto 0;
    padding: 50px 0 40px;
    border-top: 1px solid var(--black);
    border-bottom: 1px solid var(--black);
    display: flex;
    gap: 0;
    align-items: center;
  }

  .author-avatar-big {
    width: 190px;
    height: 190px;
    border-radius: 0 40px 0 0;
    object-fit: cover;
    background: var(--light);
    flex-shrink: 0;
    margin-right: 40px;
  }

  .author-avatar-big-placeholder {
    width: 190px;
    height: 190px;
    border-radius: 0 40px 0 0;
    background: var(--light);
    flex-shrink: 0;
    margin-right: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--mid);
  }

  .author-bio-text {}

  .bio-label { display: none; }

  .bio-name {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 25px;
    margin-bottom: 12px;
    text-transform: uppercase;
  }

  .bio-text {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 34px;
    color: var(--black);
  }

  /* ── RELATED ARTICLES ── */
  .related {
    max-width: 1140px;
    margin: 150px auto 0;
    padding: 0 var(--pad);
    border-top: none;
  }

  .related-label {
    font-family: 'Inter', sans-serif;
    font-size: 37px;
    font-weight: 500;
    line-height: 45px;
    color: var(--black);
    margin-bottom: 40px;
    text-transform: uppercase;
  }

  .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .related-card {
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .related-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--light);
    margin-bottom: 40px;
  }

  .related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%);
    transition: transform 0.5s ease;
  }

  .related-card:hover .related-img img {
    transform: scale(1.04);
  }

  .related-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 11px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 20px;
  }

  .related-meta-sep { color: var(--mid); }

  .related-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .related-tag {
    border: 1px solid var(--black);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--black);
  }

  .related-title {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 25px;
    text-transform: uppercase;
    color: var(--black);
    transition: color 0.15s;
  }

  .related-card:hover .related-title { color: var(--mid); }

  /* ── FOOTER ── */
  .site-footer {
    margin-top: 210px;
    padding-bottom: 40px;
    text-align: center;
  }

  .footer-nav {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 20px;
  }

  .footer-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 26px;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    transition: color 0.15s;
  }

  .footer-nav a:hover { color: var(--mid); }

  .footer-rule {
    border: none;
    border-top: 1px solid var(--black);
    width: 30.3vw;
    margin: 0 auto 70px;
  }

  .footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 11px;
    color: var(--mid);
    text-transform: uppercase;
  }

  /* ── MOBILE MENU ── */
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 500;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .mobile-overlay.open { display: flex; }

  .mobile-overlay a {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
  }

  /* ── LOADING ── */
  .loading {
    padding: 100px 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    :root { --pad: 20px; }

    /* Body width full on mobile */
    .article-body { max-width: 100%; padding: 0 20px; }
    .article-header { width: auto; padding: 20px 20px 0; }

    /* Hero */
    .article-hero { margin: 20px 0 0; width: 100%; }

    /* Kicker */
    .article-kicker { flex-wrap: wrap; }

    /* Title */
    .article-title { font-size: clamp(24px, 7vw, 48px); }

    /* Drop cap */
    .drop-cap { font-size: 3.5em; }

    /* Intro box */
    .block-intro { padding: 20px; }

    /* Images – full width on mobile */
    .block-image { margin: 32px 0; width: 100%; }
    .block-image figcaption { padding: 8px 0 0; }
    .block-image.size-medium,
    .block-image.size-small,
    .block-image.size-sehr-klein { margin: 32px 0; width: 100%; max-width: 100%; }

    /* Pull quote */
    .block-pullquote { margin: 40px 0; width: 100%; }

    /* Related */
    .related { padding: 0 20px; }
    .related-grid { grid-template-columns: 1fr; gap: 32px; }

    /* Author bio */
    .author-bio { flex-direction: column; gap: 20px; width: 90%; }
    .author-avatar-big, .author-avatar-big-placeholder { margin-right: 0; }

    /* Footer */
    .footer-nav { gap: 24px; flex-wrap: wrap; }
    .footer-rule { width: 80%; }
  }

  /* ── HAMBURGER MENU ── */
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 201;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--black);
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
  }

  .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .mobile-nav.open { display: flex; }

  .mobile-nav a {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 6vw, 36px);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    transition: color 0.15s;
  }

  .mobile-nav a:hover { color: var(--mid); }

  .mobile-nav-rule {
    width: 40px;
    height: 1px;
    background: var(--light);
  }

  @media (max-width: 768px) {
    .site-nav { display: none; }
    .hamburger { display: flex; }
  }
