/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #f8f9fa;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* Logo | Title */
.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-color: #ecf0f1;
    color: #2c3e50;
    display: grid;
    place-items: center;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

.site-logo:hover {
    background-color: #e6eef6;
    color: #2c3e50;
}

.site-title-wrap {
    min-width: 0;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
}

.site-title:hover {
    color: #3498db;
}

/* Header Actions (Theme + Mobile) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Theme Switch */
.theme-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-switch__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.theme-switch__label {
    position: relative;
    width: 46px;
    height: 26px;
    cursor: pointer;
    display: inline-block;
    border-radius: 999px;
}

.theme-switch__track {
    position: absolute;
    inset: 0;
    background: #ecf0f1;
    border: 1px solid #dfe6ea;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 1px solid #dfe6ea;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.theme-switch__input:checked + .theme-switch__label .theme-switch__track {
    background: #2c3e50;
    border-color: #2c3e50;
}

.theme-switch__input:checked + .theme-switch__label .theme-switch__thumb {
    transform: translateX(20px);
    border-color: rgba(255,255,255,0.25);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
.navigation {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    /* margin-left: auto;  <-- entfernt, damit nur .header-actions rechts ausrichtet */
}

.navigation a {
    color: #7f8c8d;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navigation a:hover,
.navigation a.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Main Content */
.main {
    min-height: 60vh;
    margin-bottom: 80px;
}

/* Content Wrapper - Grid Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-wrapper.single-page {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.posts-section {
    min-width: 0;
}

/* Post Styles */
.post,
.post-preview,
.static-page {
    background-color: #ffffff;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-title,
.page-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #2c3e50;
}

h3.post-title {
    font-size: 1.5rem;
}

.post-title a {
    color: #2c3e50;
}

.post-title a:hover {
    color: #3498db;
}

.post-meta {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post-category {
    background-color: #ecf0f1;
    padding: 4px 12px;
    border-radius: 4px;
    color: #7f8c8d;
}

.post-cover {
    width: 100%;
    border-radius: 6px;
    margin: 25px 0;
}

.post-content,
.post-excerpt,
.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #34495e;
}

.post-content h2,
.page-content h2 {
    font-size: 1.75rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.post-content h3,
.page-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.post-content h4,
.page-content h4 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.post-content p,
.page-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.post-content li,
.page-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 25px 0;
    color: #7f8c8d;
    font-style: italic;
}

.post-content code {
    background-color: #ecf0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 25px 0;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Post Tags */
.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: #ecf0f1;
    color: #7f8c8d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #3498db;
    color: #ffffff;
}

/* Read More Link */
.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    font-weight: 600;
}

.read-more:hover {
    color: #2980b9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    gap: 20px;
}

.pagination-prev,
.pagination-next {
    background-color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.pagination-next {
    margin-left: auto;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 180px;
    align-self: start;
}

.widget {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.widget-content {
    color: #34495e;
}

.widget-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #7f8c8d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #3498db;
}

.category-list .count {
    font-size: 0.85rem;
    color: #95a5a6;
}

/* Recent Posts */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.recent-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.recent-posts a {
    color: #2c3e50;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.recent-posts a:hover {
    color: #3498db;
}

.post-date-small {
    font-size: 0.85rem;
    color: #95a5a6;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    background-color: #ecf0f1;
    color: #7f8c8d;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag-cloud-item:hover {
    background-color: #3498db;
    color: #ffffff;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e1e8ed;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-section p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e1e8ed;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom a {
    color: #7f8c8d;
}

.footer-bottom a:hover {
    color: #3498db;
}

/* Static Pages */
.last-updated {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {

  header nav { 
    display: none;
    flex-direction: column;
    width: 100%;
    flex-basis: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e8ed;
  }

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

    .header {
        padding: 12px 0;
        margin-bottom: 24px;
    }

    .site-title {
        font-size: 1.15rem;
        max-width: 64vw;
    }

    /* Actions bleiben rechts: Switch + Hamburger */
    .header-actions {
        margin-left: auto;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navigation {
        display: none;
        flex-direction: column;
        width: 100%;
        flex-basis: 100%; /* wichtig: erzwingt neue Zeile im flex-wrap */
        margin-left: 0;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e1e8ed;
    }

    .navigation.active {
        display: flex;
    }

    .navigation a {
        padding: 12px 0;
        border-bottom: 1px solid #ecf0f1;
    }

    .post,
    .post-preview,
    .static-page,
    .widget {
        padding: 25px;
    }

    .post-title,
    .page-title {
        font-size: 1.6rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.05rem;
        max-width: 70vw;
    }

    .post,
    .post-preview,
    .static-page {
        padding: 20px;
    }

    .pagination {
        flex-direction: column;
    }

    .pagination-next {
        margin-left: 0;
    }
}
/* sidebar.css
   Styling für <aside> mit Bludit-Plugin-Blöcken:
   .plugin, .plugin-label, .plugin-content, Listen, Search Input etc.
*/

/* Plugin-Card */
.plugin {
  background-color: #ffffff;
  border: 1px solid #e9eef3;
  border-radius: 12px;
  padding: 16px 16px 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Überschrift */
.plugin-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #2c3e50;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ecf0f1;
}

/* Inhaltstext */
.plugin-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #34495e;
}

/* "Ein Gedankengang" wirkt besser mit etwas mehr Luft */
.plugin-about .plugin-content {
  color: #2f4152;
}

/* Links in der Sidebar */
.plugin-content a {
  color: #3498db;
  text-decoration: none;
}

.plugin-content a:hover {
  color: #2980b9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Listen */
.plugin-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plugin-content li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #eef3f6;
}

.plugin-content li:last-child {
  border-bottom: none;
}

/* Navigation/Links-Listen etwas kompakter */
.plugin-navigation .plugin-content li,
.plugin-pages .plugin-content li,
.plugin-static-pages .plugin-content li,
.plugin-categories .plugin-content li,
.plugin-tags .plugin-content li {
  padding: 7px 0;
}

/* List-Links als "Row" */
.plugin-content li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #2c3e50;
  font-weight: 500;
  text-decoration: none;
}

.plugin-content li a:hover {
  color: #3498db;
  text-decoration: none;
}

/* Parent-Item (im Static Pages Plugin) dezent hervorheben */
.plugin-static-pages li.parent > a {
  color: #2c3e50;
  font-weight: 700;
}

/* Kategorien-Zähler: Bludit schreibt den Count meist in Klammern ins Textlabel,
   deshalb nur optisch durch leicht andere Farbe beim Link */
.plugin-categories .plugin-content li a {
  color: #2c3e50;
}

/* Tags: wenn später befüllt, als Chips */
.plugin-tags .plugin-content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plugin-tags .plugin-content li {
  border: none;
  padding: 0;
}

.plugin-tags .plugin-content li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecf0f1;
  color: #2c3e50;
  font-size: 0.85rem;
  font-weight: 600;
}

.plugin-tags .plugin-content li a:hover {
  background: #3498db;
  color: #ffffff;
}

/* Search Plugin */
.plugin-search .plugin-content {
  display: flex;
  align-items: center;
}

#jspluginSearchText {
  width: 100%;
  appearance: none;
  border: 1px solid #dfe6ea;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #ffffff;
  color: #2c3e50;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#jspluginSearchText::placeholder {
  color: #95a5a6;
}

