/* ============================================
   itkoordinator.de — Stylesheet
   ============================================ */

/* Plus Jakarta Sans — lokal ausgeliefert (keine Verbindung zu Google) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-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;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  --navy:         #0c2340;
  --navy-mid:     #1a3a6e;
  --navy-light:   #eef2f9;
  --navy-deep:    #091c33;
  --orange:       #e8640a;
  --orange-light: #fff4ec;
  --orange-hover: #cf5808;
  --text:         #111827;
  --text-mid:     #374151;
  --gray:         #6b7280;
  --gray-light:   #f7f9fc;
  --gray-mid:     #9ca3af;
  --border:       #e5e9f0;
  --white:        #ffffff;
  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --shadow-sm:    0 1px 4px rgba(12,35,64,0.06), 0 2px 8px rgba(12,35,64,0.04);
  --shadow-md:    0 4px 16px rgba(12,35,64,0.08), 0 1px 4px rgba(12,35,64,0.05);
  --shadow-lg:    0 12px 40px rgba(12,35,64,0.12), 0 4px 12px rgba(12,35,64,0.06);
  --font:         'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- NAVIGATION ---- */

.nav {
  background: var(--white);
  padding: 0 56px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
  overflow: visible;
}
.nav.scrolled {
  box-shadow: 0 2px 16px rgba(12,35,64,0.08);
}

.nav-logo {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  text-decoration: none;
}
.nav-logo em {
  color: var(--orange);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  height: 100%;
  align-items: center;
}
.nav-links a {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-cta {
  background: var(--navy);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--navy-mid); }

/* ---- BREADCRUMB ---- */

.breadcrumb {
  background: var(--gray-light);
  padding: 11px 56px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray);
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--navy-mid); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--gray-mid); }

/* ---- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 4px 16px rgba(232,100,10,0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); }

.btn-navy {
  background: var(--navy);
  color: white;
}
.btn-navy:hover { background: var(--navy-mid); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--navy-light);
}

.btn-lg { padding: 14px 30px; font-size: 15.5px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---- BADGES ---- */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.badge-stable  { background: #dcfce7; color: #15803d; }
.badge-beta    { background: #fef9c3; color: #a16207; }
.badge-version { background: var(--navy-light); color: var(--navy-mid); }
.badge-free    { background: var(--orange-light); color: var(--orange); }

/* ---- SECTION LAYOUTS ---- */

.section { padding: 48px 56px; }
.section-alt { background: var(--gray-light); }
.section-navy { background: var(--navy); }

.section-header { margin-bottom: 28px; }
.section-header .eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-header p {
  font-size: 16px;
  color: var(--gray);
  max-width: 520px;
  line-height: 1.7;
}
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

.container { max-width: 1100px; margin: 0 auto; }

/* ---- TOOL CARDS ---- */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  background: white;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
}
.tool-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #c8d4e8;
  transform: translateY(-2px);
}

.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}
.tool-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.tool-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.tool-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}
.tool-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}
.tool-card-meta {
  font-size: 12px;
  color: var(--gray-mid);
  line-height: 1.55;
}

/* ---- FOOTER ---- */

.footer {
  background: var(--navy-deep);
  padding: 36px 56px 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

.footer-logo {
  color: white;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.footer-logo em {
  color: var(--orange);
  font-style: normal;
}
.footer-tagline {
  font-size: 13.5px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  transition: color 0.15s;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.28);
}

/* ---- UTILITIES ---- */

.text-navy   { color: var(--navy); }
.text-orange { color: var(--orange); }
.text-gray   { color: var(--gray); }
.text-white  { color: white; }
.text-muted  { color: var(--gray-mid); }

.font-bold  { font-weight: 700; }
.font-black { font-weight: 800; }

/* ---- NAV DROPDOWN ---- */

.nav-item-drop {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-item-drop > a {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-item-drop > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #9ca3af;
  border-bottom: 1.5px solid #9ca3af;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.nav-item-drop.open > a::after {
  transform: rotate(-135deg) translateY(-2px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(12,35,64,0.12), 0 4px 12px rgba(12,35,64,0.06);
  min-width: 460px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 9999;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.nav-dropdown-divider,
.nav-dropdown-footer {
  grid-column: 1 / -1;
}
.nav-item-drop.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #111827;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
}
.nav-dropdown-item:hover {
  background: #eef2f9;
  color: #0c2340;
}
.nav-dropdown-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eef2f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-dropdown-item:hover .nav-dropdown-item-icon { background: white; }
.nav-dropdown-item-text strong {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: #0c2340;
}
.nav-dropdown-item-text span {
  font-size: 12px;
  color: #9ca3af;
}
.nav-dropdown-divider {
  height: 1px;
  background: #e5e9f0;
  margin: 4px 6px;
}
.nav-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px 6px;
  font-size: 12.5px;
  color: #1a3a6e;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.12s;
}
.nav-dropdown-footer:hover { background: #eef2f9; }

/* ============================================
   HAMBURGER BUTTON
   ============================================ */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   RESPONSIVE — TABLET (max 768px)
   ============================================ */

@media (max-width: 768px) {

  /* Nav */
  .nav { padding: 0 20px; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 20px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(12,35,64,0.10);
    z-index: 198;
    height: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links > li > a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-weight: 600;
    height: auto;
  }

  /* Mobile dropdown — statisch anzeigen */
  .nav-item-drop { height: auto; align-items: flex-start; flex-direction: column; width: 100%; }
  .nav-item-drop > a { height: auto; width: 100%; }
  .nav-item-drop > a::after { display: none; }
  .nav-dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none;
    border: none;
    background: var(--gray-light);
    border-radius: var(--radius);
    margin: 4px 0 8px;
    padding: 4px;
    min-width: unset;
    width: 100%;
  }
  .nav-dropdown-footer { display: none; }

  /* Breadcrumb */
  .breadcrumb { padding: 10px 20px; font-size: 12px; }

  /* Sections */
  .section { padding: 32px 20px; }
  .section-header h2 { font-size: 22px; }
  .section-header p { font-size: 14px; }

  /* Tool cards grid */
  .tools-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 32px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
