:root{
  --bg: #0f1115;
  --card: #12151c;
  --muted: #9aa3b2;
  --text: #e6ebf3;
  --accent: #00c9ff;
  --accent-2: #6df3ff;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --radius: 18px;
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  scroll-padding-top:100px;
}
html,body{height:100%}
html{
  overflow-x:hidden;
}
body{
  margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text); background:var(--bg); overflow-x:hidden;
  width:100%;
  max-width:100vw;
}

/* --- Animated background (soft moving blobs) --- */
.bg{
  position:fixed; inset:0; overflow:hidden; z-index:-1; filter: blur(40px) saturate(120%);
}
.blob{ position:absolute; width:42vmax; height:42vmax; border-radius:50%; opacity:.35; mix-blend-mode:screen; }
.b1{ background:radial-gradient(circle at 30% 30%, var(--accent), transparent 60%); left:-10vmax; top:-10vmax; animation: drift 22s ease-in-out infinite; }
.b2{ background:radial-gradient(circle at 70% 70%, #8b5cf6, transparent 60%); right:-8vmax; top:5vmax; animation: drift2 28s ease-in-out infinite; }
.b3{ background:radial-gradient(circle at 40% 60%, var(--accent-2), transparent 60%); left:10vmax; bottom:-12vmax; animation: drift3 24s ease-in-out infinite; }
@keyframes drift{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(6vmax,3vmax)} }
@keyframes drift2{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(-4vmax,5vmax)} }
@keyframes drift3{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(-5vmax,-4vmax)} }

/* --- Layout --- */
.container{ 
  max-width:1120px; 
  margin:0 auto; 
  padding:20px 16px 60px; 
  padding-top:100px;
  width:100%;
  box-sizing:border-box;
  overflow-x:hidden;
}
.main-header{ 
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:16px; 
  padding:16px 20px;
  background:rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom:1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.logo{ 
  display:flex; 
  align-items:center; 
  text-decoration:none; 
  color:var(--text);
  transition: all 0.3s ease;
  padding:6px 12px;
  border-radius:10px;
  flex-shrink:0;
}
.logo:hover{ 
  background:rgba(0, 201, 255, 0.1);
  border-color:rgba(0, 201, 255, 0.2);
  transform:translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 201, 255, 0.15);
}
.logo:active{ transform:translateY(0); }
.logo-type{ 
  font-weight:800; 
  font-size:clamp(20px, 4vw, 28px); 
  letter-spacing:.5px; 
  line-height:1;
  white-space:nowrap;
}
.logo-type .seven{ 
  color:var(--accent); 
  font-weight:800; 
  text-shadow: 0 0 20px rgba(0, 201, 255, 0.4);
}

/* Hamburger Menu */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:8px;
  z-index:1001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hamburger span{
  display:block;
  width:24px;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin:center;
}
.hamburger[aria-expanded="true"] span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2){
  opacity:0;
  transform:scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}
.hamburger:hover span{
  background:var(--accent);
}
.hamburger:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:6px;
}

/* Navigation */
.main-nav{
  display:flex;
  gap:12px;
  align-items:center;
}
.nav-link{
  padding:10px 20px;
  border-radius:10px;
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  font-size:15px;
  transition: all 0.3s ease;
  background:transparent;
  border:1.5px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.nav-link:hover{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.25);
  color:var(--accent);
  transform:translateY(-1px);
}
.nav-link:active{
  transform:translateY(0);
}
.nav-link:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

.cta{ display:flex; gap:12px; flex-wrap:wrap; }
.btn{ 
  appearance:none; 
  border:none; 
  cursor:pointer; 
  padding:14px 24px; 
  border-radius:14px; 
  font-weight:600; 
  font-size:15px;
  color:#0b0f14; 
  background:linear-gradient(135deg, var(--accent), var(--accent-2)); 
  box-shadow: 0 4px 20px rgba(0, 201, 255, 0.25), var(--shadow); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  overflow:hidden;
  text-decoration:none;
  display:inline-block;
  min-height:44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, var(--accent-2), var(--accent));
  opacity:0;
  transition:opacity 0.3s ease;
  z-index:0;
}
.btn:hover{ 
  transform:translateY(-2px); 
  box-shadow: 0 8px 30px rgba(0, 201, 255, 0.4), 0 4px 20px rgba(0,0,0,.4);
}
.btn:hover::before{ opacity:1; }
.btn:active{ transform:translateY(0); }
.btn > *{ position:relative; z-index:1; }
.btn::before{ pointer-events:none; }
.btn.secondary{ 
  background:transparent; 
  color:var(--text); 
  border:1.5px solid rgba(255,255,255,.15); 
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.btn.secondary::before{ display:none; }
.btn.secondary:hover{ 
  background:rgba(255,255,255,.05); 
  border-color:rgba(255,255,255,.25);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn:focus-visible{ 
  outline:2px solid var(--accent); 
  outline-offset:2px; 
}

/* --- Sections --- */
section{ 
  min-height:calc(100vh - 120px); 
  display:flex; 
  flex-direction:column; 
  justify-content:center; 
  padding:60px 0;
  scroll-margin-top:80px;
}
section.compact{
  min-height:auto;
  padding:32px 0;
}
/* --- Hero --- */
.hero{ 
  display:grid; 
  grid-template-columns:1fr; 
  gap:40px; 
  align-items:center; 
  max-width:900px;
  margin:0 auto;
  padding:80px 0;
}
h1, h2, h3, h4, h5, h6{
  word-wrap:break-word;
  overflow-wrap:break-word;
  hyphens:auto;
}
.headline{ font-size: clamp(32px, 9vw, 64px); line-height:1.05; font-weight:800; letter-spacing:-.8px; margin:0 0 24px; }
.sub{ font-size: clamp(16px, 4.5vw, 22px); color:var(--muted); margin:0 0 32px; line-height:1.7; }
.card{ background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border:1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); border-radius: var(--radius); padding:24px; }

/* --- Contact form --- */
form{ display:grid; gap:16px; margin-top:10px; }
label{ font-size:14px; color:var(--muted); display:block; margin-bottom:6px; }
input, textarea{ 
  width:100%; 
  background:#0e121a; 
  color:var(--text); 
  border:1px solid rgba(255,255,255,.08); 
  border-radius:12px; 
  padding:14px 16px; 
  font:inherit; 
  font-size:16px;
  -webkit-appearance:none;
  appearance:none;
}
input:focus, textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.1);
}
textarea{ min-height:140px; resize:vertical; }
.row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.agreement{ display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--muted); line-height:1.5; }
.agreement input{ width:20px; height:20px; margin-top:2px; flex-shrink:0; min-width:20px; }