#jspluginSearchText:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.15);
}

/* Kleine Details: <br> in plugin-about sauberer wirken lassen */
.plugin-about .plugin-content br + br {
  content: "";
}

/* Sidebar Sticky (optional) – nur wenn du das wirklich willst:
   Kommentiert lassen, weil du evtl. schon sticky im Haupt-CSS hast. */
/*
.sidebar {
  position: sticky;
  top: 180px;
  align-self: start;
}
*/

/* Mobile: Sidebar-Plugin-Cards etwas kompakter */
@media (max-width: 768px) {
  .plugin {
    border-radius: 12px;
    padding: 14px 14px 12px;
    margin-bottom: 16px;
  }
  .plugin-label {
    font-size: 0.95rem;
  }
}

/* ---------------------------------------------------------
   DARK MODE (greift, wenn dein Toggle data-theme="dark" setzt)
   --------------------------------------------------------- */
html[data-theme="dark"] .plugin {
  background-color: #101a2e;
  border-color: #24314f;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

html[data-theme="dark"] .plugin-label {
  color: #e6edf7;
  border-bottom-color: #24314f;
}

html[data-theme="dark"] .plugin-content {
  color: #cbd6ea;
}

html[data-theme="dark"] .plugin-content li {
  border-bottom-color: #24314f;
}

html[data-theme="dark"] .plugin-content li a {
  color: #e6edf7;
}

html[data-theme="dark"] .plugin-content li a:hover {
  color: #7aa2ff;
}

html[data-theme="dark"] .plugin-static-pages li.parent > a {
  color: #e6edf7;
}

html[data-theme="dark"] #jspluginSearchText {
  background: #0f1930;
  border-color: #24314f;
  color: #e6edf7;
}

html[data-theme="dark"] #jspluginSearchText::placeholder {
  color: #94a3bf;
}

html[data-theme="dark"] #jspluginSearchText:focus {
  border-color: #7aa2ff;
  box-shadow: 0 0 0 3px rgba(122,162,255,0.18);
}

html[data-theme="dark"] .plugin-tags .plugin-content li a {
  background: #0f1930;
  color: #cbd6ea;
}

html[data-theme="dark"] .plugin-tags .plugin-content li a:hover {
  background: #7aa2ff;
  color: #0b1220;
}
/* patch.css
   Add-on für mehr Tiefe / 3D / Animation – ohne dein bestehendes Theme zu verändern.
   Lade diese Datei NACH styles.css, sidebar.css und (optional) style_dark.css.
*/

/* -----------------------------
   0) Defaults & Safety
   ----------------------------- */
:root{
  --fx-ease: cubic-bezier(.2,.8,.2,1);
  --fx-shadow-xs: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --fx-shadow-sm: 0 2px 6px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.08);
  --fx-shadow-md: 0 10px 30px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --fx-shadow-lg: 0 22px 70px rgba(0,0,0,.16), 0 6px 18px rgba(0,0,0,.10);
  --fx-ring: 0 0 0 3px rgba(52,152,219,.18);
  --fx-glow: 0 0 0 1px rgba(255,255,255,.55) inset;
  --fx-tilt: 0.9deg;
  --fx-lift: -6px;
}

/* Dark Mode Variablen */
html[data-theme="dark"]{
  --fx-shadow-xs: 0 2px 10px rgba(0,0,0,.35), 0 18px 60px rgba(0,0,0,.35);
  --fx-shadow-sm: 0 3px 14px rgba(0,0,0,.40), 0 26px 70px rgba(0,0,0,.35);
  --fx-shadow-md: 0 10px 30px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.35);
  --fx-shadow-lg: 0 26px 90px rgba(0,0,0,.65), 0 8px 22px rgba(0,0,0,.35);
  --fx-ring: 0 0 0 3px rgba(122,162,255,.18);
}

/* Motion Safety */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -----------------------------
   1) Subtile Background-Tiefe
   ----------------------------- */
body{
  position: relative;
  overflow-x: hidden;
}

/* feines "Ambient Light" + very subtle noise */
body::before{
  content: "";
  position: fixed;
  inset: -30%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(52,152,219,.10), transparent 60%),
    radial-gradient(55% 45% at 85% 20%, rgba(155,89,182,.08), transparent 65%),
    radial-gradient(70% 60% at 40% 90%, rgba(46,204,113,.06), transparent 60%);
  filter: blur(18px);
  transform: translateZ(0);
  animation: fx-ambient 18s var(--fx-ease) infinite alternate;
  opacity: .9;
}

body::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.015), rgba(255,255,255,.015) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
  opacity: .28;
}

html[data-theme="dark"] body::after{
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.02), rgba(255,255,255,.02) 1px, transparent 1px, transparent 3px);
  opacity: .20;
}

@keyframes fx-ambient{
  from{ transform: translate3d(-1.5%, -1.2%, 0) scale(1); }
  to  { transform: translate3d( 1.5%,  1.2%, 0) scale(1.03); }
}

/* -----------------------------
   2) 3D Cards / Surfaces
   ----------------------------- */
