/*
 * custom.css — stoiker.net
 * Inhalt: Fonts, Theme-Overrides, Stoic Shortcodes
 * Weitere Dateien: search-common.css, search-results.css, stoikos.css, startseite.css
 */

/* ══════════════════════════════════════
   1. FONTS
══════════════════════════════════════ */

@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/playfair-display-v36-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/playfair-display-v36-latin-italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/playfair-display-v36-latin-700.woff2') format('woff2');
}

/* ══════════════════════════════════════
   2. THEME-OVERRIDES
══════════════════════════════════════ */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Playfair Display";
}


p {
  line-break: auto;
  word-break: break-word;
}

.powerby {
  opacity: .6;
}

img[src$='#floatleft'] {
  float: left;
  margin: 7px 12px 12px 0;
}

img[src$='#floatright'] {
  float: right;
  margin: 7px 0 12px 12px;
}

#social a {
  color: #757575;
  font-size: 22px;
}

.navigation .profile {
  text-align: left;
  margin: 0 auto;
  float: left;
}

.navigation .profile .avatar {
  height: 60px;
  width: 60px;
  vertical-align: middle;
  margin-right: 12px;
}

.navigation .profile h1 {
  display: inline-block;
}

.profile h1,
nav.navigation .profile a {
  font-size: 24px;
}

@media screen and (max-width: 660px) {
  .navigation .profile {
    float: none;
    width: 100%;
    margin-bottom: 12px;
  }
  nav.navigation {
    text-align: center;
  }
}

.summary a {
  color: #404040;
}

.item a img {
  box-shadow: rgba(0,0,0,.1) 0 0 5px 0, rgba(0,0,0,.1) 0 0 1px 0, rgba(0,0,0,.45) 0 25px 20px -20px;
  margin-top: 9px;
  border-radius: 4px;
}

section.item {
  border-bottom: 1px solid #eee;
  padding-bottom: 48px;
}

#list-page section.item:first-child {
  margin-top: 0;
}

#item + .item {
  margin-top: 24px;
}

img.aboutus {
  box-shadow: rgba(0,0,0,.1) 0 0 5px 0, rgba(0,0,0,.1) 0 0 1px 0, rgba(0,0,0,.45) 0 25px 20px -20px;
  border-radius: 4px;
}

#list-page .date,
#single .tip {
  float: none;
  text-align: left;
  width: 100%;
  color: #8c8c8c;
}

.date a, .tip a {
  color: #8c8c8c;
}

#list-page .title {
  width: 100%;
}

#single .tip {
  text-align: center;
}

a.link {
  color: #757575;
}

a.link:hover,
.tag.active a:hover,
span.active:hover {
  color: #0366d6;
}

.tag {
  border: 1px #D6D6D6 solid;
  padding: 2px 6px;
  margin: 0 4px 6px 0;
  border-radius: 4px;
  display: inline-block;
}

.tag.active a,
span.active {
  color: #5badf0;
}

.page-toc {
  box-shadow: 0 .01rem .1rem rgba(69,77,93,.3);
  padding: 24px;
  border-radius: 5px;
}

.page-toc h4 { margin-top: 0; }
.page-toc ul { margin-bottom: 0; }
.page-toc ul ul { margin-top: 0; }

blockquote {
  font-style: italic;
}

.related-pages {
  box-shadow: 0 .01rem .1rem rgba(69,77,93,.3);
  border-radius: 5px;
}

.e-content a,
#body-wrapper p a,
#body-wrapper ul a {
  color: darkblue;
}

.treemenu li a,
.treemenu li span {
  color: #fff;
}

.no-arrow::before {
  content: '' !important;
}

.shariff li a {
  color: #fff !important;
}

.sc-notice.tip > div:first-child::after {
  content: 'Kommentar' !important;
}

.float-right-desktop {
  float: right;
}

@media screen and (max-width: 660px) {
  .float-right-desktop {
    float: none !important;
  }
}

.sidebar-content .search-toggle {
  display: none;
}

.toggle-icon {
  display: inline-block;
  transition: transform .3s ease;
  font-size: .8rem;
}

/* ══════════════════════════════════════
   3. STOIC SHORTCODES — Zitate
══════════════════════════════════════ */

