/* Optional: schöne Schreibschrift (Google Font) 
@import url("https://fonts.googleapis.com/css2?family=Literata:wght@400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cormorant:wght@400;600&display=swap");
*/


/* literata-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/literata-v40-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* literata-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/literata-v40-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* literata-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/literata-v40-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* literata-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Literata';
  font-style: italic;
  font-weight: 500;
  src: url('/fonts/literata-v40-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* literata-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/literata-v40-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* literata-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Literata';
  font-style: italic;
  font-weight: 600;
  src: url('/fonts/literata-v40-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* cormorant-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/cormorant-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/cormorant-v24-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  src: url('/fonts/cormorant-v24-latin-italic.woff2') format('woff2');
}
/* cormorant-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/cormorant-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant';
  font-style: italic;
  font-weight: 500;
  src: url('/fonts/cormorant-v24-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/cormorant-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant';
  font-style: italic;
  font-weight: 600;
  src: url('/fonts/cormorant-v24-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/* cormorant-upright-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Upright';
  font-style: normal;
  font-weight: 300;
  src: url('/fonts/cormorant-upright-v19-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-upright-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Upright';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/cormorant-upright-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-upright-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Upright';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/cormorant-upright-v19-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-upright-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Upright';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/cormorant-upright-v19-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-upright-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Upright';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/cormorant-upright-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



:root{
  --bg: #0b0f14;
  --panel: #101826;
  --panel2:#0e1622;
  --text: #e8eef7;
  --muted:#a9b4c4;
  --line: rgba(232,238,247,.14);
  --accent:#78b7ff;
  --accent2:#9ff0c6;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --border: #444;
  --card-bg: rgba(255,255,255,0.94);
  --field-bg: rgba(255,255,255,0.12);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(circle at 20% 20%, rgba(120,183,255,.14), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(159,240,198,.10), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(30,60,120,0.12), transparent 35%),
    linear-gradient(180deg, #08111d 0%, #050b14 55%, #03070d 100%);
  background-attachment: fixed;
  color:var(--text);
  line-height:1.5;
}
    
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

a{ color:inherit; text-decoration:none; }

h1, h2, h3{
  font-family: "Cormorant", Georgia, serif;
  margin: 0 0 10px 0;
}
h1{ font-size: 42px; }
h2{ font-size: 36px; }
h3{
  font-size: 24px;
  margin-top: 14px;
}

.wrap{
  max-width: 1100px;
  padding: 18px 18px 70px;
  margin: 0 auto;
}

.meta{
  opacity: .75;
  font-size: 13px;
  font-family: "Cormorant", Georgia, serif;
}

/* Top navigation */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.72);
  border-bottom: 1px solid rgba(232,238,247,.10);
}

.topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:4px;
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing:.055em;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 32px;
  white-space: nowrap;
}

.brand span{
  transform: translateY(2px);
}

.brand-mark{
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand small{
  font-weight:600;
  letter-spacing:0;
  text-transform:none;
  color: var(--muted);
  font-size: 12px;
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.nav a{
  font-size: 13px;
  color: var(--muted);
  border: 1px solid rgba(232,238,247,.12);
  background: rgba(0,0,0,.14);
  padding: 7px 10px;
  border-radius: 999px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, color .12s ease;
}

.nav a:hover{
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(120,183,255,.35);
  background: rgba(120,183,255,.10);
}

.nav a.primary{
  color: rgba(232,238,247,.95);
  border-color: rgba(120,183,255,.35);
  background: rgba(120,183,255,.12);
}

/* Hero */
.hero{
  margin-top: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16,24,38,.95), rgba(14,22,34,.92));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  position: relative;
  overflow:hidden;
}

.hero:before{
  content:"";
  position:absolute;
  inset:-120px -140px auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(120,183,255,.25), transparent 60%);
  transform: rotate(12deg);
  pointer-events:none;
}

.kicker{
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin:0 0 8px;
}

h1{
  font-size: clamp(26px, 3.2vw, 42px);
  margin: 0 0 10px;
}

.lead{
  margin:0;
  color: var(--muted);
  max-width: 80ch;
}

/* Allgemeine Chips */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.chip{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

/* Grid tiles */
.tiles{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 820px){
  .tiles{ grid-template-columns: 1.2fr 1fr; gap: 16px; }
}

.tile{
  border: 1px solid rgba(232,238,247,.12);
  background: linear-gradient(180deg, rgba(14,22,34,.92), rgba(12,18,28,.92));
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  padding: 16px;
  overflow:hidden;
  position:relative;
  animation: fadeUp .45s ease both;
}

@keyframes fadeUp{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}

.tile-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tile h2{
  margin:0;
  font-size: 30px;
  line-height: 1.25;
}

.tile p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  max-width: 85ch;
}

/* Preview */
.preview{
  width:100%;
  height:170px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top: 10px;
  border: 1px solid rgba(232,238,247,.14);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(120,183,255,.16), rgba(159,240,198,.10)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05), rgba(255,255,255,.05) 2px, transparent 2px, transparent 7px);
  color: rgba(232,238,247,.75);
  font-weight:700;
  letter-spacing:.06em;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.preview-webcam{ aspect-ratio: 2 / 1; }
.preview-air{ aspect-ratio: 3 / 1; }

.preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(0.82);
}

.tile:hover .preview{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(232,238,247,.14);
  background: rgba(0,0,0,.18);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(120,183,255,.35);
  background: rgba(120,183,255,.10);
}

.btn.secondary:hover{
  border-color: rgba(159,240,198,.30);
  background: rgba(159,240,198,.10);
}

