
img[src ^="http://root.wirres.net/favicon.php"] {
	max-width: 16px;
	max-height: 16px;
}
img[src ^="https://root.wirres.net/favicon.php"] {
	max-width: 16px;
	max-height: 16px;
}

figure:has(a img[src^="http://root.wirres.net/favicon.php"]) {
	margin: 0;
	margin-top: 4px;
    float: left;
}
figure:has(a img[src^="https://root.wirres.net/favicon.php"]) {
	margin: 0;
	margin-top: 4px;
    float: left;
}

figure:has(a img[src^="http://root.wirres.net/favicon.php"]) + p a {
	font-weight: 800;
}
figure:has(a img[src^="https://root.wirres.net/favicon.php"]) + p a  {
	font-weight: 800;
}

h1.note-title,
h1.recipe-title {
  font-weight:600;		
	font-size: 2rem;
	line-height: 1.3334em;
	margin-bottom: 0;
}

header.note-header,
header.recipe-header {
	padding-top: 0rem;
	padding-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

article.note blockquote {
	color: (#606060);
	margin: 1.5em 0 1.5em 0;
	margin: 1em 0 1em 0;
	padding: 0 0 0 1em;
	border-left: 1px #606060 solid;
	font-size:1em;
	max-width: 85%; /*30rem;*/
}

@media (prefers-color-scheme: dark) {
  article.note blockquote {
    color: var(--color-code-light-grey);
    border-left: 1px var(--color-code-light-grey) solid;
  }
}

article .text a:not(:has(img)):not(:has(svg)):hover,
article .note-title a:hover { 
  /*color: #696969; */
  /*color: #000; */
  /*background: #f5ff00; */
  text-decoration: none;
  background-color: rgba(245, 255, 0, .5);
}
article .note-title a:hover { 
  background-color: rgba(245, 255, 0, .5);
}
@media (prefers-color-scheme: dark) {
  article .text a:not(:has(img)):not(:has(svg)):hover,
  a.underline:hover,
  article .note-title a:hover { 
    /*background: #e6e600; 
    background: #d4d400; 
    background: #ffd700; */
    /*background: #f5ff00; */
    /*background: url(//s2.svgbox.net/pen-brushes.svg?ic=brush-9&color=f5ff00);*/
    background-color: rgba(245, 255, 0, .5);
  }
/*
    article .text a:hover .note-excerpt-title {
    color: var(--color-text-darkmode); 
  }
*/  
}
a.nohover:hover {
  color: unset; 
  background: unset; 

}

/* better underline in articles */
.text a,
a.underline {
  text-decoration: underline;
  text-underline-offset: 0.25em; 
  text-decoration-color: #999; 
  text-decoration-thickness: 1px;
  padding: 2px;

/*
	text-decoration: none;
	background-image: linear-gradient(to top, #fff 0%, #fff 49%, #999 50%, #999 100%);
	background-size: 2px 2px;
	background-repeat: repeat-x;
	background-position: 0 105%;
	padding: 2px 0;
*/
}

/* when hovering, make underline disappear */
.text a:hover,
a.underline:hover {
	/*
  text-shadow: none;
	background-size: 0;
  */
}

.text figure a {
  color: inherit; /* Verhindert Styling auf Bildern */
	background: none;
	text-shadow: none;
	background-size: 0;
}

.text hr {
  border: none; /* Standardlinie entfernen */
  text-align: center; /* Zentrierung */
  background: none;
  margin: 0;
  height: 100%;
  width: 100%;
}

.text hr::before {
  content: "* * *"; /* Ersetzt die Linie durch die Sterne */
  display: block;
  font-size: 1.5rem;
  color: gray;
}

a.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: calc(100vw / 10); /* Skaliert mit der Breite des Viewports */
    white-space: nowrap; /* Verhindert Zeilenumbruch */
}

.logo .dot {
    width: .25em; /* Skaliert mit der Schriftgröße */
    height: .25em;
    vertical-align: baseline; /* Oder baseline für exaktere Ausrichtung */
    transform: translateY(0.29em); /* Feinjustierung */
}

/* 
rausrag-bild 
gegebenenfalls optional?
neben: 
* xl image (volle breite, position-full)
* standard (containerbreite, position-center)

*/
@media (min-width: 55rem) { /* 1rem mehr als die Containerbreite */
  .text .xl figure:not(:has(img[src*="root.wirres.net/favicon.php"])) {
    margin: 3rem 0;
    width: calc(100% + 25%);
    transform: translateX(-20%);
  }
}


/* Selektiert img-Elemente, deren src diesen Teil enthält */
img[src*="pbs.twimg.com/profile_images/"] {
  border-radius: 50%;
  border: 0px solid #1DA1F2; /* Twitter-Blau */
  /* weitere Styles, z. B.: */
  width: 48px;
  height: 48px;
  object-fit: cover;

}

figure:has(a[href*="twitter.com/intent/user"]) {
  transform: unset;
  margin: unset;
  width: unset;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

/* Den unmittelbar folgenden Paragraphen ebenfalls inline anzeigen */
figure:has(a[href*="twitter.com/intent/user"]) + p {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0 0.5rem; /* optional: Abstand zwischen Bild und Text */
}

::selection {
  background-color: #f5ff00;
  color: #000; /* Optional: Textfarbe anpassen */
}

@media (prefers-color-scheme: dark) {
  #path4187,
  #dogpoo1, #dogpoo2, #dogpoo3, #dogpoo4
  {
    fill: #ffffff !important;
    stroke: #ffffff !important;

  }
  #path10, #path12 {
    fill: #000000 !important;

  }

}

.note-box {
  min-height: 1rem;
  padding: 1rem;
  background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)), 
      var(--note-box-bg) no-repeat center center/cover;
}
@media (prefers-color-scheme: dark) {
  .note-box {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0.5)), 
        var(--note-box-bg) no-repeat center center/cover;
  }
}
.nav-links {
  padding-bottom: 1rem;
}

