/*
 * raw.css – eigenes CSS für raw.enoni.de
 * Übernommen aus Mellow „Custom CSS“ (Customizer), jetzt versioniert im Child-Theme.
 * Wird nach dem Mellow-CSS geladen.
 */

/* Typografie */
p,
address {
  font-size: 14px;
  line-height: 1.3;
}

h2 {
  font-size: 1em;
  line-height: 1;
}

.entry-header h1.entry-title,
.page-header h1.page-title {
  font-size: 1em;
  line-height: 1;
}

label,
legend,
span {
  font-size: .75em;
}

a {
  border-bottom: none;
}

/* Kopf */
h1.site-title a {
  color: #191919;
  letter-spacing: -0.1rem;
}

/* Menü-Symbol (Hamburger) */
#menu-toggle::before,
#menu-toggle::after,
#menu-toggle span {
  width: 30px;
  height: 1px;
}

#menu-toggle.closed::after {
  bottom: 10px;
}

#menu-toggle.open::after {
  width: 30px;
  bottom: 19px;
}

/* Seitenmenü */
#slide-menu a {
  font-size: .75em;
}

ul.collapse.sidebar li {
  line-height: 1.4;
}

/* Projekte */
#projects .thumbs {
  border-radius: 10px;
}

/* Projekt-Kacheln: einheitlich hell und entsättigt, beim Hover (Touch: in der
   Bildschirmmitte, js/tiles.js) Übergang zum Originalbild */
/* Eigene Grafikebene + 3D-Transform: sonst rastert der Browser das Bild
   während Filter- und Zoom-Übergang ständig neu und es „zittert“ */
.thumbs figure.brick img {
  /* ungehovert entsättigt, flacher und leicht abgedunkelt */
  filter: grayscale(1) contrast(0.85) brightness(1.1);
  transform: translate3d(0, 0, 0) scale(1);
  backface-visibility: hidden;
  will-change: transform, filter;
  transition: filter 0.45s ease, transform 0.45s ease;
}

.thumbs figure.brick:hover img,
.thumbs figure.brick.is-inview img {
  filter: none;
}

/* kein Zoom beim Hover (Mellow vergrößert sonst auf 105 %) */
.thumbs figure.brick:hover img {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Isotope (Mellow) lässt die Kacheln beim Laden und bei Größenänderung 0,8 s
   an ihren Platz fliegen; dabei überlappen sie. Bewegung aus, nur Ein-/Ausblenden
   (Kategorie-Filter) bleibt. Raster erst zeigen, wenn Isotope fertig ist,
   spätestens nach 2 s (falls das Skript nicht läuft). */
.thumbs.isotope,
.thumbs.isotope .isotope-item {
  transition-property: opacity !important;
  transition-duration: 0.3s !important;
}

#projects .thumbs {
  opacity: 0;
  animation: raw-tiles-show 0.3s ease 2s forwards;
}

#projects .thumbs.isotope {
  opacity: 1;
  animation: none;
}

@keyframes raw-tiles-show {
  to {
    opacity: 1;
  }
}

/* Luft zwischen Kachel-Raster und Footer */
#projects .thumbs {
  margin-bottom: 80px;
}

@media only screen and (max-width: 767px) {
  #projects .thumbs {
    margin-bottom: 48px;
  }
}

/* Jede Kachel als weiße Karte: Foto vollständig, Passepartout liegt außen
   herum (.tile-photo aus content-project-thumb.php), Schatten in den Abstand.
   Mellows Abdunkel-Ebene (::after) ist abgeschaltet. */
.thumbs figure.brick {
  --gap: 12px;
  --mat: 12px;
  --shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  --mat-color: #fafafa;
}

.thumbs figure.brick::after,
.thumbs figure.brick:hover::after {
  opacity: 0;
}

.thumbs figure.brick .tile-photo {
  display: block;
  margin: var(--gap);
  padding: var(--mat);
  background: var(--mat-color);
  box-shadow: var(--shadow);
}

.thumbs figure.brick .tile-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media only screen and (max-width: 767px) {
  .thumbs figure.brick {
    --gap: 6px;
    --mat: 7px;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.14);
  }
}

.thumbs figure.brick figcaption h3 {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.35);
}

/* Lücken im Masonry-Raster: Mellows Streifenmuster des Containers ausblenden */
#projects .thumbs {
  background: none;
}

/* Projektseite: großes Foto mit weißem Passepartout und Schatten wie die Kacheln */
.single-project .entry-content img[class*="wp-image-"] {
  box-sizing: border-box;
  max-width: 100%;
  height: auto;
  padding: 24px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

@media only screen and (max-width: 767px) {
  .single-project .entry-content img[class*="wp-image-"] {
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }
}