.post,
.post-preview,
.static-page,
.widget,
.plugin,
.pagination-prev,
.pagination-next,
.footer{
  position: relative;
  transform: translateZ(0);
  box-shadow: var(--fx-shadow-xs);
  transition: transform .35s var(--fx-ease), box-shadow .35s var(--fx-ease), filter .35s var(--fx-ease);
  will-change: transform, box-shadow, filter;
}

/* Glassy highlight line */
.post::before,
.post-preview::before,
.static-page::before,
.widget::before,
.plugin::before,
.pagination-prev::before,
.pagination-next::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 22%),
    radial-gradient(120% 60% at 20% 10%, rgba(255,255,255,.35), transparent 55%);
  opacity: .35;
  mix-blend-mode: soft-light;
}

html[data-theme="dark"] .post::before,
html[data-theme="dark"] .post-preview::before,
html[data-theme="dark"] .static-page::before,
html[data-theme="dark"] .widget::before,
html[data-theme="dark"] .plugin::before,
html[data-theme="dark"] .pagination-prev::before,
html[data-theme="dark"] .pagination-next::before{
  opacity: .20;
}

/* Lift on hover */
@media (hover:hover){
  .post:hover,
  .post-preview:hover,
  .static-page:hover,
  .widget:hover,
  .plugin:hover,
  .pagination-prev:hover,
  .pagination-next:hover{
    transform: translate3d(0, var(--fx-lift), 0) rotateX(var(--fx-tilt));
    box-shadow: var(--fx-shadow-lg);
    filter: saturate(1.03);
  }
}

/* Active press */
.post:active,
.post-preview:active,
.static-page:active,
.widget:active,
.plugin:active,
.pagination-prev:active,
.pagination-next:active{
  transform: translate3d(0, -1px, 0);
  box-shadow: var(--fx-shadow-sm);
}

/* -----------------------------
   3) Header / Nav: Tiefe + Micro-Animation
   ----------------------------- */
.header{
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 1px rgba(0,0,0,.03), 0 14px 40px rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(225,232,237,.9);
}

html[data-theme="dark"] .header{
  border-bottom-color: rgba(36,49,79,.9);
  box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 18px 60px rgba(0,0,0,.45);
}

.site-logo{
  box-shadow: 0 10px 24px rgba(0,0,0,.12), var(--fx-glow);
  transition: transform .25s var(--fx-ease), box-shadow .25s var(--fx-ease), filter .25s var(--fx-ease);
}

@media (hover:hover){
  .site-logo:hover{
    transform: translate3d(0,-2px,0) rotate(-2deg);
    box-shadow: 0 18px 44px rgba(0,0,0,.16), var(--fx-glow);
    filter: saturate(1.05);
  }
}

.navigation a{
  position: relative;
}

.navigation a::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52,152,219,0), rgba(52,152,219,.8), rgba(52,152,219,0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--fx-ease);
  opacity: .85;
}

html[data-theme="dark"] .navigation a::after{
  background: linear-gradient(90deg, rgba(122,162,255,0), rgba(122,162,255,.85), rgba(122,162,255,0));
}

.navigation a:hover::after,
.navigation a.active::after{
  transform: scaleX(1);
}

/* -----------------------------
   4) Buttons / Chips / Links: Glanz + Glow
   ----------------------------- */
.tag,
.tag-cloud-item,
.post-category,
.pagination-prev,
.pagination-next{
  box-shadow: 0 10px 24px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04) inset;
  transition: transform .25s var(--fx-ease), box-shadow .25s var(--fx-ease), filter .25s var(--fx-ease);
}

@media (hover:hover){
  .tag:hover,
  .tag-cloud-item:hover,
  .pagination-prev:hover,
  .pagination-next:hover{
    transform: translate3d(0,-2px,0);
    box-shadow: 0 18px 48px rgba(0,0,0,.14);
    filter: saturate(1.05);
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline: none;
  box-shadow: var(--fx-ring);
  border-radius: 10px;
}

/* -----------------------------
   5) Sidebar Plugins: mehr "Card-Stack"
   ----------------------------- */
.plugin{
  border-color: rgba(233,238,243,.9);
  box-shadow: var(--fx-shadow-xs);
}

.plugin::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset;
  opacity: .55;
}

html[data-theme="dark"] .plugin::after{
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
  opacity: .6;
}

/* -----------------------------
   6) Form Inputs: depth + focus
   ----------------------------- */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
textarea,
select,
#jspluginSearchText{
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: box-shadow .25s var(--fx-ease), transform .25s var(--fx-ease), border-color .25s var(--fx-ease);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus,
#jspluginSearchText:focus{
  transform: translate3d(0,-1px,0);
  box-shadow: var(--fx-shadow-sm), var(--fx-ring);
}

/* -----------------------------
   7) Micro-Animation: "Shimmer" auf Hover (sparsam)
   ----------------------------- */
@media (hover:hover){
  .post:hover::after,
  .post-preview:hover::after,
  .static-page:hover::after,
  .widget:hover::after,
  .plugin:hover::after{
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.22) 18%, transparent 38%);
    transform: translateX(-40%);
    animation: fx-shimmer .9s var(--fx-ease) 1;
    mix-blend-mode: soft-light;
  }

  html[data-theme="dark"] .post:hover::after,
  html[data-theme="dark"] .post-preview:hover::after,
  html[data-theme="dark"] .static-page:hover::after,
  html[data-theme="dark"] .widget:hover::after,
  html[data-theme="dark"] .plugin:hover::after{
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.10) 18%, transparent 38%);
  }
}

@keyframes fx-shimmer{
  from{ transform: translateX(-45%); opacity: .0; }
  30% { opacity: .6; }
  to  { transform: translateX(45%); opacity: 0; }
}

/* -----------------------------
   8) Optional: "Floating" Widgets (very subtle)
   ----------------------------- */
@media (hover:hover){
  .widget,
  .plugin{
    animation: fx-float 10s var(--fx-ease) infinite alternate;
    animation-delay: calc(var(--fx-seed, 0) * 1s);
  }
  .plugin:nth-child(2n){ --fx-seed: 1; }
  .plugin:nth-child(3n){ --fx-seed: 2; }
  .plugin:nth-child(4n){ --fx-seed: 3; }
}