/* --- Kontakt Section --- */
#kontakt{ 
  max-width:700px; 
  margin:0 auto;
  min-height:auto;
  padding:120px 0 60px;
}
#kontakt.card{
  padding:32px;
}
#kontakt h2{ 
  font-size:clamp(28px, 4vw, 40px); 
  font-weight:800; 
  margin:0 0 12px; 
  letter-spacing:-.5px;
}

/* --- Impressum --- */
.impressum{ 
  color:var(--muted); 
  font-size:14px; 
  line-height:1.8; 
  word-wrap:break-word;
  overflow-wrap:break-word;
}
.impressum p{ 
  margin:0 0 12px; 
  word-wrap:break-word;
  overflow-wrap:break-word;
}
.impressum p:last-child{ margin-bottom:0; }
.impressum ul, .impressum ol{
  word-wrap:break-word;
  overflow-wrap:break-word;
  max-width:100%;
}

/* --- Responsive --- */
@media (max-width: 900px){
  .container{ padding-top:90px; }
  .main-header{ padding:12px 16px; }
  .hamburger{ display:flex; }
  .main-nav{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    width:min(280px, 80vw);
    background:rgba(15, 17, 21, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    border-left:1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    padding:80px 20px 80px;
    gap:16px;
    transform:translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index:1000;
    overflow-y:visible;
    overflow-x:hidden;
    min-height:100vh;
    box-sizing:border-box;
  }
  .main-nav[aria-hidden="false"]{
    transform:translateX(0);
  }
  .nav-link{
    width:100%;
    padding:16px 20px;
    text-align:center;
    border:1.5px solid rgba(255,255,255,.15);
    flex-shrink:0;
  }
  .cta{ display:none; }
  section{ min-height:auto; padding:40px 0; }
  .hero{ 
    padding:60px 0 80px;
    gap:32px;
  }
  .headline{ 
    font-size: clamp(32px, 10vw, 48px); 
    margin:0 0 20px; 
    line-height:1.1;
  }
  .sub{ 
    font-size: clamp(17px, 5vw, 20px); 
    margin:0 0 28px; 
    line-height:1.7;
  }
  .container{ padding:16px 12px 40px; }
  .logo{ padding:6px 10px; }
  .logo-type{ font-size:20px; }
  .card{ padding:20px; border-radius:16px; }
  #kontakt{ 
    padding:100px 0 40px;
  }
  #kontakt.card{ 
    padding:24px; 
    max-height:none;
    overflow-y:visible;
  }
  .btn{ padding:12px 20px; font-size:14px; min-height:44px; }
  form{ gap:14px; }
  .row{ grid-template-columns:1fr; gap:14px; }
  input, textarea{ padding:12px 14px; font-size:16px; }
  section.compact{ padding:24px 0; }
  .impressum{ font-size:13px; }
  .impressum p{ margin:0 0 10px; }
  
  /* Overlay für offenes Menü */
  body::after{
    content:'';
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0, 0, 0, 0.6);
    opacity:0;
    pointer-events:none;
    transition: opacity 0.3s ease;
    z-index:999;
  }
  body.menu-open::after{
    opacity:1;
    pointer-events:all;
  }
}

@media (max-width: 600px){
  .container{ padding:12px 10px 32px; padding-top:85px; }
  .main-header{ padding:10px 12px; }
  .logo{ padding:5px 8px; }
  .logo-type{ font-size:18px; }
  .main-nav{ width:min(260px, 85vw); padding:70px 16px 70px; }
  .nav-link{ padding:14px 18px; }
  section{ padding:32px 0; scroll-margin-top:60px; }
  .hero{ 
    padding:50px 0 60px;
    gap:28px;
  }
  .card{ padding:18px; border-radius:14px; }
  .headline{ 
    font-size:clamp(28px, 12vw, 40px); 
    margin:0 0 16px;
    line-height:1.1;
  }
  .sub{ 
    font-size:clamp(16px, 5.5vw, 18px); 
    margin:0 0 24px;
    line-height:1.7;
  }
  #kontakt{ 
    padding:80px 0 32px;
  }
  #kontakt.card{ 
    padding:20px; 
    max-height:none;
    overflow-y:visible;
  }
  .btn{ padding:12px 18px; width:100%; }
  .cta{ flex-direction:column; width:100%; }
  .cta .btn{ width:100%; }
  form{ gap:12px; }
  input, textarea{ padding:12px; }
  .agreement{ font-size:12px; gap:8px; }
  .agreement input{ width:18px; height:18px; }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse){
  .btn:hover{ transform:none; }
  .logo:hover{ transform:none; }
  .btn:active{ transform:scale(0.98); }
}

