﻿/*
Theme Name:   BLOG template PaulK
Theme URI:    https://paulk.ch
Author:       Paul Koszinowski
Author URI:   https://paulk.ch
Description:  Ein modernes, minimalistisches Reise-Blog-Template, entwickelt für visuelles Storytelling. Mit Fokus auf großflächige Bilder, typografische Klarheit und ein responsives Design bietet es die perfekte Bühne für Reiseberichte und Abenteuer weltweit. Schnell, SEO-optimiert und absolut ablenkungsfrei.
Version:      1.0.0
License:      DO NOT USE!
*/

/* ===========================
   BASE STYLES
   =========================== */
body {
    margin: 0;
    padding: 0;
    font-family: Atkinson Hyperlegible, sans-serif;
    color: #1D1F21;
    background-color: var(--clr-background, #ffffff);
}
body.dark{
	 --text: white;
}
:root {
    --clr-background: #ffffff;
    --clr-text: #333333;
}

a {
    color: var(--text);
    text-decoration: none;
}

h1, h4, h5 {
    font-family: Apparel, serif;
	margin:20px 0;
}
h2 {
    font-family: Apparel, serif;
	margin:16px 0;
}

h1 {
    font-size: 40px;
    flex-grow: 1; /* Nimmt den verfügbaren Platz ein */
}

/* Fußzeile */
footer {
    position: static;
    inset: auto;
    display: block;
    clear: both;
    text-align: center;
    padding: 10px 10px 50px 10px;
    margin: 0 10% 75px 10%;
    transform: none;
    z-index: auto;
}

footer p {
    margin: 0;
	padding-left:50px;
}

/* Trennlinie */
hr {
    width: 80%;
	margin:0;
    border-top: 1px solid #121212;
}

/* ===========================
   FONTS
   =========================== */
@font-face {
    font-family: "Apparel";
    src: url("serif_font.otf");
}

.atkinson-hyperlegible-regular {
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.atkinson-hyperlegible-bold {
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-weight: 700;
}

.atkinson-hyperlegible-regular-italic {
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.atkinson-hyperlegible-bold-italic {
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-weight: 700;
    font-style: italic;
}

/* ===========================
   DROPDOWN
   =========================== */
.dropdown_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 15px 0;
}

.dropdown_container h1 {
    flex-grow: 1;
    font-size: 30px;
    padding-right: 40px;
    z-index: 2;
}

.toggle-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.dropdown_icon {
    width: 20px;
    height: 20px;
    fill: #121212;
    transition: transform 0.3s ease;
}

.dropdown_icon.rotated {
    transform: rotate(180deg);
}

/* ===========================
   CONTENT
   =========================== */
.content_container {
    padding: 0 20% 50px 20%;
	width:60%;
}
h1:hover {
  background: linear-gradient(90deg, rgba(0,212,255,1) 0%, rgba(0,0,255,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor:pointer;
}
.chapter_dropdown_container h1 > div {
  -webkit-text-fill-color: var(--clr-text, #333333);
  background: none;
  -webkit-background-clip: border-box;
}
.content_container p {
    text-align: justify;
    word-spacing: -1px;
    hyphens: auto;
}

.article-content > p:last-of-type::after {
    content: " ◼︎";
    display: inline-block;
    margin-left: 0.3em; /* Abstand zum Text */
}
.article_img {
	margin-top:20px;
}
.collapsible-content img{
	max-width:100%;
}
.preview-text{
	text-align:justify;
	word-spacing: -1px;
    hyphens: auto;
}
.preview_container
{
	width:80%;
}
.yt_player
{
	width:100%;
}
.hidden {
    max-height: 0 !important;
    overflow: hidden;
}

.main_navigation_container
{
	height:100%;
}
.main_chapter
{
	padding-left:20%;
}
span{
	padding:0;
	margin:0;
}
.login_mask_container
{
	width:100%;
	height:100vh;
	position:fixed;
	top:0;
	left:0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color:white;
}
.login_input{
	border-radius: 8px;
	padding:20px;
}


/* Wichtig: macht den span zu einem Block-Element, damit transform funktioniert */
.chapter_dropdown_icon {
    display: inline-block;
    cursor: pointer; /* Zeigt, dass es klickbar ist */
    transition: transform 0.3s ease;
}

.chapter_dropdown_icon.rotated {
    transform: rotate(180deg);
}
/* Container für den gesamten Slider */
.image_slider_container {
  display: flex;
  overflow-x: auto; /* horizontal scrollbar, falls nötig */
  gap: 10px;        /* Abstand zwischen den Slides */
  /*padding-top: 10px;	wenn du  das brauchst bist du ein HURENSOHN!*/
  scroll-snap-type: x mandatory; /* optional: für schnappende Slides beim Scrollen */
}

/* Jede Slide */
.image_slider {
  flex: 0 0 auto;       /* Slide behält eigene Breite */
  overflow: hidden;     /* Bild nicht über Container hinaus */
}
.image_slider img
{
	flex-shrink: 0;
    width: 80%; /* Oder deine gewünschte Breite */
    height: 400px;
    object-fit: cover;
    scroll-snap-align: center;
}
.image_slider_bangkok_
{
	height:350px;
}
/* Bilder innerhalb der Slides */
.slider_image {
  max-height: 350px;
  display: block;
}
/* Verwandelt die Standard-WP-Galerie in deinen Slider */
.wp-block-gallery.has-nested-images {
	display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important; /* Horizontales Scrollen erzwingen */
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 15px; /* Platz für die Scrollbar */
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.wp-block-gallery.has-nested-images:active {
    cursor: grabbing;
}

/* Die einzelnen Bilder im Slider */
.wp-block-gallery.has-nested-images .wp-block-image {
    flex: 0 0 auto !important;
    width: auto !important; /* Breite passt sich dem Bildverhältnis an */
    max-height: 300px;      /* Deine gewünschte maximale Höhe */
    margin: 0 !important;
    scroll-snap-align: start;
}

.wp-block-gallery.has-nested-images img {
    height: 300px !important; /* Gleiche Höhe wie oben */
    width: auto !important;
    object-fit: cover;
}

/* Scrollbar verstecken (optional für den cleanen Look) */
.wp-block-gallery.has-nested-images::-webkit-scrollbar {
    height: 8px; /* Höhe der horizontalen Scrollbar */
    display: block !important; /* Sicherstellen, dass sie da ist */
}
.wp-block-gallery.has-nested-images::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.wp-block-gallery.has-nested-images::-webkit-scrollbar-thumb {
    background: #1d1f21; /* Deine Textfarbe/Dunkelgrau */
    border-radius: 10px;
}

.wp-block-gallery.has-nested-images::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Für Firefox */
.wp-block-gallery.has-nested-images {
    scrollbar-width: thin;
    scrollbar-color:#969696 rgba(0, 0, 0, 0.05);
}
/*LIGHTBOX*/
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.90);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.lightbox img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: #ddd;
}
.image_slider_container.scroller-container {
	overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;       /* Firefox */
    scrollbar-color: auto auto;  /* Firefox Standardfarben */
}
/*custom scrollbar*/
/* Chrome, Safari, Edge */
.image_slider_container.scroller-container::-webkit-scrollbar {
	height: 4px; /* dünner Strich */
}

.image_slider_container.scroller-container::-webkit-scrollbar-track {
    background: transparent; /* keine Box/Track sichtbar */
}

.image_slider_container.scroller-container::-webkit-scrollbar-thumb {
    background: #888;        /* schlichter Griff */
    border-radius: 2px;      /* leicht abgerundet */
}

.image_slider_container.scroller-container::-webkit-scrollbar-thumb:hover {
    background: #555;        /* optional: dunkler beim Hover */
}
.image_slider_wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/*PFEILE*/
.slider_arrow {
    background: transparent; /* kein runder Hintergrund */
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 4px; /* minimaler Klickbereich */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.slider_arrow:hover {
    transform: translateY(-50%) scale(1.2); /* leichtes Vergrößern beim Hover */
}
.slider_arrow.left {
    left: 5px;
}
.slider_arrow.right {
    right: 5px;
}
/* SVG Größe */
.slider_arrow {
    pointer-events: auto; /* Buttons reagieren auf Klicks */
}
.image_slider_wrapper {
    pointer-events: none; /* Wrapper blockt nichts */
}
.image_slider_container.scroller-container,
.image_slider_container.scroller-container img {
    pointer-events: auto; /* Slider und Bilder reagieren normal */
}
/* CONTAINER UND WICKELUNG */
.image_slider_wrapper {
    /* WICHTIG: Erlaubt absolute Positionierung der Pfeile relativ zu diesem Element */
    position: relative; 
    width: 100%; /* Beispielbreite, anpassen nach Bedarf */
    margin: 0; /* Zentrierung */
    overflow: hidden; /* Verhindert das Herausragen von Inhalten */
}

/* LIGHTBOX BILD */
.lightbox-image {
    /* Stellt sicher, dass das Bild in den Viewport passt */
    max-width: 90%; 
    max-height: 90%;
    /* Stellt sicher, dass das Bild auch beim Klick auf das Overlay nicht überlagert */
    pointer-events: none; 
    /* Sanfter Übergang beim Laden/Öffnen */
    transition: transform 0.3s ease-out; 
}

/* SCHLIESSEN-BUTTON */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    /* Stellt sicher, dass das X über dem Hintergrund und dem Bild liegt */
    z-index: 10000; 
    pointer-events: auto; /* Muss auf Klicks reagieren */
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}
/* Container-Anpassungen */
.wp-block-gallery.has-nested-images {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important; /* Wichtig für Scrollbar */
    padding-bottom: 20px !important;
    cursor: grab; /* Zeigt die offene Hand */
    user-select: none; /* Verhindert hässliches Markieren beim Draggen */
    -webkit-overflow-scrolling: touch; /* Geschmeidig auf dem Handy */
}

/* Scrollbar Style (Erzwingen) */
.wp-block-gallery.has-nested-images::-webkit-scrollbar {
    height: 8px;
    display: block !important;
}

.wp-block-gallery.has-nested-images::-webkit-scrollbar-thumb {
    background: #1d1f21;
    border-radius: 10px;
}

.wp-block-gallery.has-nested-images::-webkit-scrollbar-track {
    background: #f0f0f0;
}

/* Die Bilder */
.wp-block-gallery.has-nested-images .wp-block-image {
    flex: 0 0 auto !important;
    max-height: 250px; /* Hier die gewünschte flache Höhe */
    width: auto !important;
}

.wp-block-gallery.has-nested-images img {
    height: 250px !important;
    width: auto !important;
    object-fit: contain; /* Damit nichts verzerrt wird */
}
/* Den WordPress Galerie-Block zum Slider umfunktionieren */
.wp-block-gallery.has-nested-images {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important; /* Horizontales Scrollen erzwingen */
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 15px; /* Platz für die Scrollbar */
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

/* Die Bilder drastisch in der Höhe beschränken */
.wp-block-gallery.has-nested-images .wp-block-image {
    flex: 0 0 auto !important;
    width: auto !important; /* Breite passt sich dem Bildverhältnis an */
    max-height: 300px;      /* Deine gewünschte maximale Höhe */
    margin: 0 !important;
    scroll-snap-align: start;
}

.wp-block-gallery.has-nested-images img {
    height: 300px !important; /* Gleiche Höhe wie oben */
    width: auto !important;
    object-fit: cover;
    border-radius: 4px;
}

/* --- SCROLLBAR STYLE (Damit sie sichtbar und schick ist) --- */
.wp-block-gallery.has-nested-images::-webkit-scrollbar {
    height: 8px; /* Höhe der horizontalen Scrollbar */
    display: block !important; /* Sicherstellen, dass sie da ist */
}

.wp-block-gallery.has-nested-images::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.wp-block-gallery.has-nested-images::-webkit-scrollbar-thumb {
    background: #1d1f21; /* Deine Textfarbe/Dunkelgrau */
    border-radius: 10px;
}

.wp-block-gallery.has-nested-images::-webkit-scrollbar-thumb {
    background: #555;
}

/* Für Firefox */
.wp-block-gallery.has-nested-images {
    scrollbar-width: thin;
    scrollbar-color: #555 rgba(0, 0, 0, 0.05);
}
/*TEST TEST*/
.slider_arrow.right.hd{
	right:30px;
}
.slider_arrow.left.hd{
	left:30px;
}
/* ===========================
   LANGUAGE TOGGLE
   =========================== */
.language-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: fixed;
    right: 20px;
    top: calc(20px + 48px + 15px);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}
/* ===========================
   PROGRESS BAR
   =========================== */
#reading-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 8px;
    background-color: #44afdb;
    z-index: 1000;
    transition: width 0.1s linear;
}

.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 10px;
    background: linear-gradient(90deg, rgba(0,212,255,1) 0%, rgba(0,0,255,1) 100%);
    z-index: 1000;
    transition: width 0.1s ease-out;
}

#progress-bar-spacer {
    height: 40px;
    position: fixed;
    bottom: 0;
    z-index: 9;
    width: 100%;
}
/* ===========================
   DARK MODE
   =========================== */
body.dark-mode {
    --clr-background: #121212;
    --clr-text: #e0e0e0;
    background-color: var(--clr-background);
    color: var(--clr-text);
}

body.dark-mode .wp-block-audio,
body.dark-theme .wp-block-audio {
    color: var(--clr-text);
}

body.dark-mode .wp-block-audio audio,
body.dark-theme .wp-block-audio audio,
body.dark-mode .content_container audio,
body.dark-theme .content_container audio {
    width: 100%;
    color-scheme: dark;
    border-radius: 8px;
    /*background-color: #1d1f21;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);*/
}

body.dark-mode .wp-block-audio figcaption,
body.dark-theme .wp-block-audio figcaption {
    color: #b8b8b8;
}

body.dark-mode .mejs-container,
body.dark-theme .mejs-container,
body.dark-mode .mejs-controls,
body.dark-theme .mejs-controls {
    background: #1d1f21;
    color: var(--clr-text);
}

body.dark-mode .mejs-time,
body.dark-theme .mejs-time,
body.dark-mode .mejs-button > button,
body.dark-theme .mejs-button > button {
    color: var(--clr-text);
    filter: invert(1);
}

body.dark-mode .mejs-time-total,
body.dark-theme .mejs-time-total,
body.dark-mode .mejs-horizontal-volume-total,
body.dark-theme .mejs-horizontal-volume-total {
    background: #34383c;
}

body.dark-mode .mejs-time-current,
body.dark-theme .mejs-time-current,
body.dark-mode .mejs-horizontal-volume-current,
body.dark-theme .mejs-horizontal-volume-current {
    background: #44afdb;
}

.wp-block-comments,
#comments,
.comments-area {
    margin: 56px 0 0;
    color: var(--clr-text);
}

.wp-block-comments h2,
.wp-block-comments h3,
#comments h2,
#comments h3,
.comment-reply-title {
    color: var(--clr-text);
}

.comment-list,
.wp-block-comment-template {
    list-style: none;
    padding-left: 0;
}

.comment-body,
.wp-block-comment-content,
.wp-block-comment-author-name,
.wp-block-comment-date,
.comment-notes,
.logged-in-as,
.required-field-message {
    color: var(--clr-text);
}

.wp-block-comments a,
#comments a,
.comments-area a {
    color: currentColor;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.comment-body,
.wp-block-comment-template li {
    border-bottom: 1px solid rgba(29, 31, 33, 0.16);
    padding: 18px 0;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--clr-text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form input[type="url"],
.wp-block-post-comments-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(29, 31, 33, 0.24);
    border-radius: 4px;
    padding: 12px;
    background: #ffffff;
    color: #1d1f21;
    font: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus,
.wp-block-post-comments-form input[type="text"]:focus,
.wp-block-post-comments-form input[type="email"]:focus,
.wp-block-post-comments-form input[type="url"]:focus,
.wp-block-post-comments-form textarea:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1d1f21;
}

.comment-form .comment-form-cookies-consent label {
    display: inline;
    margin: 0;
    font-weight: 700;
}

.comment-form .comment-form-url,
.wp-block-post-comments-form .comment-form-url {
    display: none;
}

.comment-form input[type="submit"],
.comment-form .submit,
.wp-block-post-comments-form input[type="submit"],
.wp-block-post-comments-form .wp-block-button__link,
.wp-block-post-comments-form button[type="submit"] {
    border: 1px solid #1d1f21;
    border-radius: 4px;
    padding: 10px 16px;
    background: #1d1f21;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.comment-form input[type="submit"]:hover,
.comment-form .submit:hover,
.wp-block-post-comments-form input[type="submit"]:hover,
.wp-block-post-comments-form .wp-block-button__link:hover,
.wp-block-post-comments-form button[type="submit"]:hover {
    background: #ffffff;
    color: #1d1f21;
}

body.dark-mode .wp-block-comments,
body.dark-theme .wp-block-comments,
body.dark-mode #comments,
body.dark-theme #comments,
body.dark-mode .comments-area,
body.dark-theme .comments-area {
    color: var(--clr-text);
}

body.dark-mode .comment-body,
body.dark-theme .comment-body,
body.dark-mode .wp-block-comment-template li,
body.dark-theme .wp-block-comment-template li {
    border-bottom-color: rgba(234, 234, 234, 0.18);
}

body.dark-mode .comment-form input[type="text"],
body.dark-theme .comment-form input[type="text"],
body.dark-mode .comment-form input[type="email"],
body.dark-theme .comment-form input[type="email"],
body.dark-mode .comment-form input[type="url"],
body.dark-theme .comment-form input[type="url"],
body.dark-mode .comment-form textarea,
body.dark-theme .comment-form textarea,
body.dark-mode .wp-block-post-comments-form input[type="text"],
body.dark-theme .wp-block-post-comments-form input[type="text"],
body.dark-mode .wp-block-post-comments-form input[type="email"],
body.dark-theme .wp-block-post-comments-form input[type="email"],
body.dark-mode .wp-block-post-comments-form input[type="url"],
body.dark-theme .wp-block-post-comments-form input[type="url"],
body.dark-mode .wp-block-post-comments-form textarea,
body.dark-theme .wp-block-post-comments-form textarea {
    border-color: rgba(234, 234, 234, 0.28);
    background: #1d1f21;
    color: var(--clr-text);
}

body.dark-mode .comment-form input[type="submit"],
body.dark-theme .comment-form input[type="submit"],
body.dark-mode .comment-form .submit,
body.dark-theme .comment-form .submit,
body.dark-mode .form-submit #submit,
body.dark-theme .form-submit #submit,
body.dark-mode .wp-block-post-comments-form input[type="submit"],
body.dark-theme .wp-block-post-comments-form input[type="submit"],
body.dark-mode .wp-block-post-comments-form .wp-block-button__link,
body.dark-theme .wp-block-post-comments-form .wp-block-button__link,
body.dark-mode .wp-block-post-comments-form button[type="submit"],
body.dark-theme .wp-block-post-comments-form button[type="submit"] {
    border-color: #e0e0e0 !important;
    background: #1d1f21 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .comment-form input[type="submit"]:hover,
body.dark-theme .comment-form input[type="submit"]:hover,
body.dark-mode .comment-form .submit:hover,
body.dark-theme .comment-form .submit:hover,
body.dark-mode .form-submit #submit:hover,
body.dark-theme .form-submit #submit:hover,
body.dark-mode .wp-block-post-comments-form input[type="submit"]:hover,
body.dark-theme .wp-block-post-comments-form input[type="submit"]:hover,
body.dark-mode .wp-block-post-comments-form .wp-block-button__link:hover,
body.dark-theme .wp-block-post-comments-form .wp-block-button__link:hover,
body.dark-mode .wp-block-post-comments-form button[type="submit"]:hover,
body.dark-theme .wp-block-post-comments-form button[type="submit"]:hover {
    background: #e0e0e0 !important;
    color: #121212 !important;
}

body.dark-mode .comment-form-cookies-consent input[type="checkbox"],
body.dark-theme .comment-form-cookies-consent input[type="checkbox"] {
    accent-color: #e0e0e0;
}




/* ===========================
   THEME TOGGLE BUTTON
   =========================== */
.theme-toggle {
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: var(--clr-background);
    color: var(--clr-text);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.theme-toggle .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    font-size: 24px;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.theme-toggle .sun {
    opacity: 1;
}

.theme-toggle .moon {
    opacity: 0;
}

body.dark-mode .theme-toggle .sun,
body.dark-theme .theme-toggle .sun {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

body.dark-mode .theme-toggle .moon,
body.dark-theme .theme-toggle .moon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* ===========================
   BACK LINK
   =========================== */
.back-link-container {
    margin: 40px auto;
    padding: 20px 0;
    max-width: 900px;
    text-align: left;
}

.back-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    padding: 10px 15px;
    border: 2px solid #007bff;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.arrow-icon {
    font-size: 1.5em;
    margin-right: 10px;
    line-height: 1;
}

.back-link:hover {
    background-color: #007bff;
    color: white;
}

/* ===========================
   DESTINATION LIST
   =========================== */
.destination-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.destination-list a {
    position: relative;
    font-size: 1.1rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    padding-bottom: 3px;
	white-space: nowrap;
}

.destination-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 0%;
    height: 2.5px;
    background: linear-gradient(90deg, rgba(0,212,255,1) 0%, rgba(0,0,255,1) 100%);
    transition: width 0.35s ease;
}

.destination-list a:hover::after {
    width: 100%;
}

.arrow {
    opacity: 0.6;
    font-size: 1.2rem;
}

/* ===========================
   LANGUAGE TOGGLE
   =========================== */
.language-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: fixed;
    right: 20px;
    top: calc(20px + 48px + 15px);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}
/* ===========================
   CHAPTER TOGGLE
   =========================== */
.main_chapter .chapter_dropdown_container {
    cursor: pointer;
    user-select: none;
}
.main_chapter_content {
    max-height: none;
    overflow: visible;
    transition: max-height 0.5s ease;
}
.main_chapter_content.hidden {
    max-height: 0 !important;
    overflow: hidden;
}
.chapter_dropdown_container h1 div {
    display: inline-block;
}
.chapter_dropdown_container h1 div.open {
    transform: rotate(180deg);
}
.main_chapter_hr
{
	width:64%;
	margin-left:20%;
	border:2px solid rgba(0,212,255,1);
}
.preview_image_container img{
	width:100%;
	height:auto;
}
/* ===========================
   RESPONSIVE CSS
   =========================== */
@media (max-width: 399px){
  .preview_container
  {
	  width:90%;
  }
  .content_container{
	  width:80%;
	  padding:0 10%;
  }
  .article_img{
	  width:100%;
  }
  .image_slider img
  {
	  Width:100%;
	  height: 20vh;
  }
  .destination-list{
	  overflow-x:scroll;
  }
  .language-toggle
  {
	right:10px;
	top:70px;
	width:40px;
	height:40px;
  }
  .theme-toggle
  {
	  top:10px;
	  right:7px;
  }
  .main_chapter
  {
	padding-left:10%;  
  }
	#fade-element {
		transition: opacity 0.5s ease-in-out, visibility 0.5s;
		opacity: 1;
		visibility: visible;
	}
	#fade-element.is-hidden {
	  opacity: 0;
	  visibility: hidden;
	  pointer-events: none; /* Verhindert Klicks im unsichtbaren Zustand */
	}
	h1{
		padding:0;
		margin:0;
	}
	.collapsible-content p{
		margin-top:0;
	}
	.chapter_dropdown_container h1{
		padding:20px 0;
	}
}
@media (min-width: 399px) and (max-width:768px){
	.main_chapter_hr
	{
		width:63% !important;
		margin-left:20% !important;
	}
}

/* ===========================
   HR ZWISCHEN PREVIEWS – nur in Listenansicht (geschlossene Dropdowns) anzeigen
   =========================== */
.preview_container:has(.collapsible-content:not(.hidden)) + hr {
    display: none;
}

/* ===========================
   DARK MODE – Scrollbar (Image Slider)
   =========================== */
body.dark-theme .image_slider_container.scroller-container {
    scrollbar-color: #e6e6e6 transparent; /* Firefox */
}
body.dark-theme .image_slider_container.scroller-container::-webkit-scrollbar-track {
    background: transparent;
}
body.dark-theme .image_slider_container.scroller-container::-webkit-scrollbar-thumb {
    background: #e6e6e6;
}
body.dark-theme .image_slider_container.scroller-container::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}
/* WP-Galerie zum flachen Slider umbauen */
.wp-block-gallery.has-nested-images {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 10px !important;
    padding-bottom: 15px !important; /* Platz für Scrollbar */
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

.wp-block-gallery.has-nested-images:active {
    cursor: grabbing;
}

/* Drastische Höhenbeschränkung */
.wp-block-gallery.has-nested-images .wp-block-image {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}

.wp-block-gallery.has-nested-images img {
    height: 250px !important; /* Hier die Höhe einstellen */
    width: auto !important;
    object-fit: cover;
    max-width: none !important;
}

/* Sichtbare Scrollbar erzwingen & stylen */
.wp-block-gallery.has-nested-images::-webkit-scrollbar {
    height: 6px;
    display: block !important;
}

.wp-block-gallery.has-nested-images::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.wp-block-gallery.has-nested-images::-webkit-scrollbar-thumb {
    background: #1d1f21;
    border-radius: 10px;
}
/* Slider Fixes */
.wp-block-gallery.has-nested-images {
    cursor: grab;
    user-select: none;
    touch-action: pan-y; /* Erlaubt vertikales Scrollen am Handy, stoppt horizontales Browser-Wackeln */
}

.wp-block-gallery.has-nested-images img {
    pointer-events: auto; /* Erlaubt Klicks */
    -webkit-user-drag: none; /* Verhindert das verzögerte Browser-Dragging */
}

/* --- LIGHTBOX STYLE --- */
#lb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

#lb-overlay.active {
    visibility: visible;
    opacity: 1;
}