@keyframes fx-float{
  from{ transform: translate3d(0,0,0); }
  to  { transform: translate3d(0,-3px,0); }
}
/* patch-glow.css
   Ruhiger, dezenter "Glow / Blur / Farbverlauf-Spiel" auf dem Body.
   Lädt sich idealerweise NACH patch.css (oder alternativ direkt nach deinem Basis-CSS).

   Hinweis:
   - Sehr bewusst dezent gehalten (keine harten Farben, keine hektische Bewegung).
   - Respektiert prefers-reduced-motion.
*/

:root{
  --glow-a: rgba(52,152,219,.12);
  --glow-b: rgba(155,89,182,.10);
  --glow-c: rgba(46,204,113,.07);
  --glow-d: rgba(241,196,15,.06);

  --glow-blur: 26px;
  --glow-opacity: .85;

  /* Bewegungsgeschwindigkeit (höher = ruhiger) */
  --glow-drift-s: 34s;
  --glow-drift-s-2: 48s;
}

/* Dark Mode: weniger grell, mehr Tiefe */
html[data-theme="dark"]{
  --glow-a: rgba(122,162,255,.14);
  --glow-b: rgba(203,166,247,.10);
  --glow-c: rgba(152,251,152,.06);
  --glow-d: rgba(255,215,0,.05);
  --glow-opacity: .70;
  --glow-blur: 32px;
}

/* Grundvoraussetzung */
body{
  position: relative;
  overflow-x: hidden;
}

/* Layer 1: weiche Lichtflächen */
body::before{
  content:"";
  position: fixed;
  inset: -35%;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(60% 45% at 18% 18%, var(--glow-a), transparent 62%),
    radial-gradient(55% 40% at 82% 22%, var(--glow-b), transparent 64%),
    radial-gradient(70% 55% at 42% 86%, var(--glow-c), transparent 64%),
    radial-gradient(45% 35% at 78% 78%, var(--glow-d), transparent 68%);

  filter: blur(var(--glow-blur));
  opacity: var(--glow-opacity);
  transform: translate3d(0,0,0) scale(1.02);
  animation: glow-drift var(--glow-drift-s) cubic-bezier(.2,.8,.2,1) infinite alternate;
  will-change: transform, opacity, filter;
}

/* Layer 2: ganz leichte "Aurora"-Welle */
body::after{
  content:"";
  position: fixed;
  inset: -40%;
  z-index: -3;
  pointer-events: none;

  background:
    conic-gradient(from 200deg at 50% 50%,
      rgba(255,255,255,0) 0deg,
      rgba(255,255,255,.035) 55deg,
      rgba(255,255,255,0) 110deg,
      rgba(255,255,255,.025) 180deg,
      rgba(255,255,255,0) 260deg,
      rgba(255,255,255,.03) 330deg,
      rgba(255,255,255,0) 360deg);

  mix-blend-mode: soft-light;
  filter: blur(calc(var(--glow-blur) * 0.9));
  opacity: .55;
  transform: translate3d(0,0,0) scale(1.08);
  animation: glow-aurora var(--glow-drift-s-2) cubic-bezier(.2,.8,.2,1) infinite alternate;
  will-change: transform, opacity;
}

/* Leichte Vignette für Tiefe (liegt hinter Content, aber über dem Glow) */
.main::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 15%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(85% 70% at 50% 100%, rgba(0,0,0,.06), transparent 55%);
  opacity: .6;
}
html[data-theme="dark"] .main::before{
  background:
    radial-gradient(70% 60% at 50% 15%, rgba(255,255,255,.03), transparent 55%),
    radial-gradient(85% 70% at 50% 100%, rgba(0,0,0,.20), transparent 55%);
  opacity: .75;
}

@keyframes glow-drift{
  from{ transform: translate3d(-1.2%, -0.9%, 0) scale(1.02); }
  to  { transform: translate3d( 1.2%,  1.1%, 0) scale(1.05); }
}

@keyframes glow-aurora{
  from{ transform: translate3d(1.0%, -0.6%, 0) rotate(-2deg) scale(1.08); opacity: .45; }
  to  { transform: translate3d(-1.0%, 0.9%, 0) rotate(2deg) scale(1.10); opacity: .62; }
}

/* Motion Safety */
@media (prefers-reduced-motion: reduce){
  body::before, body::after, .main::before{
    animation: none !important;
    transform: none !important;
  }
}

/* ======================================================================
   Workbook V0.4 Theme-Überzug für Bludit
   Zweck: Blog optisch an die Workbook-Landingpage angleichen, ohne Bludit-
   Templates, Plugin-Hooks oder dynamische Inhalte zu entfernen.
   ====================================================================== */
:root {
  --md-bg: #f4efe7;
  --md-paper: #fffaf1;
  --md-paper-2: #fbf3e7;
  --md-cream: #fffdf8;
  --md-ink: #272521;
  --md-soft-ink: #565047;
  --md-muted: #80766a;
  --md-line: rgba(60, 50, 40, .16);
  --md-accent: #a8744f;
  --md-accent-dark: #7a4d33;
  --md-blue: #6f8794;
  --md-blue-soft: #dfe9ea;
  --md-shadow: 0 30px 80px rgba(44, 35, 27, .14);
  --md-shadow-soft: 0 18px 40px rgba(44, 35, 27, .10);
  --md-radius: 28px;
  --md-radius-sm: 18px;
}

html, body { max-width: 100%; overflow-x: hidden; }

