/* Buttons & Basics */

.grau { color: grey; }

h2.epos {
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--h2epos);
}

/*** From Kev Quirk ***/
.post-link {
  font-size: 1.5rem;
  font-weight: bold;
}

.meta {
  color: var(--text-light);
  font-size: 0.7rem;
  margin: 0 0 0.5rem 0.1rem;
}

.betont {
  color: red;
  font-size: 1rem;
  margin: 1rem 0 0.5rem 0.1rem;
}

nav a.current {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.medium { font-size: 1.4rem; }
.small  { font-size: smaller; }
 
.wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-top: 2rem;
}

/* HEADER */
header > h1 {
  text-align: center;
  flex: 1;
  font-size: 1.9rem;
  color: orange;
}

/* MAIN LAYOUT – stabil für Desktop */
main {
  width: 100%;
  max-width: 1200px;      /* statt 95vw → stabiler Desktop */
  margin: 0 auto;
  padding-top: 0;
}

main h2 {
  margin-top: 0;
}

article h2,
.cover-image + h2 {
  margin: 1rem 0;
  color: #b3c4ff;
}

article + nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.blog-item {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: white;
}

.blog-article {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.meta-icon {
  vertical-align: middle;
  transform: translateY(-10%);
}

.meta-icon:not(:first-child) {
  margin-left: 1rem;
}

.meta-tag {
  margin: 0 0.1rem;
  font-size: smaller;
}

.meta-profile-picture {
  border-radius: 50%;
  float: left;
}

.cover-image {
  display: flex;
  margin: 0 auto;
  width: 100%;
  object-fit: cover;
}

/* Bild rechts im Fließtext */
.bild-rechts {
  float: right;
  width: 250px;
  margin: 0 0 1rem 1rem;
  text-align: center;
}

.bild-rechts img {
  max-width: 100%;
  height: auto;
  display: block;
}
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bild-rechts figcaption {
  font-size: 0.8rem;
  color: #c6d9ec;
}

/* READMORE LINK */
.readmore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  color: #9f9fdf;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.readmore-link:visited {
  color: #00cc00;
}

.readmore-link:hover {
  color: #9fcfff;
}

.readmore-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

/* FOOTER */
footer {
background-color:#1b1b1b;
}
footer ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
  font-size: x-large;
  padding: 0;
}

footer ul li img {
  max-width: 1.375rem;
  min-height: 1.375rem;
  aspect-ratio: 1 / 1;
  padding: 0.1rem;
  border-radius: 40%;
}

.plugin-label {
  font-size: 1em;
  text-transform: uppercase;
}

.plugin ul {
  list-style: none;
  padding: 0 0 0 10px;
}

/* GLOBAL TYPOGRAPHY & BODY */
body {
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.7;
  letter-spacing: 0.015em;
  color: #e8e8e8;
  margin: 0;
  padding: 0 1rem;
  font-family: "Inter", system-ui, sans-serif;
  background: #000;
}

/* HEADINGS */
h1, h2, h3, h4 {
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #f2f2f2;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin: 2.5rem 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 2rem 0 1rem;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin: 1.8rem 0 0.8rem;
}

h4 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 1.5rem 0 0.6rem;
}

/* PARAGRAPHS */
p {
  margin-bottom: 1.4em;
  color: #e6e6e6;
}

/* LINKS (global) */
a {
  color: #ccffff;
  text-decoration: none;

}

a:hover {
  color: #ffffcc;
  background-color:#333366;
  padding:3px;
}

/* AURORA INFOBOX – vereinheitlicht */
.pym-infobox {
  width: 100%;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: #dbe4ff;
  border-left: 2px solid #b44;
  padding: 1.4rem 1.6rem;
  margin: 2.5rem 0;
  background: rgba(50, 50, 50, 0.85);
  border-radius: 4px;
  letter-spacing: 0.025em;
  opacity: 0.95;
  backdrop-filter: blur(2px);
}

.pym-infobox h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.pym-infobox h3::before {
  content: "✦";
  margin-right: 0.4rem;
  color: #b44;
}

/* TOOLBOX */
.pym-toolbox-wrapper {
  position: relative;
  width: 100%;
  text-align: right;
  margin: 1rem 0;
}

