/* ============================================================
   deepnet.at - Stylesheet
   ============================================================ */

:root{
  --bg: #0b1220;
  --bg-alt: #101a2e;
  --panel: #16213a;
  --panel-light: #1c2b4a;
  --border: #26375c;
  --text: #e7ecf5;
  --text-dim: #a9b6cf;
  --accent: #4fc3d9;
  --accent-2: #6ee7b7;
  --warn-bg: #3a1f1f;
  --warn-border: #b23b3b;
  --warn-text: #ffd6d6;
  --max-w: 1120px;
  --radius: 14px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
  line-height: 1.65;
}

img, svg{ max-width:100%; }

a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Nav --- */
header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(11,18,32,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:1.25rem;
  letter-spacing:0.5px;
}

.brand .dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

nav ul{
  list-style:none;
  display:flex;
  gap: 22px;
  margin:0;
  padding:0;
}

nav a{
  color: var(--text-dim);
  font-size:0.95rem;
  font-weight:600;
}
nav a:hover{ color: var(--text); text-decoration:none; }

.lang-switch{
  display:flex;
  gap:6px;
  margin-left:18px;
}
.lang-switch a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color: var(--text-dim);
  font-size:0.8rem;
  font-weight:700;
  text-decoration:none;
  line-height:1;
}
.lang-switch a:hover{ color: var(--text); border-color: var(--accent); text-decoration:none; }
.lang-switch a.active{
  color:#08131b;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
@media (max-width: 720px){
  .lang-switch{ margin-left:8px; }
}

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--border);
  color:var(--text);
  border-radius:8px;
  padding:8px 10px;
  font-size:1.1rem;
  cursor:pointer;
}

/* --- Hero --- */
.hero{
  padding: 86px 0 64px;
  text-align:center;
}
.hero h1{
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p.lead{
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--text-dim);
  font-size: 1.15rem;
}
.hero .badges{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:center;
}
.badge{
  border:1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  padding:6px 14px;
  border-radius: 999px;
  font-size:0.85rem;
}

.cta-row{
  margin-top:30px;
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
}
.btn{
  display:inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight:700;
  font-size:0.95rem;
  cursor:pointer;
  border:1px solid transparent;
}
.btn-primary{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color:#08131b;
}
.btn-primary:hover{ filter: brightness(1.08); text-decoration:none; }
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{ background: var(--panel); text-decoration:none; }

