/* netwito.de – shared stylesheet
   Dark theme, blue/cyan accents, fully responsive, no external resources. */

:root {
  --bg-0: #050b14;
  --bg-1: #0a1424;
  --bg-2: #0f1d33;
  --bg-3: #14253f;
  --line: #1d3052;
  --text: #e6edf6;
  --text-dim: #aab8cd;
  --muted: #7c8aa3;
  --accent: #38bdf8;      /* cyan-400 */
  --accent-2: #60a5fa;    /* blue-400 */
  --accent-glow: rgba(56, 189, 248, 0.35);
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent-2); text-decoration: underline; }
code, kbd { font-family: var(--mono); }

/* Layout containers */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  color: var(--text);
}
.brand .logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus {
  color: var(--text);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(5,11,20,0.35) 0%, rgba(5,11,20,0.85) 75%, var(--bg-0) 100%),
    url("pics/hero-datacenter.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.05);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(56,189,248,0.15), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(96,165,250,0.12), transparent 55%);
  z-index: -1;
}
.hero-content {
  padding: 4.5rem 0 3rem;
  max-width: 820px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 1rem;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  background: rgba(56,189,248,0.06);
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 0 1.6rem;
}
.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #04121d;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-2);
  color: #04121d;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover, .btn-ghost:focus {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Section */
section.block {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}
section.block:last-of-type { border-bottom: 0; }
.block h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 0 0 0.5rem;
  color: #fff;
}
.block .sub {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 2rem;
}

/* Service grid (used in /start/) */
.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover, .card:focus-within {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  overflow: hidden;
}
.card .icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  color: #fff;
}
.card .desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex-grow: 1;
}
.card .host {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
  word-break: break-all;
}
.card .more {
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  background: rgba(56,189,248,0.08);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-sm);
  color: var(--accent);
}
.card .more:hover, .card .more:focus {
  background: var(--accent);
  color: #04121d;
  text-decoration: none;
}

/* Prose pages (Impressum, Datenschutz) */
.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}
.prose h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 1.2rem;
  color: #fff;
}
.prose h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
  color: var(--accent);
}
.prose p, .prose li {
  color: var(--text-dim);
}
.prose ul {
  padding-left: 1.3rem;
}
.prose .meta {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}
.prose .meta dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 0.5rem;
}
.prose .meta dt:first-child { margin-top: 0; }
.prose .meta dd {
  margin: 0.1rem 0 0;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--accent); }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero { min-height: 50vh; }
  .hero-content { padding: 3rem 0 2rem; }
  .site-header .bar { flex-wrap: wrap; }
  .nav { gap: 0.8rem; }
}