body.md-workbook-theme {
  color: var(--md-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(111,135,148,.20), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(168,116,79,.16), transparent 30rem),
    linear-gradient(180deg, #f8f2e9 0%, var(--md-bg) 42%, #efe6da 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

body.md-workbook-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -2;
}

.md-ambient-soul {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.md-ambient-soul span {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(26px);
  opacity: .20;
  animation: mdDriftSoul 18s ease-in-out infinite;
}
.md-ambient-soul .soul-1 {
  width: 18rem; height: 18rem;
  left: -5rem; top: 14rem;
  background: radial-gradient(circle, rgba(111,135,148,.40), rgba(111,135,148,0));
}
.md-ambient-soul .soul-2 {
  width: 22rem; height: 22rem;
  right: -7rem; top: 38rem;
  background: radial-gradient(circle, rgba(168,116,79,.34), rgba(168,116,79,0));
  animation-delay: -5s;
}
.md-ambient-soul .soul-3 {
  width: 14rem; height: 14rem;
  left: 50%; bottom: 12rem;
  background: radial-gradient(circle, rgba(191,173,143,.25), rgba(191,173,143,0));
  animation-delay: -9s;
}

@keyframes mdDriftSoul {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity:.16; }
  50% { transform: translate3d(1.4rem,-1.2rem,0) scale(1.08); opacity:.26; }
}

body.md-workbook-theme a {
  color: var(--md-accent-dark);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
body.md-workbook-theme a:hover { color: var(--md-ink); }

/* Header / Navigation --------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 0;
  padding: 0;
  background: rgba(248, 242, 233, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--md-line);
  box-shadow: 0 10px 28px rgba(44,35,27,.06);
}
.header .container { max-width: 1180px; }
.header-content {
  min-height: 72px;
  align-items: center;
  gap: 18px;
}
.site-branding { gap: 12px; min-width: 0; }
.site-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--md-accent), var(--md-blue));
  box-shadow: 0 10px 26px rgba(90,70,45,.22);
  border: 1px solid rgba(255,255,255,.62);
}
.site-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50%;
  padding: 0;
}
.site-title {
  color: var(--md-ink);
  font-weight: 850;
  letter-spacing: -.035em;
  font-size: 1.15rem;
}
.site-title:hover { color: var(--md-accent-dark); }
.navigation {
  gap: 6px;
  align-items: center;
}
.navigation a {
  color: var(--md-soft-ink);
  font-size: .93rem;
  font-weight: 720;
  padding: 9px 12px;
  border-radius: 999px;
  border-bottom: 0;
}
.navigation a:hover,
.navigation a.active {
  background: rgba(255,255,255,.72);
  color: var(--md-ink);
  border-bottom-color: transparent;
}
.navigation a.nav-workbook {
  background: linear-gradient(135deg, var(--md-ink), #4b4038);
  color: #fff;
  box-shadow: 0 14px 28px rgba(44,35,27,.16);
  margin-left: 3px;
}
.navigation a.nav-workbook:hover { color: #fff; transform: translateY(-1px); }
.mobile-menu-toggle {
  border: 1px solid var(--md-line);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(44,35,27,.08);
}
.mobile-menu-toggle span {
  background-color: var(--md-ink);
  width: 24px;
  height: 2px;
  border-radius: 999px;
}

/* Homepage Hero --------------------------------------------------------- */
.md-blog-hero {
  padding: clamp(46px, 7vw, 88px) 0 clamp(36px, 6vw, 70px);
}
.md-blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .58fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
}
.md-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--md-accent-dark);
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 16px;
}
.md-eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--md-accent);
}
.md-blog-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.04;
  letter-spacing: -.055em;
  color: var(--md-ink);
  margin: 0;
  max-width: 850px;
}
.md-blog-hero p {
  margin: 22px 0 0;
  color: var(--md-soft-ink);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 720px;
}
.md-blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.md-btn,
.read-more,
.pagination-prev,
.pagination-next,
.footer-cta,
.md-sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.md-btn:hover,
.read-more:hover,
.pagination-prev:hover,
.pagination-next:hover,
.footer-cta:hover,
.md-sidebar-link:hover { transform: translateY(-2px); }
.md-btn-primary,
.read-more,
.footer-cta,
.md-sidebar-link {
  background: linear-gradient(135deg, var(--md-ink), #4b4038);
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(39,37,33,.16);
}
.md-btn-secondary,
.pagination-prev,
.pagination-next {
  background: rgba(255,255,255,.72);
  border-color: var(--md-line);
  color: var(--md-ink) !important;
}
.md-blog-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.md-blog-facts span {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--md-line);
  color: var(--md-muted);
  font-weight: 750;
  font-size: .88rem;
}
.md-blog-hero-card {
  border-radius: var(--md-radius);
  background: linear-gradient(180deg, rgba(255,250,241,.88), rgba(251,243,231,.86));
  border: 1px solid var(--md-line);
  box-shadow: var(--md-shadow);
  overflow: hidden;
  transform: rotate(.8deg);
}
.md-blog-hero-card img {
  width: 100%;
  aspect-ratio: 1 / 1.22;
  object-fit: cover;
}
.md-blog-hero-card div {
  padding: 18px 20px 20px;
}
.md-blog-hero-card strong {
  display: block;
  font-family: Georgia, serif;
  color: var(--md-ink);
  font-size: 1.22rem;
  letter-spacing: -.035em;
}
.md-blog-hero-card span {
  display: block;
  margin-top: 5px;
  color: var(--md-muted);
  font-size: .95rem;
}

/* Main Layout / Cards --------------------------------------------------- */
.main { margin-bottom: 72px; }
.container { max-width: 1180px; }
.content-wrapper {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 4vw, 44px);
}
.content-wrapper.single-page { max-width: 920px; }
.post,
.post-preview,
.static-page,
.widget,
.plugin,
.md-sidebar-workbook {
  background: rgba(255,250,241,.76) !important;
  border: 1px solid var(--md-line) !important;
  border-radius: var(--md-radius) !important;
  box-shadow: 0 16px 42px rgba(44,35,27,.08) !important;
}
.post,
.post-preview,
.static-page { padding: clamp(26px, 4vw, 46px); }
.post-preview { transition: transform .2s ease, box-shadow .2s ease; }
.post-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(44,35,27,.12) !important;
}
.post-title,
.page-title,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.widget-title,
.plugin-label,
.footer-section h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--md-ink) !important;
  letter-spacing: -.04em;
}
.post-title,
.page-title { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; }
h3.post-title { font-size: clamp(1.55rem, 3vw, 2.45rem); }
.post-title a { color: var(--md-ink); }
.post-title a:hover { color: var(--md-accent-dark); }
.post-meta,
.last-updated,
.post-date-small { color: var(--md-muted); }
.post-content,
.post-excerpt,
.page-content,
.widget-content,
.plugin-content {
  color: var(--md-soft-ink) !important;
  font-size: 1.055rem;
  line-height: 1.82;
}
.post-content p,
.page-content p { margin-bottom: 1.15em; }
.post-content h2,
.page-content h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); margin-top: 2.1em; }
.post-content h3,
.page-content h3 { font-size: clamp(1.38rem, 2.6vw, 2rem); }
.post-content blockquote,
.page-content blockquote {
  border-left: 4px solid rgba(122,77,51,.35);
  border-radius: 0 18px 18px 0;
  padding: 1rem 1.15rem;
  background: rgba(255,255,255,.54);
  color: var(--md-ink);
}
.post-cover {
  border-radius: 22px;
  box-shadow: var(--md-shadow-soft);
  border: 1px solid rgba(255,255,255,.65);
}
.tag,
.post-category,
.tag-cloud-item,
.plugin-tags .plugin-content li a {
  background: rgba(111,135,148,.14) !important;
  color: #314853 !important;
  border-radius: 999px !important;
  font-weight: 750;
}
.tag:hover,
.tag-cloud-item:hover,
.plugin-tags .plugin-content li a:hover {
  background: var(--md-accent-dark) !important;
  color: #fff !important;
}
.post-tags,
.widget-title,
.plugin-label,
.recent-posts li,
.plugin-content li { border-color: var(--md-line) !important; }