.pym-toolbox-icon {
  display: inline-block;
  padding: 0.3rem 0.4rem;
  margin-right: 1rem;
  background: rgba(50,50,50,0.85);
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #b44;
  font-size: 1.2rem;
  cursor: default;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pym-icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.pym-toolbox-icon:hover {
  box-shadow: 0 0 10px rgba(200,200,200,0.7);
  transform: translateY(-2px);
}

.pym-toolbox {
  position: absolute;
  right: 65px;
  top: -45px;
  width: 240px;
  font-size: 0.85rem;
  padding: 0.1rem 1.6rem;
  background: rgba(30,30,30,0.90);
  border: 1px solid #8c8c8c;
  border-left: 4px solid #b44;
  border-radius: 4px;
  color: #ddd;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
/* Mobile Fix */
@media (max-width: 768px) {
  .pym-toolbox {
    right: 10px;
    width: calc(100% - 20px);
    max-width: 240px;
  }
}
.pym-toolbox-wrapper:hover .pym-toolbox {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pym-toolbox h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.pym-toolbox h4 {
  margin-top: 1.2rem;
  color: #eee;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

/* RITUAL BAR & LIGHTBOX */
.ritual-bar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  z-index: 10000;
  padding: 6px 12px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  border-radius: 8px;
}
.ritual-bar {   /*siehe oben*/
    gap: 12px;
    padding: 4px 8px;
}
/* Mobile Fix */
@media (max-width: 768px) {
  .ritual-bar {
    left: 0;
    right: 0;
    transform: none;
    justify-content: center;
  }
}
.ritual-thumb {
  text-align: center;
  cursor: pointer;
}
.ritual-thumb img {
  width: 110px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.ritual-thumb img:hover {
  transform: scale(1.05);
}

.ritual-label {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #eee;
}

.ritual-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.88);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.ritual-lightbox.active {
  display: flex;
}

.ritual-lightbox-content {
  width: 92%;
  max-width: 760px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

.ritual-item {
  opacity: 0;
  display: none;
  transition: opacity 0.6s ease-in-out;
}

.ritual-item.active {
  opacity: 1;
  display: block;
}

.ritual-video-frame {
  background: #0a0a0a;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #333;
  box-shadow: 0 0 22px rgba(0,0,0,0.7);
}

.ritual-video-frame video {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.ritual-text-box {
  background: #111;
  padding: 26px;
  border-radius: 6px;
  border: 1px solid #333;
  color: #dbe4ff;
  font-size: 1.2rem;
  line-height: 1.65;
  letter-spacing: 0.3px;
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
  font-family: "Georgia", "Times New Roman", serif;
}

/* Close Button für Ritual-Lightbox */
.ritual-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  background: #b30000;
  color: #fff;
  font-size: 32px;
  line-height: 42px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 12000;
  box-shadow: 0 0 12px rgba(0,0,0,0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ritual-close:hover {
  transform: scale(0.85);
  box-shadow: 0 0 18px rgba(255,0,0,0.8);
}
/* LIGHTBOX GENERIC */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px) brightness(0.9);
}

.lightbox::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.7) 100%);
}

.lightbox::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='noise'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/></filter><rect width='100%' height='100%' filter='url(%23noise)' opacity='0.07'/></svg>");
}