/* Der Thumbnail bekommt eine feste Größe */
article.note {
  padding-bottom: unset;
  background: unset;
  /*min-height: 300px;*/
}

/* Ab einem ausreichend großen Viewport den Thumbnail nach links ragen lassen */
figure.thumbnail {
  --w: 16; --h:8;
  margin-bottom: 1em;

}
@media (min-width: 80rem) {
  figure.thumbnail {
    padding-bottom: unset;
    background: unset;
    /*position: absolute;*/
    /*top: 8rem;*/            /* vertikal an der Oberkante des Artikels ausrichten */
    left: -299px;       /* passt diesen Wert an, damit der Thumbnail aus dem Container herausragt */
    --w: 16; --h:16;
  }
  
  figure.thumbnail img {
    width: 200px;
    height: 200px;
  }
}
video.videosrc {
	max-width: 100%;
}

/*
svg icons, 496 512 für font awesome svgs
*/

:where(svg) {
	fill: currentColor;
}

:where(svg[viewBox="0 0 24 24"]),
:where(svg[viewBox="0 0 16 16"]),
:where(svg[viewBox="0 0 448 512"]),
:where(svg[viewBox="0 0 496 512"]),
:where(svg[viewBox="0 0 512 512"]),
:where(svg[viewBox="0 0 576 512"]),
:where(svg[viewBox="0 0 384 512"]),
:where(svg[viewBox="0 0 640 512"]) {
	width: 1em;
	height: 1em;
  vertical-align: middle;
}

svg[data-type="loader"] {
	animation: Spin 1.5s linear infinite;
}

@keyframes Spin {
	100% {
		transform: rotate(360deg);
	}
}

footer .note-meta a:not(:has(img)):not(:has(svg)) {
  text-decoration: underline;
  text-underline-offset: 4px;  /* Der Abstand der Linie zum Text */
  text-underline-offset: 0.25em; 
}

.note-meta a:hover {
  color: var(--color-text);
  fill: var(--color-text);
  text-decoration: none;
}
/*
@media (prefers-color-scheme: dark) {
  .note-meta a:hover {
    color: var(--color-text-darkmode);
    fill: var(--color-text-darkmode);
  }
}
*/
.gallery ul li a img {
  display: block;
  transition: box-shadow 0.3s ease-in-out;
  /*transition: filter 0.3s ease-in-out;*/
}

.gallery ul li a:hover img {
  box-shadow: 0 0 10px 3px rgba(245, 255, 0, 0.25);
  /*filter: drop-shadow(0 0 5px rgba(245, 255, 0, 0.5));*/

}


/* site/plugins/mastodon-embed/assets/css/mastodon.css */

.mastodon-embed {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  max-width: 600px;
  margin-top: 2em;
  margin-bottom: 2em;
}

.mastodon-embed blockquote,
.mastodon-embed blockquote p,
.mastodon-embed.bluesky-embed blockquote {
  margin: 0;
  padding: 0;
  color: black;
  border-left: none !important;
  max-width: 100%;
}

.mastodon-embed footer {
  display: flex;
  align-items: center;
  margin-top: 0.75rem;
  font-style: unset !important;
}

.mastodon-embed .invisible,
.comment-group .invisible {
  display: none;
}