button.btn{
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(232,238,247,.14);
  background: rgba(0,0,0,.18);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.tagline{
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.footer-line{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.footer-links{
  text-align: right;
}

.footer-links a{
  font-weight: 400;
}

@media (max-width: 720px){
  .footer-line{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-links{
    text-align: left;
  }
}

/* Coverstrip */
.coverstrip{
  display:flex;
  justify-content:center;
  align-items:flex-end;
  gap:18px;
  padding:20px 10px;
  position:relative;
}

.coverstrip img{
  height:160px;
  border-radius:8px;
  box-shadow:0 14px 30px rgba(0,0,0,.45);
  transition:transform .25s ease, box-shadow .25s ease;
}

.coverstrip img:nth-child(odd){ transform:rotate(-1.2deg); }
.coverstrip img:nth-child(even){ transform:rotate(1.2deg); }

.coverstrip img:hover{
  transform:translateY(-8px) scale(1.03) rotate(0deg);
  box-shadow:0 24px 40px rgba(0,0,0,.6);
  z-index:5;
}

.coverstrip::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at center, rgba(120,183,255,.08), transparent 70%);
  pointer-events:none;
}

.tile-image{
  width:100%;
  aspect-ratio: 2 / 1;
  overflow:hidden;
  border-radius:12px;
}

.tile-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Wide tile row */
.row{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 820px){
  .row{ grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
}

/* Footer note */
footer{
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  padding: 0 2px;
}

code{ color: rgba(232,238,247,.85); }

/* Forms */
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #1a2430, #0f1720);
  font-family: "Literata", Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  color: white;
}

input:focus, select:focus, textarea:focus{
    border-color: rgba(120,183,255,.35);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

input:hover, select:hover, textarea:hover {
   border-color: rgba(120,183,255,.35);
}

textarea{
  min-height: 180px;
  resize: vertical;
}

.update-hint{
      border:1px solid rgba(159,240,198,.35);
      background:rgba(159,240,198,.08);
      border-radius:14px;
      padding:12px;
      margin-bottom:14px;
    }
    .btn-warn{
      border-color: rgba(255,200,120,.55) !important;
      box-shadow: 0 0 0 1px rgba(255,200,120,.15) inset;
    }

 .chapter-list-wrap{
  max-height: calc(100dvh - 420px);   /* Höhe nach Geschmack */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;  /* etwas Luft vor dem Scrollbalken */
}

/* Checkboxen / Radios */
input[type="checkbox"],
input[type="radio"]{
  width: auto;
  padding: 0;
}

fieldset > div{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

fieldset label{
  display: block;
}

/* Utility */
.hidden{ display:none; }

.link-default{
  font-family: "Cormorant", Georgia, serif;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.link-default:hover{
  text-decoration: underline;
  color: white;
}

.chapter-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.chapter-item{
  margin:0;
  padding:0;
}

.chapter-number{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  color:#f3f4f6;
  font-weight:700;
  flex-shrink:0;
  width:42px;
  height:42px;
  font-size:15px;
}

.chapter-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
}

.chapter-card{
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;
  padding:18px 20px;
  margin-bottom:18px;
  transition: all .2s ease;
}

.chapter-card:hover{
  border-color: rgba(120,180,255,0.35);
  background: rgba(255,255,255,0.06);
}
.chapter-list .chapter-card{
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-decoration: none;
   padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  box-sizing: border-box;
}
.chapter-list .chapter-card:hover{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}
/* Titel */
.chapter-title{
  font-size:18px;
  font-weight:600;
  margin-bottom:10px;
  color:#e7edf7;
}

/* Outline Liste */
.chapter-card ul{
  margin:10px 0 16px 0;
  padding-left:20px;
  line-height:1.55;
}

.chapter-card li{
  margin-bottom:6px;
  color:#b9c3d4;
}

/* Button schöner positionieren */
.chapter-card form{
  display:flex;
  justify-content:flex-end;
}

/* Button etwas ruhiger */
.chapter-card .btn{
  font-size:14px;
  padding:6px 14px;
}	

.chapter-meta{
  display:flex;
  flex-wrap:nowrap;
  gap:4px;
  overflow:hidden;
}
	  


.status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.07);
  background:rgba(255,255,255,0.025);
  color:rgba(255,255,255,0.34);
  white-space:nowrap;
  font-size:9px;
  padding:2px 6px;
}

.status.done{
  color:#9ee6b0;
  border-color:rgba(34,197,94,0.24);
  background:rgba(34,197,94,0.09);
}

.chapter-list .chapter-arrow{
  font-size: 22px;
  line-height: 1;
  color: rgba(255,255,255,0.45);
  transition: transform .2s ease, color .2s ease;
	 margin-left:auto;
}

.chapter-list .chapter-card:hover .chapter-arrow{
  transform: translateX(3px);
  color: rgba(255,255,255,0.8);
}
/* AI Overlay */
#aiOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.aiBox{
  background: #1c1c1c;
  color: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  font-family: system-ui, Arial;
}

.aiLogo{
  width: 80px;
  margin-bottom: 12px;
}

.aiText{
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.aiSpinner{
  width: 36px;
  height: 36px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

.link-style{
  background: none;
  border: none;
  padding: 0;
  color: gray;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  font-size: 14px;
  font-family: "Cormorant", Georgia, serif;
}

.link-style:hover{
  text-decoration: underline;
  color: lightblue;
}

.err{
  background: #fff0ee;
  border: 1px solid rgba(158, 61, 50, 0.28);
  padding: 10px;
  border-radius: 10px;
  color: #6f302a;
}

.ok{
  background: #eef8ef;
  border: 1px solid rgba(76, 123, 91, 0.28);
  padding: 10px;
  border-radius: 10px;
  color: #385a49;
}

.err1,
.ok1,
.dashboard-warning {
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(74, 62, 45, 0.06);
}

.err1 {
  border: 1px solid rgba(158, 61, 50, 0.30);
  background: #fff0ee;
}

.ok1 {
  border: 1px solid rgba(76, 123, 91, 0.34);
  background: #eef8ef;
}

.err1 strong {
  color: #8f2f28;
}

.ok1 strong {
  color: #385a49;
}

.dashboard-warning {
  border: 1px solid rgba(160, 120, 45, 0.34);
  background: #fff6df;
}

.dashboard-warning strong {
  color: #6f491f;
}

/* AGB Card */
.card.agb{
  line-height: 1.6;
  font-size: 15px;
  max-width: 850px;
}

.card.agb h3{ margin-bottom: 20px; }

.card.agb h4{
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 16px;
}

.card.agb p{ margin: 6px 0; }

.card.agb ul{ margin: 8px 0 12px 20px; }

textarea {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}
                .editor-box {
    position: relative;
    background: linear-gradient(145deg, #1a2430, #0f1720);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    transition: all 0.25s ease;
}

/* Leichter Glow beim Hover */
.editor-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Fokus-State (richtig wichtig!) */
.editor-box:focus-within {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Textarea selbst */
.editor-box textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #e6edf3;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
}

/* Placeholder schöner */
.editor-box textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   Globale Werkstatt-Komponenten
   ============================================================ */

.panel{
  border: 1px solid rgba(232,238,247,.12);
  background: linear-gradient(180deg, rgba(14,22,34,.92), rgba(12,18,28,.92));
  border-radius: 18px;
  padding: 14px;
}

.sidebar .title{
  font-family: "Cormorant", Georgia, serif;
  font-weight: 900;
  font-size: 22px;
  margin: 2px 0 2px;
  color: rgba(232,238,247,.92);
}

.sidebar .sub{
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.navlist{
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.navitem{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(232,238,247,.10);
  background: rgba(0,0,0,.10);
  color: rgba(232,238,247,.88);
  cursor: pointer;
}

.navitem:hover{
  border-color: rgba(120,183,255,.35);
}

.navitem.active{
  border-color: rgba(159,240,198,.35);
  background: rgba(159,240,198,.08);
}

.pill{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232,238,247,.12);
  color: var(--muted);
  white-space: nowrap;
}

.toprow{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.workspace-title{
  font-family: "Cormorant", Georgia, serif;
  font-weight: 900;
  font-size: 26px;
  margin: 0;
  color: rgba(232,238,247,.92);
}

.banner{
  border: 1px solid rgba(232,238,247,.12);
  background:
    radial-gradient(900px 300px at 20% 20%, rgba(120,183,255,.18), transparent 60%),
    radial-gradient(900px 300px at 80% 20%, rgba(159,240,198,.14), transparent 60%),
    rgba(0,0,0,.12);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.banner strong{ color: rgba(232,238,247,.92); }

.banner .meta{
  color: var(--muted);
  font-size: 13px;
}

.grid2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 980px){
  .grid2{ grid-template-columns: 1fr 360px; }
}

.list{
  display:grid;
  gap: 8px;
}

.list button{
  width: 100%;
  text-align: left;
  border-radius: 14px;
  padding: 10px 10px;
  border: 1px solid rgba(232,238,247,.10);
  background: rgba(0,0,0,.10);
  color: rgba(232,238,247,.88);
  cursor: pointer;
}

.list button:hover{
  border-color: rgba(120,183,255,.35);
}

.list button.active{
  border-color: rgba(159,240,198,.35);
  background: rgba(159,240,198,.08);
}

.small{
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.editor{
  min-height: 260px;
  border-radius: 16px;
  border: 1px solid rgba(232,238,247,.12);
  background: rgba(0,0,0,.10);
  padding: 12px;
}

.editor h3{
  margin: 0 0 8px;
  color: rgba(232,238,247,.92);
  font-family: "Cormorant", Georgia, serif;
  font-size: 20px;
}

.editor p,
.editor li{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.editor ul{
  margin: 10px 0 0;
  padding-left: 18px;
}

.kibox{
  border-radius: 16px;
  border: 1px solid rgba(232,238,247,.12);
  background: rgba(0,0,0,.10);
  padding: 12px;
}

.kibox h3{
  margin: 0 0 8px;
  color: rgba(232,238,247,.92);
  font-family: "Cormorant", Georgia, serif;
  font-size: 20px;
}

.kibox .row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.kibox .btn{
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 14px;
}

.kiout{
  border-radius: 14px;
  border: 1px solid rgba(232,238,247,.10);
  background: rgba(0,0,0,.12);
  padding: 10px;
  min-height: 140px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.kiout .typing{ opacity: .9; }

.lock{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232,238,247,.12);
  background: rgba(0,0,0,.08);
  color: var(--muted);
}

.credits{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.credit-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(159,240,198,.30);
  background: rgba(159,240,198,.10);
  color: rgba(232,238,247,.92);
  font-weight: 800;
  font-size: 13px;
}

.credit-chip small{
  color: var(--muted);
  font-weight: 700;
}.credit-chip.negative{
  border: 1px solid rgba(255,120,120,.35);
  background: rgba(255,120,120,.12);
  color: rgba(255,200,200,.95);
}

.credit-chip.negative b{
  color: #ff6b6b;
}

.hint{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(232,238,247,.12);
  background: rgba(0,0,0,.08);
}

.table th,
.table td{
  padding: 10px;
  border-bottom: 1px solid rgba(232,238,247,.08);
  color: var(--muted);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.table th{
  color: rgba(232,238,247,.92);
  font-weight: 900;
  font-family: "Cormorant", Georgia, serif;
}

.table tr:last-child td{
  border-bottom: none;
}

.navitem1{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

.pill1{
  font-size: 11px;
}


    .book-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.book-item{
  margin:0;
  padding:0;
}

.book-card{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:10px;
  padding:0;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(40,60,100,0.18), rgba(10,15,30,0.18));
  overflow:hidden;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.book-card:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,0.18);
  box-shadow:0 8px 18px rgba(0,0,0,0.18);
}

.book-main{
  min-width:0;
  display:grid;
  grid-template-columns:48px 1fr 20px;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  text-decoration:none;
  color:inherit;
}

.book-icon{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  font-size:20px;
  flex-shrink:0;
}

.book-content{
  min-width:0;
}

.book-title{
  font-size:15px;
  font-weight:650;
  line-height:1.2;
  color:#f8fafc;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-bottom:4px;
}

.book-meta{
  font-size:12px;
  color:rgba(255,255,255,0.5);
}

.book-arrow{
  font-size:16px;
  color:rgba(255,255,255,0.26);
  transition:transform 0.18s ease, color 0.18s ease;
}

.book-card:hover .book-arrow{
  transform:translateX(2px);
  color:rgba(255,255,255,0.45);
}

.book-delete-form{
  padding-right:12px;
}

    /* Kleiner Stil-Zusatz für den Edit-Button */
    .book-edit-btn { background: none; border: none; cursor: pointer; padding: 5px; margin-right: 5px; }
    .book-edit-btn img { height: 20px; opacity: 0.7; }
    .book-edit-btn:hover img { opacity: 1; }

  /* Container für die Aktions-Buttons */
  .book-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen den Buttons */
    margin-left: auto; /* Schiebt die Buttons nach rechts, falls gewünscht */
  }

  .book-edit-btn, .book-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
  }

  .book-edit-btn img, .book-delete-btn img {
    height: 22px; /* Einheitliche Größe */
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .book-edit-btn:hover img, .book-delete-btn:hover img {
    opacity: 1;
  }
  
  /* Sicherstellen, dass das Formular kein Block-Verhalten erzwingt */
  .book-delete-form {
    margin: 0;
    padding: 0;
    display: inline-block;
  }

      .book-delete-btn{
          margin-right: 6px;
      }





.character-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.character-item{
  margin:0;
  padding:0;
}

.character-card{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(40,60,100,0.18), rgba(10,15,30,0.18));
  overflow:hidden;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.character-card:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,0.18);
  box-shadow:0 8px 18px rgba(0,0,0,0.18);
}

.character-main{
  min-width:0;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 18px;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  text-decoration:none;
  color:inherit;
}

.character-icon{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  color:#f3f4f6;
  font-size:18px;
  font-weight:700;
  flex-shrink:0;
}

.character-content{
  min-width:0;
}

.character-title{
  font-size:15px;
  font-weight:650;
  line-height:1.2;
  color:#f8fafc;
  margin-bottom:5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.character-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  font-size:12px;
  color:rgba(255,255,255,0.55);
}

.character-arrow{
  font-size:16px;
  color:rgba(255,255,255,0.26);
  transition:transform 0.18s ease, color 0.18s ease;
}

.character-card:hover .character-arrow{
  transform:translateX(2px);
  color:rgba(255,255,255,0.45);
}

.character-delete-form{
  padding-right:12px;
}

.character-delete-btn{
  min-width:34px;
  height:34px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:transparent;
  border:1px solid rgba(255,255,255,0.08);
  color:rgba(255,255,255,0.78);
  cursor:pointer;
  transition:background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.character-delete-btn:hover{
  background:rgba(220,38,38,0.10);
  border-color:rgba(220,38,38,0.24);
  color:#ffb8b8;
  transform:scale(1.02);
}

     .navitem-special {
  border-color: rgba(255, 196, 0, 0.20);
  background: rgba(255, 196, 0, 0.06);
}

.navitem-special:hover {
  border-color: rgba(255, 196, 0, 0.34);
  background: rgba(255, 196, 0, 0.10);
}

.navitem-special.active {
  border-color: rgba(255,120,40,0.45);
  background: rgba(255,120,40,0.12);
  box-shadow: 
    0 0 0 1px rgba(255,120,40,0.15),
    0 6px 18px rgba(0,0,0,0.25);
}

.navitem-special.active .pill {
  border-color: rgba(255,120,40,0.45);
  background: rgba(255,120,40,0.12);
  color: #ffb37a;
}


.character-item.prolog .character-icon,
.character-item.epilog .character-icon {
  background: #444;
}

/* ============================================================
   Gemeinsames Werkstatt-Layout
   ============================================================ */

.p-chapter .app,
.p-chapters .app,
.p-characters .app,
.p-dashboard .app,
.p-export .app,
.p-start .app,
.p-storybible .app,
.p-style .app,
.p-workshop .app{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 24px;
}

@media (min-width: 980px){
  .p-chapter .app,
  .p-chapters .app,
  .p-characters .app,
  .p-dashboard .app,
  .p-export .app,
  .p-start .app,
  .p-storybible .app,
  .p-style .app,
  .p-workshop .app{
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

/* ===========================
   Page: chapter
   =========================== */

@media (min-width:980px){
  .p-chapter .sidebar{
    grid-column:1;
    grid-row:1;
  }

  .p-chapter section[aria-label="Weitere Bereiche"]{
    grid-column:1;
    grid-row:2;
  }

  .p-chapter section[aria-label="Arbeitsbereich"]{
    grid-column:2;
    grid-row:1 / span 2;
  }
}

/* --- Seitenspezifische Styles für Chapter-Pages --- */

/* Nutzt den Body-Tag als Namespace */
.p-chapter .tts-loading { display: inline-block; color: #fff; }
.p-chapter .tts-loading .dots::after {
  content: "";
  display: inline-block;
  width: 1.5em;
  text-align: left;
  animation: ttsDots 1.2s steps(4, end) infinite;
}

/* Keyframes sind global, aber der Name ist spezifisch genug */
@keyframes ttsDots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

.p-chapter .toggle-chapter-btn { position: relative; }
.p-chapter #chapter-toggle-state { font-weight: bold; margin-left: 4px; }
.p-chapter .toggle-chapter-btn.has-warning { border-color: #d9a441; }
.p-chapter .toggle-chapter-btn.has-dirty { border-color: #6bb8ff; }
.p-chapter .toggle-chapter-btn.needs-work { border-color: #4aa3ff; box-shadow: 0 0 6px rgba(74,163,255,0.6); }
.p-chapter .toggle-chapter-btn.warning { border-color: #ffb347; box-shadow: 0 0 6px rgba(255,179,71,0.6); }

/* Draft & Layout */
.p-chapter .draft-box {
  font-family: 'Cormorant Upright', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.8;
  padding: 32px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
}
.p-chapter .draft-dark {
  background: linear-gradient(180deg, #232a3a 0%, #1f2533 100%);
  color: #e8e4dc;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.02);
}
.p-chapter .draft-paper {
  background: #f4efe6;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.03);
}
.p-chapter .draft-header { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; margin-bottom: 8px; }
.p-chapter .draft-header h2 { margin: 0; }

/* Buttons & Controls */
.p-chapter #draftToggle {
  background: rgba(255,255,255,0.05);
  color: #e8e4dc;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  opacity: 0.8;
}
.p-chapter #draftToggle:hover { background: rgba(255,255,255,0.1); }

/* Theme Switcher */
.p-chapter .theme-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.p-chapter .theme-switch .icon { font-size: 16px; opacity: 0.7; transition: opacity 0.2s; }
.p-chapter .theme-switch input { display: none; }
.p-chapter .slider {
  position: relative;
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 20px;
  transition: background 0.3s;
}
.p-chapter .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}
.p-chapter input:checked + .slider { background: #4a90e2; }
.p-chapter input:checked + .slider::before { transform: translateX(26px); }
.p-chapter input:not(:checked) ~ .icon:first-child { opacity: 1; }
.p-chapter input:checked ~ .icon:last-child { opacity: 1; }

/* AI Box */
.p-chapter .aiBox {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
}
.p-chapter .aiGifFull {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 0;
}
.p-chapter .aiContent { position: absolute; inset: 0; z-index: 1; }
.p-chapter .aiText {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  font-family: 'Cormorant', serif;
  font-size: 14px;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
}
.p-chapter .aiSpinner {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
}

/* Tool Section */
.p-chapter .tool-section { margin-top: 18px; align-items: stretch; }
.p-chapter .section-title { font-size: 11px; letter-spacing: 1px; color: #6b7280; margin-bottom: 8px; }
.p-chapter .btn1 { width: 100%; display: flex; box-sizing: border-box; margin: 0; }
.p-chapter .btn-accent { border-color: #6ee7b7; }
.p-chapter .btn-highlight { background: linear-gradient(135deg, #6ee7b7, #22d3ee); color: #000; }
.p-chapter .btn-primary { border-color: #9400d3; }
.p-chapter .tool-item { margin-top: 10px; }
.p-chapter .btn-content { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-chapter .btn-sub {
  display: block;
  font-size: 13px;
  color: #a6b3c2;
  margin-top: 2px;
  font-family: "Cormorant", Georgia, serif;
}
.p-chapter .tool-info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-2px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease, margin-top 0.2s ease;
  font-family: "Cormorant", Georgia, serif;
  font-size: 14px;
  color: #b7c3d1;
  line-height: 1.45;
  margin-top: 0;
  padding-left: 4px;
}
.p-chapter .has-info:hover .tool-info,
.p-chapter .has-info:focus-within .tool-info,
.p-chapter .has-info.is-open .tool-info {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px;
}
.p-chapter .badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(34, 211, 238, 0.16);
  color: #8fe8f7;
}
.p-chapter .recommended .btn { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.15); }
.p-chapter .tool-section form { width: 100%; display: block; }
.p-chapter .tool-section .btn {
  width: 100%;
  display: block;
  box-sizing: border-box;
  text-align: left;
  margin-bottom: 8px;
}
.p-chapter .tool-section .btn-content {
  display: flex;
  justify-content: left;
  align-items: left;
  gap: 12px;
  width: 100%;
}
.p-chapter .btn-content > div { text-align: left; }
/* ===========================
   Page: export-manuskript
   =========================== */

.p-export-manuskript .manu-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 18px 70px;
}

.p-export-manuskript .manu-top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:18px;
}

.p-export-manuskript .manu-title{
  font-family:"Cormorant", Georgia, serif;
  font-weight:900;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  margin:0;
  color: var(--text);
  letter-spacing: 0;
}

.p-export-manuskript .manu-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.p-export-manuskript .manu-actions a,
.p-export-manuskript .manu-actions button{
  text-decoration:none;
}

.p-export-manuskript .manu-paper{
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(74,62,45,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0) 180px),
    #fffdf7;
  border-radius: 6px;
  padding: clamp(34px, 6vw, 70px);
  color: #1f1a14;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 22px 54px rgba(74,62,45,.16);
}

.p-export-manuskript .act{
  margin: 2.8rem 0 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(74,62,45,.22);
  text-align: center;
}

.p-export-manuskript .act h2{
  margin: 0;
  color: #5f4932;
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.15;
}

.p-export-manuskript .chapter{
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(74,62,45,.12);
  break-inside: avoid;
}

.p-export-manuskript .chapter:first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.p-export-manuskript .chapter h2{
  margin: 0 0 4px;
  font-family:"Cormorant", Georgia, serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.08;
  color: #2b2119;
  text-align:center;
}
	  
.p-export-manuskript .chapter h1{
  margin: 0 0 28px;
  color: #5f4932;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  text-align:center;
}

.p-export-manuskript .chapter p{
  margin: 0 0 1.05rem;
  color: #1f1a14;
  font-size: 17px;
  line-height: 1.72;
}

/* Kapitel-Schnelleditor: Popup aus der Werkstatt */
.p-quickedit{
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,253,247,.96), rgba(246,236,219,.96)),
    var(--bg);
  color: var(--text);
}

.p-quickedit .quickedit-shell{
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 26px;
}

.p-quickedit .quickedit-head{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.p-quickedit .quickedit-kicker{
  color: #8f642f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.p-quickedit h1{
  margin: 0;
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.p-quickedit .quickedit-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-quickedit textarea{
  width: 100%;
  height: min(72vh, 760px);
  min-height: 480px;
  box-sizing: border-box;
  border: 1px solid rgba(74,62,45,.16);
  border-radius: 8px;
  background: #fffdf7;
  color: #1f1a14;
  padding: 24px;
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.75;
  letter-spacing: 0;
  box-shadow: inset 0 0 38px rgba(143,100,47,.035), 0 14px 34px rgba(74,62,45,.10);
  resize: vertical;
}

.p-quickedit textarea:focus{
  outline: 2px solid rgba(143,100,47,.18);
  border-color: rgba(143,100,47,.42);
}

.p-quickedit .quickedit-actions{
  display: flex;
  justify-content: flex-end;
}

/* Mollie-Abrechnung */
.p-billing-mollie .hero h1{
  color: var(--text);
  letter-spacing: 0;
}

.p-billing-mollie .billing-legal{
  margin-top: 14px;
}

.p-billing-mollie .billing-legal p,
.p-billing-mollie .billing-links{
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.55;
}

.p-billing-mollie .consent-box{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-billing-mollie .consent-title{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.p-billing-mollie .consent-row{
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.p-billing-mollie .consent-row input{
  width: auto;
  margin-top: 2px;
}

.p-billing-mollie .billing-order-note{
  margin: 12px 0 6px;
  color: var(--text);
  font-weight: 800;
}

.p-billing-mollie .billing-status{
  margin-top: 10px;
}

.p-billing-mollie .mollie-checkout{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.p-billing-mollie .btn_mollie{
  min-width: 240px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(143,100,47,.28);
  background: linear-gradient(135deg, #d9bd75, #a97836);
  color: #21180d;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
  box-shadow: 0 10px 24px rgba(143,100,47,.20);
}

.p-billing-mollie .btn_mollie:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.p-billing-mollie .btn_mollie:disabled{
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.p-billing-mollie .mollie-secure-note{
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.p-billing-mollie .mollie-secure-note img{
  vertical-align: text-bottom;
}

.p-billing-mollie .payment-methods{
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: .9;
}

.p-billing-mollie .payment-methods img{
  height: 24px;
  max-width: 64px;
}

.p-billing-mollie #message-container{
  margin-top: 12px;
}

.p-billing-mollie .is-hidden{
  display: none;
}

/* Legal-, Hilfe- und Infoseiten */
.card.agb{
  border: 1px solid rgba(74,62,45,.14);
  border-radius: 10px;
  background: rgba(255,253,247,.78);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(74,62,45,.08);
}

.card.agb h3,
.card.agb h4,
.card.agb h5{
  color: var(--text);
  letter-spacing: 0;
}

.card.agb p,
.card.agb li{
  color: var(--text);
}

.card.agb a{
  color: #6f491f;
  font-weight: 800;
}

.feature-card,
.guide-note,
.profile-card,
.contact-card,
.contact-box{
  border: 1px solid rgba(74,62,45,.14) !important;
  border-radius: 10px !important;
  background: rgba(255,250,240,.72) !important;
  color: var(--text) !important;
  box-shadow: 0 10px 24px rgba(74,62,45,.07) !important;
}

.feature-card h3,
.contact-card h2,
.profile-card h2,
.mk{
  color: var(--text);
}

.guide-shot img{
  border-color: rgba(74,62,45,.14) !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 32px rgba(74,62,45,.12) !important;
}

.contact-lead,
.contact-note,
.profile-text,
.profile-role{
  color: var(--muted);
}

.profile-image{
  border-color: rgba(74,62,45,.16) !important;
  box-shadow: 0 12px 26px rgba(74,62,45,.12);
}

.section-title1{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  letter-spacing: 0;
}

/* Login, Registrierung und Account */
.p-auth .auth-form{
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(220px, 320px);
  gap: 12px 14px;
  align-items: center;
  max-width: 560px;
}

.p-auth .auth-form label{
  color: #4b3c2a;
  font-weight: 800;
}

.p-auth .auth-form input{
  width: 100%;
  border: 1px solid rgba(74,62,45,.18);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.p-auth .auth-form input:focus{
  outline: 2px solid rgba(143,100,47,.18);
  border-color: rgba(143,100,47,.42);
}

.p-auth .auth-form .btn{
  grid-column: 2;
  justify-self: start;
}

.p-auth .auth-status{
  margin-top: 12px;
}

.p-auth .signup-note{
  margin-top: 16px;
  color: #385a49;
  font-size: 20px;
  font-weight: 800;
}

.p-account .tile p{
  color: var(--text);
  font-size: 18px;
}

.verify-welcome{
  font-size: 18px;
}

.verify-gift{
  margin-top: 10px;
  color: #385a49;
  font-size: 20px;
}

.verify-gift strong{
  font-size: 24px;
}

.verify-copy,
.verify-list{
  color: var(--muted);
}

.soft-rule{
  margin: 20px 0;
  border: 0;
  border-top: 1px solid rgba(74,62,45,.14);
}

.verify-actions{
  margin-top: 20px;
}

@media (max-width: 620px){
  .p-auth .auth-form{
    grid-template-columns: 1fr;
  }

  .p-auth .auth-form .btn{
    grid-column: auto;
  }
}

@media (max-width: 620px){
  .p-quickedit textarea{
    min-height: 62vh;
    padding: 18px;
  }

  .p-quickedit .quickedit-actions{
    justify-content: stretch;
  }

  .p-quickedit .quickedit-actions .btn{
    width: 100%;
  }
}

@media print{
  body.p-export-manuskript{
    background:#fff !important;
  }

  body.p-export-manuskript .topbar,
  body.p-export-manuskript .manu-actions{
    display:none !important;
  }

  body.p-export-manuskript .manu-paper{
    border:none;
    background:transparent;
    padding:0;
    box-shadow:none;
    max-width:none;
  }

  body.p-export-manuskript .chapter{
    page-break-before: always;
    border:none;
    padding-top:0;
    margin-top:0;
  }

  body.p-export-manuskript .chapter:first-child{
    page-break-before:auto;
  }

  body.p-export-manuskript .chapter h2,
  body.p-export-manuskript .chapter h1,
  body.p-export-manuskript .act h2{ color:#000; }
  body.p-export-manuskript .chapter p{ color:#000; }
}

/* ===========================
   Page: index
   =========================== */

.p-index .hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

@media (min-width: 920px){
  .p-index .hero-grid{ grid-template-columns: 1.15fr .85fr; }
}

.p-index .hero-card{
  border: 1px solid rgba(232,238,247,.12);
  background: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.08));
  border-radius: 18px;
  padding: 16px;
}

.p-index .hero-card h3{ margin: 0 0 10px; }

.p-index .hero-card ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.p-index .hero-card li{ margin: 8px 0; }

.p-index .section-title{
  margin: 18px 2px 10px;
  color: rgba(232,238,247,.92);
}

.p-index .steps{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (min-width: 920px){
  .p-index .steps{ grid-template-columns: 1fr 1fr 1fr; }
}

.p-index .step{
  border: 1px solid rgba(232,238,247,.12);
  background: rgba(0,0,0,.14);
  border-radius: 16px;
  padding: 14px;
}

.p-index .step .num{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid rgba(120,183,255,.35);
  background: rgba(120,183,255,.10);
  margin-bottom: 10px;
}

.p-index .step h3{
  margin: 0 0 6px;
  color: rgba(232,238,247,.92);
}

.p-index .step p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.p-index .pricing{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (min-width: 920px){
  .p-index .pricing{ grid-template-columns: 1fr 1fr 1fr; }
}

.p-index .price{
  border: 1px solid rgba(232,238,247,.12);
  background: linear-gradient(180deg, rgba(14,22,34,.92), rgba(12,18,28,.92));
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow:hidden;
}

.p-index .price.featured{
  border-color: rgba(159,240,198,.30);
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
  transform: translateY(-2px);
}

.p-index .price .badge-top{
  position:absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(159,240,198,.30);
  background: rgba(159,240,198,.10);
  color: rgba(232,238,247,.92);
}

.p-index .price h3{ margin: 0 0 6px; }

.p-index .price .p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.p-index .price .amount{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 6px 0 10px;
}

.p-index .price .amount small{
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.p-index .price ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.p-index .price li{ margin: 8px 0; }

.p-index .price .actions{ margin-top: 12px; }

.p-index .faq{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

@media (min-width: 920px){
  .p-index .faq{ grid-template-columns: 1fr 1fr; }
}

.p-index details{
  border: 1px solid rgba(232,238,247,.12);
  background: rgba(0,0,0,.14);
  border-radius: 16px;
  padding: 12px 14px;
}

.p-index details summary{
  cursor: pointer;
  font-weight: 800;
  font-family: "Cormorant", Georgia, serif;
  font-size: 18px;
  color: rgba(232,238,247,.92);
  list-style: none;
}

.p-index details summary::-webkit-details-marker{ display:none; }

.p-index details p{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.p-index .cta{
  margin-top: 16px;
  border: 1px solid rgba(232,238,247,.12);
  background:
    radial-gradient(900px 300px at 20% 20%, rgba(120,183,255,.18), transparent 60%),
    radial-gradient(900px 300px at 80% 20%, rgba(159,240,198,.14), transparent 60%),
    rgba(0,0,0,.12);
  border-radius: 18px;
  padding: 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items:flex-start;
  justify-content: space-between;
}

@media (min-width: 920px){
  .p-index .cta{ flex-direction: row; align-items:center; }
}

.p-index .cta p{
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

.p-index .muted-note{
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.p-index .mark{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(232,238,247,.12);
  background: linear-gradient(135deg, rgba(120,183,255,.18), rgba(159,240,198,.12));
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: "Cormorant", Georgia, serif;
  font-weight: 900;
  letter-spacing: .04em;
}

.p-index section{ scroll-margin-top: 90px; }

.p-index .hover-container{
  position: relative;
  display: inline-block;
}

.p-index .hover-box{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background-color: rgba(14, 22, 34, 0.95);
  border: 1px solid rgba(232, 238, 247, 0.2);
  color: white;
  padding: 10px;
  border-radius: 8px;
  z-index: 9999;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.p-index .hover-container:hover .hover-box{
  display: block;
  z-index: 10000;
}

.p-index .tile{
  overflow: visible !important;
}

/* Literary Hero */
.p-index .hero.hero-literary{
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 64px 0 40px;
  border: 1px solid rgba(232,238,247,.10);
  border-radius: 22px;
  background:
    radial-gradient(900px 420px at 18% 22%, rgba(120,183,255,.14), transparent 62%),
    radial-gradient(900px 420px at 82% 28%, rgba(159,240,198,.10), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.10));
}

.p-index .hero.hero-literary .hero-inner{
  width: 100%;
  padding: 0 18px;
}

.p-index .hero.hero-literary .hero-copy{
  max-width: 78ch;
  margin: 0 auto;
  text-align: center;
}

.p-index .hero-title{
  margin: 0 0 22px;
  font-family: "Cormorant", Georgia, serif;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.0;
  font-size: clamp(40px, 6vw, 74px);
}

.p-index .hero-quote{
  margin: 0 auto 16px;
  font-family: "Cormorant", Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.35;
  color: rgba(232,238,247,.92);
}

.p-index .hero-break{
  margin: 10px 0 14px;
  font-family: "Cormorant", Georgia, serif;
  letter-spacing: .28em;
  color: rgba(232,238,247,.60);
}

.p-index .hero-line{
  margin: 0 auto 26px;
  color: rgba(232,238,247,.72);
  font-size: 15px;
}

.p-index .hero-actions{
  margin-top: 8px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.p-index .hero-cta{
  border-color: rgba(159,240,198,.30) !important;
  background: rgba(159,240,198,.10) !important;
}

@media (max-width: 520px){
  .p-index .hero.hero-literary{
    min-height: 78vh;
    padding: 46px 0 30px;
  }
}

/* --- Spezifische Styles für die Startseite / Index (.p-index) --- */

/* Navigation für Guides/Anleitungen */
.p-index .guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.p-index .guide-nav a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, .03);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.p-index .guide-nav a:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .25);
}

/* Guide Blöcke & Inhalte */
.p-index .guide-block {
  margin-top: 22px;
}

.p-index .guide-block h3 {
  margin-bottom: 10px;
}

/* Screenshots / Bilder in Guides */
.p-index .guide-shot {
  margin: 18px 0 20px;
  text-align: center;
}

.p-index .guide-shot img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .30);
}

/* Info-Boxen & Listen */
.p-index .guide-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  margin: 14px 0 0;
}

.p-index .guide-list li {
  margin-bottom: 8px;
}

/* AGB / Rechtliches Card-Layout */
.p-index .card.agb {
  max-width: 720px;  
  margin: 0 auto;
  text-align: left;
}

.p-index .card.agb p {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
/* ===========================
   Page: workshop
   =========================== */

.p-workshop .forge{ position:relative; }
.p-workshop .forge-bg{ width:100%; display:block; border-radius:18px; }

.p-workshop .forge::after{
  content:"";
  position:absolute;
  top:20px;
  right:20px;
  width:40px;
  height:40px;
  background-image:url("img/ki-gehirn.png");
  background-size:contain;
  background-repeat:no-repeat;
  opacity:0.4;
  pointer-events:none;
}

.p-workshop .forge:hover::after{ opacity:0.7; }

.p-workshop .toolring{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.p-workshop .orbit{
  pointer-events:none;
  width: min(86%, 760px);
  aspect-ratio: 1 / 1;
  position: relative;
  transform: translate(7%, -10%);
}

.p-workshop .tool{
  pointer-events:auto;
  position:absolute;
  top:50%;
  left:50%;
  --count: 8;
  --radius: 200px;
  --angle: calc((360deg / var(--count)) * var(--i) - 90deg);
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateX(var(--radius))
    rotate(calc(-1 * var(--angle)));
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#e6e1d3;
  font-family:"Cormorant Upright", serif;
  font-size:20px;
  padding:6px 10px;
  border-radius:999px;
  border: none;
  background: none;
  outline: none;
}

.p-workshop .tool:hover{
  border: 1px solid rgba(255,120,40,0.35);
  border-radius: 20px;
  background: rgba(0,0,0,0.25);
}

.p-workshop .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ff6a00;
  box-shadow: 0 0 6px #ff6a00, 0 0 12px #ff4500, 0 0 20px #ff0000;
  position:relative;
  --spark: 0;
}

.p-workshop .dot::before,
.p-workshop .dot::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:4px;
  height:4px;
  border-radius:50%;
  transform: translate(-50%, -50%);
  opacity:0;
  filter: blur(.2px);
}

.p-workshop .tool:hover .dot{
  box-shadow: 0 0 10px #ff9a00, 0 0 20px #ff6a00, 0 0 30px #ff0000;
  transform: scale(1.25);
}

@keyframes spark1{
  0%{ opacity:0; transform:translate(-50%,-50%) scale(.8); }
  10%{ opacity:1; }
  100%{ opacity:0; transform:translate(calc(-50% + 24px), calc(-50% - 18px)) scale(.2); }
}

@keyframes spark2{
  0%{ opacity:0; transform:translate(-50%,-50%) scale(.8); }
  10%{ opacity:1; }
  100%{ opacity:0; transform:translate(calc(-50% - 18px), calc(-50% + 22px)) scale(.2); }
}

@keyframes spark3{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.4); }
  100%{ transform: scale(1); }
}

.p-workshop .tool:hover .dot::before{
  background:#ffd08a;
  animation: spark1 .45s ease-out 1;
}

.p-workshop .tool:hover .dot::after{
  background:#ff9a00;
  animation: spark2 .5s ease-out 1;
}

.p-workshop .tool:hover .dot{
  animation: spark3 .35s ease-out 1;
}

/* Hintbox */
.p-workshop .hintbox{
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,120,40,.18);
  border-radius:16px;
  padding:12px 14px;
  color:#e6e1d3;
}

.p-workshop .hintbox > summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:baseline;
  gap:12px;
  font-family:"Cormorant Upright", serif;
  font-size:22px;
}

.p-workshop .hintbox > summary::-webkit-details-marker{ display:none; }

.p-workshop .hintbox .sub{
  opacity:.75;
  font-size:16px;
  font-family: inherit;
}

.p-workshop .hintinner{
  margin-top:12px;
  display:grid;
  gap:10px;
}

.p-workshop textarea#hint{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,120,40,.18);
  background: rgba(10,10,12,.55);
  color:#e6e1d3;
  padding:12px;
  font-size:16px;
  outline:none;
}

.p-workshop textarea#hint:focus{
  border-color: rgba(255,120,40,.45);
  box-shadow: 0 0 0 3px rgba(255,120,40,.12);
}

/* Workshop-Chips überschreiben bewusst die globalen Chips */
.p-workshop .chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.p-workshop .chip{
  border-radius:999px;
  border:1px solid rgba(255,120,40,.18);
  background: rgba(0,0,0,.25);
  color:#e6e1d3;
  padding:6px 10px;
  cursor:pointer;
  font-family:"Cormorant Upright", serif;
}

.p-workshop .chip:hover{
  border-color: rgba(255,120,40,.45);
}

/* Knob */
.p-workshop .knobwrap{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,120,40,.18);
  background: rgba(0,0,0,.22);
  color:#e6e1d3;
}

.p-workshop .knob{
  width:54px;
  height:54px;
  border-radius:50%;
  background:
    conic-gradient(from 220deg,
      rgba(255,120,40,.9) calc(var(--p)*1%),
      rgba(255,120,40,.12) 0);
  position:relative;
  box-shadow: 0 0 18px rgba(255,120,40,.12);
}

.p-workshop .knobcap{
  position:absolute;
  inset:8px;
  border-radius:50%;
  background: rgba(10,10,12,.75);
  border:1px solid rgba(255,120,40,.16);
}

.p-workshop .knob::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:2px;
  height:18px;
  background: rgba(255,210,150,.9);
  transform-origin: bottom center;
  transform: translate(-50%,-100%) rotate(calc(-130deg + (260deg * (var(--p)/100))));
  border-radius:2px;
  box-shadow: 0 0 10px rgba(255,120,40,.35);
}

.p-workshop .range{ width:160px; }

.p-workshop .knoblabel .title{
  font-family:"Cormorant Upright", serif;
  font-size:20px;
}

.p-workshop .knoblabel .value{
  opacity:.85;
  font-size:15px;
}

/* Amboss */
.p-workshop .amboss{
  font-family: 'Cormorant Upright', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f0f0f0;
  padding: 20px;
  width: 100%;
}

    .p-workshop .forge-modern{
  display: grid;
  gap: 18px;
}

/* Bild nur noch dekorativ / als Kopfbereich */
.p-workshop .forge-hero{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,120,40,.18);
  background: rgba(0,0,0,.18);
  min-height: 220px;
}

.p-workshop .forge-hero-img{
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 380px;
  object-fit: cover;
  display: block;
  filter: brightness(.55);
}

.p-workshop .forge-hero-overlay{
  position:absolute;
  inset:0;
  z-index:4;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:20px;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.04) 55%,
    rgba(0,0,0,.24) 100%
  );
}

.p-workshop .forge-hero-overlay h2{
  margin: 0 0 6px;
  color: #f3e7d0;
  font-family: "Cormorant Upright", serif;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
}

.p-workshop .forge-hero-overlay p{
  margin: 0;
  color: rgba(255,240,220,.86);
  font-size: 15px;
}

/* Grid statt Kreis */
.p-workshop .toolgrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px){
  .p-workshop .toolgrid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px){
  .p-workshop .toolgrid{
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Karten-Buttons */
.p-workshop .toolcard{
  all: unset;
  box-sizing: border-box;
  width: 100%;
  min-height: 96px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,140,60,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
    rgba(0,0,0,.24);
  color: #e6e1d3;
  cursor: pointer;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.p-workshop .toolcard:hover{
  transform: translateY(-2px);
  border-color: rgba(255,140,60,.22);
  background:
    linear-gradient(180deg, rgba(255,140,60,.06), rgba(255,140,60,.025)),
    rgba(0,0,0,.28);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.p-workshop .toolcard:focus-visible{
  outline: 2px solid rgba(255,185,110,.55);
  outline-offset: 2px;
}

.p-workshop .toolcard .dot{
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: #ff8a3a;
  box-shadow: 0 0 6px rgba(255,138,58,.45);
}

.p-workshop .toolcard-text{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.p-workshop .toolcard-text strong{
  font-family: "Cormorant Upright", serif;
  font-size: 22px;
  line-height: 1.1;
  color: #f1e7d7;
}

.p-workshop .toolcard-text small{
  font-size: 13px;
  line-height: 1.4;
  color: rgba(230,225,211,.72);
}

/* Mobile Feinschliff */
@media (max-width: 480px){
  .p-workshop .forge-hero{
    min-height: 180px;
  }

  .p-workshop .forge-hero-img{
    min-height: 180px;
  }

  .p-workshop .forge-hero-overlay{
    padding: 16px;
  }

  .p-workshop .toolcard{
    min-height: 88px;
    padding: 12px 14px;
  }

  .p-workshop .toolcard-text strong{
    font-size: 20px;
  }
}
  
    


.p-workshop .forge-modern{
  display:grid;
  gap:18px;
}

.p-workshop .forge-hero{
  position:relative;
  min-height:220px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,120,40,.18);
  background:#120d0a;
  isolation:isolate;
}

.p-workshop .forge-hero-img{
  width:100%;
  height:100%;
  min-height:220px;
  max-height:380px;y
  object-fit:cover;
  display:block;
  filter:brightness(1.02) saturate(1.05) contrast(1.02);
  transform:scale(1);
  transition:
    transform .35s ease,
    filter .35s ease;
}

/* Grundstimmung */
.p-workshop .forge-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 41% 58%, rgba(210,235,255,.16), transparent 16%),
    radial-gradient(circle at 43% 61%, rgba(255,255,255,.10), transparent 24%);
  z-index:1;
  pointer-events:none;
  transition:opacity .25s ease, background .25s ease;
}

/* Overlay-Text */
.p-workshop .forge-hero-overlay{
  position:absolute;
  inset:0;
  z-index:4;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:20px;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.18) 42%,
    rgba(0,0,0,.62) 100%
  );
}

.p-workshop .forge-hero-overlay h2{
  margin:0 0 6px;
  color:#f3e7d0;
  font-family:"Cormorant Upright", serif;
  font-size:clamp(26px, 4vw, 40px);
  line-height:1.05;
}

.p-workshop .forge-hero-overlay p{
  margin:0;
  color:rgba(255,240,220,.86);
  font-size:15px;
}

/* Funken-Layer */
.p-workshop .forge-fire{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  opacity:0;
  transition:opacity .22s ease;
}

/* Glühender Kern auf dem Amboss */
.p-workshop .glow-core{
  position:absolute;
  left:44%;
  top:50%;
  width:120px;
  height:120px;
  transform:translate(-50%, -50%);
  border-radius:50%;
  background:
    radial-gradient(circle,
      rgba(255,255,255,.98) 0%,
      rgba(230,245,255,.92) 18%,
      rgba(190,225,255,.58) 38%,
      rgba(150,205,255,.22) 58%,
      rgba(150,205,255,0) 76%);
  filter:blur(14px);
  opacity:.52;
  transition:opacity .2s ease, transform .2s ease;
  mix-blend-mode:screen;
}

/* Einzelne Funken */
.p-workshop .ember{
  --x: 44%;
  --y: 50%;
  --dx: 20px;
  --dy: -70px;
  --size: 6px;
  --dur: 1.2s;
  --delay: 0s;

  position:absolute;
  left:var(--x);
  top:var(--y);
  width:var(--size);
  height:var(--size);
  margin-left:calc(var(--size) / -2);
  margin-top:calc(var(--size) / -2);
  border-radius:50%;
  opacity:0;
  background:radial-gradient(circle,
    #fff8cf 0%,
    #ffd36b 34%,
    #ffae2b 58%,
    #ff7a00 78%,
    rgba(255,122,0,0) 100%);
  filter:blur(.35px);
  box-shadow:
    0 0 7px rgba(255,210,90,.95),
    0 0 14px rgba(255,140,20,.60);
}

/* Unterschiedliche Bahnen */
.p-workshop .ember-1  { --dx:-18px; --dy:-92px;  --size:5px; --dur:1.05s; --delay:.02s; }
.p-workshop .ember-2  { --dx:22px;  --dy:-84px;  --size:4px; --dur:1.12s; --delay:.16s; }
.p-workshop .ember-3  { --dx:-42px; --dy:-70px;  --size:6px; --dur:1.22s; --delay:.07s; }
.p-workshop .ember-4  { --dx:40px;  --dy:-96px;  --size:5px; --dur:1.18s; --delay:.22s; }
.p-workshop .ember-5  { --dx:-10px; --dy:-120px; --size:4px; --dur:1.35s; --delay:.30s; }
.p-workshop .ember-6  { --dx:10px;  --dy:-132px; --size:3px; --dur:1.4s;  --delay:.42s; }
.p-workshop .ember-7  { --dx:58px;  --dy:-62px;  --size:5px; --dur:1.0s;  --delay:.10s; }
.p-workshop .ember-8  { --dx:-58px; --dy:-66px;  --size:5px; --dur:1.08s; --delay:.24s; }
.p-workshop .ember-9  { --dx:26px;  --dy:-138px; --size:3px; --dur:1.48s; --delay:.34s; }
.p-workshop .ember-10 { --dx:-30px; --dy:-128px; --size:4px; --dur:1.32s; --delay:.28s; }

@keyframes forgeSpark{
  0%{
    opacity:0;
    transform:translate(0,0) scale(.6);
  }
  10%{
    opacity:1;
  }
  65%{
    opacity:.95;
  }
  100%{
    opacity:0;
    transform:translate(var(--dx), var(--dy)) scale(.18);
  }
}

@keyframes forgePulse{
  0%,100%{
    transform:translate(-50%, -50%) scale(1);
    opacity:.48;
  }
  50%{
    transform:translate(-50%, -50%) scale(1.16);
    opacity:.82;
  }
}

@keyframes forgeHeat{
  0%,100%{
    opacity:.9;
  }
  50%{
    opacity:1;
  }
}

/* Aktivierung über Klasse */
.p-workshop .forge-hero.is-hot .forge-fire{
  opacity:1;
}

.p-workshop .forge-hero.is-hot .glow-core{
  animation:forgePulse .7s ease-in-out infinite;
}

.p-workshop .forge-hero.is-hot .ember{
  animation:forgeSpark var(--dur) ease-out infinite;
  animation-delay:var(--delay);
}

.p-workshop .forge-hero.is-hot .forge-hero-img{
  filter:brightness(1.08) saturate(1.08) contrast(1.03);
  transform:scale(1.015);
}

.p-workshop .forge-hero.is-hot::before{
  background:
    radial-gradient(circle at 41% 58%, rgba(215,240,255,.34), transparent 18%),
    radial-gradient(circle at 43% 61%, rgba(255,255,255,.18), transparent 28%);
}

/* Responsives Grid */
.p-workshop .toolgrid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

@media (min-width:640px){
  .p-workshop .toolgrid{
    grid-template-columns:1fr 1fr;
  }
}

@media (min-width:980px){
  .p-workshop .toolgrid{
    grid-template-columns:repeat(4, 1fr);
  }
}

/* Kartenbuttons */
.p-workshop .toolcard{
  all:unset;
  box-sizing:border-box;
  width:100%;
  min-height:96px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,120,40,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
    rgba(0,0,0,.24);
  color:#e6e1d3;
  cursor:pointer;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.p-workshop .toolcard:hover,
.p-workshop .toolcard:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(255,120,40,.42);
  background:
    linear-gradient(180deg, rgba(255,120,40,.10), rgba(255,120,40,.04)),
    rgba(0,0,0,.28);
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}

.p-workshop .toolcard:focus-visible{
  outline:2px solid rgba(255,170,90,.85);
  outline-offset:2px;
}

.p-workshop .toolcard .dot{
  flex:0 0 12px;
  width:12px;
  height:12px;
  margin-top:7px;
  border-radius:50%;
  background:#ff6a00;
  box-shadow:0 0 6px #ff6a00, 0 0 12px #ff4500, 0 0 18px rgba(255,0,0,.6);
}

.p-workshop .toolcard-text{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.p-workshop .toolcard-text strong{
  font-family:"Cormorant Upright", serif;
  font-size:22px;
  line-height:1.1;
  color:#f1e7d7;
}

.p-workshop .toolcard-text small{
  font-size:13px;
  line-height:1.4;
  color:rgba(230,225,211,.72);
}

@media (max-width:480px){
  .p-workshop .forge-hero{
    min-height:180px;
  }

  .p-workshop .forge-hero-img{
    min-height:180px;
  }

  .p-workshop .forge-hero-overlay{
    padding:16px;
  }

  .p-workshop .toolcard{
    min-height:88px;
    padding:12px 14px;
  }

  .p-workshop .toolcard-text strong{
    font-size:20px;
  }

  .p-workshop .glow-core{
    width:70px;
    height:70px;
  }
}

/* Weniger Bewegung, falls gewünscht */
@media (prefers-reduced-motion: reduce){
  .p-workshop .forge-fire,
  .p-workshop .ember,
  .p-workshop .glow-core,
  .p-workshop .forge-hero-img,
  .p-workshop .toolcard{
    animation:none !important;
    transition:none !important;
  }
}           

/*  p-export */

/* --- Spezifische Styles für Export-Seiten (.p-export) --- */

.p-export .manuscript-lounge {
    min-height: 500px;
    padding: 34px;
    border-radius: 26px;
    background: 
        radial-gradient(circle at top left, rgba(90,130,255,0.08), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 18px 50px rgba(0,0,0,0.28);
}

.p-export .manuscript-hero {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.p-export .eyebrow,
.p-export .panel-kicker,
.p-export .meta-label {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210,220,255,0.45);
}

.p-export .manuscript-title {
    margin: 8px 0 10px 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.p-export .hero-subline {
    max-width: 680px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(230,238,255,0.72);
}

.p-export .hero-meta {
    min-width: 240px;
    padding-left: 22px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.p-export .meta-value {
    margin: 6px 0 18px 0;
    color: rgba(244,247,255,0.92);
    font-size: 14px;
    line-height: 1.5;
}

.p-export .hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 22px;
}

/* Panels */
.p-export .feature-panel,
.p-export .soft-panel {
    position: relative;
    overflow: visible;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018));
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.p-export .feature-panel::before,
.p-export .soft-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.03) 35%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 65%, transparent 100%);
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.2s ease;
    pointer-events: none;
}

.p-export .feature-panel {
    padding: 30px;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: 
        radial-gradient(circle at top right, rgba(214,184,107,0.10), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.p-export .feature-panel h2 {
    margin: 10px 0 10px 0;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: color 0.28s ease, transform 0.28s ease;
}

.p-export .feature-panel p {
    max-width: 520px;
    margin: 0 0 22px 0;
    color: rgba(230,238,255,0.76);
    line-height: 1.65;
    font-size: 15px;
}

.p-export .feature-panel:hover,
.p-export .soft-panel:hover {
    transform: translateY(-6px);
    border-color: rgba(214,184,107,0.28);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 18px 40px rgba(0,0,0,0.28),
        0 0 0 1px rgba(214,184,107,0.06);
}

.p-export .feature-panel:hover h2,
.p-export .soft-panel:hover h3 {
    color: rgba(255,245,220,0.96);
    transform: translateY(-1px);
}

.p-export .side-panels {
    display: grid;
    gap: 18px;
}

.p-export .soft-panel {
    padding: 24px;
}

.p-export .soft-panel h3 {
    margin: 10px 0 8px 0;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.28s ease, transform 0.28s ease;
}

.p-export .soft-panel p {
    margin: 0 0 18px 0;
    color: rgba(230,238,255,0.70);
    line-height: 1.55;
    font-size: 14px;
}

.p-export .panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */
.p-export .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.18s ease;
}

.p-export .btn-gold {
    align-self: flex-start;
    padding: 0 20px;
    background: linear-gradient(135deg, rgba(214,184,107,0.95), rgba(175,145,76,0.95));
    color: #15110a;
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(140,110,40,0.22);
}

.p-export .btn-gold:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    color: white;
}

.p-export .btn-ghost {
    background: rgba(255,255,255,0.03);
    color: rgba(245,248,255,0.90);
    border: 1px solid rgba(255,255,255,0.10);
}

.p-export .btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

/* Tooltips & Vellum Hints */
.p-export .docx-with-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.p-export .vellum-hint {
    position: relative;
    display: inline-flex; 
    margin-left: 6px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(214,184,107,0.55);
    cursor: default;
    transition: color 0.2s ease;
    z-index: 10;
    align-items: center;
}

.p-export .vellum-tooltip {
    position: absolute;
    top: -30px;
    right: calc(100% - 30px);
    transform: translateY(-50%) translateX(6px);
    width: 220px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(30,30,40,0.95), rgba(20,20,28,0.92));
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(235,240,255,0.85);
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(214,184,107,0.06);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 999;
}

.p-export .vellum-tooltip::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(25,25,35,0.95);
    border-left: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.p-export .vellum-hint:hover .vellum-tooltip,
.p-export .vellum-tooltip:hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.p-export .vellum-hint:hover {
    color: rgba(214,184,107,0.9);
}

.p-export .vellum-tooltip a {
    color: rgba(214,184,107,0.9);
    text-decoration: none;
    font-weight: 500;
}

.p-export .vellum-tooltip a:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 980px) {
    .p-export .manuscript-hero {
        flex-direction: column;
    }

    .p-export .hero-meta {
        min-width: 0;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        padding-top: 18px;
    }

    .p-export .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* p-export-book */

/* --- Spezifische Styles für die Buch-Export-Ansicht (.p-export-book) --- */

/* Variablen nur für den Buch-Modus oder global verfügbar machen */
.p-export-book {
  --book-max-width: min(1700px, calc(100vw - 36px));
  --book-height: calc(100vh - 180px);
  --paper: #f7efdf;
  --paper-2: #efe2ca;
  --ink: #2b221b;
  --muted: #7a6854;
  --bg1: #302117;
  --bg2: #1a120d;

  background: radial-gradient(circle at top, #4a3425 0%, var(--bg1) 32%, var(--bg2) 100%);
  min-height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Grundstruktur */
.p-export-book .book-shell {
  max-width: var(--book-max-width);
  margin: 0 auto;
  padding: 18px 18px 24px;
  height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.p-export-book .book-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.p-export-book .book-title {
  margin: 0;
  color: #f5eadf;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.p-export-book .book-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.p-export-book .book-stage-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-export-book .book-stage {
  position: relative;
  width: 100%;
  height: var(--book-height);
  min-height: 420px;
  max-height: calc(100vh - 190px);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Das Buch-Layout (Spread) */
.p-export-book .book-spread {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,.42), 0 8px 24px rgba(0,0,0,.28);
  background: #d7c4a7;
}

.p-export-book .book-spread::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to right,
      rgba(0,0,0,.08) 0%,
      rgba(0,0,0,.03) 7%,
      rgba(0,0,0,.18) 48.8%,
      rgba(0,0,0,.30) 50%,
      rgba(0,0,0,.18) 51.2%,
      rgba(0,0,0,.03) 93%,
      rgba(0,0,0,.08) 100%);
}

/* Die einzelnen Seiten */
.p-export-book .page {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 130px),
    linear-gradient(90deg, rgba(0,0,0,.03), rgba(255,255,255,.02)),
    var(--paper);
  color: var(--ink);
  padding: 85px 70px 50px;
  box-sizing: border-box;
  height: 100%;
}

.p-export-book .page.left { box-shadow: inset -18px 0 26px rgba(0,0,0,.06); }
.p-export-book .page.right { box-shadow: inset 18px 0 26px rgba(0,0,0,.06); }

.p-export-book .page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .27;
  background-image: repeating-linear-gradient(
      to bottom,
      rgba(90,70,50,.045) 0px,
      rgba(90,70,50,.045) 1px,
      transparent 1px,
      transparent 30px
    );
}

.p-export-book .page-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow: hidden;
}

.p-export-book .page-header { margin-bottom: 60px; }
.p-export-book .page.right .page-header { margin-top: 60px; }

.p-export-book .chapter-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  text-align: center;
}

.p-export-book .chapter-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  color: #201812;
  text-align: center;
}

.p-export-book .chapter-divider {
  margin-top: 18px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.3em;
  color: #7a6854;
}

/* Typografie */
.p-export-book .book-text {
  font-family: "Cormorant", Georgia, serif;
  font-size: 21px;
  line-height: 1.48;
  text-align: justify;
  hyphens: auto;
  word-break: break-word;
}

.p-export-book .book-text p {
  margin: 0;
  text-indent: 1.5em;
}

.p-export-book .book-text p.first-para { text-indent: 0; }

.p-export-book .book-empty-note {
  margin-top: 18px;
  color: var(--muted);
  font-style: italic;
  font-family: "Cormorant", Georgia, serif;
  font-size: 18px;
}

.p-export-book .page-number {
  position: absolute;
  bottom: 18px;
  z-index: 3;
  font-size: 13px;
  color: var(--muted);
}

.p-export-book .page.left .page-number { left: 48px; }
.p-export-book .page.right .page-number { right: 48px; }

.p-export-book .page.blank .page-inner {
  border-radius: 8px;
  border: 1px dashed rgba(80,60,40,.16);
}

/* Controls & UI */
.p-export-book .controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 48px;
}

.p-export-book .controls .navbtn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  color: #fff7ee;
  font-size: 15px;
  transition: transform .12s ease, background .12s ease, opacity .12s ease;
  backdrop-filter: blur(4px);
}

.p-export-book .controls .navbtn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
}

.p-export-book .controls .navbtn:disabled {
  opacity: .4;
  cursor: default;
  transform: none;
}

.p-export-book .page-indicator {
  color: #ead9c7;
  font-size: 14px;
  min-width: 180px;
  text-align: center;
}

.p-export-book .loading-note,
.p-export-book .error-note {
  color: #ead9c7;
  text-align: center;
  padding: 10px 0;
}

.p-export-book .measure-root {
  position: absolute;
  left: -99999px;
  top: 0;
  width: calc((var(--book-max-width) / 2) - 1px);
  height: calc(var(--book-height) - 60px - 50px);
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

/* Media Queries */
@media (max-width: 980px) {
  .p-export-book { overflow: auto; }

  .p-export-book .book-shell { height: auto; min-height: 100vh; }

  .p-export-book .book-stage { height: auto; max-height: none; }

  .p-export-book .book-spread { grid-template-columns: 1fr; height: auto; min-height: 0; }

  .p-export-book .book-spread::before { display: none; }

  .p-export-book .page.left { padding: 42px 70px 70px 48px; }
  .p-export-book .page.right { padding: 42px 48px 70px 70px; }

  .p-export-book .page.left,
  .p-export-book .page.right { box-shadow: none; }

  .p-export-book .page.right { border-top: 1px solid rgba(80,60,40,.14); }

  .p-export-book .page.left .page-number,
  .p-export-book .page.right .page-number { left: 24px; right: auto; }

  .p-export-book .measure-root { width: calc(100vw - 36px); height: 75vh; }
}

@media print {
  .p-export-book .topbar,
  .p-export-book .controls,
  .p-export-book .book-toolbar { display: none !important; }

  .p-export-book { background: #fff !important; overflow: visible; }

  .p-export-book .book-shell { max-width: none; height: auto; padding: 0; }

  .p-export-book .book-stage { height: auto; max-height: none; }

  .p-export-book .book-spread { box-shadow: none; }

  .p-export-book .page { min-height: 260mm; }

  .p-export-book .measure-root { display: none !important; }
}

/* p-billing */
/* --- Spezifische Styles für die Abrechnung / Billing (.p-billing) --- */



.p-billing .credits {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.p-billing .credit-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(159, 240, 198, .30);
    background: rgba(159, 240, 198, .10);
    color: rgba(232, 238, 247, .92);
    font-weight: 800;
    font-size: 13px;
}

.p-billing .credit-chip small {
    color: var(--muted);
    font-weight: 700;
}

/* Call to Action Box */
.p-billing .cta {
    margin-top: 16px;
    border: 1px solid rgba(232, 238, 247, .12);
    background: radial-gradient(900px 300px at 20% 20%, rgba(120, 183, 255, .18), transparent 60%),
                radial-gradient(900px 300px at 80% 20%, rgba(159, 240, 198, .14), transparent 60%),
                rgba(0, 0, 0, .12);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.p-billing .cta p {
    margin: 0;
    color: var(--muted);
    max-width: 80ch;
}

.p-billing .muted-note {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

/* Pricing Grid */
.p-billing .pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 12px;
}

.p-billing .price {
    cursor: pointer;
    border: 1px solid rgba(232, 238, 247, .12);
    background: linear-gradient(180deg, rgba(14, 22, 34, .92), rgba(12, 18, 28, .92));
    border-radius: 18px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.p-billing .price.featured {
    border-color: rgba(159, 240, 198, .30);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
    transform: translateY(-2px);
}

.p-billing .price.selected {
    border: 2px solid #444499;
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .15);
}

.p-billing .price:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.p-billing .price .badge-top {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(159, 240, 198, .30);
    background: rgba(159, 240, 198, .10);
    color: rgba(232, 238, 247, .92);
}

.p-billing .price h3 {
    margin: 0 0 6px;
}

.p-billing .price .p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.p-billing .price .amount {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.02em;
    margin: 6px 0 10px;
}

.p-billing .price .amount small {
    font-size: 14px;
    color: var(--muted);
    font-weight: 700;
}

.p-billing .price ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
}

.p-billing .price li {
    margin: 8px 0;
}

.p-billing .price .actions {
    margin-top: 12px;
}

/* Media Queries für Billing */
@media (min-width: 920px) {
    .p-billing .cta {
        flex-direction: row;
        align-items: center;
    }
    
    .p-billing .pricing {
        grid-template-columns: 1fr 1fr 1fr;
    }
}


/* p-info-story '/
/* --- Spezifische Styles für Info-Story Seiten (.p-info-story) --- */

.p-info-story {
  --bg: #0b1220;
  --bg-soft: #111a2b;
  --card: #162236;
  --card-2: #1b2b45;
  --text: #e9f0ff;
  --muted: #a9b7d4;
  --line: rgba(255, 255, 255, .08);
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --good: #86efac;
  --warn: #fcd34d;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --radius: 22px;
  --max: 1120px;

  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
}

/* Layout & Container */
.p-info-story .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.p-info-story .section {
  padding: 36px 0;
}

/* Typografie */
.p-info-story h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  max-width: 900px;
}

.p-info-story h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.02em;
}

.p-info-story .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(125, 211, 252, .22);
  border-radius: 999px;
  background: rgba(125, 211, 252, .08);
  color: #d9f6ff;
  font-size: .95rem;
  margin-bottom: 20px;
}

