:root {
  --bg-dark: #181818;
  --text-light: #fff;
  --text-mid: #d3d3d3;
  --primary-accent: #e0e0e0;
  --border-accent: #2c2c2c;
  --accent: #999;
  --font-main: 'Montserrat', Arial, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-main);
  min-height: 100vh;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.2rem 4vw 0.5rem 4vw;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-topright {
  position: absolute;
  top: 18px;
  right: 4vw;
  z-index: 120;
  pointer-events: none;
}
.logo-topright img {
  height: 54px;
  width: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}
nav a, .nav-btn {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  outline: none;
  padding: 0.5rem 0.3rem;
}
nav a:hover, .nav-btn:hover {
  color: var(--accent);
}
main {
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
}
.hero-section {
  display: block;
  width: 100vw;
  margin: 0;
  padding: 0;
}
.hero-slider {
  position: relative;
  width: 100vw;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
  touch-action: pan-y;
}
.hero-image-container {
  position: relative;
  width: 100vw;
  height: 80vh;
  max-height: 640px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
  background: #111;
}
.hero-bg {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  display: block;
  border-radius: 0;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  touch-action: none;
  user-select: none;
}
.hero-overlay {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  width: 100%;
  pointer-events: none;
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-shadow: 0 0 16px rgba(0,0,0,0.22);
  margin: 0 0 0.3em 0;
  border: 3px solid var(--text-light);
  display: inline-block;
  padding: 0.2em 0.7em;
  background: rgba(24,24,24,0.37);
  border-radius: 5px;
}
.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary-accent);
  letter-spacing: 0.18em;
  margin: 1.3rem 0 0 0;
  text-shadow: 0 0 8px rgba(0,0,0,0.12);
  background: rgba(24,24,24,0.21);
  display: inline-block;
  padding: 0.2em 1em;
  border-radius: 4px;
}
.arrow {
  background: none;
  border: 2px solid var(--border-accent);
  color: var(--primary-accent);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 2rem;
  pointer-events: auto;
  opacity: 0.7;
  transition: border 0.2s, opacity 0.2s;
  margin: 0 1vw;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  touch-action: manipulation;
}
.arrow:hover {
  border: 2px solid var(--primary-accent);
  opacity: 1;
}
.arrow-left {
  margin-right: 3vw;
}
.arrow-right {
  margin-left: 3vw;
}
.scroll-indicator {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.13em;
  z-index: 5;
  user-select: none;
  opacity: 0.8;
  pointer-events: none;
}
.scroll-line {
  width: 2px;
  height: 38px;
  background: var(--accent);
  margin-top: 7px;
  border-radius: 3px;
  opacity: 0.6;
}
.hero-scroll-content {
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  padding: 3.5rem 0 4rem 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-content h2 {
  font-size: 2.4rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  margin-top: 0.7rem;
  text-align: center;
  letter-spacing: 0.04em;
}
.hero-scroll-content p {
  font-size: 1.15rem;
  color: var(--text-mid);
  text-align: center;
  max-width: 700px;
  margin-bottom: 2.5rem;
}
.projects-title {
  font-size: 2.1rem;
  margin-top: 3.5rem;
  margin-bottom: 1.2rem;
  color: var(--primary-accent);
  letter-spacing: 0.06em;
  text-align: center;
}
.projects-video {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}
.projects-video video {
  width: 100%;
  max-width: 720px;
  border-radius: 12px;
  box-shadow: 0 2px 18px #0008;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  width: 100vw;
  max-width: 1100px;
}
.feature {
  background: rgba(32,32,32,0.92);
  border-radius: 14px;
  padding: 2rem 2rem 2rem 2rem;
  box-shadow: 0 3px 16px 0 rgba(0,0,0,0.09);
  min-width: 260px;
  max-width: 350px;
  flex: 1 0 250px;
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(.46,.03,.52,.96), transform 0.9s cubic-bezier(.46,.03,.52,.96);
}
.feature h3 {
  color: var(--primary-accent);
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}
.feature p {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 0;
  margin-top: 0;
}
.fadein-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(.46,.03,.52,.96), transform 1s cubic-bezier(.46,.03,.52,.96);
}
.fadein-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
section.about, section.gallery, section.contact {
  background: rgba(32,32,32,0.92);
  border-radius: 14px;
  padding: 2rem 2rem 2rem 2rem;
  margin: 2.5rem auto 0 auto;
  box-shadow: 0 3px 16px 0 rgba(0,0,0,0.09);
  max-width: 1000px;
}
.about h2, .gallery h2, .contact h2 {
  font-size: 2rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.13);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.1rem;
  margin-bottom: 0.8rem;
}
.gallery-grid img {
  width: 100%;
  height: 28vw;
  max-height: 260px;
  object-fit: cover;
  border-radius: 9px;
  filter: brightness(0.92) contrast(1.07);
  transition: filter 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
.gallery-grid img:hover {
  filter: brightness(1.04) contrast(1.10);
  transform: scale(1.03);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-form label {
  font-weight: 600;
  color: var(--primary-accent);
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7em;
  border: 1.5px solid var(--border-accent);
  border-radius: 5px;
  background: #222;
  color: var(--text-light);
  resize: vertical;
  transition: border 0.2s;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}
.contact-form button {
  background: var(--text-light);
  color: var(--bg-dark);
  border: none;
  padding: 0.9em 2em;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}
.contact-form button:hover {
  background: var(--accent);
  color: var(--text-light);
}
.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.social-links a img {
  width: 36px;
  height: 36px;
  filter: brightness(0.8) grayscale(0.4);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s, transform 0.2s;
}
.social-links a:hover img {
  filter: brightness(1.2) grayscale(0.15);
  opacity: 1;
  transform: scale(1.13);
}
footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 1.6rem 2vw;
  font-size: 1rem;
  margin-top: 3rem;
  letter-spacing: 0.04em;
}
.impressum-wrapper {
  margin-top: 1.2rem;
}
.impressum-toggle {
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.07rem;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.impressum-toggle:hover, .impressum-toggle:focus {
  color: #fff;
}
.impressum {
  color: #bbb;
  font-size: 0.98rem;
  background: #181818;
  padding: 1rem 0.5rem;
  border-radius: 5px;
  margin-top: 0.5rem;
  transition: all 0.3s;
  display: block;
}
.impressum.hidden {
  display: none !important;
}
.hidden {
  display: none !important;
}
.back-btn {
  margin-bottom: 1.2rem;
  background: none;
  border: 1.5px solid var(--primary-accent);
  color: var(--primary-accent);
  font-size: 1rem;
  padding: 0.4em 1.3em;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.back-btn:hover {
  background: var(--primary-accent);
  color: var(--bg-dark);
}

/* MOBILE OPTIMIERUNG */
@media (max-width: 1100px) {
  .hero-slider, .hero-image-container, .hero-bg {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .feature-list {
    max-width: 97vw;
  }
}
@media (max-width: 800px) {
  .hero-image-container {
    height: 54vw;
    min-height: 180px;
    max-height: 350px;
  }
  .hero-title { font-size: 2.2rem; }
  .feature-list { flex-direction: column; align-items: center; }
  .feature { max-width: 97vw; min-width: 0; }
  .gallery-grid img { height: 25vw; max-height: 130px;}
  .hero-section, .hero-slider, .main, .hero-scroll-content {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 600px) {
  html,body {
    width: 100vw;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }
  header {
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
    padding: 0.6rem 2vw 0.2rem 2vw;
    min-width: 0;
  }
  .logo-topright {
    position: static;
    margin-bottom: 0.7rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
  }
  .logo-topright img {
    height: 34px;
    margin: auto;
  }
  nav ul {
    gap: 1.3rem;
    justify-content: center;
  }
  .hero-slider {
    width: 100vw;
    padding: 0;
  }
  .hero-image-container {
    height: 60vw;
    min-height: 120px;
    max-height: 190px;
  }
  .hero-title { font-size: 1.3rem;}
  .hero-overlay { top: 58%; }
  .projects-title { font-size: 1.2rem; }
  .hero-scroll-content { padding: 1.2rem 0 2rem 0;}
  section.about, section.gallery, section.contact {
    padding: 1rem 1vw 0.7rem 1vw;
    margin-top: 1.2rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .gallery-grid img {
    height: 26vw;
    max-height: 80px;
  }
  .arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .scroll-indicator {
    left: 6px;
    font-size: 0.7rem;
  }
}
