/*! normalize.css v3.0.2 | MIT License | git.io/normalize */

/* Base */
html {
  line-height: 1.1;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Fonts (unverändert, nur formatiert) */
@font-face {
  font-family: 'AlteHaasGrotesk';
  src: url('uploads/font/Alte-Haas-Grotesk.ttf.eot');
  /* IE6–IE8 */
  src:
    url('abeezee-regular-webfont.eot?#iefix') format('embedded-opentype'),
    url('uploads/font/Alte-Haas-Grotesk.ttf.woff') format('woff'),
    url('uploads/font/AlteHaasGroteskBold.ttf') format('truetype');
}

body {
  margin: 0 !important;
  font-family: neue-haas-grotesk-text, sans-serif !important;
  min-height: 50%;
  min-width: 320px;
  font-size: 1.3rem;
  max-width: 100%;
  max-height: 100%;
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none;    /* Firefox */
  overflow-y: scroll;
  font-weight: 500 !important;
}
body::-webkit-scrollbar { display: none; } /* Chrome/Safari/Opera */

@media (max-width: 50em) {
  body { font-size: 16px; }
}

/* Headings */
h1 {
  font-family: neue-haas-grotesk-text, sans-serif !important;
  font-size: 1.3rem;
  font-weight: 500;
  max-width: 60%;
  color: rgba(0,0,0,0.20);
  margin-top: -0.05rem;
  margin-left: -0.2rem;
  margin-right: -0.5rem;
  position: fixed;
  padding-left: 3px;
  padding-right: 4px;
  padding-top: 2px;
  top: 0.5rem;
  z-index: 99;
}
@media (max-width: 50em) {
  h1 { font-size: 16px; }
}

h2 {
  font-size: 1.3rem;
  max-width: 60%;
  color: rgba(0,0,0,0.20);
  margin-top: -0.05rem;
  margin-left: -0.2rem;
  margin-right: -0.5rem;
  position: fixed;
  padding-left: 3px;
  padding-right: 4px;
  padding-top: 2px;
  bottom: 0.5rem !important;
  z-index: 99;
}
@media (max-width: 50em) {
  h2 { font-size: 16px; }
}

/* Links */
a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
}

/* Background section */
#p1 {
  background-image: url(uploads/prictures/S31636_background.png);
  background-size: cover;
  background-position: 70% 50%;
  min-height: 100vh;
  min-width: 320px;
  filter: blur(1.5px);
  z-index: -1;
}

/* Title styling */
.titels {
  letter-spacing: 0.4rem !important;
  word-spacing: 0.1rem !important;
  text-decoration: none !important;
}
@media (min-width: 50em) {
  .titels {
    letter-spacing: 0.6rem !important;
    word-spacing: 0.5rem !important;
  }
}

/* Link variants */
.exl0 {
  color: #000;
  display: inline;
  text-decoration: none;
  background-color: rgba(227,227,227,1);
}
.exl0:hover { text-decoration: underline; }

.exl1 {
  color: #000;
  display: inline;
  text-decoration: none;
  background: rgba(255,255,255,1);
}

.exl2 {
  color: #000;
  display: inline;
  text-decoration: none;
  padding: 0;
  background: rgba(255,255,255,1);
  line-height: 1.1;
}
.exl2:hover { text-decoration: underline; }

.circle { color:rgba(0,0,0,1) }

/* Text blocks */
.text-xyz {
  line-height: 1.1 !important;
  color: #000;
  max-width: 100% !important;
}
@media (max-width: 50em) {
  .text-xyz { font-size: 16px; }
}

.text-wxyz {
  line-height: 1.1 !important;
  color: #000;
}
@media (max-width: 50em) {
  .text-wxyz { font-size: 16px; max-width: 100% !important; }
}

.text-vwxy {
  font-size: 1.3rem;
  color: #000;
  max-width: 80%;
  bottom: 10px !important;
  position: fixed;
}
@media (max-width: 50em) {
  .text-vwxy { font-size: 16px; max-width: 80% !important; }
}