#lb-img {
    max-width: 90%;
    min-height: 80%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: 0.3s;
}

#lb-overlay.active #lb-img {
    transform: scale(1);
}

#lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}
/* Lightbox Navigations-Pfeile */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    z-index: 10000;
}

#lb-prev { left: 10px; }
#lb-next { right: 10px; }

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

#lb-img {
    transition: opacity 0.2s ease-in-out; /* Weicher Bildwechsel */
}

/* Verhindert "Zittern" beim Draggen */
.wp-block-gallery.has-nested-images {
    scroll-behavior: auto !important; /* Wichtig: Manuelles Scrollen verträgt sich nicht mit CSS-smooth-scroll */
}
/* Datum im Einzelbeitrag ausblenden */
.single .preview-date {
    display: none !important;
}

/* Lightbox Navigations-Pfeile (UI) */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s, opacity 0.3s;
    z-index: 10001;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
}

#lb-prev { left: 20px; }
#lb-next { right: 20px; }

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Optimierung für Lightbox-Pfeile */
@media (max-width: 768px) {
    .lb-nav {
        font-size: 30px;
        padding: 10px;
    }
}
/* Datum im Einzelbeitrag ausblenden */
.single .preview-date {
    display: none !important;
}

/* --- LIGHTBOX UI PFEILE --- */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10001;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