.p-info-story .lead {
  margin: 20px 0 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
}

.p-info-story .section-intro {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 820px;
}

/* Buttons & Interaktion */
.p-info-story .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.p-info-story .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: .18s ease;
  border: 1px solid transparent;
}

.p-info-story .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111e;
  box-shadow: var(--shadow);
}

.p-info-story .btn-secondary {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
  color: var(--text);
}

.p-info-story .btn:hover {
  transform: translateY(-1px);
}

/* Grids & Cards */
.p-info-story .grid {
  display: grid;
  gap: 22px;
}

.p-info-story .grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p-info-story .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.p-info-story .card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.p-info-story .card p {
  margin: 0;
  color: var(--muted);
}

/* Steps & Listen */
.p-info-story .sb_steps {
  display: grid;
  gap: 16px;
  counter-reset: item;
}

.p-info-story .sb_step {
  position: relative;
  padding: 18px 18px 18px 68px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.p-info-story .sb_step::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #05111d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.p-info-story .sb_step strong {
  display: block;
  margin-bottom: 6px;
}

.p-info-story .sb_step span {
  color: var(--muted);
}

.p-info-story .pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.p-info-story .pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: #dbe7ff;
  font-size: .95rem;
}

/* Callouts & Templates (Code/Text) */
.p-info-story .callout {
  border-left: 4px solid var(--warn);
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(252, 211, 77, .08);
  color: #fff3bf;
  margin-top: 12px;
}

