/* ============================================================
   Hübner IT — huebner-it.net
   Modernes, seriöses Design · keine externen Abhängigkeiten
   ============================================================ */

:root {
  --navy:       #0d2137;
  --navy-2:     #14314f;
  --ink:        #1e2a36;
  --muted:      #5b6b7b;
  --line:       #e3e9ef;
  --bg:         #ffffff;
  --bg-soft:    #f4f7fa;
  --accent:     #1a66c2;
  --accent-dark:#124e99;
  --accent-soft:#e8f0fb;
  --teal:       #0e9aa7;
  --radius:     14px;
  --shadow:     0 10px 30px rgba(13, 33, 55, .08);
  --shadow-lg:  0 18px 50px rgba(13, 33, 55, .14);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; display: block; }

section { scroll-margin-top: 90px; }

/* ---------- Typografie ---------- */

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }

h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; margin-bottom: .6em; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .45em; }

.accent { color: var(--accent); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .9em;
}
.eyebrow-light { color: #9cc3f5; }

.lead { font-size: 1.15rem; color: var(--muted); margin: 1.2em 0 1.8em; max-width: 34em; }

.section-lead { color: var(--muted); max-width: 40em; margin-bottom: 2.5em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(26, 102, 194, .35);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(26, 102, 194, .45); }

.btn-ghost {
  color: var(--navy);
  border: 1.5px solid var(--line);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.btn-small { padding: 9px 20px; font-size: .92rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--accent) 160%);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-name {
  font-weight: 750;
  letter-spacing: .06em;
  color: var(--navy);
  font-size: 1.02rem;
}

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 550;
  font-size: .97rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(60% 80% at 85% 10%, var(--accent-soft) 0%, transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
  padding: 80px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Code-Fenster-Grafik */

.hero-visual { position: relative; }

.code-window {
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.5deg);
}

.code-titlebar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, .06);
}
.code-titlebar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}
.code-titlebar span:first-child { background: #e0655a; }
.code-titlebar span:nth-child(2) { background: #e0b23c; }
.code-titlebar span:nth-child(3) { background: #58b368; }

.code-body { padding: 22px 20px 26px; display: grid; gap: 12px; }

.code-line { display: flex; gap: 8px; }
.code-line.ind { padding-left: 26px; }

.tok {
  display: inline-block;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .28);
}
.tok.t-accent { background: rgba(96, 165, 250, .85); }
.tok.t-blue   { background: rgba(14, 154, 167, .8); }
.tok.t-dim    { background: rgba(255, 255, 255, .14); }

.w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; }
.w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; }
.w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  font-size: .85rem;
  line-height: 1.35;
  color: var(--muted);
}
.float-card strong { color: var(--navy); }

.float-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  font-size: 1rem;
}

.float-card-1 { top: -22px; right: -8px; }
.float-card-2 { bottom: -20px; left: -14px; }

/* Trustbar */

.trustbar {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 64px;
  padding: 22px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trustbar li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .92rem;
  font-weight: 550;
  color: var(--ink);
}

.trustbar svg {
  width: 17px; height: 17px;
  stroke: var(--teal);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Sektionen ---------- */

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Leistungs-Karten */

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cfdcea;
}

.card p { color: var(--muted); font-size: .95rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-soft), #f0f7ff);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px; height: 26px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-cta {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
  border: none;
  display: flex;
  flex-direction: column;
}
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255, 255, 255, .75); flex-grow: 1; }

.card-link {
  color: #8fc1ff;
  font-weight: 650;
  text-decoration: none;
  margin-top: 14px;
}
.card-link:hover { color: #fff; }

/* Arbeitsweise */

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

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}

.step-num {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.step p { color: var(--muted); font-size: .95rem; }

/* Über mich */

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  background: var(--navy);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(13, 33, 55, .1);
  pointer-events: none;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.about-photo { position: relative; }
.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), #dcebfa);
  z-index: -1;
}

.fact-list {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 13px;
}

.fact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 550;
  font-size: .97rem;
}

.fact-list svg {
  width: 20px; height: 20px;
  stroke: var(--accent);
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Kontakt */

.section-contact { padding-bottom: 100px; }

.contact-panel {
  background:
    radial-gradient(80% 120% at 90% -10%, rgba(26, 102, 194, .5) 0%, transparent 55%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: 22px;
  padding: 72px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.contact-panel h2 { color: #fff; }
.contact-panel > p {
  color: rgba(255, 255, 255, .78);
  max-width: 32em;
  margin: 0 auto 2em;
}

.contact-mail { margin-top: 22px; font-size: .95rem; }
.contact-mail a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.contact-mail a:hover { color: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
  padding: 56px 0 0;
  font-size: .93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-mark { background: rgba(255, 255, 255, .12); }

.footer-tagline { margin-top: 14px; line-height: 1.6; }

.site-footer h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  padding: 4px 0;
}
.footer-grid a:hover { color: #fff; }
.footer-grid .brand { display: inline-flex; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .45);
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */

.legal-main { padding: 64px 0 96px; max-width: 780px; margin: 0 auto; }
.legal-main h1 { font-size: 2rem; margin-bottom: 1em; }
.legal-main h2 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.legal-main h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.legal-main p, .legal-main li { color: var(--ink); font-size: .97rem; }
.legal-main ul { padding-left: 1.3em; }
.legal-main a { color: var(--accent); }
.legal-note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .92rem;
  margin: 1.2em 0;
}
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .hero { padding-top: 56px; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .trustbar { flex-direction: column; gap: 12px; }
  .float-card-1 { top: -18px; right: 0; }
  .float-card-2 { bottom: -16px; left: 0; }
  .contact-panel { padding: 56px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
