/* ═══════════════════════════════════════════
   Marco Obsidian — Component Styles
   ═══════════════════════════════════════════ */

/* ── Navigation ── */
.mo-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid rgba(72,72,71,.15);
}
.mo-nav__inner {
  display: flex; align-items: center;
  padding: 0 2.5rem; max-width: 1440px; margin: 0 auto; gap: 2rem;
  height: 72px; overflow: hidden;
}
.mo-nav__logo {
  font-size: 1.25rem; font-weight: 900; letter-spacing: -.04em;
  text-transform: uppercase; color: var(--on-surface); white-space: nowrap;
  flex-shrink: 0; display: flex; align-items: center;
}
.mo-nav__logo img,
.mo-nav__logo .custom-logo,
.mo-nav__logo .custom-logo-link img {
  height: 40px !important; width: auto !important;
  max-height: 40px !important; max-width: 200px !important;
  display: block;
}
.mo-nav__logo .custom-logo-link { display: flex; align-items: center; }
.mo-nav__menu { flex-shrink: 0; }
.mo-nav__inner > .mo-nav__search { flex: 1; max-width: 340px; margin-left: auto; }
.mo-nav__list {
  display: flex; gap: 2.5rem; list-style: none;
}
.mo-nav__list a {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--on-surface-variant);
  transition: color .2s;
}
.mo-nav__list a:hover,
.mo-nav__list .current-menu-item > a { color: var(--on-surface); }
.mo-nav__list .current-menu-item > a {
  color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 2px;
}
.mo-nav__burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.mo-nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--on-surface);
  transition: all .25s;
}
.mo-nav__overlay { display: none; }

@media (max-width: 768px) {
  .mo-nav__burger { display: flex; }
  .mo-nav__menu {
    position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100vh;
    background: var(--surface-container); padding: 6rem 2rem 2rem;
    transition: right .3s ease; z-index: 99;
  }
  .mo-nav__menu.is-open { right: 0; }
  .mo-nav__list { flex-direction: column; gap: 1.5rem; }
  .mo-nav__list a { font-size: 1rem; }
  .mo-nav__overlay {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6);
    z-index: 98; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .mo-nav__overlay.is-open { opacity: 1; pointer-events: all; }
}

/* ── Buttons ── */
.mo-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; border-radius: var(--radius-full);
  padding: .75rem 1.75rem; cursor: pointer; transition: transform .25s, opacity .2s;
  border: none; white-space: nowrap;
}
.mo-btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: var(--on-primary-fixed);
}
.mo-btn--primary:hover { transform: scale(1.05); }
.mo-btn--secondary {
  background: rgba(44,44,44,.6); backdrop-filter: blur(10px);
  color: var(--on-surface); border: 1px solid rgba(72,72,71,.2);
}
.mo-btn--secondary:hover { background: var(--surface-bright); }

/* ── Theme Toggle ── */
.mo-theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--on-surface-variant);
  transition: background .2s, color .2s; flex-shrink: 0;
}
.mo-theme-toggle:hover { background: rgba(255,144,109,.15); color: var(--primary); }
.mo-theme-toggle__moon { display: none; }

/* ── Nav Search ── */
.mo-nav .mo-nav__search {
  display: flex !important; align-items: center; gap: 8px;
  background: #0e0e0e !important;
  border: 1.5px solid #ff906d !important;
  border-radius: 999px !important;
  padding: 0 18px !important; height: 38px !important;
  box-sizing: border-box;
  transition: box-shadow .2s;
}
.mo-nav .mo-nav__search:focus-within {
  box-shadow: 0 0 0 3px rgba(255,144,109,.2) !important;
}
.mo-nav .mo-nav__search svg {
  flex-shrink: 0; stroke: #ff906d !important; fill: none;
}
.mo-nav .mo-nav__search input[type="search"] {
  -webkit-appearance: none !important; appearance: none !important;
  background: transparent !important;
  border: none !important; outline: none !important;
  box-shadow: none !important;
  color: #ff906d !important; font-size: .85rem !important;
  font-family: inherit !important; width: 100% !important;
  padding: 0 !important; margin: 0 !important;
  caret-color: #ff906d;
}
.mo-nav .mo-nav__search input[type="search"]::placeholder {
  color: rgba(255,144,109,.5) !important;
  opacity: 1;
}
@media (max-width: 860px) {
  .mo-nav .mo-nav__search { display: none !important; }
}