.p-info-story .template {
  margin-top: 20px;
  background: #0a1424;
  border: 1px solid rgba(125, 211, 252, .16);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.p-info-story .template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}

.p-info-story .template-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #dff7ff;
}

.p-info-story pre {
  margin: 0;
  padding: 24px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #dce8ff;
  font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: linear-gradient(180deg, rgba(125, 211, 252, .03), rgba(167, 139, 250, .03));
}

/* Listen & Mini-Cards */
.p-info-story .two-col-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.p-info-story .mini {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.p-info-story .mini strong {
  display: block;
  margin-bottom: 8px;
}

.p-info-story .mini p {
  margin: 0;
  color: var(--muted);
}

.p-info-story footer {
  padding: 42px 0 70px;
  color: var(--muted);
}

/* Media Queries */
@media (max-width: 860px) {
  .p-info-story .grid-2,
  .p-info-story .two-col-list {
    grid-template-columns: 1fr;
  }
  
  .p-info-story pre {
    padding: 18px;
  }
}

/* p-dashboard */
/* --- Spezifische Styles für das Dashboard (.p-dashboard) --- */

/* Grundstruktur & Stacks */
.p-dashboard .dashboard-stack {
  display: grid;
  gap: 14px;
}

/* Grids - Definition der Spaltenverhältnisse */
.p-dashboard .dashboard-grid-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.p-dashboard .dashboard-grid-main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.p-dashboard .dashboard-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Metriken & Karten */
.p-dashboard .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
  align-items: stretch;
}

/* Spezialfall: Letztes Tile im Hero-Bereich erzwingt 2 Spalten */
.p-dashboard .dashboard-grid-hero > .tile:last-child .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p-dashboard .metric-card {
  border: 1px solid rgba(232, 238, 247, .10);
  border-radius: 18px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 128px;
}

.p-dashboard .metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.25;
}

.p-dashboard .metric-value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: rgba(232, 238, 247, .96);
  white-space: nowrap;
}

.p-dashboard .metric-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* Focus Cards & Elemente */
.p-dashboard .focus-card {
  display: grid;
  gap: 12px;
}

.p-dashboard .focus-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.p-dashboard .focus-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.p-dashboard .focus-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}