.stoic-quote {
  position: relative;
  background: #f7f8f9;
  border-left: 4px solid #acc6ac;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  margin: 2rem 0;
  border-radius: .2rem;
  font-style: italic;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.stoic-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.stoic-quote::before {
  content: "";
  position: absolute;
  left: .5rem;
  top: 0;
  font-size: 4rem;
  line-height: 1;
  color: #5755d9;
  opacity: .5;
}

.stoic-quote-author {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  text-align: right;
}

.stoic-quote-meta {
  display: block;
  margin-top: .5rem;
  font-size: .8rem;
  font-style: normal;
  color: #676b72;
  text-align: right;
}

.stoic-quote-link {
  display: inline-block;
  margin-top: .5rem;
  font-size: .8rem;
  color: #5755d9;
  text-decoration: none;
  font-style: normal;
}

.stoic-quote-link:hover {
  text-decoration: underline;
}

/* Zitat-Detailseite */
.quote-detail {
  border-left-width: 6px;
  padding: 2rem 2rem 2rem 3.5rem;
  margin: 2.5rem 0;
  font-size: 1rem;
  background-color: #f8f9fa;
}

.quote-detail::before {
  font-size: 5rem;
}

.quote-detail .stoic-quote-author {
  margin-top: 1.5rem;
}

.quote-content {
  margin: 2rem 0;
  line-height: 1.7;
}

.references-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.reference-item {
  margin-bottom: 1.5rem;
  transition: transform .2s ease;
}

.reference-item:hover {
  transform: translateX(5px);
}

.reference-link {
  display: block;
  padding: 1rem;
  border-radius: 4px;
  border-left: 3px solid #acc6ac;
  background-color: #f8f9fa;
  color: inherit;
  text-decoration: none;
}

.reference-link:hover {
  background-color: #f1f3f5;
  text-decoration: none;
}

.reference-title {
  margin: 0 0 .5rem 0;
}

.reference-summary {
  margin: 0;
  color: #66758c;
  font-size: .9rem;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.similar-quote {
  height: 100%;
  margin: 0;
}

.quote-navigation {
  margin: 3rem 0 1rem 0;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .quotes-grid {
    grid-template-columns: 1fr;
  }
  .quote-detail {
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  }
  .quote-detail::before {
    font-size: 4rem;
  }
}

/* ══════════════════════════════════════
   4. STOIC SHORTCODES — Lexikon-Tooltips
══════════════════════════════════════ */

.lexicon-container {
  position: relative;
  display: inline-block;
}

.lexicon-term {
  border-bottom: 1px dashed #5755d9;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

.lexicon-term:hover {
  color: #5755d9;
}

.lexicon-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 1000;
  width: 280px;
  background-color: #fff;
  color: #333;
  border-radius: .2rem;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  font-size: .9rem;
  line-height: 1.5;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity .2s ease, visibility .2s ease;
  border-left: 3px solid #5755d9;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: #5755d9 rgba(0,0,0,.1);
}

.lexicon-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.lexicon-tooltip.tooltip-bottom {
  bottom: auto;
  top: 125%;
}

.lexicon-tooltip.tooltip-bottom::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent #fff transparent;
}

.lexicon-tooltip.tooltip-left::after {
  left: 15px;
  margin-left: 0;
}

.lexicon-tooltip.tooltip-right::after {
  left: auto;
  right: 15px;
  margin-left: 0;
}

.lexicon-container:hover .lexicon-tooltip,
.lexicon-container:focus-within .lexicon-tooltip,
.lexicon-container.active .lexicon-tooltip {
  visibility: visible;
  opacity: 1;
}

.lexicon-title {
  font-weight: bold;
  margin-bottom: .5rem;
  display: block;
  color: #5755d9;
}

.lexicon-short {
  margin-bottom: .5rem;
  display: block;
}

.lexicon-link {
  display: block;
  text-align: right;
  font-size: .8rem;
  color: #5755d9;
  margin-top: .5rem;
  text-decoration: none;
}

.lexicon-link:hover {
  text-decoration: underline;
}

.lexicon-tooltip::-webkit-scrollbar {
  width: 6px;
}

.lexicon-tooltip::-webkit-scrollbar-track {
  background: rgba(0,0,0,.1);
  border-radius: 3px;
}

.lexicon-tooltip::-webkit-scrollbar-thumb {
  background-color: #5755d9;
  border-radius: 3px;
}

@media (max-width: 767px) {
  .lexicon-tooltip {
    width: 260px;
    max-width: 90vw;
    font-size: .85rem;
  }
  .lexicon-container:hover .lexicon-tooltip {
    visibility: hidden;
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   5. STOIC SHORTCODES — Übungskarten
══════════════════════════════════════ */

.stoic-exercise-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: .2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  margin: 1.5rem 0;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.stoic-exercise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

.stoic-exercise-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.stoic-exercise-content {
  padding: 1.5rem;
}

.stoic-exercise-title {
  font-size: 1.2rem;
  margin: 0 0 .5rem 0;
  color: #303742;
}

.stoic-exercise-description {
  color: #66758c;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.stoic-exercise-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
  font-size: .8rem;
  color: #66758c;
}

.stoic-exercise-difficulty {
  display: flex;
  align-items: center;
}

.difficulty-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
  background-color: #e0e0e0;
}

.difficulty-dot.active {
  background-color: #5755d9;
}

.stoic-exercise-footer {
  padding: .8rem 1.5rem;
  background: #f7f8f9;
  border-top: 1px solid #e7e9ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stoic-exercise-category {
  font-size: .8rem;
  color: #5755d9;
}

.stoic-exercise-link {
  display: inline-block;
  font-size: .8rem;
  color: #5755d9;
  text-decoration: none;
}

.stoic-exercise-link:hover {
  text-decoration: underline;
}

.stoic-exercises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .stoic-exercises-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   6. EMPTY STATE
══════════════════════════════════════ */

.empty {
  text-align: center;
  padding: 2rem;
  margin: 2rem 0;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.empty-icon {
  margin-bottom: 1rem;
  color: #acb3c2;
}

.empty-title {
  margin: .5rem 0;
  color: #454d5d;
}

.empty-subtitle {
  color: #66758c;
}

/* ══════════════════════════════════════
   7. VIDEO WALL (extern generiert)
══════════════════════════════════════ */

iframe { display: inline-block; }
.video-wall { position: relative; font: 400 1em/1.46 Helvetica,Arial,sans-serif; color: #333; display: block; min-height: 18em; min-width: 19em; margin: 0; background-color: #eee; box-sizing: border-box; border: 1.5em solid #ccc; padding: 1em; }
.video-wall strong { display: block; text-align: center; font-size: 1em; margin: 0; }
.video-wall div { position: absolute; width: calc(100% - 2em); top: 3em; bottom: 7em; overflow-y: auto; }
.video-wall p { font-size: .8em; margin: 0 0 1em; }
.video-wall a { color: inherit; }
.video-wall .video-link { display: block; white-space: nowrap; font-size: .8em; margin: 0; position: absolute; left: 50%; bottom: 6em; transform: translateX(-50%); }
.video-wall button { -webkit-appearance: none; cursor: pointer; color: #eee; font: 700 .8em/1.2 Helvetica,Arial,sans-serif; display: block; width: 11.5em; height: 4.25em; border: 0 none; border-radius: .75em; padding: 0 0 0 5.5em; text-align: left; margin: 0; position: absolute; left: 50%; bottom: 1em; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='%23eee' d='M11.109 17.625l7.562-3.906-7.562-3.953v7.859zM14 4.156c5.891 0 9.797 0.281 9.797 0.281 0.547 0.063 1.75 0.063 2.812 1.188 0 0 0.859 0.844 1.109 2.781 0.297 2.266 0.281 4.531 0.281 4.531v2.125s0.016 2.266-0.281 4.531c-0.25 1.922-1.109 2.781-1.109 2.781-1.062 1.109-2.266 1.109-2.812 1.172 0 0-3.906 0.297-9.797 0.297v0c-7.281-0.063-9.516-0.281-9.516-0.281-0.625-0.109-2.031-0.078-3.094-1.188 0 0-0.859-0.859-1.109-2.781-0.297-2.266-0.281-4.531-0.281-4.531v-2.125s-0.016-2.266 0.281-4.531c0.25-1.937 1.109-2.781 1.109-2.781 1.062-1.125 2.266-1.125 2.812-1.188 0 0 3.906-0.281 9.797-0.281v0z'%3E%3C/path%3E%3C/svg%3E") no-repeat 1em center #666; background-size: 3.5em; transition: background-color .3s; text-transform: none; white-space: normal; }
.video-wall button:hover { background-color: #444; }


/* ══════════════════════════════════════
   8. GLOBALE BASIS — Typografie, Cards, Buttons
   Greift auf allen Seiten, harmonisiert mit
   dem neuen sn-* / stoikos / search System
══════════════════════════════════════ */
 
/* ── Typografie ── */
body {
  color: #1a1714;
}
 
/*#body-wrapper {
  background: #f9f7f2;
}*/
 
/* Linkfarbe vereinheitlicht — war: darkblue */
.e-content a,
#body-wrapper p a,
#body-wrapper ul a {
  color: #5755d9;
}
 
.e-content a:hover,
#body-wrapper p a:hover,
#body-wrapper ul a:hover {
  color: #4340c0;
  text-decoration: underline;
}
 
/* Fließtext etwas wärmer */
#body-wrapper p,
#body-wrapper li {
  color: #3d3830;
}
 
/* Überschriften im Inhaltsbereich */
#body-wrapper h1,
#body-wrapper h2,
#body-wrapper h3,
#body-wrapper h4 {
  color: #1a1714;
}
 
/* ── Cards (Quark .card) ── */
.card {
  background: #fff;
  border: 1px solid #e8e6e0;
  border-radius: 6px;
  box-shadow: none;
}
 
.card:hover {
  box-shadow: none;
  border-color: #b0aa9c;
}
 
.card-header {
  border-bottom: 1px solid #e8e6e0;
  padding: .75rem 1rem;
  background: transparent;
}
 
.card-title {
  color: #1a1714;
  font-weight: 600;
}
 
.card-body {
  padding: 1rem;
  color: #3d3830;
}
 
.card-footer {
  border-top: 1px solid #e8e6e0;
  padding: .75rem 1rem;
  background: transparent;
}
 
/* ── Buttons ── */
.btn {
  border-radius: 4px;
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
  box-shadow: none;
}
 
.btn:hover {
  box-shadow: none;
}
 
.btn-primary {
  background: #1a1714;
  border-color: #1a1714;
  color: #f0ede5;
}
 
.btn-primary:hover,
.btn-primary:focus {
  background: #333;
  border-color: #333;
  color: #f0ede5;
}
 
.btn-secondary,
.btn-default {
  background: #fff;
  border: 1px solid #e8e6e0;
  color: #1a1714;
}
 
.btn-secondary:hover,
.btn-default:hover {
  background: #f0ede5;
  border-color: #b0aa9c;
  color: #1a1714;
}
 
/* Inline-Link-Stil für .btn-link */
.btn-link {
  background: none;
  border: none;
  color: #5755d9;
  padding: 0;
  font-weight: 500;
}
 
.btn-link:hover {
  color: #4340c0;
  text-decoration: underline;
}
 
/* ── Formulare ── */
.form-input,
.form-select,
.form-textarea {
  border: 1px solid #e8e6e0;
  border-radius: 4px;
  color: #1a1714;
  background: #fff;
}
 
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #b0aa9c;
  box-shadow: none;
  outline: none;
}
 
/* ── Trennlinien ── */
hr {
  border-color: #e8e6e0;
  border-width: 1px 0 0 0;
  margin: 2rem 0;
}
 
/* ── Tabellen ── */
table {
  border-collapse: collapse;
  width: 100%;
}
 
th {
  background: #f0ede5;
  color: #1a1714;
  font-weight: 600;
  padding: .5rem .75rem;
  border-bottom: 2px solid #e8e6e0;
  text-align: left;
}
 
td {
  padding: .5rem .75rem;
  border-bottom: 1px solid #f0ede5;
  color: #3d3830;
}
 
tr:last-child td {
  border-bottom: none;
}
 
/* ── Responsive ── */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .card {
    transition: none !important;
  }
}
 

