/*

Read https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#bundling-custom-css-with-themes-assets for more info
*/

/* poppins-200 - 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: 'Poppins';
  font-style: normal;
  font-weight: 200;
  src: url('../../fonts/poppins-v20-latin-200.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/poppins-v20-latin-200.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/poppins-v20-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/poppins-v20-latin-200.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/poppins-v20-latin-200.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/poppins-v20-latin-200.svg#Poppins') format('svg'); /* Legacy iOS */
}
/* poppins-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: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../../fonts/poppins-v20-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/poppins-v20-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/poppins-v20-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/poppins-v20-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/poppins-v20-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/poppins-v20-latin-regular.svg#Poppins') format('svg'); /* Legacy iOS */
}
/* poppins-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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../../fonts/poppins-v20-latin-700.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/poppins-v20-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/poppins-v20-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/poppins-v20-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/poppins-v20-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/poppins-v20-latin-700.svg#Poppins') format('svg'); /* Legacy iOS */
}

/* dm-serif-display-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: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  src: url('../../fonts/dm-serif-display-v11-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/dm-serif-display-v11-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/dm-serif-display-v11-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/dm-serif-display-v11-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/dm-serif-display-v11-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/dm-serif-display-v11-latin-regular.svg#DMSerifDisplay') format('svg'); /* Legacy iOS */
}


/* Anpassung globaler Farben des Themes */

:root {    
    --gap: 24px;
    --content-gap: 20px;
    --nav-width: 1024px;
    --main-width: 720px;
    --header-height: 60px;
    --footer-height: 60px;
    --radius: 8px;
    --warm-highlight: rgb(255, 87, 34); /*#ff6b6b;*/
    --warm-highlight-soft: #ff6b6b;
    --warm-primary: #f3ebe8;
    --warm-primary-light: #f8efec;
    --warm-primary-soft: #edd2c8;
    --warm-primary-soft-bg: #e6c6ba;
    --warm-secondary: rgba(243, 235, 232, 0.3);
    --warm-ter: rgb(26 22 21);
    --warm-ter-soft: rgba(26, 22, 21, 0.814);
    --barriere-text: #fff;
    --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-base: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

}

.dark {
    --theme: rgb(29, 30, 32);
    --entry: rgb(46, 46, 51);
    --primary: rgb(218, 218, 219);
    --secondary: rgb(155, 156, 157);
    --tertiary: rgb(65, 66, 68);
    --content: rgb(196, 196, 197);
    --hljs-bg: rgb(46, 46, 51);
    --code-bg: rgb(55, 56, 62);
    --border: rgb(51, 51, 51);
    --warm-highlight: rgb(255, 87, 34);
    --barriere-text: #fff;


}


/* Ende: Anpassung globaler Farben des Themes */



body {font-family: 'Poppins';}
h1, h2, h3, h4, h5 {font-family: 'DM Serif Display';}

/* Abschalten der Navigation zum nächsten/vorherigen Artikel auf singles.html */
.paginav {display: none;}



/* ===== Größen optional per Variable steuerbar ===== */
:root {
  --sb-size: 12px;   /* Breite/Höhe der Scrollbar */
  --sb-radius: 8px;  /* Rundung des Thumbs */
}

/* ===== Firefox ===== */
html {
  scrollbar-width: thin;
  /* thumb = --warm-highlight, track = transparent (zeigt Seitenhintergrund) */
  scrollbar-color: var(--warm-highlight, #009651) transparent;
}

/* ===== Chromium/Edge/Safari ===== */
html::-webkit-scrollbar {
  width: var(--sb-size);
  height: var(--sb-size);
}

html::-webkit-scrollbar-track {
  background: transparent; /* falls du eine feste Track-Farbe willst, hier setzen */
}

html::-webkit-scrollbar-thumb {
  background-color: var(--warm-highlight, #009651);
  border-radius: var(--sb-radius);
  /* keine Hover/Active-Styles, keine Größenänderung */
  min-height: 40px; /* Usability: verhindert extrem kleine Thumbs */
}

html::-webkit-scrollbar-corner {
  background: transparent;
}




/* ROTATOR */

.text-container {
    font-family: 'DM Serif Display';
    font-size: 2rem;
    line-height:2.25rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    gap: 9px;
}
.rotating-text {
    color: var(--warm-highlight);
    opacity: 0;
    transition: opacity 0.5s ease;
    white-space: nowrap;
    width:250px;
    text-align:left;
}
.rotating-text.show {
    opacity: 1;
}


/* Zoom-Window */
/* Grundsätzliches Overlay */
.image-zoom-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(.5,-0.25,.25,1.25);
}

.image-zoom-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.image-zoom-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: 0 6px 40px #000a;
  transition: transform 0.4s cubic-bezier(.5,-0.25,.25,1.25);
  transform: scale(0.96);
}

.image-zoom-overlay.active .image-zoom-img {
  transform: scale(1);
}

.image-zoom-close {
  position: absolute;
  top: 3vw;
  right: 4vw;
  background: rgba(30,30,30,0.85);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  border-radius: 50%;
  width: 2.7em;
  height: 2.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s;
}

