
/* ==========================
   SCHRIFTARTEN GLOBAL
========================== */
@font-face {
  font-family: 'Caveat';
  src: url('../fonts/Caveat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Comic Neue';
  src: url('../fonts/ComicNeue-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Comic Neue';
  src: url('../fonts/ComicNeue-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Andika';
  src: url('../fonts/Andika-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Carlito';
  src: url('../fonts/Carlito-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Carlito';
  src: url('../fonts/Carlito-Italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Carlito';
  src: url('../fonts/Carlito-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Carlito';
  src: url('../fonts/Carlito-BoldItalic.woff2') format('woff2');
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'AmaticSC';
  src: url('../fonts/AmaticSC-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'AmaticSC';
  src: url('../fonts/AmaticSC-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* ==========================
   GRUNDLAYOUT GLOBAL
========================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Carlito', sans-serif;
  background-color: #fdfaf5;
  color: #593727;
  min-height: 100%;
}

body.brauni {
  font-family: 'Andika', sans-serif;
  background-image: url('/assets/img/tapete_brauni.png');
  background-repeat: repeat;
  background-position: top left;
  background-attachment: fixed;
}

body.myratha {
  font-family: 'Carlito', sans-serif;
  background-image: url('/assets/img/tapete_myratha.png');
  background-repeat: repeat;
  background-position: top left;
  background-attachment: fixed;
}

body.velina { 
  font-family: 'Carlito', sans-serif;
  background-image: url('/assets/img/tapete_velina.png');
  background-repeat: repeat;
  background-position: top left;
  background-attachment: fixed;
}

.shadow-wrapper {
  display: flex;
  justify-content: center;
  padding: 0 2em;
}

.page-wrapper {
  max-width: 1200px;
  width: 100%;
  background-color: #fdfaf5;
  border-left: 1px solid #593727;
  border-right: 1px solid #593727;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2em;
}

.authorname {
  font-size: 2.8em;
  font-family: 'Caveat', cursive;
  font-weight: normal;
  margin-left: 0em;
}

.logo {
  height: 80px;
  margin-right: 0em;
}

.line {
  height: 4px;
  background-color: var(--line-bg);
  border-top: 1px solid #593727;
  border-bottom: 1px solid #593727;
}

body.brauni {
  --line-bg: #fff2c4;
}

body.myratha {
  --line-bg: #a4c639;
}

body.velina {
  --line-bg: #e3a5a0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1em 2em; /* Innenabstand statt margin */
    box-sizing: border-box; /* Damit padding nicht die Breite sprengt */
    font-size: 1em;
    font-family: 'Carlito', sans-serif;
}


.nav-zurueck {
    flex: 1; /* Schiebt "Zurück" ganz nach links */
    text-align: left;
    font-size: 1em;
    text-decoration: none;
    color: #593727;
}

.nav-links {
    display: flex;
    gap: 1em; /* Abstand zwischen den Links */
    justify-content: flex-end; /* Schiebt die Navigation ganz nach rechts */
    flex: 2; /* Sorgt dafür, dass sich die restlichen Links rechts ausrichten */
}

nav a {
    color: #593727;
    text-decoration: none;
}

nav a:hover {
    color: #8d5a3a;
    text-decoration: underline;
}

nav a:visited {
    color: #593727;
}

.textlink {
  color: #593727;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
}

.textlink:visited {
  color: #593727;
}

.textlink:hover {
  color: #8d5a3a;
  text-decoration: underline;
}


/* Andika 16pt fett → ca. 1.3rem */
.text-andika-16-bold {
  font-family: 'Andika', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Andika 16pt normal → ca. 1.3rem */
.text-andika-16 {
  font-family: 'Andika', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
}

/* Andika 14pt normal → ca. 1.1rem */
.text-andika-14 {
  font-family: 'Andika', sans-serif;
  font-weight: 400;
  font-size: 1rem;
}

.text-andika-14-italic {
  font-family: 'Andika', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
}


.bestellinfo {
  text-align: center;
  font-size: 0.95em;
  color: #444;
  margin-top: 2em;
  margin-bottom: 2em;
  line-height: 1.5;
}

/* Nur innerhalb der Bestellinfo: kleinere, angepasste Links */
.bestellinfo .textlink {
  font-size: 0.95em;
  font-weight: normal;
  color: #593727;
  text-decoration: none;
}

.bestellinfo .textlink:visited {
  color: #593727;
}

.bestellinfo .textlink:hover {
  color: #8d5a3a;
  text-decoration: underline;
}


main {
  padding: 0 2em 2em 2em; /* kein Abstand oben */
  flex: 1;
}

.section {
  border: 1px solid #593727;
  border-radius: 10px;
  padding: 1em 2em;
  margin-bottom: 2em;
  display: flex;
  align-items: stretch;
  gap: 1em;
}

.color-block {
  width: 100px;
  height: auto;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.serienlogo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.buchcover img {
  max-width: 200px;
  max-height: auto;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
}

.buchcover-brauni {
  max-width: 200px;
  max-height: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}
 .brauni-color {
  background-color: #ffc300;
}

.myratha-color {
  background-color: #a4c639;
} 

.stand-datum {
  font-size: 0.75rem;
  color: #593727;
  margin-top: 1em;
  text-align: right;
}

html {
  overflow-y: scroll;
}


.portraitblock {
  display: flex;
  gap: 1.5em;
  padding: 1.5em;
  margin-bottom: 2em;
  border-radius: 10px;
  align-items: flex-start;
}


.portrait img {
  max-width: 100px;
  max-height: auto;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
}


/* ==========================
   ÜBERSCHRIFTEN & LINKS
========================== */
body.brauni h2, body.brauni h2 a {
  font-family: 'Comic Neue', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #593727;
  text-decoration: none;
}

body.brauni h2 a:hover {
  color: #8d5a3a;
  text-decoration: underline;
}

.braunitext bold {
  font-family: 'Andika', sans-serif;
}

body.myratha h2, body.myratha h2 a {
  font-family: 'Carlito', sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: #593727;
  text-decoration: none;
}

body.myratha h2 a:hover {
  color: #8d5a3a;
  text-decoration: underline;
}

body.velina h2, body.velina h2 a {
  font-family: 'Carlito', sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: #593727;
  text-decoration: none;
}

body.velina h2 a:hover {
  color: #8d5a3a;
  text-decoration: underline;
}


/* ================
     BILDER 
   ================ */

.buchlogo {
  width: 120px;
  aspect-ratio: 24 / 17;
  object-fit: cover;
  border-radius: 6px;
}

.buchlogo-wrapper {
  position: relative;
  display: inline-block;
}

.buchlogo-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
}


/* .serienbox {
  display: flex;
  gap: 1.5em;
  padding: 1.5em;
  margin-bottom: 2em;
  background-color: #fcf3df; /* deutlich sichtbar */
  border: 1px solid #c4a369; /* wärmere Linie */
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  align-items: flex-start;
}

.serienbox-logo img {
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.serienbox-text h2 {
  font-family: 'Comic Neue', sans-serif;
  font-size: 1.6rem;
  color: #593727;
  margin: 0 0 0.5em 0;
}

.serienbox-text p {
  font-size: 1rem;
  line-height: 1.5;
  color: #4b2c16;
} */


.brauni-section {
  position: relative;
}

.brauni-badge-wrapper {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
}

.brauni-badge {
  width: clamp(30px, 5vw, 40px);
  height: clamp(30px, 5vw, 40px);
  border-radius: 50%;
  background-color: #ffc300;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}


/* ======================================================= */

@media (max-width: 768px) {
  header {
    padding: 0.5em 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .authorname {
    font-size: 1.8em;
    margin: 0;
    inline-height: 1.2;
  }

  .logo {
    height: 48px;
    margin: 0;
  }

  nav {
    padding: 1em;
  }

  .shadow-wrapper {
    padding: 0 0.5em; /* Weniger Abstand zur Tapete */
  }

  .page-wrapper {
    max-width: 100%;
  }

  main {
    padding: 1em 0.5em; /* Weniger Innenabstand */
  }

  .section {
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 0.5em 0.5em;
    margin-bottom: 1em;
    gap: 0.5em;
    position: relative;
    padding-bottom: 3em; /* Platz für Badge */
  }

  .color-block {
    width: 100px;
    height: auto;
    padding: 0;
    text-align: center;
  }

  .section h2,
  .section p {
    margin-top: 1em;
  }

  body.velina h2,
  body.velina h2 a,
  body.brauni h2,
  body.brauni h2 a,
  body.myratha h2,
  body.myratha h2 a {
    font-size: 1.2rem;
  }

  .buchcover {
    max-width: 120px;
    max-height: 180px;
  }

  .buchcover img {
    width: 120px;
  }

  .buchcover-brauni {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
  }

  .brauni-badge {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    border-radius: 50%;
    background-color: #ffc300;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    object-fit: contain;
  }

  .brauni-badge-wrapper {
    position: absolute;
    bottom: 1em;
    right: 1em;
    z-index: 2;
    transform: none;
  }

  .buchtext {
    width: 100%;
  }

  .stand-datum {
    font-size: 0.65rem;
    margin-top: 2em;
    text-align: center;
  }

  .serienbox {
    flex-direction: column;
    padding: 0.5em;
    align-items: stretch;
  }

  .serienbox-logo {
    display: flex;
    justify-content: center;
  }

  .serienbox-logo img {
    width: 80px;
    border-radius: 8px;
  }

  .serienbox-text {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 1em;
    text-align: left;
    text-align-last: left;
  }

  .text-andika-16-bold,
  .text-andika-16 {
    font-size: 1rem;
  }

  .text-andika-14,
  .text-andika-14-italic {
    font-size: 0.95rem;
  }

  .portraitblock {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .portrait {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .portrait img {
    max-width: 80px;
    height: auto;
    margin-bottom: 1em;
    display: block;
    border-radius: 6px;
  }

}


/* ======================================================= */


@media screen and (max-width: 600px) {
  .nav-zurueck {
    display: none;
  }
}