.text-hlz {
  font-size: 1.3rem; !important; /* (absichtlich unverändert belassen) */
  color: #000;
  max-width: 100%;
}
@media (max-width: 50em) {
  .text-hlz { font-size: 16px !important; max-width: 100% !important; }
}

/* Page wrapper */
.page { padding: 10px; }
@media (min-width: 50em) {
  .page { padding: 10px; }
}
.page--info {
  color: rgba(0,0,0,1);
  overflow-y: scroll;
  ms-overflow-style: none !important; /* IE/Edge */
}

/* Buttons reset */
button,
input[type="submit"],
input[type="reset"] {
  background: none;
  color: inherit;
  border: none;
  padding: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}

button.exl2[aria-expanded="true"] {
  text-decoration: underline;
}

/* Projektliste: Buttons/Zeilenumbruch */
.project-button {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  
}
@media (max-width: 50em) {
  .project-button { max-width: 100%; }
}

/* Utility */
.project-noshow { 
	
}

@media (max-width: 50em) {
  .project-noshow { max-width: 100%; }
}

/* Divider */
p.line,
p.halfline {
  border: 0.10rem;
  border-style: solid none none none;
  max-width: 0%;
}
@media (max-width: 50em) {
  p.line,
  p.halfline { max-width: 100%; }
}

/* About grid */
.about-grid {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
}
.about-grid__col p { margin: 0 0 1rem; }
@media (min-width: 50em) {
  .about-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }
}

/* Altes Projektlayout (beibehalten) */
.project-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}


.project-gallery img {
  display: none;
  max-width: 100%;
  max-height: 50rem !important;
  object-fit: contain !important;
  object-position: left !important;
  margin: 0;
  padding: 0;
  align-self: flex-start;
}
.project-gallery img:first-child { display: block; }

.gallery-counter {
  position: static;
  margin-top: .5rem;
  background: none;
  color: inherit;
  text-align: left;
}

/* Text neben Galerie (altes Layout) */
.project-text {
  width: 50%;
  padding-right: 0.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

@media (max-width: 50em) {
  .project-layout { flex-direction: column; }
  .project-gallery {
    max-width:  100% !important;
    max-height: auto;
    padding-left: 0;
    order: -1; /* Galerie vor Text */
  }
  .project-gallery img {
    width: 100% !important;
    max-height: 50rem;
  }
  .project-text {
    width: 100%;
    padding-right: 0;
    order: 0;
  }
}

/* 3-Spalten-Projekte (aktuelles Layout) */
#projects {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;   /* mobil: nur Liste sichtbar */
  align-items: start;
}
@media (min-width: 50rem) {
  #projects { grid-template-columns: 1fr 1fr 1fr; column-gap: 1rem; }
}

/* Spalte 1: Liste */
#projects .list { grid-column: 1; }
#projects .project-list { list-style: none; margin: 0; padding: 0; }
#projects .project-list li { margin: 0; padding: 0; }
#projects .project-toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  line-height: 1.1;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: normal;
  
}

.project-toggle[aria-expanded="true"],
button.exl2[aria-expanded="true"]{
  text-decoration: underline;
}

/* Panels */
#projects .panel { display: none; }
@media (max-width: 50rem) {
  #projects .project.open > .panel {
    display: flex;                 /* überschreibt display:block */
    flex-direction: column;
    gap: 0em;
  }
  #projects .panel .gallery { order: -1; }  /* Galerie vor Summary */
}

@media (max-width: 50rem){
  #projects .panel .gallery{
    margin-top: 1rem;
  }
}

/* Desktop: Aktives Panel rechts (Spalte 2+3) */
#projects .active-panel { display: none; grid-column: 2 / 4; align-items: start !important; }
#projects.has-open .active-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr; /* Summary | Galerie */
  align-items: start !important;
}

.summary{margin-top: -1em !important; }

/* Galerie im aktuellen Layout */
#projects .gallery { width: 100%;}
#projects .gallery img { display: none; max-width: 100%; height: auto; max-height: 40rem;}
#projects .gallery img.is-visible { display: block; }
#projects .counter { margin-top: .5rem; margin-bottom: 1rem}