/* Sidebar --------------------------------------------------------------- */
.sidebar { top: 108px; }
.md-sidebar-workbook {
  padding: 18px;
  margin-bottom: 26px;
  overflow: hidden;
}
.md-sidebar-workbook-image {
  margin: -18px -18px 16px;
  overflow: hidden;
}
.md-sidebar-workbook-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.md-sidebar-workbook h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  letter-spacing: -.04em;
  color: var(--md-ink);
  margin-bottom: 8px;
}
.md-sidebar-workbook p {
  color: var(--md-soft-ink);
  margin-bottom: 14px;
}
.md-sidebar-link { width: 100%; }
#jspluginSearchText {
  border: 1px solid var(--md-line) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.72) !important;
  color: var(--md-ink) !important;
}
#jspluginSearchText:focus {
  border-color: rgba(122,77,51,.35) !important;
  box-shadow: 0 0 0 4px rgba(168,116,79,.14) !important;
}

/* Footer ---------------------------------------------------------------- */
.footer {
  background: #211e1a !important;
  color: rgba(255,255,255,.84);
  border-top: 1px solid rgba(255,255,255,.08) !important;
  padding: 58px 0 32px;
  margin-top: 60px;
}
.footer-content { gap: 30px; }
.footer-section h3 { color: #fff !important; }
.footer-section p,
.footer-links a,
.footer-bottom,
.footer-bottom p,
.footer-bottom a {
  color: rgba(255,255,255,.72) !important;
}
.footer-links a:hover,
.footer-bottom a:hover { color: #fff !important; }
.footer-bottom { border-top-color: rgba(255,255,255,.12) !important; }
.footer-cta { margin-top: 12px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }

/* Scroll-Up Button an Workbook-Look angleichen ------------------------- */
#md-scrollup {
  border-radius: 50% !important;
  background: rgba(39,37,33,.88) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.38) !important;
}