/* ══════════════════════════════════════
   9. BÜCHER-SEITE
══════════════════════════════════════ */
 
.card.book-card {
  margin-bottom: .75rem;
  height: calc(100% - .75rem);
}
 
.book-subtitle {
  font-size: .95rem;
  font-weight: 600;
  color: #1a1714;
  margin-bottom: .2rem;
}
 
.book-description {
  font-size: .85rem;
  color: #7a7060;
  margin-bottom: .4rem;
  font-style: italic;
}
 
.book-author {
  font-size: .8rem;
  color: #a09880;
  margin-bottom: .75rem;
  line-height: 1.5;
}
 
.book-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
 
.book-links li {
  margin: 0;
}
 
.book-links a {
  font-size: .8rem;
  color: #5755d9;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
 
.book-links a:hover {
  border-bottom-color: #5755d9;
}
 
/* Seitenintro */
.buecher-intro {
  font-size: 1.1rem;
  color: #3d3830;
  margin-bottom: 1.5rem;
  font-weight: normal;
}
 
/* Affiliate-Hinweis */
.affiliate-hinweis {
  font-size: .8rem;
  color: #a09880;
  margin-top: 1.5rem;
}

.sn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

 
/* Newsletter Freebie */
.sn-freebie {
  background: #1a1714;
  color: #f0ede5;
  
  padding: 3rem 0;
}

.sn-freebie .sn-heute-label {
  color: #a09880;
}

.sn-freebie .sn-heute-label::before {
  background: #a09880;
}

.sn-freebie .sn-container {
  padding: 0 1.5rem; /* Seitenabstand sicherstellen */
}


.sn-freebie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 100%; /* verhindert Überlauf */
  gap: 3rem;
  align-items: center;
}

