/* ---------- Lokale Fonts ---------- */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-v16-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-v16-latin-600.woff2') format('woff2');
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  min-height: 100vh;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000 no-repeat center center;
  background-size: cover;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: var(--bg-tint, 0);
}

.page-start     .background { background-image: url("../img/objektiv_blur.JPG"); --bg-tint: 0.4; }
.page-about     .background { background-image: url("../img/kamera_blur.JPG"); --bg-tint: 0.6; }
.page-lisp      .background { background-image: url("../img/lispdeck_blur.JPG"); --bg-tint: 0.4; }
.page-projects  .background { background-image: url("../img/lispdeck_blur.JPG"); --bg-tint: 0.4; }
.page-privacy   .background { background-image: url("../img/kopfhoerer_blur.JPG"); --bg-tint: 0.6; }
.page-contact   .background { background-image: url("../img/recorder_blur.jpg"); --bg-tint: 0.6; }

.site-header {
  max-width: 980px;
  margin: 5vh auto 0;
}

.icon-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.icon img {
  max-width: 100%;
  height: auto;
  flex: 1;
}

.icon {
  opacity: 0;
  transform: translateY(-40px);
  animation: icon-in 0.8s ease-out forwards;
}

.icon:nth-child(1) { animation-delay: 0.0s; }
.icon:nth-child(2) { animation-delay: 0.08s; }
.icon:nth-child(3) { animation-delay: 0.16s; }
.icon:nth-child(4) { animation-delay: 0.24s; }
.icon:nth-child(5) { animation-delay: 0.32s; }

@keyframes icon-in {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-title {
  margin-top: 1.5rem;
  color: #1a1a1a;
  font-size: clamp(2.5rem, 3vw, 4rem);
  font-weight: 250;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: emerge 0.6s ease-out forwards;
  animation-delay: 0.4s;
}

.site-subtitle {
  margin-top: 0.5rem;
  color: #1a1a1a;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 300;
  opacity: 0;
  animation: emerge 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

.main-menu {
  opacity: 0;
  animation: emerge 1.0s ease-out forwards;
  animation-delay: 0.6s;
}

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin-top: 2rem;
}

.main-menu a {
  color: #1a1a1a;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.main-menu a:hover,
.main-menu a[aria-current="page"] {
  border-bottom-color: #1a1a1a;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  color: #000000;
  position: relative;
  max-width: 980px;
  margin: 2rem auto 0;
  padding: 0;
}

.content {
  color: #000000;
  position: relative;
  max-width: 980px;
  margin: 2rem auto 0;
  padding: 2rem 1rem 2rem;
  background: #f5e1ac40;
  border: 0.1rem solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  opacity: 0;
  line-height: 1.5;
  animation: emerge 1.1s ease-out forwards;
  animation-delay: 0.65s;
}

.imagecontent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;

  color: #000000;
  position: relative;
  max-width: 980px;
  margin: 2rem auto 1rem;
  padding: 1rem 0.5rem 1rem;
  background: #f5e1ac40;
  border: 0.1rem solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  opacity: 0;
  line-height: 1.5;
  animation: emerge 1.1s ease-out forwards;
  animation-delay: 0.65s;
}

.content-half {
  color: #000000;
  position: relative;
  max-width: 460px;
  /* min-width: 460px; */
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 0;
  padding: 1rem 1rem 0.5rem;
  background: #f5e1ac40;
  border: 0.1rem solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  opacity: 0;
  line-height: 1.5;
  animation: emerge 1.1s ease-out forwards;
  animation-delay: 0.65s;/
}

.imagecontent img {
  width: 120px;
  margin: 0;
  padding: 0;
  display: block;
  opacity: 0.4
}

.content h2 {
  color: #09aec4;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.content-half h2 {
  color: #09aec4;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.content a {
  color: #09aec4;
}

.content-half a {
  color: #09aec4;
}

.content p {
  margin: 1rem;
}

.content-half p {
  margin: 1rem;
}

@keyframes emerge {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .icon img {
    width: 61px;
    height: 60px;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ---------- Barrierefreiheit ---------- */
@media (prefers-reduced-motion: reduce) {
  .site-title,
  .main-menu,
  .content,
  .icon {
    animation: none;
    opacity: 1;
    transform: none;
  }
}