/*
Theme Name: Twenty Twenty-One Child
Template: twentytwentyone
Author: Dein Name
Version: 1.0
*/

:root {
  --footer--color-link: #ffffff !important;
}

body {
  --global--color-background: black;
  --global--color-hover: rgb(255, 255, 255);
  --global--color-primary: #000000;
  --global--color-secondary: #000000;
  --global--color-border: #000000;
  --global--line-height-body: 1.3;

  --entry-header--color: #000000;
  --separator--border-color: #000000;

  --footer--color-link-hover: #000000;
  --branding--color-link-hover: #000000;

  --responsive--aligndefault-width: 90vw;
  --responsive--alignwide-width: 90vw;
  --global--spacing-measure: 90vw;

  --footer--color-text: #000000;
  --branding--color-link: #000000;
  --primary-nav--color-link-hover: #000000;

  --branding--title--font-weight: bold;
  --primary-nav--font-weight: bold;
  --global--spacing-vertical: 125px;

  --primary-nav--padding: 2px;
  --heading--font-size-h2: 2rem;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --footer--font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#page {
  background-color: rgba(237, 237, 237, 1);
}

.header_top {
  width: 100%;
  position: fixed;
  z-index: 10;
}

.site-header {
  border-top: black solid 3px;
  border-bottom: black solid 1px;
  --global--spacing-vertical: 0px;
  background-color: white;
  margin: 0;
  padding-inline: 5vw;
  /* width: 100%; */
  max-width: none !important;
}

.projekt-filter {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
  background: white;
  padding-inline: 5vw;
  padding-block: 5px;
  /* width: 100%; */
  border-bottom: #000000 solid 1px;
  height: 52.6px;
}

.widget a,
.projekt-filter a {
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 0px; /*Abstand zwischen Text und Linie*/
  overflow: visible; /* Damit man die Animation sieht */
}

/* Die Linie im Ruhezustand */
.widget a::after,
.projekt-filter a:not(.arrow_container)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%; /* Die Breite ist immer 100% */
  height: 2px;
  background-color: black;

  /* Start-Zustand: Unsichtbar und 5px weiter oben */
  opacity: 0;
  transform: translateY(-5px);

  /* Sanfter Übergang für beide Werte */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none; /* Verhindert, dass die Linie Klicks abfängt */
}

.widget a::after {
  background-color: #ffffff;
  bottom: 1px;
  height: 1.5px;
}

/* Der Hover-Zustand: Linie wird sichtbar und rutscht auf Position */
.widget a:hover::after,
.projekt-filter a:not(.arrow_container):hover::after,
.projekt-filter a.active:not(.arrow_container)::after {
  opacity: 1;
  transform: translateY(0);
}

.primary-navigation a {
  margin-left: 15px !important;
  padding-inline: 3px !important;
}
.site {
  height: auto;
  min-height: 100vh;
}

.project_text {
  margin-top: 21px;
  width: 50vw;
  line-height: normal;
  font-size: 24px;
  hyphens: auto;
}

body .site-main {
  max-width: var(--responsive--alignwide-width);
  padding-bottom: 300px;
}

.entry-header {
  display: none;
}

.site-title a,
.site-name a {
  text-decoration: none;
  font-size: var(--primary-nav--font-size);
  text-transform: capitalize; /* first letter of each word */
  font-weight: bold;
  height: 100%;
  font-weight: var(--branding--title--font-weight);
  display: inline-block;
  line-height: inherit;
  padding-inline: 3px !important;
  padding: 1px;
}

.site-title a:hover,
.site-name a:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.wp-block-image figcaption {
  color: white !important;
  text-align: left !important;
}

.edit-link,
.post-edit-link {
  display: none;
}

body.single-post figure,
body.single-post p {
  --responsive--aligndefault-width: 50vw;
  --responsive--alignwide-width: 50vw;
}

.projekt-grid {
  column-count: 3;
  column-gap: 19px;
  width: 100%;
  /* Verhindert, dass Chrome versucht, die Höhe der Spalten 
       mit Gewalt anzugleichen (Balancing-Fehler) */
}

.projekt-item {
  -webkit-column-break-inside: avoid; /* Safari Präfix */
  display: inline-block;
  break-inside: avoid;
  page-break-inside: avoid;
  width: 100%;
  margin-bottom: 19px;
  position: relative;
  /* Setzt den Ankerpunkt für die Ausrichtung oben fest */
}

/* Wenn der Browser "Grid-Template-Rows" (ein Chrome/Edge Feature) 
   perfekt unterstützt, schalten wir auf block um */