.sn-freebie-text h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f0ede5;
  margin: 0 0 .75rem 0;
}

.sn-freebie-text p {
  font-size: .95rem;
  color: #c8c4b8;
  line-height: 1.7;
  margin: 0 0 1rem 0;
  max-width: 480px;
}

.sn-freebie-link {
  font-size: .85rem;
  color: #a09880;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}

.sn-freebie-link:hover {
  color: #f0ede5;
  border-bottom-color: #a09880;
}

.sn-freebie-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 220px;
}

.sn-freebie-cover {
  width: 160px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.sn-btn-freebie {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: #f0ede5;
  color: #1a1714;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  white-space: normal;
  transition: background .15s;
}

.sn-btn-freebie:hover {
  background: #fff;
}

@media (max-width: 720px) {
  .sn-freebie-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sn-freebie-card {
    flex-direction: row;
    justify-content: flex-start;
  }
  .sn-freebie-cover {
    width: 100px;
  }
}
/* ══════════════════════════════════════
   N. KI-BOX (Artikel an eine KI übergeben)

   Zwei Varianten aus einem Partial:
   .sn-ai-box--sidebar  → Block in #sidebar, folgt der .sidebar-content-Konvention
   .sn-ai-box--article  → aufklappbare Box unter dem Beitrag
══════════════════════════════════════ */

/* ── Gemeinsam ───────────────────────── */

.sn-ai-box__intro {
  margin: 0 0 1rem;
  font-size: .85rem;
  line-height: 1.55;
  color: #3d3830;
}

.sn-ai-box__label {
  display: block;
  margin: 0 0 .5rem;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8c8c8c;
}

.sn-ai-box__icon {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  color: #a09880;
}

/* Absicht wählen — Radios, sichtbar als Segmente */

.sn-ai-box__intents {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
  border: 0;
  padding: 0;
}

/* legend als Flex-Item: erzwingt eine eigene Zeile über den Optionen */
.sn-ai-box__intents > legend { flex: 1 0 100%; float: left; }

.sn-ai-box__intents input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sn-ai-box__intents label {
  flex: 1 1 8rem;
  padding: .5rem .7rem;
  border: 1px solid #e8e6e0;
  border-radius: .2rem;
  background: #fff;
  font-size: .85rem;
  text-align: center;
  color: #3d3830;
  cursor: pointer;
  transition: all .2s ease;
}

.sn-ai-box__intents label:hover { border-color: #a09880; }

.sn-ai-box__intents input:checked + label {
  border-color: #a09880;
  background: #f0ede5;
  color: #1a1714;
  font-weight: 600;
}

.sn-ai-box__intents input:focus-visible + label {
  outline: 2px solid #5755d9;
  outline-offset: 2px;
}

/* Prompt-Vorschau */

.sn-ai-box__preview {
  margin: 0 0 1rem;
  padding: .8rem .9rem;
  border-left: 3px solid #acc6ac;
  background: #f8f9fa;
  border-radius: .2rem;
  font-size: .82rem;
  line-height: 1.5;
  color: #3d3830;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 9rem;
  overflow-y: auto;
}

/* KI-Ziele */

.sn-ai-box__targets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.sn-ai-box__targets a,
.sn-ai-box__targets button {
  flex: 1 1 6.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .7rem;
  border: 1px solid #e8e6e0;
  border-radius: .2rem;
  background: #fff;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: #1a1714;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}

.sn-ai-box__targets a:hover,
.sn-ai-box__targets button:hover {
  border-color: #a09880;
  background: #f0ede5;
  text-decoration: none;
}

.sn-ai-box__targets a:focus-visible,
.sn-ai-box__targets button:focus-visible {
  outline: 2px solid #5755d9;
  outline-offset: 2px;
}

/* Ziele ohne Prompt-Parameter (derzeit nur Gemini) brauchen zwei Schritte.
   Gestrichelter Rahmen: sichtbar anders als ein Direktlink, schon vor dem Klick. */
.sn-ai-box__targets [data-copy] { border-style: dashed; }

/* Schritt zwei: der Button ist zum Link geworden, der Prompt liegt bereit. */
.sn-ai-box__targets a.is-armed {
  border-color: #acc6ac;
  background: #f4f7f4;
}

/* Hinweiszeile zu den Zwei-Schritt-Zielen */

/* Eng an den Zielen: der Hinweis gehört zu den Buttons, nicht zur Fußnote.
   #757575 statt #8c8c8c — 8c ist auf Weiß unter 4.5:1 und damit zu blass. */
.sn-ai-box__hint {
  margin: .5rem 0 0;
  font-size: .75rem;
  line-height: 1.5;
  color: #757575;
}

.sn-ai-box__hint:empty { display: none; }

.sn-ai-box__hint.is-armed {
  padding-left: .6rem;
  border-left: 3px solid #acc6ac;
  color: #3d3830;
}

/* Fußnote */

.sn-ai-box__note {
  margin: 1.4rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid #f0ede5;
  font-size: .75rem;
  line-height: 1.5;
  color: #757575;
}

/* Fallback: Zwischenablage gesperrt, Prompt von Hand kopieren */

.sn-ai-box__fallback {
  display: none;
  width: 100%;
  margin-top: .8rem;
  padding: .6rem;
  border: 1px solid #e8e6e0;
  border-radius: .2rem;
  font-family: inherit;
  font-size: .8rem;
  color: #3d3830;
  resize: vertical;
}

.sn-ai-box.is-fallback .sn-ai-box__fallback { display: block; }

/* Kein JS: Absichtswahl und Vorschau ausblenden, die Twig-Deeplinks bleiben */

.sn-ai-box:not(.is-ready) .sn-ai-box__intents,
.sn-ai-box:not(.is-ready) .sn-ai-box__preview,
.sn-ai-box:not(.is-ready) .sn-ai-box__peek { display: none; }

.sn-ai-box:not(.is-ready) .sn-ai-box__targets [data-copy],
.sn-ai-box:not(.is-ready) .sn-ai-box__hint { display: none; }

@media print { .sn-ai-box { display: none; } }


/* ── Variante Sidebar ────────────────── */

/* Aufklappbar wie die Artikel-Variante, mit leichtem Rahmen: die Box ist
   ein Werkzeug, kein Fließtext — sie darf sich vom übrigen Sidebar-Inhalt
   absetzen und im Ruhezustand wenig Platz nehmen.
   Der Abstand nach oben kam bisher vom h4-margin des Themes (40 px); das h4
   sitzt jetzt im summary mit margin:0, deshalb hier explizit. */

.sn-ai-box--sidebar {
  margin-top: 2.5rem;
  border: 1px solid #e8e6e0;
  border-radius: .3rem;
  background: #fff;
  overflow: hidden;
}

.sn-ai-box--sidebar > summary {
  display: flex;
  align-items: center;
  padding: .7rem .8rem;
  background: #f0ede5;
  cursor: pointer;
  list-style: none;
  transition: background .2s ease;
}

.sn-ai-box--sidebar > summary::-webkit-details-marker { display: none; }
.sn-ai-box--sidebar > summary:hover { background: #e8e6e0; }

.sn-ai-box--sidebar > summary:focus-visible {
  outline: 2px solid #5755d9;
  outline-offset: -2px;
}

/* h4 bleibt im summary, damit die Typografie der übrigen
   .sidebar-content-Blöcke unverändert greift — nur die Abstände raus. */
.sn-ai-box--sidebar > summary > h4 {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  line-height: 1.3;
  font-size: 1rem;
}

.sn-ai-box--sidebar > summary::after {
  content: "\25BE"; /* wie bei --article: bewusst ohne Icon-Font */
  margin-left: .5rem;
  font-size: .85rem;
  color: #a09880;
  transition: transform .25s ease;
}

.sn-ai-box--sidebar[open] > summary::after { transform: rotate(180deg); }

.sn-ai-box--sidebar .sn-ai-box__body { padding: .9rem .8rem; }

.sn-ai-box--sidebar .sn-ai-box__icon {
  width: 1.3rem;
  height: 1.3rem;
}

.sn-ai-box--sidebar .sn-ai-box__intro {
  margin-bottom: .8rem;
  font-size: .82rem;
}

/* 304 px Spaltenbreite: Absichten untereinander, Ziele drei nebeneinander */
.sn-ai-box--sidebar .sn-ai-box__intents label { flex-basis: 100%; }
.sn-ai-box--sidebar .sn-ai-box__targets a,
.sn-ai-box--sidebar .sn-ai-box__targets button {
  flex-basis: 5rem;
  padding: .45rem .4rem;
  font-size: .8rem;
}

/* Prompt eingeklappt — ausgeschrieben wäre er hier eine Wand */
.sn-ai-box__peek { margin: 0 0 1rem; }

.sn-ai-box__peek > summary {
  display: inline-block;
  list-style: none;
  font-size: .78rem;
  color: #5755d9;
  cursor: pointer;
}

.sn-ai-box__peek > summary::-webkit-details-marker { display: none; }
.sn-ai-box__peek > summary:hover { text-decoration: underline; }
.sn-ai-box__peek > summary::before { content: "\25B8 "; color: #a09880; }
.sn-ai-box__peek[open] > summary::before { content: "\25BE "; }
.sn-ai-box__peek > summary:focus-visible { outline: 2px solid #5755d9; outline-offset: 2px; }
.sn-ai-box__peek .sn-ai-box__preview { margin-top: .5rem; margin-bottom: 0; }

/* Sidebar klappt bei Quark unter col-md-12 unter den Text.
   Dort ist wieder volle Breite da, also zurück auf mehrspaltig. */
@media (max-width: 960px) {
  .sn-ai-box--sidebar .sn-ai-box__intents label { flex-basis: 8rem; }
  .sn-ai-box--sidebar .sn-ai-box__targets a,
  .sn-ai-box--sidebar .sn-ai-box__targets button { flex-basis: 6.5rem; }
}

/* Telefon: Absichten untereinander (unterschiedlich lange Labels), Ziele zu zweit.
   Selektoren bewusst eine Stufe spezifischer als der 960er-Block darüber,
   sonst gewinnt dort .sn-ai-box--sidebar. */
@media (max-width: 600px) {
  .sn-ai-box .sn-ai-box__intents label { flex-basis: 100%; }
  .sn-ai-box .sn-ai-box__targets a,
  .sn-ai-box .sn-ai-box__targets button { flex-basis: 7rem; }
}


/* ── Variante unter dem Artikel ──────── */

.sn-ai-box--article {
  margin: 3rem 0 2rem;
  border: 1px solid #e8e6e0;
  border-radius: .3rem;
  background: #fff;
  overflow: hidden;
}

.sn-ai-box--article > summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.1rem;
  font-family: "Playfair Display";
  font-size: 1rem;
  color: #1a1714;
  background: #f0ede5;
  cursor: pointer;
  list-style: none;
  transition: background .2s ease;
}

.sn-ai-box--article > summary::-webkit-details-marker { display: none; }
.sn-ai-box--article > summary:hover { background: #e8e6e0; }

.sn-ai-box--article > summary:focus-visible {
  outline: 2px solid #5755d9;
  outline-offset: -2px;
}

.sn-ai-box--article > summary::after {
  content: "\25BE"; /* bewusst ohne Icon-Font, damit die Box eigenständig bleibt */
  margin-left: auto;
  font-size: .9rem;
  color: #a09880;
  transition: transform .25s ease;
}

.sn-ai-box--article[open] > summary::after { transform: rotate(180deg); }

.sn-ai-box--article .sn-ai-box__body { padding: 1.1rem; }