/* =========================================================
   EUGSTER.NET mockup stylesheet
   (content is in PHP/JSON, styles only here)
   ========================================================= */

:root{
  --fg: rgba(255,255,255,0.92);
  --fg-dim: rgba(255,255,255,0.72);
  --fg-soft: rgba(255,255,255,0.58);

  --bg0: #050b1a;  /* deep navy */
  --bg1: #0b1330;  /* navy */
  --bg2: #1a0d2e;  /* ink purple */
  --bg3: #06142b;  /* cold blue */

  --panel: rgba(7,12,26,0.55);
  --panel2: rgba(7,12,26,0.78);
  --stroke: rgba(255,255,255,0.14);

  --shadow: 0 18px 60px rgba(0,0,0,0.35);
  --radius: 18px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html,body{ height:100%; 
  padding-bottom: 90px;
}
body{
  padding-bottom: 86px;
  margin:0;
  font-family: var(--font);
  background: radial-gradient(1200px 800px at 22% 24%, var(--bg1), transparent 62%),
              radial-gradient(900px 700px at 78% 68%, var(--bg2), transparent 64%),
              radial-gradient(1100px 900px at 62% 12%, var(--bg3), transparent 58%),
              linear-gradient(120deg, var(--bg0), #050814);
  color: var(--fg);
  overflow-x: hidden;
}

.no-scroll{ overflow: hidden; }

/* Background */
.bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.bg__video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.7);
  transform: scale(1.03);
}
.bg__vignette{
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(1200px 820px at 22% 26%, rgba(18,24,68,0.35), transparent 64%),
    radial-gradient(900px 700px at 80% 72%, rgba(50,14,78,0.28), transparent 66%),
    linear-gradient(120deg, rgba(5,10,22,0.74), rgba(5,10,22,0.32) 60%, rgba(5,10,22,0.78));
  pointer-events:none;
}
.bg__noise{
  position:absolute;
  inset:0;
  opacity: 0.12;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events:none;
}

/* Top bar */
.topbar{
  position: fixed;
  top:0;
  left:0;
  right:0;
  padding: 34px 56px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  z-index: 4;
}

.brand{
  color: var(--fg);
  text-decoration:none;
  letter-spacing: 0.14em;
  font-weight: 500;
  font-size: 26px;
}
.brand__text{ opacity: 0.92; }

.burger{
  width: 54px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.08);
  border-radius: 14px;
  cursor:pointer;
  display:grid;
  place-items:center;
  backdrop-filter: blur(10px);
}
.burger:focus{ outline: 2px solid rgba(255,255,255,0.32); outline-offset: 2px; }
.burger__lines{
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.78);
  border-radius: 99px;
  position: relative;
}
.burger__lines::before,
.burger__lines::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  border-radius:99px;
  background: rgba(255,255,255,0.78);
}
.burger__lines::before{ top: -7px; opacity:0.9; }
.burger__lines::after{ top: 7px; opacity:0.9; }

/* Stage */
.stage{
  min-height: 100%;
  padding: 120px 56px 64px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
}

/* Bottom-right content block */
.card{
  width: min(520px, 90vw);
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,14,32,0.25), rgba(10,14,32,0.62));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  min-width: 0;
}

/* Card hero background (uses CSS variable: --card-bg) */
.card--hero{
  position: relative;
  overflow: hidden;
}
.card--hero::before{
  content:"";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(0.9) contrast(1.08) brightness(0.55);
  z-index: 0;
}
.card--hero::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 18% 22%, rgba(12,22,64,0.25), transparent 62%),
    linear-gradient(180deg, rgba(5,10,22,0.18), rgba(5,10,22,0.78));
  z-index: 1;
}
.card--hero > *{
  position: relative;
  z-index: 2;
  min-width: 0;
}

/* Post hero image (inside the card, above the text) */
.post-hero{
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.10);
}
.post-hero__img{
  display: block;
  width: 100%;
  height: clamp(180px, 34vh, 340px);
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(0.86);
  transform: scale(1.01);
}