/* ── Layout ── */
.mo-main { padding-top: 80px; }
.mo-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ── Animations ── */
@keyframes mo-fly-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mo-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Blog Hero ── */
.mo-blog-hero {
  padding: 4rem 2rem 3rem; max-width: 1280px; margin: 0 auto;
}
.mo-blog-hero .mo-label {
  animation: mo-fly-in .6s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: .05s;
}
.mo-blog-hero .mo-display {
  animation: mo-fly-in .7s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: .18s;
}
.mo-blog-hero .mo-blog-hero__sub {
  animation: mo-fly-in .7s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: .32s;
}
.mo-label {
  font-size: .7rem; font-weight: 900; letter-spacing: .2em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 1.5rem;
}
.mo-display {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 900;
  letter-spacing: -.03em; line-height: .95; margin-bottom: 1.5rem;
}
.mo-blog-hero__sub {
  font-size: .9rem; color: var(--on-surface-variant); max-width: 520px;
  font-weight: 500; line-height: 1.6;
}

/* ── Grid Section ── */
.mo-grid-section { padding: 0 0 7rem; }

/* ── Featured Post ── */
.mo-post-featured {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-container); margin-bottom: 4rem;
  min-height: 480px;
}
.mo-post-featured__link {
  position: absolute; inset: 0; z-index: 1;
}
.mo-post-featured__body { position: relative; z-index: 2; }
.mo-post-featured__img {
  position: relative; overflow: hidden;
}
.mo-post-featured__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.mo-post-featured:hover .mo-post-featured__img img { transform: scale(1.04); }
.mo-post-featured__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--surface-container) 100%);
}
.mo-post-featured__body {
  padding: 3rem; display: flex; flex-direction: column;
  justify-content: center; gap: 1.5rem;
}
.mo-post-featured__meta { display: flex; align-items: center; gap: 1rem; }
.mo-post-featured__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.1;
}
.mo-post-featured__title a { color: var(--on-surface); transition: color .2s; }
.mo-post-featured__title a:hover { color: var(--primary); }
.mo-post-featured__excerpt {
  color: var(--on-surface-variant); line-height: 1.6; font-size: .95rem;
}

@media (max-width: 768px) {
  .mo-post-featured { grid-template-columns: 1fr; }
  .mo-post-featured__img { height: 260px; }
  .mo-post-featured__overlay { background: linear-gradient(0deg, var(--surface-container) 0%, transparent 60%); }
}

/* ── Post Grid ── */
.mo-post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;
}

/* ── Card ── */
.mo-card {
  background: var(--surface-container); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: background .25s; cursor: pointer;
}
.mo-card:hover { background: var(--surface-bright); }
.mo-card__img { overflow: hidden; aspect-ratio: 16/9; }
.mo-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mo-card:hover .mo-card__img img { transform: scale(1.04); }
.mo-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.mo-card__meta { display: flex; align-items: center; gap: .75rem; }
.mo-card__title {
  font-size: 1.1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
}
.mo-card__title a { color: var(--on-surface); transition: color .2s; }
.mo-card:hover .mo-card__title a { color: var(--primary); }
.mo-card__excerpt { font-size: .875rem; color: var(--on-surface-variant); line-height: 1.6; }
.mo-card__footer {
  margin-top: auto; padding-top: 1rem;
  display: flex; justify-content: space-between; align-items: center;
}

/* ── Chip ── */
.mo-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface-variant); color: var(--primary);
  font-size: .65rem; font-weight: 900; letter-spacing: .15em;
  text-transform: uppercase; padding: .35rem .75rem;
  border-radius: var(--radius-full);
}
.mo-chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}

/* ── Meta text ── */
.mo-meta-text {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-surface-variant);
}

/* ── Link arrow ── */
.mo-link-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); opacity: 0; transition: opacity .2s;
}
.mo-card:hover .mo-link-arrow { opacity: 1; }
.mo-link-arrow .material-symbols-outlined { font-size: 1.1rem; }

/* ── Pagination ── */
.mo-pagination {
  display: flex; gap: .75rem; justify-content: center; margin-top: 4rem;
}
.mo-pagination a,
.mo-pagination span {
  padding: .6rem 1.1rem; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  background: var(--surface-container); color: var(--on-surface-variant);
  transition: background .2s, color .2s;
}
.mo-pagination a:hover { background: var(--surface-bright); color: var(--on-surface); }
.mo-pagination .current { background: var(--primary); color: var(--on-primary-fixed); }

