/*
Theme Name: Avada Child
Theme URI: https://avada.com/
Description: Child Theme für Avada
Author: Jannik Howind
Author URI: https://jannikhowind.de
Template: Avada
Version: 1.0
*/

/* Eigene Styles hier */

.fusion-body .essay-block-quote blockquote {
  border-left: 4px solid #000000 !important; /* gewünschte Farbe */
  margin-left: 10px !important;
  margin-right: 10px !important;
}

.float-img {
  float: left;           /* oder right */
  margin: 9px 20px 10px 0;
  max-width: 40%;
}

.float-img-right {
  float: right;           /* oder right */
  margin: 9px 20px 10px 20px;
  max-width: 40%;
}

.nested-column-img {
    margin: 10px 5px 10px 5px;
}

/* Image carousel: show description only */
.fusion-image-carousel .awb-imageframe-caption-title {
  display: none;
}

/* Recent Posts title color */
.fusion-recent-posts .entry-title a {
  color: #434549;
}

/* Recent Posts title color */
.fusion-recent-posts .entry-title a:hover {
  color: #FFFFFF;
}

/* Hide author pen icon in Recent Posts (Date on Side) */
.fusion-recent-posts .fusion-date-and-formats .awb-icon-pen {
  display: none;
}

/* funktioniert nicht... */
@media (max-width: 640px) {
  .no-zoom-bg {
    background-size: contain !important;
  }
}

@media (max-width: 640px) {
    .filmpost-header-title {
        font-size: 50px !important;
    }
}

@media (max-width: 640px) {
    .filmpost-header-date {
        font-size: 20px !important;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 50px !important;
    }
    .fiktion-section-title {
      font-size: 30px !important;
    }
    .kunst-title > * {
      color: #FFFFFF !important;
    }
}

@media (max-width: 500px) {
    .page-title {
        font-size: 42px !important;
    }
}

@media (max-width: 500px) {
    .music-page-title {
        font-size: 42px !important;
    }
}

/* Kommentarbox bearbeiten */
@media (max-width: 640px) {
    #respond {
        background-color: #ffffff;
        margin: -10px -30px -50px -30px !important;
        padding: 30px 30px 30px 30px;
    }
}


#respond {
    margin: 50px 20% 50px 20%;
}

/* Style vom Icegram abonnieren Button ändern*/
input[type="submit"], button {
  background: #198fd9;
  color: #fff;
  border-radius: 4px 4px 4px 4px !important;
  padding: 13px 29px 13px 29px;
  border: 0px;
  font-size: 16px;
  cursor: pointer;
}
input[type="submit"]:hover, button:hover {
  background: #92cbdf;
}

/* Music Player */
.song-audio {
  display: inline-flex;
  align-items: center;
}

.song-audio .mejs-container {
  display: none !important;
}

/* Button */
.play-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
}

/* Standard: Play sichtbar */
.icon-pause {
  display: none;
}

/* Wenn Song läuft */
.song-card.is-playing .icon-play {
  display: none;
}

.song-card.is-playing .icon-pause {
  display: inherit;
}

.spotify-player .grid-container {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto;
  grid-gap: 10px;
  padding: 10px;
  align-items: center;     /* vertikal */
}

.spotifiy-player .grid-container div {
  display: flex;
} 

.grid-container2 {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto;
  grid-gap: 10px;
  padding: 10px;
  align-items: center;     /* vertikal */
}

.grid-container2 div {
  display: flex;
} 

.grid-container2 .item1 {
  justify-content: right;
}

/* iOS Toggle Basis */
.ios-toggle {
  width: 46px;
  height: 28px;
  border-radius: 28px !important;
  background: #d1d1d6; /* iOS Grau */
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease;
}

/* Der weiße Kreis */
.ios-toggle .knob {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* AKTIV */
.ios-toggle[aria-pressed="true"] {
  background: #34c759; /* iOS Grün */
}

.ios-toggle[aria-pressed="true"] .knob {
  transform: translateX(18px);
}

/* Fokus (Keyboard / Accessibility) */
.ios-toggle:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}


/* Filmkritik */
p.film-date {
  color: #FFFFFF;
  font-family: Inter;
  font-size: 20px;
}

p.tagebuch-date {
  color: #000000;
  font-style: italic;
}