/* --- Disclaimer strip --- */
.disclaimer{
  background: var(--warn-bg);
  border-top: 1px solid var(--warn-border);
  border-bottom: 1px solid var(--warn-border);
  color: var(--warn-text);
  padding: 14px 0;
  font-size: 0.92rem;
  text-align:center;
}
.disclaimer strong{ color:#ffecec; }

/* --- Sections --- */
section{
  padding: 74px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type{ border-bottom:none; }

.section-kicker{
  color: var(--accent);
  text-transform:uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight:700;
  margin-bottom:8px;
}
.section-title{
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 18px;
}
.section-intro{
  color: var(--text-dim);
  max-width: 760px;
  margin-bottom: 40px;
}

.grid{
  display:grid;
  gap: 22px;
}
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

@media (max-width: 880px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3{
  margin-top:0;
  font-size:1.15rem;
  display:flex; align-items:center; gap:10px;
}
.card p{ color: var(--text-dim); margin-bottom:0; }
.card .icon{
  font-size:1.4rem;
}

.two-col{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items:center;
}
@media (max-width: 880px){
  .two-col{ grid-template-columns: 1fr; }
}

.pill-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:10px;
}
.pill-list li{
  background: var(--panel-light);
  border:1px solid var(--border);
  padding:7px 14px;
  border-radius:999px;
  font-size:0.85rem;
  color: var(--text-dim);
}

/* --- Diagram panels --- */
.diagram-panel{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  overflow-x:auto;
}
.diagram-panel svg{ display:block; margin:0 auto; }
.diagram-caption{
  text-align:center;
  color: var(--text-dim);
  font-size:0.88rem;
  margin-top:14px;
}

.steps{
  counter-reset: step;
  list-style:none;
  margin:0; padding:0;
  display:grid;
  gap:16px;
}
.steps li{
  position:relative;
  padding: 18px 20px 18px 62px;
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: 12px;
}
.steps li::before{
  counter-increment: step;
  content: counter(step);
  position:absolute;
  left:16px; top:50%;
  transform: translateY(-50%);
  width:32px;height:32px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#08131b;
  font-weight:800;
  display:flex;align-items:center;justify-content:center;
}
.steps strong{ display:block; margin-bottom:4px; }
.steps span{ color: var(--text-dim); font-size:0.92rem; }

/* --- Keybinding table --- */
table.keys{
  width:100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: var(--radius);
  overflow:hidden;
}
table.keys th, table.keys td{
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  font-size:0.92rem;
}
table.keys th{
  background: var(--panel-light);
  color: var(--text-dim);
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
table.keys td.key{
  font-family: Consolas, monospace;
  color: #08131b;
  background: var(--accent-2);
  display:inline-block;
  padding: 2px 9px;
  border-radius:6px;
  font-weight:700;
  font-size:0.85rem;
}

/* --- Contact form --- */
.contact-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
@media (max-width: 880px){
  .contact-wrap{ grid-template-columns: 1fr; }
}
form.contact-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.contact-form label{
  font-size:0.85rem;
  color: var(--text-dim);
  margin-bottom:4px;
  display:block;
}
.contact-form input,
.contact-form textarea{
  width:100%;
  padding: 11px 13px;
  border-radius:9px;
  border:1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size:0.95rem;
}
.contact-form textarea{ min-height:120px; resize:vertical; }
.contact-form input:focus,
.contact-form textarea:focus{
  outline: 2px solid var(--accent);
  outline-offset:1px;
}
.form-note{
  font-size:0.85rem;
  color: var(--text-dim);
  background: var(--panel-light);
  border:1px solid var(--border);
  border-radius:9px;
  padding:12px 14px;
}
.form-status{
  font-size:0.9rem;
  min-height:1.4em;
}
.form-status.ok{ color: var(--accent-2); }

/* --- Screenshot thumbs & lightbox --- */
.shot-thumb{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  cursor: zoom-in;
  background: var(--panel);
  line-height:0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.shot-thumb:hover, .shot-thumb:focus-visible{
  border-color: var(--accent);
  transform: translateY(-2px);
}
.shot-thumb img{ width:100%; display:block; }

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(5,9,16,0.92);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 40px;
  z-index: 200;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.18s ease;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox img{
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lightbox-close{
  position:absolute;
  top: 22px; right: 30px;
  background: var(--panel);
  border:1px solid var(--border);
  color: var(--text);
  font-size: 1.6rem;
  line-height:1;
  width:44px; height:44px;
  border-radius:50%;
  cursor:pointer;
}
.lightbox-close:hover{ background: var(--panel-light); }

.lightbox-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  background: var(--panel);
  border:1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  line-height:1;
  width:52px; height:52px;
  border-radius:50%;
  cursor:pointer;
}
.lightbox-nav:hover{ background: var(--panel-light); border-color: var(--accent); }
.lightbox-prev{ left: 24px; }
.lightbox-next{ right: 24px; }
@media (max-width: 640px){
  .lightbox-nav{ width:42px; height:42px; font-size:1.1rem; }
  .lightbox-prev{ left:8px; }
  .lightbox-next{ right:8px; }
}

/* --- Nach-oben-Button --- */
.back-to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease, border-color 0.15s ease;
  z-index: 150;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.back-to-top.visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover{
  background: var(--panel-light);
  border-color: var(--accent);
}
@media (max-width: 640px){
  .back-to-top{ right: 16px; bottom: 16px; width: 42px; height: 42px; font-size: 1.15rem; }
}

/* --- Footer --- */
footer{
  padding: 34px 0 50px;
  text-align:center;
  color: var(--text-dim);
  font-size:0.85rem;
}
footer .foot-links{
  margin-top:8px;
}
footer .foot-links a{ margin: 0 8px; }

@media (max-width: 720px){
  nav ul{
    position:fixed;
    top:64px; right:0;
    flex-direction:column;
    background: var(--bg-alt);
    border:1px solid var(--border);
    border-radius: 12px;
    padding: 14px 22px;
    display:none;
    gap:14px;
    margin:0 12px;
  }
  nav ul.open{ display:flex; }
  .nav-toggle{ display:inline-block; }
}
