/* =========================================================
   IT-Solutions Nico Türk – Stylesheet
   ========================================================= */

/* ---------- Schrift (selbst gehostet) ----------
   Inter als Variable Font, Gewichte 400–900 in einer Datei.
   Lizenz: SIL Open Font License 1.1 – siehe fonts/OFL.txt        */

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ----- Markenfarben ----- */
  --logo-deep:  #1F628E;   /* Dunkelblau  */
  --logo-steel: #548BA6;   /* Stahlblau / Petrol – Primärfarbe */
  --logo-aqua:  #81C3C9;   /* Aqua        */
  --logo-grey:  #A9ABAE;   /* Grau        */

  /* ----- Flächen: kühles, leicht blaustichiges Dunkel ----- */
  --bg:        #0D141A;
  --bg-alt:    #111A21;
  --surface:   #16212A;
  --surface-2: #1C2A34;
  --line:      rgba(129, 195, 201, 0.10);
  --line-2:    rgba(129, 195, 201, 0.22);

  --text:      #EAF1F4;
  --muted:     #9DB2BE;
  --muted-2:   #6C828F;

  /* ----- Akzente ----- */
  --accent:       var(--logo-steel);
  --accent-2:     var(--logo-deep);
  --accent-3:     var(--logo-aqua);
  --accent-btn:   #3D7B9B;  /* etwas tiefer: weiße Schrift erreicht AA */
  --accent-btn-h: #4A8BAD;

  --grad:      linear-gradient(100deg, var(--logo-aqua), #6FAEC0 45%, var(--logo-steel));
  --grad-mark: linear-gradient(135deg, var(--logo-aqua), var(--logo-steel) 55%, var(--logo-deep));

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --header-h:  80px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* Gradient text helper */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 18px;
  font-feature-settings: "tnum";
}

/* ---------- Buttons ---------- */
.btn {
  --_pad-y: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--_pad-y) 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-lg { --_pad-y: 15px; padding-left: 26px; padding-right: 26px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--accent-btn);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(31, 98, 142, .75);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(84, 139, 166, .85);
  background: var(--accent-btn-h);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 16, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; }
.logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: opacity .2s ease;
}
.logo:hover .logo-img { opacity: .82; }
.logo-img-footer { height: 58px; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.94rem;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  width: 900px; height: 640px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(84,139,166,.32), transparent 70%),
    radial-gradient(closest-side, rgba(129,195,201,.18), transparent 70%);
  background-position: 20% 30%, 80% 40%;
  background-repeat: no-repeat;
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 12px var(--accent-3); }

/* ---------- Stats ---------- */
.stats { padding: 8px 0 48px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label { color: var(--muted-2); font-size: 0.78rem; letter-spacing: 0.1em; margin-top: 12px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head h2,
.about-text h2,
.contact-intro h2,
.support-copy h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.section-lead { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }

/* ---------- Leistungen (cards) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }
.card-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-3);
  letter-spacing: 0.08em;
}
.card h3 { font-size: 1.28rem; margin: 14px 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Vorteile (features) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .25s ease, border-color .25s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--line-2); }
.feature-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 12px;
  background: rgba(84,139,166,.15);
  border: 1px solid rgba(84,139,166,.32);
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--muted); margin: 18px 0; font-size: 1.05rem; }
.about-text .btn { margin-top: 10px; }

.about-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 38px 34px;
}
.avatar {
  width: 76px; height: 76px;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  background: var(--grad);
  margin-bottom: 20px;
}
.about-name { font-size: 1.5rem; letter-spacing: -0.01em; }
.about-role { color: var(--accent-3); font-size: 0.92rem; margin-bottom: 22px; font-weight: 500; }
.checklist { list-style: none; display: grid; gap: 12px; margin-bottom: 22px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 0.98rem;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(129,195,201,.16);
  color: var(--accent-3);
  font-size: 0.75rem; font-weight: 800;
}
.about-loc { color: var(--muted-2); font-size: 0.92rem; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Support Banner ---------- */
.support-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(84,139,166,.22), transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(31,98,142,.24), transparent 55%),
    var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 46px 44px;
}
.support-copy { max-width: 560px; }
.support-copy h2 { margin-bottom: 12px; }
.support-copy p { color: var(--muted); font-size: 1.05rem; }
.support-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 34px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-ico {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.2rem;
}
.contact-k { display: block; font-size: 0.76rem; letter-spacing: 0.1em; color: var(--muted-2); text-transform: uppercase; }
.contact-list a:hover { color: var(--accent-3); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(84,139,166,.28);
}
/* Honeypot: aus dem Sichtfeld und aus dem Tab-Fluss, aber im DOM vorhanden */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Cloudflare Turnstile */
.turnstile-wrap { min-height: 65px; }
.turnstile-wrap iframe { border-radius: 8px; }

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.form-note { color: var(--muted-2); font-size: 0.85rem; text-align: center; }
.form-status { font-size: 0.92rem; text-align: center; min-height: 1em; }
.form-status.ok { color: var(--accent-3); }
.form-status.err { color: #F08C86; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
  background: var(--bg-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 320px; font-size: 0.95rem; }
.footer-nav, .footer-legal { display: grid; gap: 12px; align-content: start; }
.footer-nav a, .footer-legal a { color: var(--muted); font-size: 0.95rem; transition: color .2s; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  color: var(--muted-2);
  font-size: 0.88rem;
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal { padding: 64px 0 96px; }
.legal-inner { max-width: 820px; }

.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.legal .legal-meta { color: var(--muted-2); font-size: 0.9rem; margin-bottom: 48px; }

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 26px 0 8px;
  color: var(--text);
}
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal ul { color: var(--muted); margin: 0 0 16px 20px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }

.legal address {
  font-style: normal;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 16px;
  line-height: 1.75;
}

/* Noch auszufüllende Angaben – bewusst auffällig */
.todo {
  display: inline-block;
  background: rgba(240, 140, 134, .14);
  color: #F08C86;
  border: 1px dashed rgba(240, 140, 134, .55);
  border-radius: 6px;
  padding: 1px 9px;
  font-weight: 600;
  font-size: 0.93em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 34px;
  transition: color .2s;
}
.back-link:hover { color: var(--accent-3); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .logo-img { height: 38px; }
  .logo-img-footer { height: 50px; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    transform: translateY(-120%);
    transition: transform .32s ease;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .support-banner { padding: 34px 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .cards, .features, .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 60px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