/* Mobile Navigation ----------------------------------------------------- */
@media (max-width: 768px) {
  .header-content { min-height: 66px; gap: 10px; }
  .site-branding { flex: 1 1 auto; }
  .site-title { max-width: none; font-size: clamp(.98rem, 4.4vw, 1.15rem); }
  .navigation,
  header nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 66px;
    width: 100%;
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 12px 16px 22px;
    border: 0;
    border-radius: 0 0 26px 26px;
    background: linear-gradient(180deg, rgba(255,250,241,.99), rgba(244,236,225,.99));
    box-shadow: 0 28px 70px rgba(39,37,33,.22);
    z-index: 1001;
  }
  .navigation.active,
  .navigation.nav-open,
  header nav.nav-open {
    display: flex;
  }
  .navigation::before {
    content: "Navigation";
    padding: 10px 4px 12px;
    color: var(--md-accent-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .navigation a {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(60,50,40,.12);
    color: var(--md-ink);
    font-size: 1.08rem;
    font-weight: 850;
  }
  .navigation a::after {
    content: "›";
    margin-left: auto;
    color: var(--md-accent-dark);
    font-size: 24px;
  }
  .navigation a.nav-workbook {
    margin: 18px 0 4px;
    justify-content: center;
    border-radius: 999px;
    border-bottom: 0;
  }
  .navigation a.nav-workbook::after { content: ""; display: none; }
  .md-blog-hero-grid,
  .content-wrapper { grid-template-columns: 1fr; }
  .md-blog-hero-card { max-width: 360px; justify-self: center; }
  .sidebar { position: static; display: block; }
  .post,
  .post-preview,
  .static-page,
  .widget,
  .plugin,
  .md-sidebar-workbook { border-radius: 22px !important; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .md-blog-hero { padding-top: 36px; }
  .md-blog-hero h1 { font-size: clamp(36px, 10.8vw, 50px); }
  .md-blog-hero p { font-size: 1.08rem; }
  .md-blog-hero-actions,
  .md-btn { width: 100%; }
  .post,
  .post-preview,
  .static-page { padding: 22px; }
  .post-title,
  .page-title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .footer-content { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .md-ambient-soul span { animation: none !important; }
  *, *::before, *::after { transition: none !important; }
}

/* Optional Dark State, falls der Theme-Switch später wieder aktiviert wird */
html[data-theme="dark"] body.md-workbook-theme {
  background:
    radial-gradient(circle at 10% 0%, rgba(111,135,148,.14), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(168,116,79,.12), transparent 30rem),
    linear-gradient(180deg, #15120f 0%, #211e1a 100%);
  color: rgba(255,255,255,.88);
}
html[data-theme="dark"] .header { background: rgba(33,30,26,.84); border-bottom-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .site-title,
html[data-theme="dark"] .post-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .post-title a,
html[data-theme="dark"] .md-blog-hero h1,
html[data-theme="dark"] .md-sidebar-workbook h3 { color: #fff !important; }
html[data-theme="dark"] .post,
html[data-theme="dark"] .post-preview,
html[data-theme="dark"] .static-page,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .plugin,
html[data-theme="dark"] .md-sidebar-workbook,
html[data-theme="dark"] .md-blog-hero-card { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.12) !important; }
html[data-theme="dark"] .post-content,
html[data-theme="dark"] .post-excerpt,
html[data-theme="dark"] .page-content,
html[data-theme="dark"] .widget-content,
html[data-theme="dark"] .plugin-content,
html[data-theme="dark"] .md-blog-hero p,
html[data-theme="dark"] .md-sidebar-workbook p { color: rgba(255,255,255,.72) !important; }

/* Mobile Menu Fix 2026-06-22
   Ziel: Bludit-Navigation erhalten, aber mobil als klare, ruhige Dropdown-Leiste
   statt zentrierter Overlay-Karte darstellen. */
@media (max-width: 768px) {
  body.md-workbook-theme.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  body.md-workbook-theme.menu-open::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 66px;
    bottom: 0;
    z-index: 900;
    background: rgba(39, 37, 33, .20);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .header {
    z-index: 1200 !important;
    background: rgba(248, 242, 233, .96) !important;
  }

  .header-content {
    position: relative;
    min-height: 66px !important;
  }

  .site-branding {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .site-title-wrap,
  .site-title {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .site-title {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .mobile-menu-toggle {
    position: relative !important;
    z-index: 1210 !important;
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: rgba(255, 253, 248, .96) !important;
    border: 1px solid rgba(60, 50, 40, .16) !important;
    box-shadow: 0 12px 26px rgba(44, 35, 27, .14) !important;
  }

  .mobile-menu-toggle span {
    left: auto !important;
    margin: 0 !important;
  }

  .navigation,
  header nav.navigation,
  header nav#site-navigation {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 66px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: calc(100dvh - 66px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 10px 18px max(18px, env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 0 24px 24px !important;
    background: linear-gradient(180deg, rgba(255, 250, 241, .99), rgba(244, 236, 225, .99)) !important;
    box-shadow: 0 26px 64px rgba(39, 37, 33, .24) !important;
    text-align: left !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-14px) !important;
    transition: opacity .18s ease, transform .22s ease, visibility .18s ease !important;
    z-index: 1100 !important;
  }

  .navigation.active,
  .navigation.nav-open,
  header nav.navigation.active,
  header nav#site-navigation.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .navigation::before {
    content: "Navigation" !important;
    display: block !important;
    padding: 8px 4px 10px !important;
    color: var(--md-accent-dark) !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    text-align: left !important;
  }

  .navigation a,
  header nav.navigation a {
    width: 100% !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 13px 4px !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(60, 50, 40, .12) !important;
    background: transparent !important;
    color: var(--md-ink) !important;
    font-size: clamp(1rem, 4.3vw, 1.15rem) !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .navigation a:hover,
  .navigation a:focus-visible,
  .navigation a.active {
    background: rgba(168, 116, 79, .10) !important;
    color: var(--md-ink) !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    border-radius: 15px !important;
    outline: none !important;
  }

  .navigation a::after {
    content: "›" !important;
    margin-left: auto !important;
    color: var(--md-accent-dark) !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  .navigation a.nav-workbook,
  header nav.navigation a.nav-workbook {
    margin: 16px 0 2px !important;
    min-height: 54px !important;
    justify-content: center !important;
    padding: 14px 18px !important;
    border-radius: 999px !important;
    border-bottom: 0 !important;
    background: linear-gradient(135deg, var(--md-ink), #5c4837) !important;
    color: #fff !important;
    text-align: center !important;
    box-shadow: 0 16px 34px rgba(44,35,27,.20) !important;
  }

  .navigation a.nav-workbook::after {
    content: "" !important;
    display: none !important;
  }
}


/* Mobile Menu Final Fix 2 – nur EIN aktiver Zustand, klare Anzeige */
@media (max-width: 768px) {
  body.md-workbook-theme .mobile-menu-toggle {
    position: relative !important;
  }

  body.md-workbook-theme .mobile-menu-toggle span {
    position: absolute !important;
    left: 13px !important;
    width: 24px !important;
    height: 2px !important;
    margin: 0 !important;
    background: var(--md-ink) !important;
    border-radius: 999px !important;
    transform-origin: center !important;
    transition: transform .22s ease, opacity .16s ease, top .22s ease !important;
  }

  body.md-workbook-theme .mobile-menu-toggle span:nth-child(1) { top: 16px !important; }
  body.md-workbook-theme .mobile-menu-toggle span:nth-child(2) { top: 24px !important; }
  body.md-workbook-theme .mobile-menu-toggle span:nth-child(3) { top: 32px !important; }

  body.md-workbook-theme .mobile-menu-toggle.active span:nth-child(1) {
    top: 24px !important;
    transform: rotate(45deg) !important;
  }
  body.md-workbook-theme .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(.2) !important;
  }
  body.md-workbook-theme .mobile-menu-toggle.active span:nth-child(3) {
    top: 24px !important;
    transform: rotate(-45deg) !important;
  }

  body.md-workbook-theme .navigation,
  body.md-workbook-theme header nav.navigation,
  body.md-workbook-theme header nav#site-navigation {
    display: flex !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-12px) !important;
  }

  body.md-workbook-theme .navigation.active,
  body.md-workbook-theme .navigation.nav-open,
  body.md-workbook-theme header nav.navigation.active,
  body.md-workbook-theme header nav#site-navigation.active,
  body.md-workbook-theme header nav#site-navigation.nav-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

/* ======================================================================
   Performance audit overrides · 2026-09-13
   Keep the visual language, remove redundant perpetual paint/composite work.
   ====================================================================== */
body.md-workbook-theme::after{
  display:none !important;
  animation:none !important;
  filter:none !important;
  will-change:auto !important;
}
body.md-workbook-theme::before{
  animation:none !important;
  filter:none !important;
  transform:none !important;
  will-change:auto !important;
}
.md-ambient-soul span{
  animation:none !important;
  will-change:auto !important;
}
.sidebar,
.footer,
.post-preview{
  content-visibility:auto;
}
.sidebar{contain-intrinsic-size: 420px 800px;}
.footer{contain-intrinsic-size: 320px 1000px;}
.post-preview{contain-intrinsic-size: 520px 760px;}

.md-scrollup{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.92);
  color:rgba(20,25,30,.92);
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  cursor:pointer;
  opacity:0;
  transform:translate3d(0,10px,0) scale(.96);
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
.md-scrollup.is-visible{opacity:1;transform:none;pointer-events:auto;}
.md-scrollup .mdsu-ico{width:18px;height:18px;display:block;}
.md-scrollup .mdsu-hint{
  position:absolute;right:0;bottom:54px;opacity:0;pointer-events:none;white-space:nowrap;
  font-size:12px;line-height:1;padding:8px 10px;border-radius:12px;background:rgba(0,0,0,.72);color:#fff;
  transition:opacity .18s ease;
}
@media (hover:hover){.md-scrollup:hover .mdsu-hint{opacity:1;}}

@media (max-width:768px){
  .md-ambient-soul{display:none !important;}
  .header{
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
    background:rgba(248,242,233,.98) !important;
  }
}
@media (prefers-reduced-motion:reduce){
  .md-scrollup{transition:none !important;}
}

/* Article markup de-duplication: visual rules formerly repeated inline in every post. */
.post-content .md-article-body{
  max-width:760px;margin:0 auto;padding:1.35rem 1rem 2.4rem;
  font-family:Georgia,"Times New Roman",serif;font-size:1.045rem;line-height:1.78;
  color:#241f1a;background:transparent;letter-spacing:.01em;
}
.post-content .md-article-body p{margin:0 0 1.22rem;line-height:1.78;color:#241f1a;background:transparent;}
.post-content .md-article-body li{margin:0 0 .58rem;padding-left:.08rem;line-height:1.7;background:transparent;}
.post-content .md-article-body h1{margin:0 0 1.2rem;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:1.85rem;line-height:1.18;font-weight:700;color:#21452a!important;letter-spacing:-.02em;background:transparent;}
.post-content .md-article-body h2{margin:2.05rem 0 .82rem;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:1.36rem;line-height:1.28;font-weight:650;color:#2c5a2e!important;letter-spacing:-.01em;background:transparent;}
.post-content .md-article-body h3{margin:1.75rem 0 .72rem;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:1.16rem;line-height:1.32;font-weight:650;color:#67451f!important;background:transparent;}
.post-content .md-article-body h4{margin:1.45rem 0 .62rem;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:1.04rem;line-height:1.35;font-weight:700;color:#67451f!important;background:transparent;}
.post-content .md-article-body ul{margin:.2rem 0 1.35rem 1.25rem;padding:0;list-style:disc;background:transparent;}
.post-content .md-article-body ol{margin:.2rem 0 1.35rem 1.35rem;padding:0;list-style:decimal;background:transparent;}
.post-content .md-article-body hr{margin:2rem 0;border:0;border-top:1px solid rgba(103,69,31,.25);background:transparent;}
.post-content .md-article-body a{color:#2d5d36;text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.16em;background:transparent;}
.post-content .md-article-body blockquote{margin:1.45rem 0 1.55rem;padding:.05rem 0 .05rem 1.05rem;border-left:3px solid #b87c4f;border-radius:0;font-style:italic;color:#4f4538;background:transparent;}
.post-content .md-article-body figure{margin:1.25rem 0 1.35rem;padding:0;background:transparent;}
.post-content .md-article-body table{width:100%;border-collapse:collapse;margin:1.25rem 0 1.55rem;font-size:.96rem;line-height:1.55;background:transparent;}
.post-content .md-article-body th{padding:.58rem .65rem;text-align:left;border-bottom:1px solid rgba(103,69,31,.25);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#2c5a2e;background:transparent;}
.post-content .md-article-body td{padding:.58rem .65rem;vertical-align:top;border-bottom:1px solid rgba(103,69,31,.15);background:transparent;}
.post-content .md-article-body small{font-size:.88rem;line-height:1.55;color:#65594b;background:transparent;}
.post-content .md-article-body img{max-width:100%;height:auto;display:block;margin-left:auto;margin-right:auto;}

/* ======================================================================
   Audit mobile/layout hotfix 2026-09-13b
   Verhindert, dass Grid-/Content-Elemente auf kleinen Viewports ihre
   Desktopbreite behalten und rechts aus dem sichtbaren Bereich laufen.
   ====================================================================== */
.content-wrapper,
.posts-section,
.post,
.post-preview,
.static-page,
.post-content,
.post-excerpt,
.page-content,
.post-content .md-article-body {
  min-width: 0;
  max-width: 100%;
}

.post-title,
.page-title,
.post-content p,
.post-content li,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.page-content p,
.page-content li,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

.post-content a,
.page-content a,
.post-content code,
.page-content code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-content pre,
.page-content pre,
.post-content table,
.page-content table {
  max-width: 100%;
}

@media (max-width: 992px) {
  .main .container {
    width: 100%;
    max-width: 100%;
  }

  .main .content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
  }

  .posts-section,
  .post,
  .post-preview,
  .static-page,
  .post-content,
  .post-excerpt,
  .page-content,
  .sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
  }

  .post-content .md-article-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .main .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .post,
  .post-preview,
  .static-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .post-title,
  .page-title {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .post-content .md-article-body {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .post-content table,
  .page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* Homepage: Der rote Faden als zentraler Einstieg ---------------------- */
.md-red-thread-card {
  transform: rotate(.35deg);
}
.md-red-thread-card > div {
  padding: clamp(26px, 4vw, 40px);
}
.md-red-thread-card .md-red-thread-kicker {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--md-accent-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.md-red-thread-card strong {
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 1.06;
}
.md-red-thread-card strong + span {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.68;
}
.md-red-thread-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 24px;
  padding: 0 !important;
}
.md-thread-text-link {
  color: var(--md-ink);
  font-weight: 800;
  border-bottom: 1px solid rgba(44,35,27,.28);
}
.md-thread-text-link:hover {
  color: var(--md-accent-dark);
  border-bottom-color: currentColor;
}
@media (max-width: 760px) {
  .md-red-thread-card {
    transform: none;
  }
  .md-red-thread-card > div {
    padding: 24px;
  }
}