/* ── Article Hero ── */
.mo-article-hero {
  position: relative; min-height: 70vh; display: flex; align-items: flex-end;
  padding: 2rem 2rem 5rem; overflow: hidden;
}
.mo-article-hero.has-image { min-height: 80vh; }
.mo-article-hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.mo-article-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: .4;
}
.mo-article-hero__gradient {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
}
.mo-article-hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface) 0%, transparent 60%);
}
.mo-article-hero__content {
  position: relative; z-index: 1; max-width: 900px; margin: 0 auto; width: 100%;
}
.mo-article-hero__chips {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.mo-article-hero__title {
  font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 900;
  letter-spacing: -.03em; line-height: .95; margin-bottom: 1.5rem;
}
.mo-article-hero__excerpt {
  font-size: 1.1rem; color: var(--on-surface-variant);
  max-width: 600px; font-weight: 500; line-height: 1.6;
}

/* ── Article Layout ── */
.mo-article-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 5rem;
  padding-top: 5rem; padding-bottom: 5rem;
}
@media (max-width: 900px) {
  .mo-article-layout { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── Sidebar ── */
.mo-article-sidebar { display: flex; flex-direction: column; gap: 2.5rem; }
.mo-sidebar-block { display: flex; flex-direction: column; gap: .6rem; }
.mo-sidebar-label {
  font-size: .65rem; font-weight: 900; letter-spacing: .18em;
  text-transform: uppercase; color: var(--on-surface-variant);
}
.mo-sidebar-value { font-size: .9rem; font-weight: 700; color: var(--on-surface); }
.mo-sidebar-author { display: flex; align-items: center; gap: .75rem; }
.mo-sidebar-author__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--surface-container-highest); }
.mo-sidebar-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mo-sidebar-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.mo-social-btns { display: flex; gap: .5rem; }
.mo-social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--on-surface-variant);
  transition: background .2s, color .2s, border-color .2s; text-decoration: none;
}
.mo-social-btn:hover {
  background: rgba(255,144,109,.15);
  border-color: rgba(255,144,109,.4);
  color: var(--primary);
}
.mo-social-btn svg { display: block; }

/* ── Pull Quote ── */
.mo-pull-quote {
  margin-bottom: 3rem; padding: 2rem 0; display: flex; flex-direction: column; gap: 1.25rem;
}
.mo-pull-quote p {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 300;
  font-style: italic; line-height: 1.5; color: var(--on-surface);
}
.mo-pull-quote__bar {
  width: 5rem; height: 4px; border-radius: var(--radius-full);
}

/* ── Prose ── */
.mo-prose { color: var(--on-surface-variant); line-height: 1.8; font-size: 1rem; }
.mo-prose h1, .mo-prose h2, .mo-prose h3, .mo-prose h4 {
  color: var(--on-surface); font-weight: 700; letter-spacing: -.02em;
  margin: 3rem 0 1rem; line-height: 1.2;
}
.mo-prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.mo-prose h3 { font-size: 1.35rem; }
.mo-prose p { margin-bottom: 1.5rem; }
.mo-prose a { color: var(--primary); border-bottom: 1px solid rgba(255,144,109,.3); transition: border-color .2s; }
.mo-prose a:hover { border-color: var(--primary); }
.mo-prose ul, .mo-prose ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.mo-prose li { margin-bottom: .5rem; }
.mo-prose blockquote {
  border-left: 3px solid var(--primary); padding: 1rem 1.5rem;
  margin: 2rem 0; background: var(--surface-container); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--on-surface);
}
.mo-prose img {
  width: 100%; border-radius: var(--radius-xl); margin: 2.5rem 0;
}
.mo-prose figure { margin: 2.5rem 0; }
.mo-prose figcaption {
  font-size: .75rem; color: var(--on-surface-variant); letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; margin-top: .75rem; text-align: center;
}
.mo-prose code {
  background: var(--surface-container-highest); color: var(--primary);
  padding: .2em .45em; border-radius: var(--radius-sm); font-size: .875em;
}
.mo-prose pre {
  background: var(--surface-container); padding: 1.5rem; border-radius: var(--radius-md);
  overflow-x: auto; margin-bottom: 1.5rem;
}
.mo-prose pre code { background: none; padding: 0; color: var(--on-surface); }
.mo-prose--wide { max-width: 720px; margin: 0 auto; }

/* ── Tags ── */
.mo-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(72,72,71,.15); }

/* ── Page Hero ── */
.mo-page-hero {
  position: relative; min-height: 40vh; display: flex; align-items: flex-end;
  padding: 2rem 2rem 4rem; overflow: hidden;
}
.mo-page-body { padding: 4rem 2rem 7rem; }