.mastodon-embed .ellipsis,
.comment-group .ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 200px; /* Oder was für deinen Blog passt */
  vertical-align: bottom;
  text-decoration: underline;
  text-underline-offset: 0.25em; 
  text-decoration-color: #999; 
  text-decoration-thickness: 1px;
}
.mastodon-embed .ellipsis:hover,
.comment-group .ellipsis:hover {
  text-decoration: none;
}

.mastodon-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.mastodon-meta {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.3;
}

.mastodon-meta strong {
  color: #333;
}

.mastodon-meta a {
  color: var(--color-code-grey);
  text-decoration: none;
}

.mastodon-meta a:hover {
  text-decoration: underline;
}

.mastodon-embed figure {
  margin: 0.5rem 0;
}

.mastodon-embed blockquote {
  max-width: 93% !important;
}

article header h1 a.flash {
  background-color: rgba(245, 255, 0, 0.1);
  /* color: black; */
  transition: background-color 0.6s ease-out;
}

article.compact {
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

article.compact::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px; /* Höhe des Ausfadens */
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  article.compact::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
  }
}


blockquote.bubble {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  border: unset !important;
  color: white !important;
  background-color: #007aff !important; /* iMessage-Blau */
  padding: 12px 16px !important;
  border-radius: 18px !important;
  max-width: 75% !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  position: relative !important;
  margin: 1em 0 !important;
  margin-left: auto !important; /* nach rechts ausrichten */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}
blockquote.bubble::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: -7px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-left-color: #007aff;
  border-right: 0;
  border-bottom: 0;
}

.quote-outdent {
  display: inline-block;
  text-indent: -0.6em;
  padding-left: -0.6em;
}

.poem {
    /* Kontextabhängige Ligaturen */
    font-variant-ligatures: common-ligatures;
    font-size: 1.0em;
    line-height: 2;
    /* text-align: right; */
    padding-left: 2em;
    padding-bottom: 2em;
    padding-top: 2em;
}

div.note.text.e-content > p {
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (min-width: 50rem) {
  img.link-icon{ 
    margin-left: -1.7em;
  }
}

audio.videosrc {
    width: 100%;
}

/* Links unterstreichen, wenn der Footer gehovt wird */
footer.footer:hover p a {
  text-decoration: underline;
  text-underline-offset: 0.25em; 
  text-decoration-thickness: 1px;
}

@media (prefers-color-scheme: dark) {

  footer.note-footer,
  footer.footer,
  header p.note-meta {
    transition: filter 0.6s ease;
  }
  
  footer.note-footer:hover,
  footer.footer:hover,
  header p.note-meta:hover {
    filter: brightness(1.7);
  }
  
  @media (hover: none) and (pointer: coarse) {
    /* Sehr wahrscheinlich ein Touchgerät */
    footer.note-footer,
    footer.footer,
    header.note-meta {
      filter: brightness(1.7);
    }
    footer.footer p a {
      text-decoration: underline;
      text-underline-offset: 0.25em; 
      text-decoration-thickness: 1px;
    }
  }
}

.repost-meta {
  margin-top: 2em;
  /*font-size: 0.8em;*/
  border-top: 1px solid #c1c1c1;
  padding-top: 1em;
  text-align: right !important;              /* stellt sicher, dass Text linksbündig bleibt */
  position: relative;            /* für das Pseudo-Element als Bezug */
}
.repost-meta a {
  text-decoration: none;

}
.repost-error {
  color: #c00;
  font-style: italic;
}

/* Wrapper um den gesamten Repost-Block */
.repost-block {
  position: relative;
  color: #000;
  margin: 2em 0;
  padding: 1.5em;
  background-color: rgba(255,255,255,1);
  border: 1px solid #ddd;              /* Schwarzer Rahmen */
  border-radius: 8px;                   /* weiche Ecken */
  box-shadow: inset 0 0 5px rgba(255,255,255,.03); /* leichter Inner-Shadow */
}
.repost-block figcaption {
  color: #000;

}

/* Optional: ein kleines „Repost“-Label oben links */
/*
.repost-block::before {
  content: "repost";
  position: absolute;
  top: -.6em;
  left: 1em;
  background: #f7f7f7;
  padding: .1em .5em;
  font-size: .75em;
  font-weight: bold;
  color: #555;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
*/


.code-block {
  position: relative;
}

.copy-button {
  position: absolute;
  top: -2.25em;
  right: -2em;
  padding: 0.25em 0.5em;
  font-size: 0.8em;
  cursor: pointer;
}

video:not([controls]) {
  /* nur Videos ohne sichtbare Controls */
  cursor: pointer;
}
video {
  /* nur Videos ohne sichtbare Controls */
  cursor: pointer;
}