#lb-prev { left: 10px; }
#lb-next { right: 10px; }

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Optimierung: Größere Klickfläche, kleinere Icons */
@media (max-width: 768px) {
    .lb-nav {
        font-size: 35px;
        padding: 15px;
        background: rgba(0,0,0,0.3);
    }
    #lb-prev { left: 5px; }
    #lb-next { right: 5px; }
	.main_chapter_hr{
			width:80%;
			margin-left:10%;
	}
}

/* Sanfter Bildwechsel in der Lightbox */
#lb-img {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
/* --- DESTINATION LIST STEUERUNG --- */
/* Standardmäßig überall ausblenden (z.B. in der Preview/Startseite) */
.destination-list {
    display: none !important;
}

/* NUR in der Einzelansicht des Beitrags anzeigen */
.single .destination-list {
    display: flex !important; /* Oder block, je nach deinem Layout */
}

/* --- LIGHTBOX UI PFEILE --- */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s, transform 0.2s;
    z-index: 10001;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

#lb-prev { left: 20px; }
#lb-next { right: 20px; }

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .lb-nav {
        font-size: 30px;
        padding: 10px;
    }
}

.new-post-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: Atkinson Hyperlegible, sans-serif;
    font-size: 0.78em;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
	background-color:#121212 !important;
	padding-top:6px !important;
}
body.dark-mode
{
	.new-post-badge{background-color:white !important;}
	.dropdown_icon{fill:white !important;}
}

