/* === Schriftarten === */
@font-face {
  font-family: 'Stempel-Garamond-W01-Roman';
  src: url('../fonts/Stempel-Garamond-W01-Roman.woff') format('woff');
}

/* === Grundlayout & Bühne === */
body, ul, table, form {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#canvas {
  width: 1350px;
  height: 850px;
  margin: 50px auto;
  position: relative;
  overflow: hidden;
}

/* === Buchstruktur === */
.jn-buch {
  width: 1200px;
  height: 800px;
}

.jn-buch .book-inner {
  width: 1200px;
  height: 800px;
  margin: auto;
  position: absolute;
  top: 20px;
  left: 150px;
  background-color: rgba(255, 200, 200, 0.1);
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  z-index: 1;
  overflow: hidden;
}

/* === Seiten & Umschläge === */
.jn-buch .page,
.jn-buch .hard {
  width: 600px;
  height: 800px;
  position: absolute;
  top: 0;
  background-color: white;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  border: 2px solid #3b3b3b;
  z-index: 1;
}

.jn-buch .page {
  
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.jn-buch .page.left,
.jn-buch .hard.front {
  left: 0;
}

.jn-buch .page.right,
.jn-buch .hard.back {
  left: 600px;
}

.jn-buch .page-wrapper {
  perspective: 2000px;
}

/* === Hintergrundbilder für Coverseiten === */
.jn-buch .p1,
.jn-buch .p2,
.jn-buch .p3,
.jn-buch .p111,
.jn-buch .p112 {
  background-color: white;
  background-image: url(../pics/book-coverks.jpg) !important;
}

.jn-buch .p1 { background-position: 0 0; }
.jn-buch .p2 { background-position: -600px 0 !important; }
.jn-buch .p3 { background-position: -1200px 0 !important; }
.jn-buch .p111 { background-position: -1800px 0 !important; }
.jn-buch .p112 { background-position: -2400px 0 !important; }

/* === Umschlagkante & Tiefeffekte === */
.jn-buch .p1 .side {
  width: 5px;
  height: 600px;
  position: absolute;
  top: 0;
  left: 575px;
  background-image: linear-gradient(to right, #bbb, #ddd, #bbb);
  transform: rotateY(-90deg);
  transform-origin: top right;
  z-index: 100000;
}



/* === Typografie & Inhalt === */
.jn-buch h1 {
  font-family: "Stempel-Garamond-W01-Roman";
  font-size: 38px;
  font-weight: lighter;
  margin: 20px 0;
  color: #333;
  -webkit-text-fill-color: #333;
  -webkit-text-stroke-color: white;
  -webkit-text-stroke-width: 0.005em;
}

.jn-buch h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #444;
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 400;
}

.jn-buch .book-content {
  font-family: "Stempel-Garamond-W01-Roman";
  font-size: 16px;
  margin: 70px 40px;
}

.jn-buch .book-content p {
  text-indent: 18px;
  margin: 20px 0;
  line-height: 22px;
}

.jn-buch .book-content .capital,
.jn-buch .book-content .no-indent {
  text-indent: 0;
}

.jn-buch .capital:first-letter {
  display: block;
  float: left;
  font-size: 300%;
  line-height: 70%;
  margin-right: 6px;
  margin-top: 7px;
  margin-left: 18px;
}

.jn-buch blockquote {
  color: #586078;
  margin: 10px 0;
  font-style: italic;
}

.jn-buch blockquote:before,
.jn-buch blockquote:after {
  content: '"';
  color: #333D53;
  font-size: 20px;
}

.jn-buch cite {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 200;
  font-style: normal;
  color: #666;
}

/* === Dummyseiten & Szenenrahmen === */
.seite {
  background: radial-gradient(#fdf6e3, #e8dcc2);
  border: 4px solid #d4b93b;
  font-family: 'Stempel-Garamond-W01-Roman', serif;
  padding: 40px;
  box-sizing: border-box;
  overflow: auto;
  height: 100%;
  width: 100%;
  color: #5a4a2d;
  line-height: 1.8;
  font-size: 1.2rem;
}

.dummy-seite {
  background-image: url('../pics/vergilbte-seit.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 1em;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
}

.fraktur-rahmen {
  border: 4px double #3b3b3b;
  padding: 2em;
  margin: 2em auto;
  max-width: 800px;
  background-color: rgba(255, 255, 240, 0.9);
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.4em;
  color: #111;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
  line-height: 1.6;
}

.mini-rahmen {
  border: 2px solid #3b3b3b;
  padding: 1em;
  margin: 2em auto;
  max-width: 600px;
  background-color: transparent;
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.3em;
  color: #111;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
  line-height: 1.5;
  border-radius: 8px;
}

.text-mit-rahmen {
  display: inline-block;
  border: 1px solid #444;
  padding: 0.5em 1em;
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.2em;
  color: #111;
  line-height: 1.5;
}

/* === Responsive Anpassung === */
@media (max-width: 768px) {
  #canvas {
    height: 70vh;
  }

  .seite {
    padding: 25px;
    font-size: 1rem;
  }

  .jn-buch .page,
  .jn-buch .hard {
    width: 600px;
    height: 800px;
  }

  .fraktur-rahmen,
  .mini-rahmen {
    max-width: 100%;
    padding: 1em;
    font-size: 1.1em;
  }
}