@supports (display: grid) and (not (-webkit-hyphens: none)) {
  .projekt-item {
    display: block;
  }
}

.projekt-content img {
  width: 100% !important;
}

.projekt-item img {
  width: 100%;
  height: auto !important;
  display: block;
  max-width: none !important;
}

.projekt-item:hover .grid-item-overlay,
.projekt-item:focus .grid-item-overlay {
  transform: scale(1);
}

.grid-item-overlay {
  background: rgba(0, 0, 0, 0.55);
  bottom: 19px;
  left: 19px;
  right: 19px;
  top: 19px;
  position: absolute;
  transform: scale(0);
  transition: all 0.4s ease;
}

.grid-card {
  bottom: 0;
  color: #ffffff;
  left: 1.5vw;
  position: absolute;
  right: 1.5vw;
  top: 1.2vw;
}

.grid-card .btn-more {
  bottom: 12px;
  position: absolute;
}

/* horizontale Linie */
.btn-more::before,
.btn-more::after {
  content: "";
  position: absolute;
  background-color: currentColor;
}

/* waagrecht */

.btn-more::before {
  top: 0px;
  right: -10px;
  width: 12px;
  height: 1.5px;
}

/* senkrecht */
.btn-more::after {
  top: 0px;
  right: -10px;
  width: 1.5px;
  height: 12px;
}

.btn-more:hover:before,
.btn-more:hover:after {
  transition: transform 0.2s ease;
  transform: translate(4px, -4px);
}

.site-footer {
  display: none;
}

body .widget-area {
  display: block;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  background: black;
  color: white;
  padding-top: 20px;
}

.widget_block {
  padding-inline: 5vw;
  margin-top: 0;
}

#block-7 {
  margin-top: 0;
}

.widget-area .wp-block-group {
  align-items: flex-start;
}

.widget-area a:link {
  text-decoration: none;
}

/* Erhöhte Spezifität, um Theme-Standards zu überschreiben */
.widget-area a,
.widget a,
.widget a:link,
.widget a:visited {
  color: #ffffff !important; /* Weiß erzwingen */
  --footer--color-link: #ffffff;
}

.widget a:hover {
  --footer--color-link-hover: white;
  text-decoration: none;
}

.site .primary-menu-container .menu-item a:first-child {
  text-decoration: none;
  text-decoration-style: none;
}

.site .primary-menu-container a:hover,
.site .primary-menu-container .menu-item a:first-child:hover,
.site-title a:hover,
.site-name a:hover {
  background: black;
  text-decoration: none;
  text-decoration-style: none;
  --branding--color-link-hover: var(--global--color-hover);
  --primary-nav--color-link-hover: var(--global--color-hover);
}

body .menu-button-container {
  position: relative;
}

/* 1. Den Text "Menu" verstecken */
.dropdown-icon.open {
  font-size: 0; /* Versteckt den Text, behält aber das Icon */
}

/* 2. Die Strichstärke des Icons erhöhen */
.primary-navigation .dropdown-icon.open svg {
  width: 25px;
  height: 30px;
  stroke: rgb(0 0 0);
  stroke-width: 0.9px;
}

/* Verhindert, dass das Icon durch die Kontur matschig aussieht */
.primary-navigation .dropdown-icon.open svg path {
  stroke-linejoin: round;
}