.lb-content {
  max-width: 90vw;
  max-height: 90vh;
  background: #0a0a0a;
  padding: 2rem;
  border: 1px solid #222;
  border-radius: 6px;
  overflow-y: auto;
  color: #e8e8e8;
  line-height: 1.65;
  letter-spacing: 0.015em;
  animation: lbFade 0.4s ease;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

@keyframes lbFade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* DARK TYPE */
.dark-type { color: #d0d0d0; }

.dark-type p {
  color: #c8c8c8;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.dark-type h1,
.dark-type h2,
.dark-type h3 {
  color: #efefef;
  letter-spacing: 0.03em;
}

.dark-type a { color: #e0e0e0; }
.dark-type a:hover { color: #bfbfbf; }

/* POETIC SERIF */
.poetic-serif {
  font-family: "Georgia", "Garamond", "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: #f0f0f0;
  opacity: 0.92;
  border-left: 2px solid #444;
  padding-left: 1.2rem;
  margin: 2.5rem 0;
  font-style: italic;
}

/* SIDEBAR LISTS */
aside ul,
aside li {
  list-style-type: none !important;
  margin-left: 0;
  padding-left: 0;
}

aside li::marker {
  content: "";
}

/* HAMBURGER BUTTON */
.menu-toggle {
  display: none;
  position: absolute;
  top: 2.5rem;
  right: 1.5rem;
  z-index: 2000;
  background: #666;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* OVERLAY MENU */
.mobile-menu {
  display: none;
  position: absolute;
  inset: 0;
  background: black;
  z-index: 3000;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.menu-close {
  position: absolute;
  top: 2rem;/*test - orig=1rem*/
  right: 2rem;
  background: none;
  border: dottet;/*test - orig=none*/
  font-size: 1.3rem;/*test - orig=2rem*/
  color: red;/*test - orig=red*/
  cursor: pointer;
}
button.menu-close:hover { font-size: 1.3rem; background: #0000cc; border: none; }

/* RESPONSIVE BREAKPOINTS */

/* Tablet & kleiner */
@media (max-width: 1024px) {
  main {
    max-width: 95%;
  }
}

/* Smartphone */
@media (max-width: 768px) {
  body {
    padding: 0 0.75rem;
  }
  body > header {
    min-height: 4.5rem;
    padding-top: 1rem;
    position: relative;
  }
  body > header p {
    margin: 0.5rem auto;
  }
  .wrapper {
    flex-wrap: wrap;
  }
  aside {
    display: none;
    margin-top: 2rem;
  }
  article + nav {
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  body > footer {
    margin-top: 2rem;
  }
  .menu-toggle {
    display: block;
    top: 0.8rem;
    right: 1rem;
  }
  .site-logo {
    display: none;
  }
  .ritual-thumb img {
    width: 80px;
  }  
  .ritual-lightbox-content {
    width: 96%;
    max-width: 96%;
    max-height: 86vh;
    padding: 14px;
  }
  .ritual-text-box {
    font-size: 1.05rem;
    padding: 18px;
  }
}

/* Iris-Effekte */
.ritual-lightbox.iris-close {
  animation: irisClose 0.7s ease forwards;
  overflow: hidden;
}

@keyframes irisClose {
  0%   { clip-path: circle(75% at 50% 50%); }
  100% { clip-path: circle(0%  at 50% 50%); }
}

.ritual-video-frame.fade-out video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ritual-lightbox.iris-open {
  animation: irisOpen 0.7s ease forwards;
  overflow: hidden;
}

@keyframes irisOpen {
  0%   { clip-path: circle(0%  at 50% 50%); }
  100% { clip-path: circle(75% at 50% 50%); }
}

/* ===============
   Ritual Edition
   ============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: #0e0e0e;
  color: #e6e6e6;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h2 {
  text-align: center;
  font-size: 1.2rem;
  margin: 1rem 0;
}

p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* ---------- Ritual-Linien ---------- */
/* --- Galerie Wrapper --- */
.gallery-wrapper {
  max-width: 100%;
  padding: 0rem 1rem 1rem; /* Platz für fixe Vorschauzeile */
  text-align: center;
}

/* --- Thumbnail-Bar --- */
.thumb-bar {
  position: fixed;
  top: 1rem;
  left: 1rem; 
  right: 1rem;
  padding: .5rem 2rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 10000; /* HÖCHSTER Wert */
  display: flex;
  align-items: center; /*center*/
  justify-content: center;
  gap: 1rem;
}
.thumb-track {
  display: flex;
  overflow: hidden;
  gap: .5rem;
  width: auto;
  max-width: 75vw;
}

.thumb {
  width: 80px;
  height: auto;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px;
  transition: .3s ease;
}

.thumb:hover {
  /*transform: scale(1.1);*/
  filter: brightness(1.2);
}

.thumb-nav {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #a9a9a9;
  font-size: 1.4rem;
  padding: .5rem 0.8rem;
  cursor: pointer;
}

/* --- Viewer (Großbild) --- */
.viewer {
position: fixed;
  top: 0rem; /* 4.5rem Platz für die Vorschauzeile */
  left: 0;
  right: 0rem;
  bottom: 0rem;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999; /* niedriger als thumb-bar */
}

.viewer.hidden {
  display: none;
}

.viewer img {
  max-width: 100vw;
  max-height: 100vh; /* volle Höhe */
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.6);
  margin: 0; /* WICHTIG: kein margin-top */
  padding:1rem;
}

/* --- Bildunterschrift im Viewer --- */
#viewer-caption {
  text-align: right;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(230, 230, 230, 0.7);
  max-width: 90vw;
  padding: 0.75rem 2rem 0;
  margin: 0;
  font-style: italic;
}

/* Ritual-Edition-Effekt fürs Großbild */
@keyframes ritual-viewer {
  0% {
    opacity: 0;
    transform: scale(0.97);
    filter: brightness(0.7) blur(2px);
  }
  60% {
    opacity: 1;
    transform: scale(1.01);
    filter: brightness(0.95) blur(0);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.viewer:not(.hidden) img {
  animation: ritual-viewer 1.2s ease-out forwards;
}

/* Für jedes Bild-Update: Animation neu triggern über Klasse */
.viewer img.image-updating {
  animation: none;
  opacity: 0.7;
  filter: brightness(0.7) blur(2px);
}

.viewer img.image-updated {
  animation: ritual-viewer 1.2s ease-out forwards;
}

.viewer img:not(.image-updated) {
  animation: none;
}

/* --- Close Button --- */
.viewer-close {
  position: absolute;
  top: 8rem;
  right: 5.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: red;
  cursor: pointer; /* neu */ 
  transform: none; /* sicherheitshalber */ 
  transition: none; /* sicherheitshalber */
}
button.viewer-close:hover { font-size: 1.5rem; background: 0000cc; border: none; transform: none; transition: none; }

/* --- Navigation im Großbild --- */
.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.6;
}

.viewer-nav.prev { left: 5rem; }
.viewer-nav.next { right: 5rem; }

.viewer-nav:hover {
  opacity: 0.4;
}

/* --- Caption Fade-In Animation --- */
@keyframes caption-reveal {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(3px);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

#viewer-caption {
  text-align: right;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(230, 230, 230, 0.7);
  max-width: 90vw;
  padding: 0.75rem 2rem 0;
  margin: 0;
  font-style: italic;
}

/* Animation triggern, wenn Caption Text enthält */
#viewer-caption:not(:empty) {
  animation: caption-reveal 0.6s ease-out forwards;
}