/* styles.css */
:root{
  --overlay: rgba(0,0,0,.45);
  --content-max: 1100px;
  --text: rgba(255,255,255,.95);
  --muted: rgba(255,255,255,.82);
}
 
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", monospace;
  color: var(--text);
  overflow-x: hidden;
  background: #0b1020;
}

body.no-scroll{ overflow: hidden; }

/* Hintergrund (Slider-Engine) */
.bg{
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bg__overlay{
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.bg__viewport{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg__track{
  height: 100%;
  width: 100%;
  display: flex;
  transform: translateX(0);
  transition: transform 700ms ease;
}

/* Slides */
.bg__slide{
  flex: 0 0 100%;
  height: 100%;
  opacity: 1;

  background-color: #111;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  transform: scale(1.03);
}

.bg__slide.is-active{
  transform: scale(1.08);
}

/* Pfeile */
.bg__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;

  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.20);
  border-radius: 999px;

  display: grid;
  place-items: center;
  cursor: pointer;

  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease;
}

.bg__arrow:hover{ background: rgba(0,0,0,.35); }
.bg__arrow:active{ transform: translateY(-50%) scale(0.97); }

.bg__arrow:disabled{
  opacity: .35;
  cursor: not-allowed;
  background: rgba(0,0,0,.12);
}

.bg__arrow--left{ left: 14px; }
.bg__arrow--right{ right: 14px; }

@media (max-width: 520px){
  .bg__arrow{ width: 40px; height: 40px; }
  .bg__arrow--left{ left: 10px; }
  .bg__arrow--right{ right: 10px; }
}

/* Bildbeschreibung: mittig unten */
.bg__caption{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;

  text-align: center;
  width: auto;
  max-width: 92vw;

  color: rgba(255,255,255,.95);
  padding: 6px 10px;

  /* Hintergrund nur leicht, damit es “flach” bleibt */
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 14px;
  line-height: 1.35;

  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.9),
     1px -1px 0 rgba(0,0,0,0.9),
    -1px  1px 0 rgba(0,0,0,0.9),
     1px  1px 0 rgba(0,0,0,0.9);
}

/* Content */
.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero{
  width: min(var(--content-max), 100%);
  padding: clamp(24px, 6vw, 64px) 16px 28px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 18px;
}

.logo-wrap{
  width: min(320px, 78vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.logo{
  width: 100%;
  height: 100%;
  object-fit: contain;

  border-radius: 14px; 
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.45));
}

.hero__caption h1{
  margin: 0;
  font-size: clamp(22px, 4vw, 40px);
  letter-spacing: .2px;
}

.hero__caption p{
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(14px, 2.1vw, 18px);
  line-height: 1.6;
}

/* SEO Teil */
.seo{
  width: min(var(--content-max), 100%);
  padding: 18px 16px 56px;
}

.seo h2{
  margin: 18px 0 12px;
  font-size: clamp(18px, 2.6vw, 24px);
}

.seo h3{
  margin: 22px 0 10px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 700;
}

.seo p{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.seo ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.seo li{ margin: 6px 0; }

/* Footer */
.footer{
  width: 100%;
  padding: 0;           /* flach */
  margin-top: auto;
}

.footer__inner{
  width: 100%;
  margin: 0;
  padding: 26px 16px 34px;
  display: flex;
  align-items: center;
  justify-content: center; /* Footer mittig */
  gap: 12px;
  color: var(--muted);
}

.footer__links{
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer__link{
  font-family: inherit;
  font-size: 14px;

  color: rgba(255,255,255,.92);
  background: transparent;
  border: none;

  padding: 0;
  margin: 0;

  cursor: pointer;

  position: relative;
  line-height: 1.2;

  /* Linien und Text-Hervorhebung */
  text-decoration: none;

  text-shadow:
    -1px -1px 0 rgba(0,0,0,.9),
     1px -1px 0 rgba(0,0,0,.9),
    -1px  1px 0 rgba(0,0,0,.9),
     1px  1px 0 rgba(0,0,0,.9);
}

.footer__link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%; /* nur so breit wie Text */
  height: 2px;
  background: rgba(255,255,255,.18);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease, background 150ms ease;
}

.footer__link:hover::after,
.footer__link:focus-visible::after{
  transform: scaleX(1);
  background: rgba(255,255,255,.65);
}

.footer__insta{
  border: none;
  outline: none;
  box-shadow: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,.15);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 150ms ease;
}

/* Layer */
.layer{
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease;
}

.layer.is-open{
  pointer-events: auto;
  opacity: 1;
}

.layer__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.layer__panel{
  position: absolute;
  left: 0;
  transform: translateX(0) translateY(110%);
  bottom: 0;

  width: 100%;
  max-width: none;
  overflow: auto;

  background: rgba(10,14,28,.92);

  /* Keine Umrandung, keine Rundungen, kein Shadow */
  border: none;
  border-radius: 0;
  box-shadow: none;

  transition: transform 450ms cubic-bezier(.2,.8,.2,1);
}

.layer.is-open .layer__panel{
  transform: translateX(0) translateY(0%);
}

.layer__header{
  position: sticky;
  top: 0;
  background: rgba(10,14,28,.98);
  backdrop-filter: blur(6px);

  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 16px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.layer__header h3{
  margin: 0;
  font-size: 18px;
}

.layer__close{
  width: 40px;
  height: 40px;
  border-radius: 0; /* keine Rundungen */
  border: none;      /* keine Umrandung */
  background: rgba(0,0,0,.18);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.layer__body{
  padding: 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.layer__a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.layer__a:hover{ border-bottom-color: rgba(255,255,255,.65); }

@media (max-width: 480px){
  .logo-wrap{ border-radius: 14px; }
  .logo{ border-radius: 14px; }
}