.projekt-filter .arrow {
  border: solid rgb(0, 0, 0);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 0.5rem;
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.projekt-filter .arrow_container {
  position: absolute;
  left: 5vw;
  top: 42px;
}
.projekt-filter .arrow_container:hover {
  border-bottom: 0;
}

.content-inner {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Text links, Bilder rechts */
  gap: 60px;
  align-items: start;
}

.pics {
  display: grid;
  gap: 19px;
  width: 100%;
  float: right;
}

.pics img {
  width: 100%;
}

.zur_website {
  margin-top: 29px;
  display: block;
  background: rgba(237, 237, 237, 1);
  width: fit-content;
  text-decoration: none;
}

.site
  .projekt-filter
  a:focus:not(.wp-block-button__link):not(.wp-block-file__button) {
  outline: none;
  text-decoration: none;
}

.site
  .site-main
  a:focus:not(.wp-block-button__link):not(.wp-block-file__button)
  img,
.site
  .site-main
  a:focus:not(.wp-block-button__link):not(.wp-block-file__button) {
  outline: none;
  text-decoration: none;
  text-decoration-skip-ink: none;
  background: rgba(237, 237, 237, 1);
}

.text {
  width: 100%;
  position: sticky;
  top: 125px;
  font-size: 24px;
  line-height: 29px;
}

.side_by_side {
  display: flex;
  gap: 19px;
  width: 100%;
}

.side_by_side img {
  flex: 1; /* Gibt beiden Bildern den exakt gleichen Platz */
  width: 50%; /* Explizite Basisbreite für Safari */
  max-width: 50%;
  height: auto;
  display: block;
}

.pics .wp-video {
  width: 100% !important;
}

.zur_website .btn-more {
  position: relative;
}

html {
  scroll-behavior: smooth;
}

.entry-content {
  --global--spacing-vertical: 0px;
  padding-top: 125px;
  max-width: var(--responsive--alignwide-width);
  padding-bottom: 300px;
}

.df-3dcanvas {
  max-width: 100%;
}

.entry-content p {
  font-size: 24px;
  line-height: 29px;
  width: 50%;
  margin-bottom: 29px;
}

body .entry-footer {
  display: none;
}

.wp-singular .site .post-276 .entry-content p {
  margin-left: 0 !important;
}

/* 1. Den Header und das Navigations-System nach vorne bringen */
#masthead,
.primary-navigation,
.primary-menu-container {
  position: relative;
  z-index: 10000 !important;
}

/* 2. Den Footer-Bereich (Widget Area) nach hinten schieben */
.widget-area,
.site-footer {
  position: relative;
  z-index: 1 !important;
}

/* 3. Falls das Menü offen ist (Klasse am Body), den Footer sicherheitshalber noch weiter "verstecken" */
.primary-navigation-open .widget-area,
.primary-navigation-open .site-footer {
  z-index: -1 !important;
}

/* 4. Sicherstellen, dass das Admin-Bar (WP Toolbar) nicht das Menü verdeckt */
#wpadminbar {
  z-index: 99999 !important;
}

/* Den Hintergrund des Close-Buttons und des SVG-Icons neutralisieren */
.menu-button-container button#primary-mobile-menu {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Speziell das "Close" Icon und dessen Container in Twenty Twenty-One */
.menu-button-container .dropdown-icon.close {
  background: none !important;
  background-color: transparent !important;
}

/* Entfernt eventuelle graue Flächen, die das Theme beim Aufklappen erzeugt */
.primary-navigation-open .menu-button-container {
  background-color: transparent !important;
}
@media only screen and (max-width: 481.98px) {
  body {
    /* --global--font-size-lg: 20px; */
    --heading--font-size-h3: 20px;
  }

  .text {
    font-size: 20px;
    line-height: 1.25;
  }

  body .site-header:not(.has-logo).has-title-and-tagline .site-branding {
    margin-right: 0;
    max-width: none;
  }

  body .primary-navigation {
    top: 0;
    right: 0;
    position: relative;
    margin-left: auto;
  }

  body .wp-block-group {
    display: grid;
  }

  .projekt-grid {
    column-count: 1;
    column-gap: 19px;
  }

  .projekt-item {
    display: block;
  }

  body .menu-button-container .button {
    padding: 0 !important;
  }

  .widget-area .wp-block-group {
    gap: 30px;
  }

  .entry-content p {
    width: 100%;
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 25px;
  }

  .projekt-filter .arrow_container {
    position: absolute;
    left: 6.5vw;
    top: 45px;
  }

  .projekt-filter .arrow {
    border-width: 0 2.5px 2.5px 0;
    padding: 0.35rem;
  }

  .archive .projekt-filter {
    justify-content: space-between;
  }

  .content-inner {
    /* Wir bleiben bei Grid, ändern aber das Layout auf 1 Spalte */
    grid-template-columns: 1fr;
    gap: 19px; /* Kleinerer Abstand für Mobile */
    height: auto; /* Erzwingt automatische Höhe */
    display: grid; /* Sicherstellen, dass es aktiv bleibt */
    margin-top: 19px;
  }

  /* Falls der Button oder Text Float-Eigenschaften hat, heben wir sie auf */
  .content-inner .text,
  .content-inner .pics {
    width: 100%;
    position: relative;
    top: 0;
  }

  .pics {
    gap: 19px;
  }
  .side_by_side {
    gap: 19px;
  }

  .primary-navigation-open .primary-navigation > .primary-menu-container {
    top: 11px;
    /* padding-top: 18px; */
    background: rgba(237, 237, 237, 1);
  }

  .menu-wrapper .menu-item a {
    font-size: 20px;
  }
}