.p-dashboard .focus-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Status-Pillen & Deltas */
.p-dashboard .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.p-dashboard .status-pill.is-good { color: #b8f7c3; }
.p-dashboard .status-pill.is-active { color: #8fd3ff; }
.p-dashboard .status-pill.is-warn { color: #ffe08a; }
.p-dashboard .status-pill.is-muted { color: #a9b4c4; }

.p-dashboard .delta-pos { color: #b8f7c3; }
.p-dashboard .delta-neg { color: #ffb3b3; }
.p-dashboard .delta-neutral { color: var(--muted); }

/* Listen & Tabellen */
.p-dashboard .chapter-list-wrap {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

.p-dashboard .list-clean {
  margin: 0;
  padding-left: 18px;
}

.p-dashboard .list-clean li {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.p-dashboard .compact-table td,
.p-dashboard .compact-table th {
  vertical-align: top;
}

.p-dashboard .subtle-block {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Formulare */
.p-dashboard .form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.p-dashboard .form-row label {
  white-space: nowrap;
}

/* ===== Sekundäre Dashboard-Bereiche (Verfeinerungen) ===== */

.p-dashboard .dashboard-grid-main .tile,
.p-dashboard .dashboard-grid-bottom .tile {
  padding: 14px;
}

.p-dashboard .dashboard-grid-main .tile h3,
.p-dashboard .dashboard-grid-bottom .tile h3 {
  font-size: 20px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.p-dashboard .dashboard-grid-main .table th,
.p-dashboard .dashboard-grid-main .table td {
  font-size: 13px;
  padding: 8px 8px;
}

.p-dashboard .dashboard-grid-main .status-pill {
  font-size: 11px;
  padding: 3px 8px;
}

.p-dashboard .dashboard-grid-main .list-clean li {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.p-dashboard .dashboard-grid-bottom .subtle-block {
  font-size: 12px;
  line-height: 1.5;
}

/* Responsive Anpassungen */
@media (max-width: 1100px) {
  .p-dashboard .dashboard-grid-hero,
  .p-dashboard .dashboard-grid-main,
  .p-dashboard .dashboard-grid-bottom,
  .p-dashboard .metric-grid {
    grid-template-columns: 1fr !important; /* Erzwingt Einspaltigkeit mobil */
  }
}




.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.product-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
}

.product-switch a {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.product-switch a:hover {
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.05);
}

.product-switch a.active {
    color: #fff;
    background: rgba(255,255,255,0.10);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.product-switch a + a {
    position: relative;
}

.product-switch a + a::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

/* ============================================================
   V3 Designbasis: helles Autorenstudio
   ============================================================ */

:root{
  --bg: #f4efe4;
  --panel: #fffaf0;
  --panel2:#f8f1e4;
  --text: #24201a;
  --muted:#6f675a;
  --line: rgba(74,62,45,.16);
  --accent:#8f642f;
  --accent2:#5f806e;
  --shadow: 0 14px 32px rgba(74,62,45,.10);
  --radius: 10px;
  --border: rgba(74,62,45,.18);
  --card-bg: #fffaf0;
  --field-bg: #fffdf7;
}

body{
  background:
    linear-gradient(180deg, #fbf7ee 0%, #f4efe4 48%, #eee5d6 100%);
  background-attachment: fixed;
  color: var(--text);
  letter-spacing: 0;
}

.topbar{
  background: rgba(255,250,240,.88);
  border-bottom: 1px solid rgba(74,62,45,.14);
  box-shadow: 0 8px 28px rgba(74,62,45,.08);
}

.topbar-inner{
  min-height: 58px;
}

.brand{
  color: #221c14;
  letter-spacing: .055em;
}

.brand small{
  color: rgba(143,100,47,.90);
}

.nav a{
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 10px;
  border-color: rgba(74,62,45,.16);
  background: rgba(255,253,247,.74);
}

.nav a img{
  display: block;
  opacity: .74;
  transition: opacity .16s ease, transform .16s ease;
}

.nav a:hover,
.nav a.primary{
  color: var(--text);
  border-color: rgba(143,100,47,.34);
  background: rgba(143,100,47,.09);
}

.nav a:hover img,
.nav a.primary img{
  opacity: .95;
  transform: translateY(-1px);
}

.product-switch{
  border-radius: 10px;
  border-color: rgba(74,62,45,.16);
  background: rgba(255,253,247,.74);
}

.product-switch a{
  border-radius: 8px;
  color: rgba(36,32,26,.70);
  font-size: 13px;
  font-weight: 700;
}

.product-switch a:hover,
.product-switch a.active{
  color: var(--text);
  background: rgba(143,100,47,.10);
  box-shadow: inset 0 0 0 1px rgba(143,100,47,.16);
}

.hero,
.panel,
.tile,
.p-index .price,
.p-billing .price{
  border-radius: 10px;
  border-color: rgba(74,62,45,.16);
  background:
    linear-gradient(180deg, rgba(255,252,246,.98), rgba(248,241,228,.98));
  box-shadow: 0 12px 30px rgba(74,62,45,.09);
  color: var(--text);
}

.hero:before{
  display: none;
}

.tile p,
.lead,
.hint,
.tagline,
.meta,
.p-index .price .p,
.p-billing .price .p{
  color: var(--muted);
}

.preview{
  border-color: rgba(74,62,45,.14);
  background:
    linear-gradient(135deg, rgba(143,100,47,.08), rgba(95,128,110,.08)),
    #f7efe1;
  color: rgba(36,32,26,.68);
}

.sidebar{
  position: sticky;
  top: 76px;
}

.sidebar .title{
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.sidebar .sub{
  color: rgba(111,103,90,.92);
  margin-bottom: 14px;
}

.navlist{
  gap: 8px;
}

.navitem{
  min-height: 48px;
  border-radius: 9px;
  border-color: rgba(74,62,45,.12);
  background: rgba(255,253,247,.62);
  color: rgba(36,32,26,.88);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.navitem:hover{
  transform: translateX(2px);
  border-color: rgba(143,100,47,.32);
  background: rgba(143,100,47,.08);
}

.navitem.active{
  border-color: rgba(95,128,110,.42);
  background: rgba(95,128,110,.12);
  box-shadow: inset 3px 0 0 rgba(95,128,110,.72);
}

.pill{
  border-radius: 8px;
  border-color: rgba(74,62,45,.13);
  background: rgba(255,250,240,.72);
  color: rgba(111,103,90,.96);
}

.navitem.active .pill{
  border-color: rgba(95,128,110,.34);
  color: #385a49;
}

.navitem-special,
.navitem-special:hover,
.navitem-special.active{
  border-color: rgba(143,100,47,.34);
  background: rgba(143,100,47,.09);
  box-shadow: inset 3px 0 0 rgba(143,100,47,.62);
}

.credit-chip{
  min-height: 38px;
  border-radius: 10px;
  border-color: rgba(95,128,110,.34);
  background: rgba(95,128,110,.10);
  color: #26382f;
}

.credit-chip small{
  color: rgba(111,103,90,.92);
}

.topbar .credit-chip{
  min-height: 38px;
  border-radius: 10px;
  border-color: rgba(95,128,110,.34);
  background: rgba(95,128,110,.10);
  color: #26382f;
}

.topbar .credit-chip small{
  color: rgba(111,103,90,.92);
}

.btn,
button.btn{
  min-height: 38px;
  border-radius: 8px;
  border-color: rgba(74,62,45,.16);
  background: rgba(255,253,247,.78);
  color: var(--text);
}

.btn:hover,
button.btn:hover{
  border-color: rgba(143,100,47,.36);
  background: rgba(143,100,47,.10);
}

input,
textarea,
select,
.editor-box,
.editor-box textarea{
  color: var(--text);
}

.editor-box,
textarea,
input,
select{
  background-color: var(--field-bg);
  border-color: rgba(74,62,45,.16);
}

.table,
.kiout,
.kibox,
.chapter-card,
.book-main,
.character-main,
.step,
.cta{
  border-color: rgba(74,62,45,.14);
  background: rgba(255,253,247,.76);
  color: var(--text);
}

.table th{
  color: var(--text);
}

.table td,
.kiout,
.lock{
  color: var(--muted);
}

.chip,
.lock{
  border-color: rgba(74,62,45,.14);
  background: rgba(255,250,240,.74);
  color: var(--muted);
}

.amount,
.p-index .price .amount,
.p-billing .price .amount{
  color: var(--text);
}

.p-index .price.featured,
.p-billing .price.featured,
.p-billing .price.selected{
  border-color: rgba(143,100,47,.36);
  background: linear-gradient(180deg, rgba(255,250,240,.99), rgba(243,231,211,.99));
}

.p-billing .price.featured{
  box-shadow: 0 12px 30px rgba(74,62,45,.10);
}

.p-billing .price.selected{
  border-color: rgba(95,128,110,.56);
  background:
    linear-gradient(180deg, rgba(255,253,247,.99), rgba(241,235,219,.99));
  box-shadow: inset 5px 0 0 rgba(95,128,110,.78), 0 14px 32px rgba(74,62,45,.12);
}

.p-billing .price.featured.selected{
  box-shadow: inset 5px 0 0 rgba(95,128,110,.78), 0 14px 32px rgba(74,62,45,.12);
}

.badge-top{
  border-color: rgba(143,100,47,.42);
  background: rgba(143,100,47,.18);
  color: #6f491f;
}

.p-billing .price .badge-top{
  border-color: rgba(143,100,47,.42);
  background: #f1dcc0;
  color: #5a3718;
}

::selection{
  background: rgba(143,100,47,.22);
  color: var(--text);
}

/* Public Startseite: literarischer erster Eindruck */
.p-index .wrap{
  max-width: 1120px;
}

.p-index .section-spaced{
  margin-top: 22px;
}

.p-index .section-title{
  margin: 24px 2px 12px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.p-index .hero.hero-literary{
  min-height: calc(100vh - 94px);
  align-items: center;
  padding: 72px 24px 56px;
  border-color: rgba(143,100,47,.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,252,246,.96), rgba(246,237,220,.98));
  box-shadow: 0 18px 44px rgba(74,62,45,.10);
}

.p-index .hero.hero-literary .hero-copy{
  max-width: 780px;
}

.p-index .hero-title{
  color: #211b13;
  letter-spacing: 0;
  font-size: clamp(48px, 7vw, 88px);
}

.p-index .hero-quote{
  color: #4b3c2a;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
}

.p-index .hero-break{
  color: rgba(143,100,47,.62);
}

.p-index .hero-line{
  color: var(--muted);
  font-size: 16px;
}

.p-index .hero-cta{
  border-color: rgba(143,100,47,.34) !important;
  background: rgba(143,100,47,.12) !important;
}

.p-index .signup-bonus{
  margin-top: 12px;
  color: rgba(111,103,90,.88);
  font-size: 14px;
  opacity: 0;
  transform: translateY(6px);
  letter-spacing: 0;
  animation: bonusFade 1.6s ease forwards;
  animation-delay: .6s;
}

.p-index{
  min-height: 100svh;
}

.p-index > .wrap{
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
}

.p-index .hero.hero-literary{
  min-height: 0;
  flex: 1 1 auto;
  margin-bottom: 12px;
}

.p-index footer{
  flex: 0 0 auto;
}

@keyframes bonusFade{
  0%{ opacity:0; transform:translateY(6px); }
  100%{ opacity:.78; transform:translateY(0); }
}

.p-index .tiles{
  gap: 16px;
}

.p-index .tile{
  padding: 18px;
}

.p-index .tile h2{
  color: var(--text);
}

.p-index .preview{
  min-height: 190px;
  border-radius: 8px;
  background: #f3eadb;
}

.p-index .tile-image{
  width: 100%;
}

.p-index .feature-image{
  width: 100%;
  height: auto;
  display: block;
}

.p-index .feature-image-chapters{
  transform: translateY(22px);
}

.p-index .feature-image-characters{
  transform: translateY(-34px);
}

.p-index .row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 920px){
  .p-index .row{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.p-index .step,
.p-index details{
  border-color: rgba(74,62,45,.14);
  background: rgba(255,253,247,.78);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(74,62,45,.07);
}

.p-index .step .num{
  border-color: rgba(143,100,47,.30);
  background: rgba(143,100,47,.10);
  color: #6f491f;
}

.p-index .step h3,
.p-index details summary{
  color: var(--text);
}

.p-index .cta{
  border-color: rgba(143,100,47,.18);
  background: linear-gradient(180deg, rgba(255,252,246,.95), rgba(242,231,211,.95));
  border-radius: 10px;
}

.p-index .cta-copy{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-index .cta-title{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.p-index .plain-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.p-index .payment-note{
  margin-top: 14px;
}

.p-index .payment-methods{
  color: var(--muted);
  text-align: center;
  font-family: "Cormorant", Georgia, serif;
  font-size: 18px;
}

.p-index .payment-icons{
  margin-top: 8px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: .82;
}

.p-index .final-cta{
  display: flex;
  justify-content: center;
}

/* Schreibkompass: Einstieg vor dem Bücherregal */
.p-kompass .kompass-wrap{
  max-width: 1120px;
  padding-top: 24px;
}

.kompass-hero{
  border: 1px solid rgba(143,100,47,.18);
  background: linear-gradient(180deg, rgba(255,252,246,.98), rgba(246,237,220,.98));
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(74,62,45,.10);
  padding: clamp(28px, 5vw, 58px);
}

.kompass-kicker,
.kompass-card-kicker{
  margin: 0 0 10px;
  color: #8f642f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kompass-hero h1{
  max-width: 840px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

.kompass-hero .lead{
  max-width: 760px;
  font-size: 17px;
}

.kompass-actions{
  margin-top: 20px;
}

.kompass-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

@media (min-width: 760px){
  .kompass-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px){
  .kompass-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kompass-card{
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(74,62,45,.14);
  background: rgba(255,253,247,.78);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(74,62,45,.08);
  padding: 18px;
}

.kompass-card h2{
  color: var(--text);
  font-size: 29px;
  line-height: 1.05;
}

.kompass-card p:not(.kompass-card-kicker){
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.kompass-card .btn{
  margin-top: auto;
}

.kompass-card-sage{
  background: linear-gradient(180deg, rgba(250,253,248,.92), rgba(235,244,237,.92));
}

.kompass-card-brass{
  background: linear-gradient(180deg, rgba(255,252,246,.96), rgba(244,232,210,.96));
}

.kompass-card-ink{
  background: linear-gradient(180deg, rgba(252,250,246,.96), rgba(235,238,236,.96));
}

.kompass-note{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid rgba(95,128,110,.24);
  background: rgba(95,128,110,.09);
  border-radius: 10px;
  padding: 18px;
}

.kompass-note h2{
  color: var(--text);
  font-size: 30px;
}

.kompass-note p{
  margin: 0;
  max-width: 78ch;
  color: var(--muted);
}

@media (min-width: 820px){
  .kompass-note{
    flex-direction: row;
    align-items: center;
  }
}

/* Bücherregal: Projektübersicht nach dem Kompass */
.p-start .wrap{
  max-width: 1120px;
}

.p-start .bookshelf-hero{
  padding: clamp(26px, 4vw, 46px);
}

.p-start .bookshelf-hero h1{
  color: var(--text);
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.p-start-idea_finder .bookshelf-hero{
  border-color: rgba(95, 128, 110, .24);
  background:
    linear-gradient(180deg, rgba(250, 253, 248, .96), rgba(241, 246, 232, .94));
}

.p-start-idea_finder .bookshelf-hero .lead{
  max-width: 760px;
}

.p-start-idea_finder .entry-panel{
  background: linear-gradient(180deg, rgba(255, 253, 247, .92), rgba(246, 237, 220, .78));
}

.p-start-stuck_help .bookshelf-hero{
  border-color: rgba(143, 100, 47, .24);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, .96), rgba(247, 236, 214, .94));
}

.p-start-stuck_help .bookshelf-hero .lead{
  max-width: 760px;
}

.p-start-stuck_help .entry-panel,
.p-start-stuck_help .blockade-dialog{
  background: linear-gradient(180deg, rgba(255, 253, 247, .92), rgba(247, 236, 214, .78));
}

.p-start-stuck_help .blockade-dialog .idea-option:has(input:checked){
  border-color: rgba(143, 100, 47, .46);
  background: rgba(143, 100, 47, .12);
  box-shadow: inset 0 0 0 1px rgba(143, 100, 47, .18);
}

.p-start-lektor_only .bookshelf-hero{
  border-color: rgba(74, 94, 115, .22);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .96), rgba(235, 240, 239, .94));
}

.p-start-lektor_only .bookshelf-hero .lead{
  max-width: 780px;
}

.p-start-lektor_only .entry-panel,
.p-start-lektor_only .lektor-intake-dialog{
  background: linear-gradient(180deg, rgba(255, 253, 247, .92), rgba(235, 240, 239, .78));
}

.p-start-lektor_only .lektor-intake-dialog .idea-option:has(input:checked){
  border-color: rgba(74, 94, 115, .42);
  background: rgba(74, 94, 115, .10);
  box-shadow: inset 0 0 0 1px rgba(74, 94, 115, .16);
}

.p-start .bookshelf-section{
  margin-top: 18px;
}

.p-start .entry-panel{
  margin-top: 18px;
  border: 1px solid rgba(95, 128, 110, .24);
  background: linear-gradient(180deg, rgba(250, 253, 248, .90), rgba(238, 246, 239, .86));
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(74, 62, 45, .07);
  padding: 18px;
}

.p-start .entry-panel h2{
  margin: 0 0 8px;
  color: var(--text);
  font-size: 30px;
}

.p-start .entry-panel p:last-child{
  margin: 0;
  max-width: 78ch;
  color: var(--muted);
}

.p-start .start-create-panel{
  padding: 0;
  overflow: hidden;
}

.p-start .start-create-summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.p-start .start-create-summary::-webkit-details-marker{
  display: none;
}

.p-start .start-create-summary > span:first-child{
  display: grid;
  gap: 4px;
}

.p-start .start-create-summary #form-title{
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
}

.p-start .start-create-toggle{
  pointer-events: none;
  white-space: nowrap;
}

.p-start .start-create-panel[open] .start-create-toggle{
  color: var(--muted);
}

.p-start .start-create-panel[open] .start-create-toggle::before{
  content: "Geöffnet";
}

.p-start .start-create-panel[open] .start-create-toggle{
  font-size: 0;
}

.p-start .start-create-panel[open] .start-create-toggle::before{
  font-size: 14px;
}

.p-start .start-create-body{
  padding: 0 18px 18px;
}

.p-start .start-create-head{
  margin-bottom: 14px;
}

.p-start #book-form{
  display: grid;
  gap: 14px;
}

.p-start #book-form .row{
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 820px){
  .p-start #book-form .row{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .p-start #book-form .row:nth-of-type(2){
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.p-start label{
  display: block;
  margin: 0 0 6px;
  color: #4b3c2a;
  font-size: 13px;
  font-weight: 800;
}

.p-start input,
.p-start select,
.p-start textarea{
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(74,62,45,.18);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--text);
  padding: 9px 11px;
  font: inherit;
}

.p-start input:focus,
.p-start select:focus,
.p-start textarea:focus{
  outline: 2px solid rgba(143,100,47,.18);
  border-color: rgba(143,100,47,.42);
}

.p-start textarea{
  min-height: 112px;
  resize: vertical;
}

.p-start .idea-dialog{
  display: grid;
  gap: 16px;
  border: 1px solid rgba(143, 100, 47, .18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 253, 247, .90), rgba(246, 237, 220, .74));
  padding: 18px;
}

.p-start .idea-dialog-head h3{
  margin: 0 0 8px;
  color: var(--text);
  font-size: 29px;
}

.p-start .idea-dialog-head p:last-child{
  margin: 0;
  max-width: 74ch;
  color: var(--muted);
}

.p-start .idea-question{
  margin: 0;
  border: 0;
  padding: 0;
}

.p-start .idea-question legend{
  margin-bottom: 10px;
  color: #4b3c2a;
  font-size: 14px;
  font-weight: 900;
}

.p-start .idea-options{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.p-start .idea-option{
  margin: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(74, 62, 45, .14);
  border-radius: 8px;
  background: rgba(255, 253, 247, .80);
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
}

.p-start .idea-option:hover{
  border-color: rgba(143, 100, 47, .30);
  background: rgba(255, 250, 240, .96);
}

.p-start .idea-option input{
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: #8f642f;
}

.p-start .idea-option:has(input:checked){
  border-color: rgba(95, 128, 110, .46);
  background: rgba(95, 128, 110, .12);
  box-shadow: inset 0 0 0 1px rgba(95, 128, 110, .18);
}

.p-start .idea-option span{
  font-size: 14px;
  font-weight: 800;
}

.p-start .idea-free-note label{
  margin-bottom: 6px;
}

.p-start .card{
  border: 0;
  background: transparent;
  padding: 0;
}

.p-start .book-list{
  gap: 12px;
}

.p-start .book-card{
  border-radius: 10px;
  border: 1px solid rgba(74,62,45,.14);
  background: rgba(255,253,247,.82);
  box-shadow: 0 12px 26px rgba(74,62,45,.07);
}

.p-start .book-card:hover{
  border-color: rgba(143,100,47,.28);
  background: rgba(255,250,240,.96);
  box-shadow: 0 16px 32px rgba(74,62,45,.10);
}

.p-start .book-main{
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 12px 14px;
}

.p-start .book-icon{
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border-color: rgba(143,100,47,.18);
  background: linear-gradient(180deg, rgba(143,100,47,.12), rgba(143,100,47,.07));
  color: #6f491f;
  font-family: "Cormorant", Georgia, serif;
  font-size: 26px;
  font-weight: 900;
}

.p-start .book-title{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 24px;
  font-weight: 800;
}

.p-start .book-meta{
  color: var(--muted);
  font-size: 13px;
}

.p-start .book-mode{
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border: 1px solid rgba(95, 128, 110, .22);
  border-radius: 999px;
  background: rgba(95, 128, 110, .10);
  color: #496552;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.p-start .book-actions{
  padding-right: 12px;
}

.p-start .book-edit-btn,
.p-start .book-delete-btn{
  width: 38px;
  height: 38px;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(74,62,45,.12);
  background: rgba(255,250,240,.70);
}

.p-start .book-edit-btn:hover,
.p-start .book-delete-btn:hover{
  border-color: rgba(143,100,47,.28);
  background: rgba(143,100,47,.08);
}

.p-start .empty-bookshelf{
  border: 1px dashed rgba(143,100,47,.26);
  border-radius: 10px;
  background: rgba(255,253,247,.60);
  padding: 18px;
}

.p-start .empty-bookshelf h3{
  color: var(--text);
  margin-top: 0;
}

.p-start .empty-bookshelf p{
  margin: 0;
  color: var(--muted);
}

/* Projekt-Werkbank: erster Raum innerhalb eines Buchprojekts */
.p-dashboard .project-workspace-tile{
  min-height: 500px;
}

.p-dashboard .project-meta{
  text-align: right;
}

.p-dashboard .workspace-title{
  color: var(--text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.p-dashboard .dashboard-stack{
  margin-top: 18px;
  gap: 16px;
}

.p-dashboard .dashboard-grid-hero,
.p-dashboard .dashboard-grid-main,
.p-dashboard .dashboard-grid-bottom{
  gap: 16px;
}

.p-dashboard .book-journey{
  position: relative;
  display: grid;
  gap: 20px;
}

.p-dashboard .journey-next{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid rgba(95, 128, 110, .24);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(250,253,248,.95), rgba(238,246,239,.78));
  box-shadow: 0 14px 30px rgba(74,62,45,.07);
  padding: 18px;
}

.p-dashboard .journey-next h2{
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.02;
}

.p-dashboard .journey-next p{
  margin: 0;
  max-width: 74ch;
  color: var(--muted);
}

.p-dashboard .journey-list{
  position: relative;
  display: grid;
  gap: 14px;
}

.p-dashboard .journey-list::before{
  content: "";
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 38px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(95,128,110,.38), rgba(143,100,47,.18));
}

.p-dashboard .journey-rail{
  display: none;
}

.p-dashboard .journey-step{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.p-dashboard .journey-node{
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 78px;
  min-height: 78px;
  border: 1px solid rgba(74,62,45,.16);
  border-radius: 999px;
  background: rgba(255,253,247,.96);
  box-shadow: 0 10px 22px rgba(74,62,45,.09);
  color: var(--text);
  text-align: center;
}

.p-dashboard .journey-node img{
  width: 38px;
  height: 38px;
  object-fit: contain;
  opacity: .82;
  filter: sepia(.10) saturate(.86);
}

.p-dashboard .journey-node strong{
  font-family: "Cormorant", Georgia, serif;
  font-size: 32px;
  line-height: .9;
}

.p-dashboard .journey-node small,
.p-dashboard .journey-node em{
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.p-dashboard .journey-core .journey-node{
  width: 112px;
  min-height: 112px;
  margin-left: -17px;
  border-color: rgba(143,100,47,.30);
  background: radial-gradient(circle at 50% 38%, rgba(255,253,247,1), rgba(244,235,220,.96));
  box-shadow: 0 18px 42px rgba(74,62,45,.16);
}

.p-dashboard .journey-core .journey-node img{
  width: 34px;
  height: 34px;
  margin-top: 6px;
  opacity: .72;
}

.p-dashboard .journey-core-stats{
  display: grid;
  place-items: center;
  gap: 1px;
  margin-top: 3px;
}

.p-dashboard .journey-core .journey-node strong{
  font-size: 30px;
}

.p-dashboard .journey-core .journey-node small,
.p-dashboard .journey-core .journey-node em{
  font-size: 10px;
}

.p-dashboard .journey-card{
  display: grid;
  gap: 5px;
  border: 1px solid rgba(74,62,45,.13);
  border-radius: 12px;
  background: rgba(255,253,247,.76);
  box-shadow: 0 10px 22px rgba(74,62,45,.055);
  padding: 14px 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.p-dashboard .journey-step:hover .journey-card{
  transform: translateY(-1px);
  border-color: rgba(143,100,47,.28);
  background: rgba(255,253,247,.96);
  box-shadow: 0 16px 30px rgba(74,62,45,.10);
}

.p-dashboard .journey-label{
  color: #8f642f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.p-dashboard .journey-title{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.p-dashboard .journey-text{
  color: var(--muted);
  line-height: 1.55;
}

.p-dashboard .journey-meta{
  color: #6f675a;
  font-size: 13px;
  font-weight: 700;
}

.p-dashboard .journey-step.is-done .journey-node{
  border-color: rgba(95,128,110,.34);
  background: rgba(238,246,239,.96);
  color: #385a49;
}

.p-dashboard .journey-step.is-active .journey-node{
  border-color: rgba(143,100,47,.34);
  background: rgba(255,246,223,.98);
  color: #6f491f;
}

.p-dashboard .journey-step.is-warn .journey-node{
  border-color: rgba(160,120,45,.38);
  background: #fff6df;
  color: #7a521f;
}

.p-dashboard .dashboard-details{
  border: 1px solid rgba(74,62,45,.13);
  border-radius: 12px;
  background: rgba(255,253,247,.62);
  box-shadow: 0 10px 22px rgba(74,62,45,.055);
  overflow: hidden;
}

.p-dashboard .dashboard-details summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.p-dashboard .dashboard-details summary::-webkit-details-marker{
  display: none;
}

.p-dashboard .dashboard-details summary > span:first-child{
  display: grid;
  gap: 4px;
}

.p-dashboard .dashboard-details summary strong{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 26px;
  line-height: 1.05;
}

.p-dashboard .dashboard-details-toggle{
  pointer-events: none;
  white-space: nowrap;
}

.p-dashboard .dashboard-details[open] .dashboard-details-toggle{
  font-size: 0;
  color: var(--muted);
}

.p-dashboard .dashboard-details[open] .dashboard-details-toggle::before{
  content: "Schließen";
  font-size: 14px;
}

.p-dashboard .dashboard-details-body{
  display: grid;
  gap: 16px;
  padding: 0 16px 16px;
}

@media (max-width: 720px){
  .p-dashboard .journey-list::before{
    left: 29px;
    top: 29px;
    bottom: 29px;
  }

  .p-dashboard .journey-step{
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .p-dashboard .journey-node{
    width: 58px;
    min-height: 58px;
  }

  .p-dashboard .journey-node img{
    width: 30px;
    height: 30px;
  }

  .p-dashboard .journey-node strong{
    font-size: 25px;
  }

  .p-dashboard .journey-core .journey-node{
    width: 76px;
    min-height: 76px;
    margin-left: -9px;
  }

  .p-dashboard .journey-core .journey-node strong{
    font-size: 24px;
  }

  .p-dashboard .journey-core .journey-node img{
    width: 28px;
    height: 28px;
  }

  .p-dashboard .journey-title{
    font-size: 23px;
  }
}

.p-dashboard .metric-card,
.p-dashboard .focus-box,
.p-dashboard .next-step-box,
.p-dashboard .subtle-block{
  border: 1px solid rgba(74,62,45,.14);
  border-radius: 10px;
  background: rgba(255,253,247,.74);
  box-shadow: 0 10px 22px rgba(74,62,45,.06);
}

.p-dashboard .metric-card{
  padding: 16px 14px;
}

.p-dashboard .metric-label,
.p-dashboard .focus-kicker,
.p-dashboard .next-step-kicker{
  color: #8f642f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.p-dashboard .metric-value{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.p-dashboard .metric-sub,
.p-dashboard .focus-meta,
.p-dashboard .next-step-text,
.p-dashboard .setup-progress{
  color: var(--muted);
}

.p-dashboard .focus-title,
.p-dashboard .next-step-title{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 26px;
  font-weight: 800;
}

.p-dashboard .next-step-box{
  padding: 16px;
}

.p-dashboard .intake-summary{
  border: 1px solid rgba(95, 128, 110, .24);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 253, 247, .92), rgba(238, 246, 239, .76));
  box-shadow: 0 12px 28px rgba(74, 62, 45, .07);
  padding: 18px;
}

.p-dashboard .intake-summary-head{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.p-dashboard .intake-summary h2{
  margin: 0 0 8px;
  color: var(--text);
  font-size: 30px;
}

.p-dashboard .intake-summary-head p:last-child{
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
}

.p-dashboard .intake-summary-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.p-dashboard .intake-summary-item{
  border: 1px solid rgba(74, 62, 45, .12);
  border-radius: 8px;
  background: rgba(255, 253, 247, .78);
  padding: 11px 12px;
}

.p-dashboard .intake-summary-item span,
.p-dashboard .intake-summary-note span{
  display: block;
  margin-bottom: 5px;
  color: #8f642f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.p-dashboard .intake-summary-item strong{
  color: var(--text);
  font-size: 15px;
}

.p-dashboard .intake-summary-note{
  margin-top: 12px;
  border: 1px solid rgba(143, 100, 47, .16);
  border-radius: 8px;
  background: rgba(255, 250, 240, .72);
  padding: 12px;
}

.p-dashboard .intake-summary-note p{
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.p-dashboard .next-step-action{
  margin-top: 12px;
}

.p-dashboard .setup-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.p-dashboard .setup-list li{
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(74,62,45,.12);
  background: rgba(255,250,240,.72);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-dashboard .setup-list li::before{
  content: "○";
  color: rgba(143,100,47,.66);
  font-size: 12px;
}

.p-dashboard .setup-list li.done{
  color: #385a49;
  border-color: rgba(95,128,110,.30);
  background: rgba(95,128,110,.10);
}

.p-dashboard .setup-list li.done::before{
  content: "✓";
  color: #385a49;
}

.p-dashboard .status-pill{
  border-color: rgba(74,62,45,.14);
  background: rgba(255,250,240,.70);
}

.p-dashboard .status-pill.is-good,
.p-dashboard .delta-pos{
  color: #385a49;
}

.p-dashboard .status-pill.is-active{
  color: #395f77;
}

.p-dashboard .status-pill.is-warn{
  color: #8f642f;
}

.p-dashboard .status-pill.is-muted,
.p-dashboard .delta-neutral{
  color: var(--muted);
}

.p-dashboard .delta-neg{
  color: #9b4f45;
}

.p-dashboard .dashboard-warning{
  border-color: rgba(160, 120, 45, 0.34);
  background: #fff6df;
  color: var(--text);
}

.p-dashboard .dashboard-warning strong{
  color: #6f491f;
}

.p-dashboard .table{
  background: rgba(255,253,247,.72);
}

.p-dashboard .table th{
  color: var(--text);
  border-bottom-color: rgba(74,62,45,.12);
}

.p-dashboard .table td{
  color: var(--muted);
  border-bottom-color: rgba(74,62,45,.10);
}

.p-lektor-start .hero,
.p-lektor-document .hero{
  border: 1px solid rgba(74, 94, 115, .18);
  background: linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(235, 240, 239, .94));
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(74, 62, 45, .10);
}

.p-lektor-start .entry-panel{
  margin-top: 18px;
}

.p-lektor-start .doc-card,
.p-lektor-document .meta-box,
.p-lektor-document .segment-box,
.p-lektor-document .result-box{
  border: 1px solid rgba(74, 62, 45, .14);
  background: rgba(255, 253, 247, .82);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(74, 62, 45, .06);
}

.p-lektor-start .doc-pill{
  border: 1px solid rgba(74, 62, 45, .12);
  background: rgba(255, 250, 240, .76);
  color: var(--muted);
}

.p-lektor-start #toggle-forms-btn{
  border: 1px solid rgba(95, 128, 110, .28);
  background: rgba(95, 128, 110, .12);
  color: #385a49;
  border-radius: 8px;
}

.p-lektor-start .primary-upload-section .tile{
  border-color: rgba(74, 94, 115, .18);
  background: linear-gradient(180deg, rgba(255, 253, 247, .96), rgba(235, 240, 239, .78));
}

.p-lektor-document .lektor-document-hero h1{
  color: var(--text);
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1;
}

.p-lektor-document .meta-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.p-lektor-document .meta-box strong,
.p-lektor-document .segment-title{
  color: var(--text);
}

.p-lektor-document .lektor-next-box{
  margin-top: 14px;
  border: 1px solid rgba(160, 120, 45, .24);
  border-radius: 8px;
  background: #fff6df;
  color: var(--text);
  padding: 12px 14px;
}

.p-lektor-document .import-next-box{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.p-lektor-document .lektor-next-box p{
  margin: 5px 0 0;
  color: var(--muted);
}

.p-lektor-document .import-preview-note{
  margin: 0 0 14px;
  color: var(--muted);
}

.p-lektor-document .import-warning-list{
  margin-top: 14px;
  border: 1px solid rgba(160, 120, 45, .20);
  border-radius: 8px;
  background: rgba(255, 250, 240, .72);
  padding: 12px 14px;
  color: var(--text);
}

.p-lektor-document .import-warning-list p{
  margin: 6px 0 0;
  color: var(--muted);
}

.p-lektor-document .segment-import-state{
  border: 1px solid rgba(74, 94, 115, .16);
  border-radius: 999px;
  background: rgba(235, 240, 239, .75);
  color: #4a5e73;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.p-lektor-document .segment-head{
  border-bottom: 1px solid rgba(74, 62, 45, .10);
  padding-bottom: 12px;
}

.p-lektor-document .segment-meta{
  color: var(--muted);
}

.p-lektor-document .segment-text,
.p-lektor-document .result-text,
.p-lektor-document .panel-text{
  border: 1px solid rgba(74, 62, 45, .12);
  background: rgba(255, 250, 240, .74);
  color: var(--text);
  border-radius: 8px;
}

.p-lektor-document .result-box div[style*="background:#111"]{
  background: rgba(255, 250, 240, .82) !important;
  border: 1px solid rgba(74, 62, 45, .12);
  color: var(--text);
}

.p-lektor-document .inline-suggestion-popover{
  background: #fffdf7;
  border-color: rgba(74, 62, 45, .16);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(74, 62, 45, .18);
}

.p-lektor-document .inline-popover-close{
  color: var(--muted);
}

.p-lektor-document .inline-popover-pill{
  border-color: rgba(74, 62, 45, .12);
  background: rgba(255, 250, 240, .78);
}

.p-dashboard .list-clean li{
  color: var(--muted);
}

.p-dashboard .subtle-block{
  padding: 12px;
}

.p-dashboard .subtle-block-offset{
  margin-top: 12px;
}

.p-dashboard .settings-form{
  margin-bottom: 16px;
}

.p-dashboard .subtle-heading{
  margin: 0 0 10px;
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 22px;
}

.p-dashboard input{
  min-height: 38px;
  border: 1px solid rgba(74,62,45,.18);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--text);
  padding: 8px 10px;
}

.p-dashboard .hint-offset{
  margin-top: 8px;
}

.p-dashboard canvas{
  background: rgba(255,253,247,.56);
  border: 1px solid rgba(74,62,45,.10);
  border-radius: 10px;
  padding: 8px;
}

/* Kapitelübersicht: Struktur und Kapitelanlage */
.p-chapters .chapters-workspace-tile{
  min-height: 500px;
}

.p-chapters .workspace-title{
  color: var(--text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.p-chapters .workspace-intro{
  color: var(--muted);
  margin-top: 0;
}

.p-chapters .row{
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.p-chapters .row .col{
  flex: 1;
}

.p-chapters .row .col:first-child{
  flex: 0 0 160px;
}

.p-chapters label{
  color: #4b3c2a;
  font-size: 13px;
  font-weight: 800;
}

.p-chapters input,
.p-chapters select,
.p-chapters textarea{
  width: 100%;
  border: 1px solid rgba(74,62,45,.18);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--text);
  padding: 9px 11px;
  font: inherit;
}

.p-chapters textarea{
  min-height: 220px;
  line-height: 1.55;
}

.p-chapters input:focus,
.p-chapters select:focus,
.p-chapters textarea:focus{
  outline: 2px solid rgba(143,100,47,.18);
  border-color: rgba(143,100,47,.42);
}

.p-chapters .small-number-input{
  width: 88px;
}

.p-chapters .start-screen{
  margin: 20px 0 28px;
  padding: 24px;
  border: 1px solid rgba(143,100,47,.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,252,246,.96), rgba(246,237,220,.96));
}

.p-chapters .start-screen h2{
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
}

.p-chapters .start-screen-intro{
  color: var(--muted);
  max-width: 900px;
  line-height: 1.6;
}

.p-chapters .start-options{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.p-chapters .start-option{
  border: 1px solid rgba(74,62,45,.14);
  border-radius: 10px;
  padding: 20px;
  background: rgba(255,253,247,.76);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.p-chapters .start-option:hover{
  transform: translateY(-2px);
  border-color: rgba(143,100,47,.30);
  background: rgba(255,250,240,.94);
}

.p-chapters .start-option h3{
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.1;
}

.p-chapters .start-option p,
.p-chapters .start-option ul{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.p-chapters .start-option ul{
  padding-left: 18px;
}

.p-chapters .start-option .btn-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.p-chapters .start-choice-panel{
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255,253,247,.76);
  border: 1px solid rgba(74,62,45,.14);
}

.p-chapters .start-choice-panel.hidden,
.p-chapters .content-gated.hidden{
  display: none;
}

.p-chapters .choice-badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(143,100,47,.10);
  color: #6f491f;
  margin-bottom: 10px;
}

.p-chapters .choice-copy{
  margin-bottom: 12px;
}

.p-chapters .choice-actions,
.p-chapters .chapter-toolbar{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.p-chapters .chapter-toolbar{
  margin-bottom: 14px;
}

.p-chapters .chapter-count-label{
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-chapters .inline-link-btn{
  background: none;
  border: 0;
  padding: 0;
  color: #8f642f;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.p-chapters #chapter-form{
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(74,62,45,.14);
  border-radius: 10px;
  background: rgba(255,253,247,.72);
}

.p-chapters #chapter-form h3{
  margin-top: 0;
  color: var(--text);
}

.p-chapters .suggestion-card{
  cursor: default;
}

.p-chapters .suggestion-outline{
  margin: 8px 0 12px 18px;
}

.p-chapters .compact-form{
  margin: 0;
}

.p-chapters .section-heading-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.p-chapters .section-heading-row h3{
  margin: 0;
  color: var(--text);
}

.p-chapters .character-card{
  border-radius: 10px;
  border-color: rgba(74,62,45,.14);
  background: rgba(255,253,247,.78);
  box-shadow: 0 10px 24px rgba(74,62,45,.07);
}

.p-chapters .character-card:hover{
  border-color: rgba(143,100,47,.28);
  background: rgba(255,250,240,.94);
  box-shadow: 0 14px 28px rgba(74,62,45,.10);
}

.p-chapters .character-icon{
  border-radius: 8px;
  border-color: rgba(143,100,47,.18);
  background: rgba(143,100,47,.10);
  color: #6f491f;
  font-family: "Cormorant", Georgia, serif;
  font-size: 24px;
  font-weight: 900;
}

.p-chapters .character-item.prolog .character-icon,
.p-chapters .character-item.epilog .character-icon{
  border-color: rgba(95,128,110,.24);
  background: linear-gradient(180deg, rgba(95,128,110,.14), rgba(95,128,110,.08));
  color: #385a49;
}

.p-chapters .character-title{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 24px;
  font-weight: 800;
}

.p-chapters .character-meta{
  color: var(--muted);
}

.p-chapters .status{
  border: 1px solid rgba(74,62,45,.12);
  background: rgba(255,250,240,.72);
  color: var(--muted);
}

.p-chapters .status.done{
  border-color: rgba(95,128,110,.30);
  background: rgba(95,128,110,.10);
  color: #385a49;
}

.p-chapters .manuscript-import-panel{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0;
  border: 1px solid rgba(74,94,115,.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,253,247,.96), rgba(235,240,239,.76));
  box-shadow: 0 14px 32px rgba(74,62,45,.08);
  padding: 18px;
}

.p-chapters .manuscript-import-panel h2{
  margin: 2px 0 6px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.15;
}

.p-chapters .manuscript-import-panel p{
  margin: 0;
  color: var(--muted);
}

.p-chapters .review-progress-copy{
  margin-top: 8px !important;
  color: #4a5e73 !important;
  font-weight: 700;
}

.p-chapters .manuscript-import-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.p-chapters .btn-muted,
.p-chapters .btn-muted:disabled{
  border-color: rgba(74,62,45,.16);
  background: rgba(255,250,240,.72);
  color: var(--muted);
  cursor: not-allowed;
}

.p-chapters .imported-chapter .character-card{
  border-color: rgba(74,94,115,.16);
  background: rgba(255,253,247,.88);
}

.p-chapters .lektor-status{
  border-color: rgba(74,94,115,.18);
  background: rgba(235,240,239,.78);
  color: #4a5e73;
}

.p-chapters .revision-list-panel{
  margin: 18px 0;
  border: 1px solid rgba(74,62,45,.14);
  border-radius: 10px;
  background: rgba(255,253,247,.86);
  padding: 18px;
}

.p-chapters .revision-list-panel h2{
  margin: 2px 0 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.15;
}

.p-chapters .revision-list{
  display: grid;
  gap: 10px;
}

.p-chapters .revision-item{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(74,62,45,.12);
  border-radius: 8px;
  background: rgba(255,250,240,.72);
  color: var(--text);
  padding: 12px;
  text-decoration: none;
}

.p-chapters .revision-item:hover{
  border-color: rgba(143,100,47,.24);
  background: rgba(255,250,240,.96);
}

.p-chapters .revision-item p{
  margin: 5px 0 0;
  color: var(--muted);
}

.p-export .manuscript-revision-details{
  display: block;
}

.p-export .manuscript-revision-details summary{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.p-export .manuscript-revision-details summary::-webkit-details-marker{
  display: none;
}

.p-export .manuscript-revision-details summary > span:first-child{
  display: grid;
  gap: 4px;
}

.p-export .manuscript-revision-details summary strong{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 28px;
  line-height: 1.05;
}

.p-export .manuscript-revision-details .revision-list{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.p-export .manuscript-revision-details .revision-item{
  display: grid;
  gap: 8px;
  border: 1px solid rgba(74,62,45,.12);
  border-radius: 8px;
  background: rgba(255,250,240,.72);
  color: var(--text);
  padding: 12px;
  text-decoration: none;
}

.p-export .manuscript-revision-details .revision-item strong{
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.p-export .manuscript-revision-details .revision-item:hover{
  border-color: rgba(143,100,47,.24);
  background: rgba(255,250,240,.96);
}

.p-export .manuscript-revision-details .revision-item p{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.p-export .manuscript-revision-details .revision-item .status{
  justify-self: flex-start;
  font-size: 11px;
}

.p-export .lektor-status{
  border-color: rgba(74,94,115,.18);
  background: rgba(235,240,239,.78);
  color: #4a5e73;
}

/* Einzelnes Kapitel: Schreibarbeitsraum */
.p-chapter .sidebar-container{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 980px){
  .p-chapter .sidebar-container{
    position: sticky;
    top: 76px;
    align-self: start;
  }

  .p-chapter .sidebar{
    position: static;
  }
}

.p-chapter .workspace-title{
  color: var(--text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.p-chapter .chapter-meta{
  text-align: right;
}

.p-chapter .word-count{
  color: #6f491f;
  font-weight: 800;
}

.p-chapter .goal-done{
  color: #385a49;
}

.p-chapter .chapter-top-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.p-chapter .chapter-review-panel{
  margin: 18px 0;
  border: 1px solid rgba(74,94,115,.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,253,247,.96), rgba(235,240,239,.72));
  box-shadow: 0 14px 32px rgba(74,62,45,.08);
  padding: 18px;
}

.p-chapter .chapter-review-panel .tile-head{
  margin-bottom: 10px;
}

.p-chapter .chapter-review-panel h2{
  margin: 2px 0 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.15;
}

.p-chapter .review-summary{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.p-chapter .review-block{
  margin-top: 14px;
}

.p-chapter .review-block h3{
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
}

.p-chapter .review-block ul{
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.p-chapter .review-findings{
  display: grid;
  gap: 10px;
}

.p-chapter .review-finding{
  border: 1px solid rgba(74,62,45,.12);
  border-radius: 8px;
  background: rgba(255,250,240,.72);
  padding: 12px;
}

.p-chapter .review-finding-head{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.p-chapter .review-finding p{
  margin: 8px 0 0;
  color: var(--muted);
}

.p-chapter .review-finding.is-remembered{
  border-color: rgba(95,128,110,.30);
  background: rgba(95,128,110,.08);
}

.p-chapter .review-finding.is-ignored{
  opacity: .68;
}

.p-chapter .review-finding.is-done{
  border-color: rgba(95,128,110,.34);
  background: rgba(95,128,110,.12);
}

.p-chapter .review-finding-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.p-chapter .review-finding-actions .btn{
  padding: 7px 10px;
  min-height: 0;
}

.p-chapter .review-elaboration{
  margin-top: 12px;
  border: 1px solid rgba(74,94,115,.16);
  border-radius: 8px;
  background: rgba(235,240,239,.55);
  padding: 12px;
}

.p-chapter .review-elaboration p{
  margin: 0 0 8px;
}

.p-chapter .review-preview-text{
  white-space: pre-wrap;
  margin: 8px 0;
  border: 1px solid rgba(74,62,45,.12);
  border-radius: 8px;
  background: rgba(255,253,247,.86);
  color: var(--text);
  padding: 10px;
  line-height: 1.55;
}

.p-chapter .review-insert-preview{
  margin-top: 8px;
}

.p-chapter .review-next-step{
  margin-top: 14px;
  border: 1px solid rgba(160,120,45,.22);
  border-radius: 8px;
  background: #fff6df;
  padding: 12px;
  color: var(--text);
}

.p-chapter .review-next-step p{
  margin: 5px 0 0;
  color: var(--muted);
}

.p-chapter .lektor-status{
  border-color: rgba(74,94,115,.18);
  background: rgba(235,240,239,.78);
  color: #4a5e73;
}

.p-chapter .tool-icon{
  height: 22px;
  vertical-align: bottom;
  opacity: .72;
}

.p-chapter .tool-section{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(74,62,45,.10);
}

.p-chapter .section-title{
  color: #8f642f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.p-chapter .tool-info{
  color: var(--muted);
}

.p-chapter .btn-sub{
  color: var(--muted);
}

.p-chapter .badge{
  background: rgba(95,128,110,.12);
  color: #385a49;
}

.p-chapter .recommended .btn{
  box-shadow: inset 3px 0 0 rgba(95,128,110,.58);
}

.p-chapter .rolling-attention{
  border-color: rgba(143,100,47,.38);
  background: rgba(143,100,47,.12);
}

.p-chapter #chapter-form{
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(74,62,45,.14);
  border-radius: 10px;
  background: rgba(255,253,247,.72);
}

.p-chapter #chapter-form table{
  width: 100%;
  border-collapse: collapse;
}

.p-chapter #chapter-form td{
  padding: 0 8px 10px 0;
  vertical-align: bottom;
}

.p-chapter label{
  color: #4b3c2a;
  font-size: 13px;
  font-weight: 800;
}

.p-chapter input,
.p-chapter textarea{
  width: 100%;
  border: 1px solid rgba(74,62,45,.18);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--text);
  padding: 9px 11px;
  font: inherit;
}

.p-chapter input:focus,
.p-chapter textarea:focus{
  outline: 2px solid rgba(143,100,47,.18);
  border-color: rgba(143,100,47,.42);
}

.p-chapter .outline-actions{
  margin-top: 10px;
}

.p-chapter .outline{
  min-height: 240px;
}

.p-chapter .draft-header{
  color: var(--text);
}

.p-chapter .draft-box{
  border-radius: 10px;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.p-chapter .draft-dark{
  background: #fffdf7;
  color: #24201a;
  border: 1px solid rgba(74,62,45,.18);
  box-shadow: inset 0 0 38px rgba(143,100,47,.035);
}

.p-chapter .draft-paper{
  background: #fbf3e5;
  color: #1f1a14;
  border: 1px solid rgba(143,100,47,.20);
  box-shadow: inset 0 0 34px rgba(143,100,47,.045);
}

.p-chapter .theme-switch .icon{
  color: var(--muted);
}

.p-chapter .slider{
  background: rgba(74,62,45,.18);
}

.p-chapter input:checked + .slider{
  background: rgba(143,100,47,.55);
}

.p-chapter .tts-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.p-chapter .left-actions{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.p-chapter .tts-block{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.p-chapter .tts-provider{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.p-chapter .tts-option{
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.p-chapter .tts-option input[type="radio"]{
  width: auto;
  transform: scale(.85);
  margin: 0;
  cursor: pointer;
}

.p-chapter .tts-option.premium span{
  color: #8f642f;
  font-weight: 800;
}

.p-chapter #ttsCostHint{
  color: var(--muted);
  font-size: 11px;
}

.p-chapter .tts-result-box{
  margin-top: 10px;
  color: var(--muted);
}

.p-chapter .chapter-details,
.p-chapter .card details{
  margin-top: 12px;
  border: 1px solid rgba(74,62,45,.12);
  border-radius: 10px;
  background: rgba(255,253,247,.72);
  padding: 10px 12px;
}

.p-chapter .chapter-details summary,
.p-chapter .card summary{
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.p-chapter .chapter-pre{
  white-space: pre-wrap;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(74,62,45,.12);
  background: #fffaf0;
  color: var(--text);
  line-height: 1.55;
}

/* Figuren: Character Cards und Dialoge */
.p-characters .workspace-title{
  color: var(--text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.p-characters .page-meta{
  text-align: right;
}

.p-characters .grid2{
  align-items: start;
}

.p-characters .editor,
.p-characters .kibox{
  border: 1px solid rgba(74,62,45,.14);
  border-radius: 10px;
  background: rgba(255,253,247,.76);
  box-shadow: 0 12px 26px rgba(74,62,45,.07);
}

.p-characters .editor h3,
.p-characters .kibox h3{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 28px;
  letter-spacing: 0;
}

.p-characters .character-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-characters .character-card{
  border-radius: 10px;
  border-color: rgba(74,62,45,.14);
  background: rgba(255,253,247,.78);
  box-shadow: 0 10px 24px rgba(74,62,45,.07);
}

.p-characters .character-card:hover{
  border-color: rgba(143,100,47,.28);
  background: rgba(255,250,240,.94);
  box-shadow: 0 14px 28px rgba(74,62,45,.10);
}

.p-characters .character-icon{
  border-radius: 8px;
  border-color: rgba(143,100,47,.18);
  background: rgba(143,100,47,.10);
  color: #6f491f;
  font-family: "Cormorant", Georgia, serif;
  font-size: 24px;
  font-weight: 900;
}

.p-characters .character-title{
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 24px;
  font-weight: 800;
}

.p-characters .character-meta{
  color: var(--muted);
}

.p-characters .status{
  border: 1px solid rgba(74,62,45,.12);
  background: rgba(255,250,240,.72);
  color: var(--muted);
}

.p-characters .status.done{
  border-color: rgba(95,128,110,.30);
  background: rgba(95,128,110,.10);
  color: #385a49;
}

.p-characters label{
  color: #4b3c2a;
  font-size: 13px;
  font-weight: 800;
}

.p-characters input,
.p-characters textarea{
  width: 100%;
  border: 1px solid rgba(74,62,45,.18);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--text);
  padding: 9px 11px;
  font: inherit;
}

.p-characters textarea{
  min-height: 240px;
}

.p-characters input:focus,
.p-characters textarea:focus{
  outline: 2px solid rgba(143,100,47,.18);
  border-color: rgba(143,100,47,.42);
}

.p-characters .editor-box{
  margin-top: 8px;
  border-color: rgba(74,62,45,.14);
  background: #fffdf7;
}

.p-characters .editor-box textarea{
  border: 0;
  background: transparent;
}

.p-characters .card-structure-trigger{
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.p-characters .form-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.p-characters .book-edit-btn,
.p-characters .book-delete-btn{
  border-radius: 8px;
}

/* Story-Bible: zentrale Projektgrundlage */
.p-storybible .workspace-title{
  color: var(--text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.p-storybible .page-meta{
  text-align: right;
}

.p-storybible form.openai-form{
  margin-top: 18px;
}

.p-storybible .story-template-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.p-storybible .story-template-row > div{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.p-storybible .story-template-row a{
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(74,62,45,.12);
  border-radius: 8px;
  background: rgba(255,250,240,.72);
}

.p-storybible .story-template-row a:hover{
  background: rgba(143,100,47,.10);
  border-color: rgba(143,100,47,.26);
}

.p-storybible .link-style{
  border: 1px solid rgba(143,100,47,.18);
  border-radius: 999px;
  background: rgba(143,100,47,.08);
  color: #6f491f;
  padding: 4px 9px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.p-storybible .link-style:hover{
  background: rgba(143,100,47,.14);
  border-color: rgba(143,100,47,.30);
}

.p-storybible .editor-box{
  border-color: rgba(74,62,45,.14);
  background: #fffdf7;
  box-shadow: inset 0 0 38px rgba(143,100,47,.035);
}

.p-storybible textarea#story_bible{
  min-height: 560px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.75;
  letter-spacing: 0;
}

.p-storybible textarea#story_bible:focus{
  outline: 0;
}

.p-storybible .story-counter-row{
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
}

.p-storybible .form-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.p-storybible .btn img{
  margin-left: 4px;
  vertical-align: text-bottom;
}

/* Stil & Ton: eigene Stimme des Buches */
.p-style .workspace-title{
  color: var(--text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.p-style .page-meta{
  text-align: right;
}

.p-style .style-form{
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 18px;
}

.p-style .style-block{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-style .style-block h2{
  color: var(--text);
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
}

.p-style .style-helper-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.p-style .link-style{
  border: 1px solid rgba(143,100,47,.18);
  border-radius: 999px;
  background: rgba(143,100,47,.08);
  color: #6f491f;
  padding: 4px 9px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.p-style .link-style:hover{
  background: rgba(143,100,47,.14);
  border-color: rgba(143,100,47,.30);
}

.p-style .editor-box{
  border-color: rgba(74,62,45,.14);
  background: #fffdf7;
  box-shadow: inset 0 0 38px rgba(143,100,47,.035);
}

.p-style textarea{
  min-height: 210px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.75;
  letter-spacing: 0;
}

.p-style textarea#style_samples{
  min-height: 260px;
}

.p-style textarea#style_guide_extracted{
  min-height: 300px;
}

.p-style textarea:focus{
  outline: 0;
}

.p-style .style-action-note{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid rgba(143,100,47,.14);
  border-radius: 10px;
  background: rgba(255,250,240,.72);
}

.p-style .style-action-note .meta{
  flex: 1 1 260px;
}

.p-style .btn img{
  margin-left: 4px;
  vertical-align: text-bottom;
}

.p-style .form-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}

/* Export: das fertige Manuskript */
.p-export .manuscript-lounge{
  min-height: 500px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 12px;
  border: 1px solid rgba(74,62,45,.16);
  background:
    linear-gradient(135deg, rgba(143,100,47,.09), transparent 38%),
    linear-gradient(180deg, rgba(255,253,247,.98), rgba(246,236,219,.98));
  box-shadow: 0 18px 48px rgba(74,62,45,.13), inset 0 1px 0 rgba(255,255,255,.72);
}

.p-export .manuscript-hero{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(74,62,45,.12);
}

.p-export .manuscript-title{
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 5vw, 62px);
  line-height: .98;
  letter-spacing: 0;
}

.p-export .page-meta{
  text-align: right;
  color: var(--muted);
}

.p-export .hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 22px;
  align-items: start;
}

.p-export .feature-panel,
.p-export .soft-panel{
  position: relative;
  overflow: visible;
  border-radius: 12px;
  border: 1px solid rgba(74,62,45,.14);
  background: rgba(255,253,247,.78);
  box-shadow: 0 12px 30px rgba(74,62,45,.09);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.p-export .feature-panel:hover,
.p-export .soft-panel:hover{
  transform: translateY(-2px);
  border-color: rgba(143,100,47,.30);
  box-shadow: 0 16px 34px rgba(74,62,45,.12);
}

.p-export .feature-panel{
  min-height: 430px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(58,43,31,.94), rgba(37,29,22,.96)),
    #2b2119;
  color: #fff7e9;
  box-shadow: 0 18px 42px rgba(42,32,24,.22);
}

.p-export .feature-panel h2{
  margin: 8px 0 16px;
  color: #fff7e9;
  font-size: 34px;
  letter-spacing: 0;
}

.p-export .panel-kicker,
.p-export .section-title{
  color: #8f642f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.p-export .feature-panel .panel-kicker{
  color: rgba(232,203,138,.76);
}

.p-export .book-preview-card{
  margin: 12px auto 24px;
  max-width: 36ch;
  padding: 32px 28px 42px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0)),
    #f7efdf;
  color: #221b14;
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
}

.p-export .chapter-meta,
.p-export .chapter-title{
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

.p-export .chapter-meta{
  margin: 0 0 2px;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.p-export .chapter-title{
  margin: 0 0 14px;
  color: #241f18;
  font-size: 1.12rem;
  line-height: 1.25;
}

.p-export .book-preview{
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.78;
  white-space: pre-line;
  -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}

.p-export .book-preview::first-letter{
  font-size: 1.45em;
}

.p-export .side-panels{
  display: grid;
  gap: 18px;
}

.p-export .soft-panel{
  padding: 24px;
}

.p-export .soft-panel h3{
  margin: 8px 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.p-export .soft-panel:hover h3{
  color: var(--text);
  transform: none;
}

.p-export .soft-panel p,
.p-export .export-desc{
  color: var(--muted);
  line-height: 1.55;
}

.p-export .export-groups{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-export .export-group{
  padding: 14px;
  border: 1px solid rgba(74,62,45,.12);
  border-radius: 10px;
  background: rgba(255,250,240,.68);
}

.p-export .export-desc{
  margin: 8px 0 12px;
  font-size: .95rem;
}

.p-export .export-icon{
  height: 24px;
  vertical-align: bottom;
  opacity: .75;
}

.p-export .panel-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.p-export .marketing-form{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.p-export .marketing-hint-label{
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.p-export .marketing-form textarea{
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(74,62,45,.16);
  background: #fffdf7;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  line-height: 1.45;
}

.p-export .marketing-form textarea:focus{
  outline: 2px solid rgba(143,100,47,.20);
  border-color: rgba(143,100,47,.36);
}

.p-export .marketing-output{
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid rgba(74,62,45,.12);
  background: rgba(255,253,247,.78);
  overflow: hidden;
}

.p-export .marketing-output summary{
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 900;
}

.p-export .marketing-output summary span{
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.p-export .marketing-output div{
  border-top: 1px solid rgba(74,62,45,.10);
  padding: 14px;
  color: var(--text);
  line-height: 1.58;
  white-space: normal;
}

.p-export .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.p-export .btn-gold{
  align-self: flex-start;
  border-color: rgba(143,100,47,.28);
  background: linear-gradient(135deg, #d9bd75, #a97836);
  color: #21180d;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(143,100,47,.22);
}

.p-export .btn-gold:hover{
  border-color: rgba(143,100,47,.42);
  background: linear-gradient(135deg, #e4c982, #b9833e);
  color: #21180d;
  transform: translateY(-1px);
}

.p-export .btn-ghost{
  border-color: rgba(74,62,45,.16);
  background: rgba(255,253,247,.78);
  color: var(--text);
}

.p-export .btn-ghost:hover{
  border-color: rgba(143,100,47,.34);
  background: rgba(143,100,47,.10);
}

.p-export .vellum-hint{
  position: relative;
  display: inline-flex;
  margin-left: 6px;
  color: #8f642f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: default;
  z-index: 10;
}

.p-export .vellum-tooltip{
  position: absolute;
  top: -30px;
  right: calc(100% - 30px);
  transform: translateY(-50%) translateX(6px);
  width: 230px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(74,62,45,.14);
  background: #fffdf7;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 14px 30px rgba(74,62,45,.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
}

.p-export .vellum-tooltip::before{
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fffdf7;
  border-left: 1px solid rgba(74,62,45,.14);
  border-bottom: 1px solid rgba(74,62,45,.14);
}

.p-export .vellum-hint:hover .vellum-tooltip,
.p-export .vellum-tooltip:hover{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.p-export .vellum-tooltip a{
  color: #8f642f;
  font-weight: 800;
  text-decoration: none;
}

.p-export .vellum-tooltip a:hover{
  text-decoration: underline;
}

/* Werkstatt-Sonderraum: Amboss, Analyse, Feinschliff */
.is-hidden{
  display: none;
}

.navlist-tools{
  margin-top: 12px;
}

.navitem-special,
.navitem-special:hover,
.navitem-special.active{
  border-color: rgba(116,88,58,.32);
  background: rgba(116,88,58,.09);
  box-shadow: inset 3px 0 0 rgba(116,88,58,.58);
}

.navitem-special .pill,
.navitem-special.active .pill{
  border-color: rgba(116,88,58,.24);
  color: #5f4932;
}

.p-workshop .workspace-title{
  color: var(--text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.p-workshop .page-meta{
  text-align: right;
}

.p-workshop .tile{
  background:
    linear-gradient(135deg, rgba(116,88,58,.08), transparent 38%),
    linear-gradient(180deg, rgba(255,253,247,.98), rgba(247,238,224,.98));
  border-color: rgba(74,62,45,.16);
}

.p-workshop .workshop-form,
.p-workshop .diff-form{
  margin-top: 14px;
}

.p-workshop .diff-btn{
  border-color: rgba(77,104,134,.32);
  box-shadow: 0 0 0 3px rgba(77,104,134,.08);
}

.p-workshop .forge-modern{
  display: grid;
  gap: 18px;
}

.p-workshop .forge-hero{
  position: relative;
  min-height: 230px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(74,62,45,.16);
  background: #2c221a;
  isolation: isolate;
  box-shadow: 0 16px 34px rgba(74,62,45,.16);
}

.p-workshop .forge-hero-img{
  width: 100%;
  height: 100%;
  min-height: 230px;
  max-height: 380px;
  object-fit: cover;
  display: block;
  filter: brightness(.86) saturate(.9) contrast(1.02);
  transform: scale(1);
  transition: transform .35s ease, filter .35s ease;
}

.p-workshop .forge-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 44% 54%, rgba(232,203,138,.18), transparent 18%),
    linear-gradient(180deg, rgba(36,28,22,.08), rgba(36,28,22,.62));
}

.p-workshop .forge-hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(38,29,22,.22) 45%, rgba(38,29,22,.72) 100%);
}

.p-workshop .forge-hero-overlay h2{
  margin: 0 0 6px;
  color: #fff7e9;
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.p-workshop .forge-hero-overlay p{
  margin: 0;
  color: rgba(255,247,233,.82);
}

.p-workshop .forge-hero.is-hot .forge-hero-img{
  filter: brightness(.94) saturate(1) contrast(1.04);
  transform: scale(1.012);
}

.p-workshop .forge-hero.is-hot::before{
  background:
    radial-gradient(circle at 44% 54%, rgba(232,203,138,.32), transparent 20%),
    linear-gradient(180deg, rgba(36,28,22,.06), rgba(36,28,22,.58));
}

.p-workshop .glow-core{
  background:
    radial-gradient(circle,
      rgba(255,255,255,.96) 0%,
      rgba(232,203,138,.78) 24%,
      rgba(170,117,58,.36) 54%,
      rgba(170,117,58,0) 76%);
}

.p-workshop .chapter-picker,
.p-workshop .hintbox,
.p-workshop .knobwrap,
.p-workshop .patchbox,
.p-workshop .issue-item{
  border: 1px solid rgba(74,62,45,.14);
  border-radius: 10px;
  background: rgba(255,250,240,.72);
  color: var(--text);
}

.p-workshop .chapter-picker{
  margin: 16px 0 22px;
  padding: 14px;
}

.p-workshop .chapter-select-label{
  display: block;
  margin-bottom: 8px;
}

.p-workshop .chapter-picker select{
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(74,62,45,.18);
  background: #fffdf7;
  color: var(--text);
  font: inherit;
}

.p-workshop .active-chapter-note{
  margin-top: 8px;
}

.p-workshop .toolgrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.p-workshop .toolcard{
  all: unset;
  box-sizing: border-box;
  width: 100%;
  min-height: 96px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(74,62,45,.14);
  background: rgba(255,253,247,.76);
  color: var(--text);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.p-workshop .toolcard:hover,
.p-workshop .toolcard:focus-visible{
  transform: translateY(-2px);
  border-color: rgba(116,88,58,.34);
  background: rgba(255,250,240,.94);
  box-shadow: 0 12px 26px rgba(74,62,45,.10);
}

.p-workshop .toolcard:focus-visible{
  outline: 2px solid rgba(116,88,58,.30);
  outline-offset: 2px;
}

.p-workshop .toolcard-special{
  border-color: rgba(143,100,47,.34);
  background: linear-gradient(180deg, rgba(143,100,47,.12), rgba(255,253,247,.78));
  box-shadow: inset 3px 0 0 rgba(143,100,47,.46);
}

.p-workshop .toolcard-special strong::after{
  content: " *";
  color: #8f642f;
}

.p-workshop .toolcard .dot{
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: #9c6b38;
  box-shadow: 0 0 0 4px rgba(156,107,56,.11);
}

.p-workshop .toolcard-text{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.p-workshop .toolcard-text strong{
  color: var(--text);
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
}

.p-workshop .toolcard-text small{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.p-workshop .hintbox{
  padding: 12px 14px;
}

.p-workshop .hintbox > summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "Cormorant Upright", Georgia, serif;
}

.p-workshop .hintbox > summary::-webkit-details-marker{
  display: none;
}

.p-workshop .hintbox .sub{
  color: var(--muted);
  font-size: 16px;
}

.p-workshop .hintinner{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.p-workshop .chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-workshop .chip{
  border-color: rgba(116,88,58,.18);
  background: rgba(255,253,247,.78);
  color: #5f4932;
}

.p-workshop .chip:hover{
  border-color: rgba(116,88,58,.36);
  background: rgba(116,88,58,.10);
}

.p-workshop textarea#hint{
  width: 100%;
  border: 1px solid rgba(74,62,45,.18);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--text);
  padding: 12px;
  font: inherit;
  outline: none;
}

.p-workshop textarea#hint:focus{
  border-color: rgba(116,88,58,.40);
  box-shadow: 0 0 0 3px rgba(116,88,58,.10);
}

.p-workshop .knobwrap{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.p-workshop .knob{
  --p: 35;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg, rgba(116,88,58,.95) calc(var(--p)*1%), rgba(116,88,58,.14) 0);
  position: relative;
  box-shadow: 0 0 0 4px rgba(116,88,58,.08);
}

.p-workshop .knobcap{
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fffdf7;
  border: 1px solid rgba(116,88,58,.18);
}

.p-workshop .knob::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 18px;
  background: #5f4932;
  transform-origin: bottom center;
  transform: translate(-50%,-100%) rotate(calc(-130deg + (260deg * (var(--p)/100))));
  border-radius: 2px;
}

.p-workshop .range{
  width: 160px;
}

.p-workshop .knoblabel .title{
  color: var(--text);
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: 20px;
}

.p-workshop .knoblabel .value{
  color: #5f4932;
  font-weight: 800;
}

.p-workshop .workshop-context-note{
  text-align: center;
  margin-top: 10px;
}

.p-workshop .kiout{
  border-radius: 10px;
  background: rgba(255,253,247,.78);
  color: var(--text);
}

.p-workshop .patchbox,
.p-workshop .issue-list{
  margin-top: 16px;
}

.p-workshop .patchbox{
  padding: 14px;
  border-color: rgba(95,128,110,.26);
  background: rgba(95,128,110,.08);
}

.p-workshop .patchbox h3,
.p-workshop .issue-list h3{
  color: var(--text);
}

.p-workshop .patch-note{
  margin-bottom: 10px;
}

.p-workshop .preview-label{
  margin-top: 10px;
}

.p-workshop .preview-output{
  margin-top: 8px;
}

.p-workshop .issue-item{
  margin-bottom: 12px;
  padding: 14px;
}

.p-workshop .issue-fix-note{
  margin: 6px 0 10px;
}

@media (min-width: 640px){
  .p-workshop .toolgrid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px){
  .p-workshop .toolgrid{
    grid-template-columns: repeat(4, 1fr);
  }
}

.modalOverlay{
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(42,35,25,.36);
  backdrop-filter: blur(8px);
}

.modalOverlay.show{
  display: flex;
}

.modalBox{
  position: relative;
  width: min(760px, 100%);
  max-height: min(90vh, 1100px);
  overflow: auto;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf7, #f8efe0);
  box-shadow: 0 24px 80px rgba(74,62,45,.24), inset 0 1px 0 rgba(255,255,255,.8);
  border: 1px solid rgba(74,62,45,.16);
  padding: 26px 26px 22px;
  color: var(--text);
}

.modalBox-lg{
  width: min(860px, 100%);
}

.modalHeader{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.modalIcon{
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(143,100,47,.10);
  border: 1px solid rgba(143,100,47,.16);
  box-shadow: 0 8px 20px rgba(74,62,45,.10);
  flex: 0 0 auto;
}

.modalHeader h3{
  margin: 2px 0 6px;
  color: var(--text);
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.1;
}

.modalSub{
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.45;
}

.modalClose{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(74,62,45,.12);
  border-radius: 8px;
  background: rgba(255,250,240,.72);
  color: #6f491f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.modalClose:hover{
  background: rgba(143,100,47,.12);
  transform: scale(1.04);
}

.modalForm{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.formGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.formField{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formField label{
  color: #4b3c2a;
  font-weight: 800;
}

.formField input,
.formField textarea{
  width: 100%;
  border: 1px solid rgba(74,62,45,.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fffdf7;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
}

.formField input::placeholder,
.formField textarea::placeholder{
  color: rgba(74,62,45,.42);
}

.formField input:focus,
.formField textarea:focus{
  border-color: rgba(143,100,47,.42);
  background: #fffaf0;
  box-shadow: 0 0 0 4px rgba(143,100,47,.08);
}

.formField textarea{
  resize: vertical;
  min-height: 96px;
}

.modalActions{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 8px;
}

.field-help{
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: .92rem;
}

body.modal-open{
  overflow: hidden;
}

@media (max-width: 760px){
  .p-chapter .tts-row,
  .p-chapter .chapter-meta{
    align-items: stretch;
    text-align: left;
  }

  .p-chapter .tts-row{
    flex-direction: column;
  }

  .p-chapter .tts-block{
    align-items: flex-start;
  }

  .p-characters .page-meta{
    text-align: left;
  }

  .p-storybible .page-meta{
    text-align: left;
  }

  .p-storybible .story-template-row{
    align-items: flex-start;
    flex-direction: column;
  }

  .p-storybible .story-counter-row{
    justify-content: flex-start;
  }

  .p-storybible textarea#story_bible{
    min-height: 420px;
  }

  .p-style .page-meta{
    text-align: left;
  }

  .p-style .style-action-note{
    align-items: flex-start;
    flex-direction: column;
  }

  .p-style textarea,
  .p-style textarea#style_samples,
  .p-style textarea#style_guide_extracted{
    min-height: 220px;
  }

  .p-export .manuscript-hero,
  .p-export .hero-grid{
    grid-template-columns: 1fr;
  }

  .p-export .manuscript-hero{
    flex-direction: column;
  }

  .p-export .page-meta{
    text-align: left;
  }

  .p-export .feature-panel{
    min-height: 0;
  }

  .p-export .vellum-tooltip{
    left: 0;
    right: auto;
    top: calc(100% + 12px);
    transform: translateY(0);
  }

  .p-export .vellum-tooltip::before{
    top: -6px;
    left: 22px;
  }

  .p-export .vellum-hint:hover .vellum-tooltip,
  .p-export .vellum-tooltip:hover{
    transform: translateY(0);
  }

  .modalOverlay{
    padding: 14px;
  }

  .modalBox,
  .modalBox-lg{
    width: 100%;
    max-height: 92vh;
    border-radius: 10px;
    padding: 20px 18px 18px;
  }

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

  .modalHeader{
    gap: 12px;
  }

  .modalIcon{
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

@media (max-width: 900px){
  .p-chapters .start-options{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px){
  .p-chapters .row{
    flex-direction: column;
    align-items: stretch;
  }

  .p-chapters .row .col:first-child{
    flex: 1;
  }
}

@media (max-width: 520px){
  .p-index .hero.hero-literary{
    min-height: 70vh;
    padding: 48px 16px 36px;
  }

  .p-index .preview{
    min-height: 150px;
  }

  .p-index .feature-image-chapters,
  .p-index .feature-image-characters{
    transform: none;
  }
}

@media (min-width: 980px){
  .p-chapter .app,
  .p-chapters .app,
  .p-characters .app,
  .p-dashboard .app,
  .p-start .app,
  .p-storybible .app,
  .p-style .app,
  .p-workshop .app{
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 720px){
  .topbar-inner,
  .topbar-left,
  .credits{
    align-items: flex-start;
  }

  .topbar-inner{
    flex-direction: column;
  }

  .credits{
    width: 100%;
    justify-content: space-between;
  }

  .sidebar{
    position: static;
  }
}

.p-index > .wrap{
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-bottom: 8px;
}

.p-index .hero.hero-literary{
  min-height: 0;
  flex: 1 1 auto;
}

.p-index footer{
  margin-top: 4px;
}

.p-author .author-hero{
  min-height: auto;
  padding: 56px 34px;
  margin-bottom: 26px;
}

.p-author .author-hero h1{
  font-size: clamp(46px, 7vw, 86px);
}

.p-author .author-intro{
  margin-top: 0;
}

.p-author .author-intro .tile{
  max-width: none;
  margin: 0;
  padding: 22px 24px;
}

.p-author .author-archive-note{
  margin-top: 22px;
}

.p-author .author-archive-card-note{
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  overflow: hidden;
}

.p-author .author-archive-card-note h2{
  margin: 4px 0 10px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.p-author .author-archive-card-note p{
  max-width: 760px;
}

.p-author .author-archive-card-preview{
  margin: 0;
  justify-self: center;
  text-align: center;
  transform: rotate(2deg);
}

.p-author .author-archive-card-preview img{
  display: block;
  width: 96px;
  aspect-ratio: 1312 / 1819;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(74,62,45,.20);
}

.p-author .author-archive-card-preview figcaption{
  margin-top: 8px;
  color: #7a7062;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.p-author .author-book-section{
  margin-top: 22px;
}

.p-author .section-heading-row{
  margin-bottom: 12px;
}

.p-author .section-heading-row h2{
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
}

.p-author .author-book-grid{
  display: grid;
  gap: 16px;
}

.p-author .author-book-card{
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(143,100,47,.18);
  border-radius: 10px;
  background: rgba(255,252,246,.86);
  box-shadow: 0 14px 32px rgba(74,62,45,.08);
}

.p-author .author-book-cover{
  align-self: start;
  border-radius: 8px;
  overflow: hidden;
  background: #eadfce;
  box-shadow: 0 16px 28px rgba(74,62,45,.18);
}

.p-author .author-book-cover img{
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.p-author .author-book-copy h3{
  margin: 4px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.p-author .author-book-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.p-author .author-book-tags span{
  padding: 4px 9px;
  border: 1px solid rgba(143,100,47,.18);
  border-radius: 999px;
  color: #6f675a;
  background: rgba(255,255,255,.58);
  font-size: 12px;
}

.p-author .author-book-copy p{
  margin: 0 0 14px;
  color: #5f564a;
}

.p-author .bookshop-stock-line{
  font-weight: 800;
  color: #4f6a55 !important;
}

.p-author .author-card-included{
  margin-top: -6px !important;
  color: #7a5035 !important;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  letter-spacing: .03em;
}

.p-author .btn.is-disabled{
  cursor: default;
  opacity: .72;
}

.p-info-story{
  --text: #2b241a;
  --muted: #6f675a;
  --line: rgba(143,100,47,.18);
  background:
    radial-gradient(circle at 20% 20%, rgba(143,100,47,.08), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(95,128,110,.08), transparent 24%),
    linear-gradient(180deg, #f8f1e5 0%, #efe2cc 100%);
  color: var(--text);
}

.p-info-story .wrap{
  max-width: 1100px;
  padding: 18px 18px 70px;
}

.p-info-story .story-info-hero{
  min-height: auto;
  padding: 56px 34px;
  margin-bottom: 24px;
  border-color: rgba(143,100,47,.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,252,246,.96), rgba(246,237,220,.98));
  box-shadow: 0 18px 44px rgba(74,62,45,.10);
}

.p-info-story .story-info-hero h1{
  max-width: 880px;
  color: #211b13;
  letter-spacing: 0;
  font-size: clamp(44px, 6vw, 76px);
}

.p-info-story .story-info-hero .lead{
  max-width: 820px;
  color: var(--muted);
}

.p-info-story .story-info-section{
  margin-top: 22px;
  padding: 0;
}

.p-info-story .section-heading-row{
  margin-bottom: 12px;
}

.p-info-story .section-heading-row h2{
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
}

.p-info-story .section-intro{
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--muted);
}

.p-info-story .story-info-grid,
.p-info-story .two-col-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.p-info-story .story-info-card,
.p-info-story .mini,
.p-info-story .sb_step,
.p-info-story .story-template{
  border: 1px solid rgba(143,100,47,.18);
  border-radius: 10px;
  background: rgba(255,252,246,.86);
  box-shadow: 0 14px 32px rgba(74,62,45,.08);
}

.p-info-story .story-info-card{
  padding: 20px;
}

.p-info-story .story-info-card h3,
.p-info-story .mini strong,
.p-info-story .sb_step strong{
  color: var(--text);
}

.p-info-story .pill-list{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.p-info-story .pill{
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid rgba(143,100,47,.18);
  border-radius: 999px;
  color: #6f675a;
  background: rgba(255,255,255,.58);
  font-size: 12px;
}

.p-info-story .sb_steps{
  display: grid;
  gap: 10px;
  counter-reset: item;
}

.p-info-story .sb_step{
  position: relative;
  padding: 16px 18px 16px 64px;
}

.p-info-story .sb_step::before{
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(143,100,47,.12);
  color: #6f491f;
  font-weight: 800;
}

.p-info-story .sb_step span,
.p-info-story .mini p{
  color: var(--muted);
}

.p-info-story .mini{
  padding: 18px;
}

.p-info-story .story-info-callout{
  margin: 16px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(95,128,110,.24);
  border-left: 4px solid rgba(95,128,110,.72);
  border-radius: 10px;
  background: rgba(95,128,110,.08);
  color: var(--muted);
}

.p-info-story .story-template{
  overflow: hidden;
}

.p-info-story .story-template-head{
  padding: 14px 18px;
  border-bottom: 1px solid rgba(143,100,47,.16);
  color: #6f491f;
  background: rgba(143,100,47,.08);
}

.p-info-story .story-template pre{
  margin: 0;
  padding: 22px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #342a1d;
  background:
    repeating-linear-gradient(0deg, rgba(143,100,47,.035) 0, rgba(143,100,47,.035) 1px, transparent 1px, transparent 8px),
    #fffaf0;
  font: 14px/1.65 "Courier New", Courier, monospace;
}

.p-bookshop .section{
  margin-top: 26px;
}

.p-bookshop .hero + .section{
  margin-top: 30px;
}

.p-bookshop .bookshop-order-tile{
  margin-top: 0;
  padding: 22px;
}

.p-bookshop .bookshop-summary{
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.p-bookshop .bookshop-summary img{
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 28px rgba(74,62,45,.18);
}

.p-bookshop .bookshop-form{
  display: grid;
  gap: 12px;
}

.p-bookshop .bookshop-form label,
.p-bookshop .bookshop-admin-item label{
  font-weight: 700;
}

.p-bookshop .bookshop-form input,
.p-bookshop .bookshop-form textarea,
.p-bookshop .bookshop-admin-item input{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(143,100,47,.18);
  border-radius: 8px;
  background: rgba(255,252,246,.96);
  color: #241f18;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}

.p-bookshop .bookshop-form input:focus,
.p-bookshop .bookshop-form textarea:focus,
.p-bookshop .bookshop-admin-item input:focus{
  border-color: rgba(143,100,47,.42);
  background: #fffdf8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(143,100,47,.12);
}

.p-bookshop .bookshop-form input::placeholder,
.p-bookshop .bookshop-form textarea::placeholder{
  color: rgba(111,103,90,.74);
}

.p-bookshop .bookshop-admin-grid{
  display: grid;
  gap: 16px;
}

.p-bookshop .notice{
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.p-bookshop .notice.success{
  border: 1px solid rgba(79,106,85,.28);
  background: rgba(235,247,233,.86);
  color: #314f39;
}

.p-bookshop .notice.error{
  border: 1px solid rgba(145,66,58,.28);
  background: rgba(255,238,232,.9);
  color: #71362f;
}

@media (min-width: 900px){
  .p-bookshop .bookshop-admin-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.p-bookshop .bookshop-admin-item,
.p-bookshop .bookshop-admin-order{
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(143,100,47,.18);
  border-radius: 10px;
  background: rgba(255,252,246,.68);
}

.p-bookshop .bookshop-check{
  display: flex;
  gap: 8px;
  align-items: center;
}

.p-bookshop .bookshop-check input{
  width: auto;
}

.p-bookshop .bookshop-order-list{
  display: grid;
  gap: 12px;
}

.p-bookshop .bookshop-review{
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(79,106,85,.22);
  border-radius: 10px;
  background: rgba(242,249,240,.72);
}

.p-bookshop .bookshop-review h3{
  margin-top: 0;
}

.p-bookshop .bookshop-review p{
  margin: 8px 0;
}

.p-bookshop .bookshop-processing{
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(143,100,47,.20);
  border-radius: 10px;
  background: rgba(255,246,223,.74);
}

.p-bookshop .bookshop-processing p{
  margin: 6px 0 0;
}

.p-bookshop .bookshop-spinner{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(143,100,47,.18);
  border-top-color: #8f642f;
  animation: bookshopSpin .9s linear infinite;
}

@keyframes bookshopSpin{
  to{ transform: rotate(360deg); }
}

.card.agb{
  max-width: none;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.p-index .card.agb{
  max-width: none;
  margin: 0;
}

.p-index .card.agb p{
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 680px){
  .p-author .author-archive-card-note{
    grid-template-columns: 1fr;
  }

  .p-author .author-archive-card-preview{
    justify-self: start;
  }

  .p-author .author-book-card{
    grid-template-columns: 1fr;
  }

  .p-author .author-book-cover{
    max-width: 180px;
  }

  .p-info-story .story-info-grid,
  .p-info-story .two-col-list{
    grid-template-columns: 1fr;
  }

  .p-info-story .story-info-hero{
    padding: 42px 22px;
  }
}
