@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');

:root {
  --neon: #00ffcc;
  --bg1: #000;
  --bg2a: #11581E;
  --bg2b: #041607;
}

* { box-sizing: border-box; }

body {
  font-family: 'Fira Code', monospace;
  margin: 0;
  padding: 0;
  color: #e0e0e0;
  background-color: var(--bg1);
  background-image: radial-gradient(var(--bg2a), var(--bg2b));
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
}

/* animierter binärer Hintergrund */
body::before {
  content: "0101010011010011010101100110100101010101010010100101010010101010";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  font-size: 14px;
  line-height: 16px;
  color: rgba(0,255,204,0.06);
  white-space: pre;
  letter-spacing: 2px;
  animation: binaryScroll 30s linear infinite;
  z-index: 0;
  pointer-events: none;
  transform: rotate(-15deg);
}

@keyframes binaryScroll {
  0% { transform: translateY(0) rotate(-15deg); }
  100% { transform: translateY(-100%) rotate(-15deg); }
}

/* CRT Overlay */
.overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    rgba(0, 0, 0, .3) 50%,
    transparent 100%
  );
  background-size: auto 4px;
  z-index: 1;
}

.overlay::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    0deg,
    transparent 0%,
    rgba(32, 128, 32, .2) 2%,
    rgba(32, 128, 32, .8) 3%,
    rgba(32, 128, 32, .2) 3%,
    transparent 100%
  );
  background-repeat: no-repeat;
  animation: scan 7.5s linear infinite;
}

@keyframes scan {
  0% { background-position: 0 -100vh; }
  35%, 100% { background-position: 0 100vh; }
}

header {
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.9);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  z-index: 10;
  border-bottom: 1px solid rgba(0,255,204,0.25);
}

header a {
  color: var(--neon);
  text-decoration: none;
  padding: 6px 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

header a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(0,255,204,0.9);
}

section {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px 30px 20px;
  background: rgba(15, 20, 25, 0.85);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,255,204,0.1);
}

h1, h2 {
  color: var(--neon);
  margin-top: 40px;
}

a { color: var(--neon); }
a:hover { color: #fff; }

ul { margin-top: 10px; }
li { line-height: 1.7; }

/* PREMIUM Karten */
.premium {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-auto-rows: auto;
  gap: 16px 24px;
  border: 2px solid var(--neon);
  border-radius: 12px;
  background: rgba(0, 30, 30, 0.9);
  padding: 22px;
  margin-bottom: 25px;
}

.premium .premium-badge {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--neon);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  transform: rotate(-4deg);
  box-shadow: 0 4px 12px rgba(0,255,204,0.35);
  text-transform: uppercase;
}

.premium h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 4px 0;
  font-size: 20px;
}

.premium .premium-url {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  font-size: 12px;
  color: var(--neon);
  opacity: 0.9;
  word-break: break-all;
}

.premium .premium-url a {
  color: var(--neon);
  text-decoration: none;
}

.premium .premium-url a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(0,255,204,0.9);
}

.premium p {
  grid-column: 1 / span 2;
  grid-row: 2;
  margin: 0;
  line-height: 1.6;
}

/* Normale Projekte */
.agency {
  background: rgba(10, 10, 10, 0.85);
  border-radius: 10px;
  margin-bottom: 25px;
  padding: 18px 20px;
  border-left: 4px solid var(--neon);
  overflow: hidden;
}

.agency-title {
  margin: 0 0 6px 0;
  font-weight: 600;
  color: var(--neon);
  font-size: 17px;
}

.agency p {
  line-height: 1.6;
  margin: 0;
}

/* Footer nur für impressum.html vorgesehen */
footer {
  text-align: center;
  font-size: 13px;
  color: #888;
  padding: 30px 0;
  border-top: 1px solid rgba(0,255,204,0.25);
  background: #050707;
}

@media (max-width: 700px) {
  .premium {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .premium h2 { grid-column: 1; grid-row: 1; }
  .premium .premium-url { grid-column: 1; grid-row: 2; margin-bottom: 6px; }
  .premium p { grid-column: 1; grid-row: 3; }
}

@media (max-width: 600px) {
  header { flex-direction: column; align-items: center; }
}
