
:root{
  --bg: #050b12;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --hairline: rgba(255,255,255,0.10);
  --accent: #5bb7b0;
  --max: 1100px;
  --radius: 18px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,11,18,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  color: inherit;
}
.brand img{
  height: 48px;
  width: auto;
  display:block;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration:none;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.btn:hover{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.25); }
.btn:focus{ outline: 2px solid rgba(91,183,176,0.55); outline-offset: 2px; }
.btn-ghost{ background: transparent; }
.btn-ghost:hover{ background: rgba(255,255,255,0.06); }

/* Blocks */
.block{
  width: 100%;
  padding: 84px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  /*background: linear-gradient(to bottom, rgba(125,125,125,0.02), rgba(125,125,125,0.00));*/
  background: #000;
  
  background-image: var(--block-bg, none);
  background-size: cover;
  background-position: center;
  position: relative;
  letter-spacing: 0.01em;
  color: #e8eef2;
}
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}
.block h1{
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: 0.2px;
}
.block h2{
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: 0.2px;
}
.block p{
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.6;
  font-size: 16px;
}
.block .meta{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.block-link{
  display: block;
  text-decoration: none;
  color: inherit;
}
.block-link:hover .block{
  filter: brightness(1.03);
}
.block-link:focus-visible .block{
  outline: 3px solid rgba(91,183,176,0.45);
  outline-offset: -3px;
}

.pill{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.74);
}

.summ{

  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  padding: 4px 4px;
  border-radius: 3px;
  font-size: 13px;
  color: rgba(255,255,255,0.74);
}

/* Image gaps (fixed backgrounds) */
.gap{
  height: clamp(180px, 25vh, 300px);
  background-image: var(--bgimg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.gap::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 450px at 60% 25%, rgba(91,183,176,0.10), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--hairline);
  padding: 26px 0 40px;
  background: rgba(0,0,0,0.10);
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.small{
  margin: 6px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

/* Technische Details */
.tech-details{
  margin-top: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 18px;
}


/* Contact */
.contact-card{
  margin-top: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 18px;
}
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label span{
  display:block;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.25);
  color: var(--text);
}
input:focus, textarea:focus{
  outline: 2px solid rgba(91,183,176,0.45);
  outline-offset: 2px;
}

input[name="website"]{
  position:absolute;
  left:-9999px; width:1px;
  height:1px;
  overflow:hidden;
}

.actions{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px){
  .form-grid{ grid-template-columns: 1fr; }
  .btn{ width: 100%; }
  .header-inner .btn{ width: auto; }

  /* Mobile strategy (v2): image gaps become standalone, near-fullscreen image sections.
     We do NOT force "fixed" (unreliable on mobile). Instead, we give each image its own stage. */
  .gap{
    height: 28vh;
    background-attachment: scroll;
    background-position: center;
  }

  /* Slightly stronger overlay for legible transitions */
  .gap::before{
    background:
      radial-gradient(900px 450px at 60% 25%, rgba(91,183,176,0.10), transparent 60%),
      linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.62));
  }
}

/* Block background overlay for readability */
.block::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.28);
  z-index: 0;
}
.block .container{
  position: relative;
  z-index: 1;
}

/* Header beim Scrollen ausblenden – CSS only */
@supports (animation-timeline: scroll()) {
  .site-header{
    animation: hideHeader linear both;
    animation-timeline: scroll();
    animation-range: 120px 320px;
  }

  @keyframes hideHeader{
    from { transform: translateY(0); }
    to   { transform: translateY(-100%); }
  }
}

.details summary {
  list-style: none;          /* Firefox */
  cursor: pointer;
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 600px;          /* Setze eine maximale Breite */
  background: rgba(0,0,0,0.25);
  /*background-color: #0f0f0f;*/

}

.details summary::-webkit-details-marker {

  display: none;             /* Chrome/Safari */
}


.details summary::before {
  content: "";          /* Unicode für den Pfeil nach unten */
  font-size: 18px;           /* Größe des Pfeils */
  margin-right: 10px;        /* Abstand zwischen Pfeil und Text */
  border-radius: 2px;
}


.details-box {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
}

