* {
  text-decoration: none;
  scroll-behavior: smooth
}

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
  --bg-image: URL(../hintergrund/pixelated_2.png);
  --bg: #222222;
  --nav-grad: linear-gradient(
    to bottom,                               
    rgba(0,0,0,0.33) 0%,   /* 0% stop: 0.55 × 0.60 ≈ 0.33 */
    rgba(0,0,0,0.12) 80%,  /* 80% stop: 0.20 × 0.60 ≈ 0.12 */
    rgba(0,0,0,0.00) 100%  /* 100% stop */
  );
  --text: #f7f7f7;
  --card-bg: #2e2e2e;
  --radius: 14px;
  --gap: 16px;
  --transition: 420ms;
  --card-ratio: 16/9;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --btn-border: 1px solid rgba(255, 255, 255, .25);
  --img-border: 2px solid #222 ;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #000000f6;
}
html {
  height: 100%;
  overflow-x: hidden;
  scroll-padding-top: 100px;

}

body {
  background: var(--bg-image) center / cover no-repeat;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;}

img {
  max-width: 100%;
  display: block;
}

main,
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

#logo {
  height: 40px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-grad);

  position: sticky; /* or fixed */
  top: 0;
  inset-inline: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  width: 100vw;

  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 14px 24px;
}

p, a {
  text-decoration: none;
  color: var(--text);

}

#nav {
  width: 50%;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-style: normal;
  color: var(--text);
}

#nav ul {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  width: 100%;
  list-style: none;
}

section {
  display: flex;
  flex-direction: column;
  
}

/* ====== services ====== */
#intro {
  text-align: center;
  font-weight: 300;
  padding: 50px;
  margin: 100px 0;
}
#intro p {
  margin: 10px;
}

/* ====== services ====== */
#services {

}

.packets {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.packet {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 32%;
  background-color: var(--bg);
  padding: 20px;
  border-radius: 12px;
}
.title {

}
.displayimgs {
 position: relative;
 height: 230px;
 width: 100%;
 margin: 20px 0;
}
.displayimgs img {
  background-color: var(--card-bg);
  border: var(--img-border) ;
  border-radius: 12px;
  aspect-ratio: var(--card-ratio);
  max-width: 60%;
  width: 60%;
  position: absolute;
}
.displayimgs img:nth-child(1) {
 top: 0;
 left: 0;
 z-index: 1;
}
.displayimgs img:nth-child(2) {
 top: 25%;
 right: 0;
 z-index: 2;
}
.displayimgs img:nth-child(3) {
 bottom: 0;
 left: 10%;
 z-index: 3;
}
.packet-txt {
}
.more-btn {
  margin: 0;
}

/* ====== CAROUSEL ====== */
#work {
  margin: 64px 0;
  padding: 0;
}

.carousel {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  /* background: var(--bg); */
}

.carousel__viewport {
  --item-w: calc((100% - 3*var(--gap)) / 3);
  padding-inline: calc(var(--item-w) / 2);
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  padding: 24px 0 44px;
}

.carousel__item {
  flex: 0 0 var(--item-w);
  border-radius: var(--radius);
  background: var(--card-bg);
  border: solid var(--bg);
  aspect-ratio: var(--card-ratio);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__item .label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(0, 0, 0, .45);
  padding: 6px 10px;
  border-radius: 8px;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background 180ms ease, transform 180ms ease;
  z-index: 2;
}

.carousel__nav:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-50%) scale(1.04);
}

.carousel__nav:active {
  transform: translateY(-50%) scale(.98);
}

.carousel__nav--prev {
  left: 10px;
}

.carousel__nav--next {
  right: 10px;
}

.more-btn,
.link-btn {
  margin: 16px auto 48px;
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: var(--btn-border);
  border-radius: 999px;
  padding: 10px 18px;
  letter-spacing: .08em;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 640px) {
  :root {
    --gap: 12px;
  }
}