.kicker{
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.95;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.intro{
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--fg-dim);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.intro strong{
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.random{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  min-width: 0;
}

.random__label{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.random__label .arrow{
  font-size: 18px;
  opacity: 0.85;
}

.post__title{
  font-size: 40px;
  line-height: 1.08;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.post__title a{
  color: var(--fg);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post__title a:hover{ text-decoration: underline; text-underline-offset: 4px; }

.post__excerpt{
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--fg-dim);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post__meta{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  color: var(--fg-soft);
  font-size: 13px;
  letter-spacing: 0.02em;
  min-width: 0;
}

.badge{
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.10);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Badge links should always stay white (avoid purple visited links) */
.badge,
.badge:link,
.badge:visited,
.badge:hover,
.badge:active{
  color: var(--fg);
  text-decoration: none;
}

/* Optional: subtle hover feedback */
.badge:hover{
  background: rgba(255,255,255,0.16);
}

/* Footer */
.footer{
  position: fixed;
  left:0;
  right:0;
  bottom:0;
  z-index: 99999;
  padding: 18px 56px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  letter-spacing: 0.06em;
  pointer-events:auto;
  background: rgba(6,10,22,0.35);
  backdrop-filter: blur(10px);
}
.footer *{ pointer-events:auto; }

.footer__inner{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap: 12px;
}


/* Menu overlay */
.menu{
  position: fixed;
  inset: 0;
  background: rgba(5,10,22,0.68);
  backdrop-filter: blur(14px);
  z-index: 10;
  opacity: 0;
  pointer-events:none;
  transition: opacity .18s ease;
}
.menu--open{
  opacity: 1;
  pointer-events:auto;
}
.menu__panel{
  position:absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  bottom: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(9,12,28,0.78), rgba(9,12,28,0.90));
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  overflow: hidden;
  display:flex;
  flex-direction: column;
  min-width: 0;
}

.menu__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  min-width: 0;
}
.menu__title{
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.menu__close{
  width: 46px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.12);
  color: rgba(255,255,255,0.85);
  font-size: 26px;
  line-height: 1;
  cursor:pointer;
}

.menu__list{
  padding: 18px 22px 10px;
  overflow: auto;
  min-width: 0;
}

.menu__item{
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-width: 0;
}
.menu__link,
.menu__sublink{
  display:flex;
  align-items:baseline;
  gap: 14px;
  padding: 10px 8px;
  border-radius: 14px;
  text-decoration:none;
  color: rgba(255,255,255,0.92);
  min-width: 0;
}
.menu__link:hover,
.menu__sublink:hover{
  background: rgba(255,255,255,0.06);
}
.menu__id{
  min-width: 58px;
  letter-spacing: 0.10em;
  opacity: 0.7;
  font-size: 13px;
}
.menu__id--sub{ min-width: 70px; opacity: 0.55; }
.menu__label{
  font-size: 22px;
  letter-spacing: 0.01em;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.menu__children{
  margin-left: 56px;
  padding: 6px 0 2px;
  min-width: 0;
}

.menu__foot{
  margin-top: auto;
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.menu__hint{
  color: rgba(255,255,255,0.52);
  font-size: 12px;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Post page */
.page{
  width: min(820px, 92vw);
  padding: 26px 26px 22px;
  min-width: 0;
}
.page h1{
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.07;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.page p{
  color: var(--fg-dim);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.page a{
  color: var(--fg);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 880px){
  .topbar{ padding: 22px 22px; }
  .stage{ padding: 104px 22px 64px; justify-content: center; }
  .footer{ padding: 16px 22px; justify-content: center; }
  .footer__inner{ justify-content:center; }
  .post__title{ font-size: 34px; }
  .brand{ font-size: 22px; }
}
@media (max-width: 520px){
  .card{ padding: 18px 16px 14px; border-radius: 16px; }
  .kicker{ font-size: 16px; }
  .intro{ font-size: 16px; }
  .post__title{ font-size: 30px; }
  .post__excerpt{ font-size: 16px; }
  .menu__label{ font-size: 18px; }
}

/* Category list (compact cards) */
.cat-item{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.10);
}

.cat-item--noimg{
  grid-template-columns: 1fr;
}

.cat-item__thumbLink{
  display: block;
}

.cat-item__thumb{
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  filter: saturate(0.9) contrast(1.05) brightness(0.85);
  display: block;
}

.cat-item__content{
  min-width: 0; /* prevent overflow on long titles */
}

/* Mobile: stack thumbnail above content */
@media (max-width: 640px){
  .cat-item{
    grid-template-columns: 1fr;
  }
  .cat-item__thumb{
    height: 160px;
  }
}

/* Keep imported WP content media within the card width */
.page img,
.page figure,
.page video,
.page iframe{
  max-width: 100%;
}

.page img{
  height: auto;
  display: block;
}

.page figure{
  margin: 18px 0;
}

.page figure img{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Gutenberg blocks: media-text should not overflow */
.page .wp-block-media-text{
  max-width: 100%;
}

.page .wp-block-media-text__media img{
  width: 100%;
  height: auto;
  display: block;
}

/* If WP adds fixed widths inline, force responsive behavior */
.page img[width]{
  max-width: 100%;
}


.footer__switch{position:relative;z-index:100000;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;border:1px solid rgba(255,255,255,0.18);background:rgba(0,0,0,0.10);color:rgba(255,255,255,0.78);text-decoration:none;margin-left:12px;}
.footer__switch:hover{background:rgba(255,255,255,0.10);color:rgba(255,255,255,0.92);}

.post__meta--article{
  margin-top: 0;
  margin-bottom: 14px;
}

.badge--muted{
  opacity: .85;
}

.post__excerptLead{
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}

.post__back{
  margin-top: 18px;
}

.post-content__fallback{
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.post-content__fallbackLink{
  color: inherit;
  text-decoration: underline;
}

:root {
  --table-hover-bg: rgba(120, 180, 255, 0.14);
}

.post-content .wp-block-gallery,
.post-content .blocks-gallery-grid,
.post-content .gallery,
.post-content .tiled-gallery,
.post-content .jetpack-tiled-gallery,
.post-content [class*="gallery"] {
  margin: 1.2rem 0;
}

.post-content .wp-block-gallery img,
.post-content .blocks-gallery-grid img,
.post-content .gallery img,
.post-content .tiled-gallery img,
.post-content .jetpack-tiled-gallery img,
.post-content figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 12px;
}

.post-content .wp-block-gallery figure,
.post-content .blocks-gallery-item,
.post-content .gallery-item,
.post-content .tiled-gallery-item,
.post-content .jetpack-tiled-gallery__item,
.post-content figure {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.post-content .wp-block-gallery a,
.post-content .blocks-gallery-item a,
.post-content .gallery a,
.post-content .tiled-gallery a,
.post-content .jetpack-tiled-gallery a,
.post-content figure a {
  display: block;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  text-decoration: none;
}

.post-content .wp-block-gallery .blocks-gallery-item,
.post-content .gallery .gallery-item,
.post-content .tiled-gallery .tiled-gallery-item,
.post-content .jetpack-tiled-gallery__item {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Tabellen */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 1.25rem 0;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.02);
}

.post-content table th,
.post-content table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  color: inherit;
}

.post-content table th {
  font-weight: 700;
  background: rgba(255,255,255,0.06);
}

.post-content table td {
  background: rgba(255,255,255,0.015);
}

.post-content table tbody tr:hover th,
.post-content table tbody tr:hover td,
.post-content table tr:hover th,
.post-content table tr:hover td {
  background: var(--table-hover-bg);
}

.post-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(0, 0, 0, 0.96);
  overflow: hidden;
  touch-action: none;
}

.post-lightbox[hidden] {
  display: none !important;
}

.post-lightbox__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 84px;
  box-sizing: border-box;
}

.post-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.post-lightbox__close,
.post-lightbox__nav {
  position: absolute;
  z-index: 3;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 999px;
}

.post-lightbox__close:hover,
.post-lightbox__nav:hover {
  background: rgba(255,255,255,.2);
}

.post-lightbox__close {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 52px;
  height: 52px;
  font-size: 34px;
}

.post-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 38px;
}

.post-lightbox__nav--prev {
  left: max(14px, env(safe-area-inset-left));
}

.post-lightbox__nav--next {
  right: max(14px, env(safe-area-inset-right));
}

.post-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

/* =========================================
   Blockquote – Magazin / Story Stil
========================================= */
.post-content blockquote {
  position: relative;
  margin: 1.6rem 0;
  padding: 1.2rem 1.4rem 1.2rem 2.6rem;
  border-left: 3px solid rgba(120,180,255,0.55);
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-style: italic;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
}

/* grosses Anführungszeichen */
.post-content blockquote::before {
  content: "“";
  position: absolute;
  left: 10px;
  top: -8px;
  font-size: 46px;
  font-weight: 600;
  color: rgba(120,180,255,0.7);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

/* Absätze im Quote */
.post-content blockquote p {
  margin: 0.4rem 0;
}

/* Links im Quote */
.post-content blockquote a {
  color: rgba(140,200,255,0.95);
  text-decoration: underline;
}

.post-content blockquote a:hover {
  color: rgba(180,220,255,1);
}

@media (max-width: 900px) {
  .post-lightbox__inner {
    padding: 18px 68px;
  }

  .post-lightbox__nav {
    width: 50px;
    height: 50px;
    font-size: 32px;
  }

  .post-lightbox__close {
    width: 48px;
    height: 48px;
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .post-lightbox__inner {
    padding:
      calc(max(12px, env(safe-area-inset-top)) + 48px)
      10px
      calc(max(12px, env(safe-area-inset-bottom)) + 62px)
      10px;
  }

  .post-lightbox__img {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 130px);
  }

  .post-lightbox__nav {
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: none;
    width: 46px;
    height: 46px;
    font-size: 28px;
  }

  .post-lightbox__nav--prev {
    left: 12px;
  }

  .post-lightbox__nav--next {
    right: 12px;
  }

  .post-lightbox__close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 46px;
    height: 46px;
    font-size: 28px;
  }

  .post-lightbox__counter {
    bottom: max(14px, env(safe-area-inset-bottom));
    font-size: 13px;
    padding: 7px 12px;
  }

  .post-content table th,
  .post-content table td {
    padding: 8px 9px;
  }
}

.footerLoginAs__link{
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.footerLoginAs__link:hover{
  text-decoration-thickness: 2px;
}