.image-zoom-close:hover { background: #000; }


/* Caption für images in der figures.html*/
.figure-caption {
  font-style: italic;
  font-size: 1rem;
  font-weight: 400 !important;
  margin-top: 0.5em;
  color: var(--theme);
  text-align: center;
}

.post-content .figure-caption .figure-attr {
  font-style: italic;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--theme);
}

figure img[data-zoomable="true"] {
  position: relative;
  z-index: 1;
  cursor: zoom-in;
  transition: box-shadow 0.18s, filter 0.2s;
}

figure {
  position: relative;
  display: inline-block;
}

figure img[data-zoomable="true"]:hover,
figure img[data-zoomable="true"]:focus {
  box-shadow: 0 0 0 4px var(--tertiary);
  filter: brightness(1) blur(0);
}



/* FANCY Lupe als Pseudo-Element */
figure img[data-zoomable="true"]:hover::after,
figure img[data-zoomable="true"]:focus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="black" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="11" cy="11" r="8"/><line x1="17" y1="17" x2="22" y2="22"/></svg>') no-repeat center center;
  background-size: 70% 70%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.85;
  pointer-events: none;
  z-index: 3;
  animation: popin 0.25s cubic-bezier(.45,1.62,.32,1);
}

@keyframes popin {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  90% { opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
}




.home-info {text-align:left;}
.rotating-text {text-align: left !important;width:375px;}
.home-info .entry-content {text-align:left;;padding-left:24px;}
.text-container {justify-content:left;padding-left:24px;}
.social-icons {text-align:left;;padding-left:24px;}




@media only screen and (max-width: 600px) {
.rotating-text {text-align: center !important;width:375px;}
.home-info .entry-content {text-align:center;}
.text-container {justify-content:center;}
.social-icons {text-align:center;}

}






/* Datei: assets/css/share-icons.css */

/* Basis-Klasse für alle Icons */
.share-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 0.5em;
}

.share-icon { /* … wie vorher … */ }
.icon-signal    { background-image: url('/icons/signal.svg'); }
.icon-threema   { background-image: url('/icons/threema.svg'); }
.icon-bluesky   { background-image: url('/icons/bluesky.svg'); }
.icon-threads   { background-image: url('/icons/threads.svg'); }
.icon-mastodon  { background-image: url('/icons/mastodon.svg'); }
.icon-reddit    { background-image: url('/icons/reddit.svg'); }
.icon-facebook  { background-image: url('/icons/facebook.svg'); }
.icon-whatsapp  { background-image: url('/icons/whatsapp.svg'); }
.icon-telegram  { background-image: url('/icons/telegram.svg'); }
.icon-x         { background-image: url('/icons/x.svg'); }
.icon-linkedin  { background-image: url('/icons/linkedin.svg'); }