/* ── Related ── */
.mo-related { padding-bottom: 7rem; }
.mo-related__header {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem;
}
.mo-section-title {
  font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase;
}
.mo-view-all {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); border-bottom: 1px solid rgba(255,144,109,.3);
  padding-bottom: 2px; transition: border-color .2s;
}
.mo-view-all:hover { border-color: var(--primary); }
.mo-related__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}

/* ── Footer ── */
.mo-footer {
  background: var(--surface-container-low);
  border-top: 1px solid rgba(72,72,71,.1);
  padding: 5rem 2rem;
  margin-top: 7rem;
}
.mo-footer__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center;
}
.mo-footer__logo {
  font-size: 1.1rem; font-weight: 900; letter-spacing: -.03em;
  text-transform: uppercase; color: var(--on-surface);
}
.mo-footer__list {
  display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; justify-content: center;
}
.mo-footer__list a {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-surface-variant); transition: color .2s;
}
.mo-footer__list a:hover { color: var(--primary); }
.mo-footer__copy {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* ── Empty state ── */
.mo-empty {
  text-align: center; color: var(--on-surface-variant); padding: 4rem; font-size: .95rem;
}

/* ── Audio Player ── */
.mo-audio-player {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.mo-audio-player__top {
  display: flex; align-items: center; gap: .875rem;
}
.mo-audio-player__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,144,109,.12);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.mo-audio-player__meta {
  display: flex; flex-direction: column; gap: .2rem;
}
.mo-audio-player__badge {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary);
}
.mo-audio-player__title {
  font-size: .825rem; color: var(--on-surface-variant);
}
.mo-audio-player audio {
  width: 100%;
  accent-color: var(--primary);
}

/* ── Scroll to Top ── */
.mo-scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .2s;
  pointer-events: none;
}
.mo-scroll-top.is-visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.mo-scroll-top:hover { background: var(--primary-container); }

/* ── Light Mode ── */
html[data-theme="light"] body {
  background-color: #f5f4f0 !important;
  color: #1a1816 !important;
  --surface:                  #f5f4f0;
  --surface-container-lowest: #ffffff;
  --surface-container-low:    #f9f8f5;
  --surface-container:        #f0ede8;
  --surface-container-high:   #e8e5df;
  --surface-container-highest:#dedad3;
  --surface-bright:           #ffffff;
  --surface-variant:          #e5e2dc;
  --primary:                  #d4643e;
  --primary-container:        #c2522c;
  --on-surface:               #1a1816;
  --on-surface-variant:       #5c5955;
  --outline:                  #a09d99;
  --outline-variant:          #ccc9c3;
}
html[data-theme="light"] .glass-nav {
  background: rgba(245,244,240,.92) !important;
}
html[data-theme="light"] .mo-nav {
  border-bottom-color: rgba(0,0,0,.1) !important;
}
html[data-theme="light"] .mo-nav__list a { color: #1a1816 !important; }
html[data-theme="light"] .mo-nav .mo-nav__search {
  background: #ffffff !important;
  border-color: #d4643e !important;
}
html[data-theme="light"] .mo-nav .mo-nav__search svg { stroke: #1a1816 !important; }
html[data-theme="light"] .mo-nav .mo-nav__search input[type="search"] {
  color: #1a1816 !important;
}
html[data-theme="light"] .mo-nav .mo-nav__search input[type="search"]::placeholder {
  color: rgba(26,24,22,.45) !important;
}
html[data-theme="light"] .mo-card { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; }
html[data-theme="light"] .mo-prose { color: #1a1816 !important; }

/* ── Post-Content Inline-Styles überschreiben ── */
.mo-prose [style*="border-bottom"] {
  border-bottom-color: var(--primary) !important;
}
.mo-prose [style*="border-top"] {
  border-top-color: var(--primary) !important;
}
.mo-prose a[style*="color"] {
  color: var(--primary) !important;
}
.mo-prose [style*="color:#00c2ff"],
.mo-prose [style*="color: #00c2ff"] {
  color: var(--primary) !important;
}
html[data-theme="light"] .mo-footer { background: #e8e5df !important; color: #1a1816 !important; }
html[data-theme="light"] .mo-theme-toggle { background: rgba(0,0,0,.06) !important; border-color: rgba(0,0,0,.15) !important; color: #5c5955 !important; }
html[data-theme="light"] .mo-theme-toggle__sun  { display: none; }
html[data-theme="light"] .mo-theme-toggle__moon { display: block; }