@media (max-width: 640px) {
  .ein-satz-post {
    font-size: 24px !important;
  }
}

p.filmpost-title-date {
  font-size: 28px;
  text-align: right;
  padding-right: 6%;
  margin-top: 0;
}

.recent-music-element a {
  color: #eaeaea !important;
}

.recent-music-element a:hover {
  color: #434549 !important;
}

.recent-music-element .meta {
  color: #eaeaea !important;
}

.recent-art-title h2 {
  transition: color 1s ease;
}

.recent-art-title h2:hover {
  color: #212326 !important;
  cursor: default !important;
  animation: 3s !important;
}

.book-reader {
  height: 80vh;
  overflow-x: auto;
  overflow-y: hidden;
}

.book-text {
  column-width: 25dvw;        /* Seitenbreite */
  column-gap: 100px;           /* Abstand zwischen Seiten */
  height: 100%;
  padding: 10px 5% 20px 5%;
  font-size: 18px;
  line-height: 1.6;
}

.book-reader {
  scroll-snap-type: x mandatory;
}

@media (max-width: 768px) {
  .book-reader {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 30px !important;
  }
  .book-text {
    column-width: 100dvw;
    column-gap: 10px;
    padding: 2rem;
    font-size: 17px;
  }
}

.book-text {
  column-fill: auto;
  hyphens: auto;
}

.book-text > * {
  scroll-snap-align: center;
}

.horizontal-text {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100vw;
  height: 100vh;
  scroll-snap-type: x mandatory;
}

.horizontal-text > * {
  min-width: 100vw;
  padding: 4rem;
  scroll-snap-align: start;
}

/* Fiktion Post Cards Design and Logic */
.fusion-post-card,
.book-card {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* versteckter Text */
.book-card .book-content {
  display: none !important;
  width: 100%;
}

.book-card .book-toggle::after {
  content: "Lesen";
  color: black;
}

.book-card.is-open .book-toggle::after {
  content: "Schließen";
  color: black;
}

/* sichtbar nach Klick */
.book-card.is-open .book-content {
  display: block !important;
}

/* horizontales Lesen */
.book-content {
  overflow-x: auto;
  overflow-y: hidden;
  height: calc(80vh - 120px); /* Platz für Titel + Button */
  column-width: 40vw;
  column-gap: 80px;           /* Abstand zwischen Seiten */
  padding: 20px 80px 20px 80px;
}

.book-content {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .book-content {
    column-width: 80vw !important;
    column-gap: 30px !important;           /* Abstand zwischen Seiten */
    padding: 15px 20px 15px 20px !important;
    margin: 0 -10px 0 -10px !important;
    scroll-snap-type: x !important;
    scroll-snap-align: none !important;
  }
}

.book-content > * {
  break-inside: avoid;
  scroll-snap-align: center;
}

/* ----- Musik Beitrag ----- */
.audio-ring-player {
  position: relative;
  width: 20vw;
  height: 20vw;
  display: inline-block;
}

.audio-element div {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.audio-element .fusion-audio .mejs-container{
  display: none !important;
}

/* SVG Ring */
.progress-ring {
  position: absolute;
  width: 20vw !important;
  height: 20vw !important;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  fill: rgba(255,255,255,0.85);
}

.progress-ring-bg {
  fill: rgba(255,255,255,0.85) !important;
  stroke: #212326;
  stroke-width: 16;
  cx="0" cy="0" r="18vw";
}

.progress-ring-progress {
  fill: none;
  stroke: #eaeaea;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.15s linear;
}

@media (max-width: 768px) {
  .audio-ring-player {
    width: 50vw;
    height: 50vw;
  }
  .progress-ring {
    width: 50vw !important;
    height: 50vw !important;
  }
  .progress-ring circle {
    r: 40%;
    vector-effect: non-scaling-stroke;
  }
}

/* Button */
.music-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.music-play-btn:hover {
  background: transparent !important;
}

.music-play-btn img {
  width: 100%;
  height: 100%;
}

/* Icon Umschaltung */
.music-icon-pause {
  display: none;
}

.audio-element.is-playing .audio-ring-player .music-icon-play {
  display: none;
}

.audio-element.is-playing .audio-ring-player .music-icon-pause {
  display: block;
}
