/* ═══════════════════════════════════════════════════════════════
   IBD Krähmer — Modern Light Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Farben — hell & freundlich */
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #eef3f9;
  --ink: #10233f;
  --ink-soft: #3d5169;
  --muted: #64748b;
  --line: #e3eaf2;
  --primary: #0f6ecd;
  --primary-dark: #0b56a5;
  --primary-soft: #e7f1fb;
  --accent: #17a2b8;
  --shadow-sm: 0 1px 2px rgba(16, 35, 63, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 35, 63, 0.07);
  --shadow-lg: 0 20px 45px rgba(16, 35, 63, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding-block: 64px; }
.narrow { max-width: 760px; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.15rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 820px; }
.accent { color: var(--primary); }
.muted-note { font-size: 0.85rem; color: var(--muted); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(15, 110, 205, 0.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 110, 205, 0.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--primary-soft); }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }

/* ═══════════════ Header ═══════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #1e8fd6);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(15, 110, 205, 0.3);
}
.brand-name { font-weight: 800; font-size: 1.18rem; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name small { font-weight: 500; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.93rem;
  transition: all 0.18s ease;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.main-nav a.nav-cta { background: var(--primary); color: #fff; font-weight: 600; }
.main-nav a.nav-cta:hover { background: var(--primary-dark); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: all 0.25s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════════ Views ═══════════════ */
.view { display: none; }
.view.active { display: block; animation: viewIn 0.35s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ═══════════════ Hero ═══════════════ */
.hero {
  position: relative;
  padding: 110px 0 60px;
  background:
    radial-gradient(700px 360px at 88% 0%, rgba(23, 162, 184, 0.10), transparent 60%),
    radial-gradient(600px 340px at 8% 100%, rgba(15, 110, 205, 0.10), transparent 55%),
    linear-gradient(180deg, #eaf3fc 0%, var(--bg) 100%);
  overflow: hidden;
}
/* dezentes Punktraster als Hintergrund-Deko */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 110, 205, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero-inner .eyebrow { margin-bottom: 20px; }
.hero-inner h1 { margin: 0 0 22px; }
.hero-sub {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.hero-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 600;
  font-size: 0.97rem;
  padding-top: 24px;
  border-top: 1px dashed rgba(15, 110, 205, 0.25);
  max-width: 520px;
  margin: 0 auto;
}
.hero-contact a { color: var(--ink-soft); }
.hero-contact a:hover { color: var(--primary); }

/* ─── KI-Hinweis zwischen Kontaktdaten und Teaser-Karten ─── */
.ki-note {
  margin-top: 56px;
  display: flex;
  gap: 24px;
  align-items: center;
  text-align: left;
  padding: 28px 32px;
  background: linear-gradient(120deg, #eaf3fd 0%, #f4f9ff 55%, #eef9fb 100%);
  border: 1px solid rgba(15, 110, 205, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.ki-note::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(23, 162, 184, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.ki-visual {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #1e8fd6);
  box-shadow: 0 10px 24px rgba(15, 110, 205, 0.35);
}
.ki-spark {
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  animation: sparkPulse 3s ease-in-out infinite;
}
@keyframes sparkPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.15) rotate(8deg); opacity: 0.85; }
}
.ki-body { flex: 1; min-width: 0; }
.ki-badge {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.ki-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.ki-sub {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 640px;
}
.hide-mobile { display: none; }


/* ═══════════════ Teaser Grid ═══════════════ */
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teaser-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  color: var(--ink);
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; outline: 1px solid var(--primary); }
.teaser-icon { font-size: 1.9rem; margin-bottom: 16px; }
.teaser-card h3 { margin-bottom: 8px; }
.teaser-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.teaser-link { font-weight: 600; font-size: 0.9rem; color: var(--primary); }

/* ═══════════════ M365 Strip ═══════════════ */
.m365-strip .strip-inner {
  background: linear-gradient(120deg, #0f6ecd, #1e8fd6 60%, #17a2b8);
  border-radius: var(--radius-lg);
  padding: 36px 42px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}
.strip-inner .eyebrow { color: rgba(255, 255, 255, 0.8); margin-bottom: 4px; }
.strip-inner h3 { margin: 0; font-size: 1.3rem; }
.strip-icon { font-size: 2.4rem; flex-shrink: 0; }
.strip-inner .btn { margin-left: auto; }
.strip-accent { color: #aef0fb; font-weight: 700; }

/* Open-Source-Strip: identische Karte wie M365-Strip, Text zentriert */
.open-strip.section { padding-block: 0 30px; }
.open-strip .strip-inner {
  background: linear-gradient(120deg, #0f6ecd, #1e8fd6 60%, #17a2b8);
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
}
.open-strip h3 { max-width: 820px; }

/* ═══════════════ Partner ═══════════════ */
.partners { text-align: center; padding-block: 20px 70px; }
.partners-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-bottom: 24px; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  min-height: 64px;
}
.partner-logo:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.partner-logo img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.partner-logo:hover img { transform: scale(1.04); }
/* Placetel-Logo ist die weiße Variante → eigener heller grauer Hintergrund */
.partner-logo.pt { background: #9ca3af; border-color: #9ca3af; }
.partner-logo.pt img { max-height: 28px; }
/* ESET / MailStore eigene Höhen-Anpassung */
.partner-logo img[alt="ESET"] { max-height: 40px; }
.partner-logo img[alt="MailStore"] { max-height: 30px; }

/* ═══════════════ Page Hero ═══════════════ */
.page-hero {
  padding: 70px 0 10px;
  background: linear-gradient(180deg, #eaf3fc 0%, var(--bg) 100%);
}
.page-hero h1 { margin-bottom: 18px; }

/* ═══════════════ Lösungen Grid ═══════════════ */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.solution-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}
.solution-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(15, 110, 205, 0.35); }
.sol-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  background: var(--primary-soft);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.solution-card h3 { margin-bottom: 8px; }
.solution-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ═══════════════ Services List ═══════════════ */
.services-list { display: flex; flex-direction: column; gap: 14px; }
.service-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.service-row:hover { box-shadow: var(--shadow-md); border-color: rgba(15, 110, 205, 0.35); transform: translateX(4px); }
.service-num {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0.55;
  min-width: 48px;
  line-height: 1.1;
}
.service-body h3 { margin-bottom: 4px; }
.service-body p { color: var(--ink-soft); font-size: 0.95rem; }

/* ═══════════════ Security Grid ═══════════════ */
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.security-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.security-card.highlight { background: linear-gradient(160deg, #eef6ff, #ffffff); border-color: rgba(15, 110, 205, 0.3); }
.security-card h3 { margin: 0 0 10px; }
.security-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ═══════════════ M365 Layout ═══════════════ */
.m365-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.m365-layout h3 { margin-bottom: 18px; }
.strategy-list { list-style: none; }
.strategy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink-soft);
}
.strategy-list li:last-child { border-bottom: 0; }
.check {
  color: var(--primary);
  font-weight: 800;
  background: var(--primary-soft);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.app-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.app-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.app-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ═══════════════ Kontakt ═══════════════ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.contact-info h3 { margin-bottom: 14px; }
.contact-info p { color: var(--ink-soft); }
.contact-lines { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.contact-lines a { font-weight: 600; color: var(--ink-soft); }
.contact-lines a:hover { color: var(--primary); }
.contact-note { color: var(--muted); font-size: 0.92rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
}
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink); }
.req { color: #e11d48; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-size: 0.98rem;
  font-family: inherit;
  background: #fbfdff;
  color: var(--ink);
  transition: all 0.18s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 110, 205, 0.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-hint { font-size: 0.8rem; color: var(--muted); }
.form-success {
  display: none;
  background: #e9f9ef;
  border: 1px solid #a7e3bf;
  color: #166534;
  border-radius: 11px;
  padding: 14px 18px;
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-weight: 500;
}
.form-success.success-ok { background: #e9f9ef; border-color: #a7e3bf; color: #166534; }
.form-success.success-err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.form-success.show { display: block; }
button[disabled] { opacity: 0.65; cursor: wait; }

/* ═══════════════ Footer ═══════════════ */
.site-footer { background: #0e1c30; color: #9fb0c6; padding: 44px 0 36px; margin-top: 30px; }
.footer-inner { display: flex; flex-direction: column; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-nav a { color: #b9c6d8; font-size: 0.92rem; padding: 6px 10px; border-radius: 8px; transition: all 0.18s ease; }
.footer-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.footer-meta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 0.86rem; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; }
.footer-meta a { color: #9fb0c6; }
.footer-meta a:hover { color: #fff; }

/* ═══════════════ Responsive ═══════════════ */
@media (min-width: 981px) {
  .hide-mobile { display: inline; }
}

@media (max-width: 980px) {
  .hero { padding: 70px 0 40px; }
  .ki-note { margin-top: 40px; padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .ki-visual { width: 52px; height: 52px; border-radius: 14px; }
  .ki-sub { font-size: 0.95rem; }
  .open-strip.section { padding-block: 0 24px; }
  .open-strip .strip-inner { padding: 28px 24px; }
  .teaser-grid { grid-template-columns: 1fr; }
  .m365-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 18px 5%;
    gap: 4px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; font-size: 1rem; border-radius: 10px; }
  .menu-toggle { display: flex; }
  .strip-inner { flex-direction: column; text-align: center; }
  .strip-inner .btn { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