body.dark-mode .new-post-badge,
body.dark-theme .new-post-badge {

    color: #121212;
}

.dropdown-new-post-badge {
    margin-left: 0;
    margin-right: 12px;
    font-size: 0.85rem;
}

/* --- LOGIN PAGE --- */
     :root {
        --brand-blue: #121212;
        --text-dark: #1A1A1A;
        --border-radius: 25px;
    }

    body.login-page {
        background: #ffffff;
        overflow-x: hidden;
    }

    body.login-page footer {
        position: fixed;
        left: 0;
        bottom: 28px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 40%;
        margin: 0;
        padding: 0 40px;
        box-sizing: border-box;
        text-align: center;
    }

    body.login-page #progress-bar-spacer,
    body.login-page #reading-progress-bar {
        display: none;
    }

    body.login-page #fade-element {
        display: block;
    }

    body.login-page .theme-toggle {
        top: 24px;
        right: auto;
        left: calc(40% - 72px);
        z-index: 30;
    }

    body.login-page .footer_container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    body.login-page footer p {
        padding-left: 0;
        font-size: 13px;
        color: #777;
    }

    body.login-page .footer-socials {
        display: flex;
        justify-content: center;
        gap: 18px;
        padding-left: 0;
    }

    body.login-page .footer-socials a,
    body.login-page .footer-links a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        color: #121212;
        text-decoration: none;
    }

    body.login-page .footer-links {
        gap: 18px;
        justify-content: center;
        padding-left: 0;
        margin: 0;
    }

    body.login-page .footer-socials i,
    body.login-page .menu-icon.dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
        line-height: 24px;
    }

    .auth-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        font-family: 'Arial', sans-serif;
        padding: 0;
    }

    .auth-layout {
        display: grid;
        grid-template-columns: minmax(320px, 40%) minmax(0, 60%);
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        background: white;
        overflow: hidden;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-panel {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px;
    }

    body.login-page .auth-logo {
        position: absolute;
        top: 30px;
        left: 40px;
        color: #121212;
        font-family: Apparel, serif;
        font-size: 30px;
        line-height: 1;
        text-decoration: none;
        letter-spacing: 0;
    }

    .auth-card {
        background: white;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        max-width: 380px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .auth-image-panel {
        position: relative;
        height: 100vh;
        min-height: 100vh;
        margin: 0;
        overflow: hidden;
        background: #121212;
    }

    .auth-image-panel img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .auth-image-panel figcaption {
        position: absolute;
        right: 28px;
        bottom: 26px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        color: white;
        text-align: right;
        text-shadow: 0 2px 14px rgba(0,0,0,0.55);
    }

    .auth-image-panel figcaption strong {
        font-size: 18px;
        line-height: 1.2;
    }

    .auth-image-panel figcaption span {
        font-size: 13px;
        letter-spacing: 0;
        opacity: 0.9;
    }

    .auth-card h2 { font-size: 28px; margin-bottom: 5px; color: var(--text-dark); font-weight: bold; }
    .subtitle { color: #777; font-size: 14px; margin-bottom: 30px; }

    .input-group { margin-bottom: 20px; text-align: left; }
    .input-group input {
        width: 100%;
        border: none;
        border-bottom: 1px solid #DDD;
        padding: 10px 0;
        outline: none;
        font-size: 16px;
    }

    .btn-submit {
        width: 100%;
        padding: 15px;
        border-radius: var(--border-radius);
        border: 2px solid var(--text-dark);
        background: white;
        font-weight: bold;
        cursor: pointer;
        margin-top: 20px;
        transition: 0.3s;
    }

    .btn-submit:hover { background: #f0f0f0; }

    .footer-link { margin-top: 25px; font-size: 14px; color: #777; }
    .footer-link a { color: var(--text-dark); font-weight: bold; text-decoration: none; cursor: pointer; }

    body.login-page.dark-mode,
    body.login-page.dark-theme {
        background: #121212;
    }

    body.login-page.dark-mode .auth-layout,
    body.login-page.dark-theme .auth-layout,
    body.login-page.dark-mode .auth-panel,
    body.login-page.dark-theme .auth-panel,
    body.login-page.dark-mode .auth-card,
    body.login-page.dark-theme .auth-card {
        background: #121212;
    }

    body.login-page.dark-mode .auth-logo,
    body.login-page.dark-theme .auth-logo,
    body.login-page.dark-mode .auth-card h2,
    body.login-page.dark-theme .auth-card h2,
    body.login-page.dark-mode .footer-link a,
    body.login-page.dark-theme .footer-link a,
    body.login-page.dark-mode .footer-links a,
    body.login-page.dark-theme .footer-links a {
        color: #ffffff;
    }

    body.login-page.dark-mode .subtitle,
    body.login-page.dark-theme .subtitle,
    body.login-page.dark-mode .footer-link,
    body.login-page.dark-theme .footer-link,
    body.login-page.dark-mode footer p,
    body.login-page.dark-theme footer p {
        color: #b8b8b8;
    }

    body.login-page.dark-mode .input-group input,
    body.login-page.dark-theme .input-group input {
        background: #121212;
        border-bottom-color: #444;
        color: #ffffff;
    }

    body.login-page.dark-mode .input-group input::placeholder,
    body.login-page.dark-theme .input-group input::placeholder {
        color: #9a9a9a;
    }

    body.login-page.dark-mode .btn-submit,
    body.login-page.dark-theme .btn-submit {
        border-color: #ffffff;
        background: #121212;
        color: #ffffff;
    }

    body.login-page.dark-mode .btn-submit:hover,
    body.login-page.dark-theme .btn-submit:hover {
        background: #242424;
    }

    /* Zustände verstecken */
    .hidden { display: none; }

    @media (max-width: 768px) {
        .auth-container {
            min-height: 70vh;
            padding: 20px;
        }

        body.login-page .theme-toggle {
            top: 10px;
            right: 7px;
            left: auto;
        }

        body.login-page footer {
            position: static;
            width: 100%;
            padding: 0 20px 30px;
            margin: 0;
        }

        .auth-layout {
            display: block;
            width: 100%;
            min-height: 0;
            background: transparent;
            overflow: visible;
            box-shadow: none;
        }

        .auth-panel {
            padding: 0;
        }

        .auth-card {
            padding: 40px;
            border-radius: 40px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            max-width: 380px;
            margin: 0 auto;
        }

        .auth-image-panel {
            display: none;
        }
    }
	
/*FOOTER MENU*/
.menu-item
{
	list-style-type:none !important;
}
.footer-links
{
	display:flex;
	gap:50px;
	align-items: center;
	justify-content: center;
}
/* 1. Das nervige ::before vom Theme entfernen */
li.has-icon-title::before, 
li.has-icon-title a::before {
    content: none !important;
    display: none !important;
}

/* 2. Den Link als Flex-Container für das Icon */
li.has-icon-title a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

/* 3. Den Text-Span radikal verstecken */
.menu-text-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 4. Das Icon stylen */
.menu-icon.dashicons {
    font-size: 28px; /* Größe anpassen */
    color: inherit;  /* Farbe vom Footer übernehmen */
    line-height: 1;
}
/*MASNONRY IMAGE GALLERY*/
/* Container für die gesamte Bildunterseite */
#gallery-single-layout {
    max-width: 1200px; /* Oder 'none' für Full-Width */
    margin: 0 auto;
    padding: 60px 20px;
}

/* Titel-Design */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h1 {
    font-size: 2.5rem;
    color: #333;
    letter-spacing: 1px;
}

/* Platz für die CTC Gallery */
.gallery-content {
    width: 100%;
    display: block;
    clear: both; /* Verhindert Überlappungen mit Floats */
}

/* Falls die CTC Gallery einen eigenen Container-Abstand braucht */
.ctc-masonry-gallery { 
    margin-top: 20px !important;
}
.entry-header
{
	padding-bottom:50px;
}
.gallery-content
{
	width:80%;
	background-color:red;
}
/*SOCIAL MEDIA*/
.footer_container {
    display: flex;
    justify-content: center; /* Mittig ausrichten */
}
.footer-socials{
	 display: flex;
    justify-content: center; /* Mittig ausrichten */
	padding-left:20px;
	gap:20px;
}
.footer-socials a {
    font-size: 24px; /* Größe der Icons */
    transition: color 0.3s ease;
}
.footer-socials a.dark-mode {
	color:red;
}
.footer-socials a:hover {
    color: #e1306c; /* Instagram Pink beim Drüberfahren */
}

/* YouTube spezifischer Hover-Effekt */
.footer-socials a:hover .fa-youtube {
    color: #ff0000;
}

@media (min-width: 400px) {
.dropdown_container h2{
padding:0;
margin:0;
}
	.preview_container img{
padding-bottom: 30px;
}
}


@media (max-width: 397px) {

footer p{
padding-left:0;
}

#menu-footer-menue li:first-child {
  margin: 0;
  padding: 0;
}
.footer-links{
gap:40px;
}
	.auth-logo{
		display:none;
	}
	.auth-layout{
height: 100%;
}
	#menu-footer-menue{
padding:0;
		margin:0;
}
	.footer_container p{
		padding-bottom:10px;
	}
}