/* Optional: Button-Grundstil */
.share-buttons a,
.share-buttons button {
  display: inline-flex;
  align-items: center;
  padding: 0.5em 0.75em;
  margin: 0.25em;
  font-size: 0.875rem;
  text-decoration: none;
  color: inherit;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.share-buttons a:hover,
.share-buttons button:hover {
  background-color: #e0e0e0;
}

/* Entfernt die Punkte vor den Share‑Buttons */
.share-buttons {
  list-style: none;      /* keine Aufzählungs‑Marker am ul */
  margin: 0;
  padding: 0;
}

.share-buttons li {
  list-style: none;      /* keine Marker an den li */
}

.share-buttons li::marker {
  content: none !important;  /* überschreibt alle ::marker‑Style‑Regeln */
}

/* 1. Inhalt horizontal zentrieren */
.share-buttons a,
.share-buttons button {
  justify-content: center;    /* Icons/Text zentriert im Button */
}

/* 2. Margin am Icon entfernen (da keine Text-Labels) */
.share-buttons .share-icon {
  margin: 0 !important;
}

/* Optional: feste Box-Größe, damit alle Buttons quadratisch sind */
.share-buttons .share-button {
  width: 2.5em;
  height: 2.5em;
  padding: 0;                /* Padding in width/height einkalkuliert */
}


/* PROFILFOTO */
.profile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.profile-border {
  background: var(--warm-highlight);
  border-radius: 50%;
  padding: 5px; /* Dicke der Umrandung */
}

.profile-pic {
  width: 150px; /* oder größer, je nach Wunsch */
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}



.terms-tags a, .post-entry { transition: background-color 300ms ease 0s;}
.terms-tags a:hover, .post-entry:hover {
  background-color: var(--border);
  transition: background-color 300ms ease 0s;
}

.post-content h4 {
  font-size:20px;
}

.post-content {
  margin-bottom: 50px;
}

.post-footer {margin-top:0;}

.my-global-footer {
  background: var(--warm-highlight);
  color:var(--barriere-text);
  padding: 15px;
  -webkit-border-radius: 8px;    
  border-radius: 8px; 
  -moz-border-radius:8px;
  -khtml-border-radius:8px;
}

/* Dotted red border */
.my-global-footer hr {
  border-top: 1px dotted var(--theme);
}

/* RELATED POST - Styling */

.related-posts {
  margin: 2rem 0;
  border-bottom: 2px solid var(--tertiary);
  padding-bottom: 50px;
}

.related-posts h2 {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.related-posts ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  
  /* sorgt dafür, dass alle Grid-Items gleich hoch werden */
  align-items: stretch;
}

.related-posts li {
  /* macht den Link-Block zum Flex-Kasten, der sich an die Höhe anpasst */
  display: flex;
}

.related-posts a {
  flex: 1;              /* füllt das gesamte li aus */
  display: block;
  padding: 0.75rem 1rem;
  font-size:14px;
  text-decoration: none;
  color: var(--secondary);
  background: var(--code-bg);
  -webkit-border-radius: 8px;    
  border-radius: 8px; 
  -moz-border-radius:8px;
  -khtml-border-radius:8px;
  transition: background-color 0.2s ease,
              border-color 0.2s ease;
}

.related-posts a:hover {
  background: var(--warm-highlight);
  border-color: var(--primary);
  color: var(--barriere-text);
}


.related-post-cover {
  width: 100%;
  height: 150px;         /* feste Höhe, damit alle gleich groß sind */
  object-fit: cover;     /* Bild skaliert und schneidet passend zu */
  border-radius: 8px 8px 0 0;
  margin-bottom: 0.5rem;
}

.related-post-cover.placeholder {
  background-color: var(--code-bg);  /* oder eine andere neutrale Farbe */
}





.tag-entry .entry-cover {
    display: flex;
}



.pagination .next, .pagination .prev {background: var(--warm-highlight);}
.pagination a {color: var(--barriere-text);}
.pagination .next:hover, .pagination .prev:hover {opacity: 70%;}



/* Hintergrund hinter Share-Buttons auf der Page anpassen */
.share-buttons {background:none;border:none;}

.paginav {border:none;padding:10px;background: none;}
.paginav .prev, .paginav .next {border-bottom:2px solid;border-top:2px solid;width:45%;}
.paginav .prev:hover, .paginav .next:hover {border-bottom:2px solid #92B6B1;}
.prev {background: none;}
.paginav a {padding:20px;}


.share-buttons {margin: 3rem 0 0;}

/* Breadcrumbs zentrieren */
.breadcrumbs {display:block;text-align: center;}

/* Beschreibungstext der Kategoriebeschreibung */

.post-description {
  font-style:italic;
  text-align: center;}

.post-title {
  margin:1rem 0 0;
  text-align: center;
}

.page-header {
  text-align: center;
}

.page-header, .post-header {margin-bottom: 70px;}


/* BlogIntro zentriert */
.home-info {text-align: center;}

.post-meta {
  text-align: center;
  display: block;
}

/* post-content */

.post-content a, 
.toc a:hover {
    color: var(--warm-highlight);
    border-bottom: 0.1em solid var(--warm-highlight);
    box-shadow: none;
    transition: background-color 0.2s ease,border-color 0.2s ease;
    }

.post-content a {color:var(--secondary);}
.post-content a:hover {color:var(--warm-highlight);border-bottom: 0.1em solid var(--warm-primary);}

.post-content img {box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;}

.post-content table th {
  background-color:var(--border);
    font-size: 18px;
  }

  .post-content blockquote {
  padding:14px;
  background:var(--code-bg);
}


.breadcrumbs {opacity: 70%;}


.post-tags {text-align: center;margin:30px 0;}
.post-tags a {transition: background-color 0.2s ease,border-color 0.2s ease;}
.post-tags a:hover {background: var(--warm-highlight);color:var(--barriere-text);}



/*stylt den Video-Shortcode für die Einbindung lokaler Videos*/
.video-shortcode {
  max-width: 100%;
  height: auto;
  -webkit-box-shadow: 0px 0px 16px 1px rgba(0,0,0,0.23);
  -moz-box-shadow: 0px 0px 16px 1px rgba(0,0,0,0.23);
  box-shadow: 0px 0px 16px 1px rgba(0,0,0,0.23);
  border-radius: 4px;
  -webkit-border-radius:4px;
  -moz-border-radius:4px;
}



/* Such-Input anpassen */
#custom-search-field, #custom-search-field:focus {
    border: 2px solid var(--warm-ter-soft);
    background-color: var(--warm-highlight);
    color: var(--barriere-text);
    padding: 10px;
    width:100%;
    border-radius: 40px;
    -webkit-border-radius:40px;
   -moz-border-radius:40px;
}

#custom-search-field::placeholder {color: var(--barriere-text);}

/* Suchfeld anpassen */
#custom-search-field, 
#custom-search, 
#custom-search-results {
  text-align: center;
}

#custom-search-results ul {list-style-type:none;}

#custom-search-results li {line-height: 1.5rem;margin: 20px 0;}







/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {


  /*zentriert die Vorstellung auf der Home*/
  .home-info {text-align: center;}

  /* Reduziert die Titelgröße eines Blogpostings */
  .post-title {font-size:26px;}

  .post-description {text-align: center;}

  header .page-header {text-align: center;}

  .home-info .entry-content {padding: 0;}
   .text-container {padding: 0;}

  }


