*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blau:    #1B3A6B;
  --orange:  #E85D04;
  --gelb:    #FFD166;
  --hell:    #EBF2FF;
  --grau:    #7a90b5;
  --border:  #d0dff5;
  --weiss:   #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f4f7fb;
  color: #1a1a2e;
  font-size: 15px;
  line-height: 1.6;
}

/* NAV */
.nav-bar {
  background: var(--blau);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  color: #fff;
  font-size: 19px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.nav-logo span { color: var(--gelb); }
.logo-greeting {
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  opacity: 0;
  color: var(--gelb);
  font-size: 13px;
  font-weight: 400;
  transition: opacity 0.25s;
  pointer-events: none;
}
.logo-main { transition: opacity 0.2s; display: inline-block; }
.nav-logo:hover .logo-main   { opacity: 0; }
.nav-logo:hover .logo-greeting { opacity: 1; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-link {
  color: #a8c4e8;
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-cta {
  background: var(--gelb);
  color: var(--blau);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 7px;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.nav-cta:hover { background: #ffc533; transform: scale(1.04); }

/* HERO */
.hero {
  background: var(--hell);
  padding: 40px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 26px; font-weight: 600; color: var(--blau); margin-bottom: 10px; }
.hero p  { font-size: 15px; color: #3a5f99; margin-bottom: 20px; max-width: 520px; margin-left: auto; margin-right: auto; }
.search-bar { display: flex; max-width: 460px; margin: 0 auto 16px; }
.search-bar input {
  flex: 1;
  padding: 11px 14px;
  border: 2px solid var(--blau);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.search-bar button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.search-bar button:hover { background: #c74f00; transform: scaleX(1.04); }
.trust-bar { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.trust-item { font-size: 13px; color: #3a5f99; }

/* ANZEIGEN */
.ad-leaderboard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin: 14px 24px;
  min-height: 60px;
}
.ad-inline {
  background: #FFF9EC;
  border: 1px solid #ffe0a0;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin: 0 24px 16px;
  min-height: 60px;
}
.ad-label {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* SEKTIONEN */
.section { padding: 20px 24px; }
.section-title { font-size: 17px; font-weight: 500; color: var(--blau); margin-bottom: 14px; }

/* KATEGORIEN */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  display: block;
  transition: border-color 0.18s, transform 0.18s;
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}
.cat-card:hover { border-color: var(--blau); transform: translateY(-2px); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon { font-size: 22px; margin-bottom: 8px; }
.cat-name { font-size: 13px; font-weight: 500; color: var(--blau); }
.cat-count { font-size: 11px; color: var(--grau); margin-top: 3px; }

/* FOOTER */
.footer { background: var(--blau); padding: 20px 24px; margin-top: 30px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.footer-link { color: #a8c4e8; font-size: 12px; text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: var(--gelb); }
.footer-copy { text-align: center; font-size: 11px; color: #7a9bc8; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero h1 { font-size: 20px; }
  .nav-bar  { padding: 10px 14px; }
  .section  { padding: 16px 14px; }
  .ad-leaderboard, .ad-inline { margin: 10px 14px; }
}

/* DETAILSEITE */
.detail-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--grau);
  margin-bottom: 12px;
}
.breadcrumb a {
  color: var(--blau);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.detail-wrap h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--blau);
  margin-bottom: 6px;
}
.vorlage-meta {
  font-size: 13px;
  color: var(--grau);
  margin-bottom: 18px;
}
.vorlage-box {
  background: #F5F9FF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.9;
  color: #1a1a2e;
  margin-bottom: 14px;
  white-space: pre-wrap;
}
.copy-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  margin-bottom: 18px;
  transition: background 0.15s, transform 0.15s;
}
.copy-btn:hover { background: #c74f00; transform: scale(1.02); }
.ad-rect {
  background: #FFF9EC;
  border: 1px solid #ffe0a0;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  margin-bottom: 18px;
  min-height: 60px;
}
.tipps-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.tipps-box h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--blau);
  margin-bottom: 12px;
}
.tipps-liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tipps-liste li {
  font-size: 13px;
  color: #3a5f99;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.tipps-liste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.ki-teaser {
  background: var(--blau);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-bottom: 18px;
}
.ki-teaser p {
  color: #a8c4e8;
  font-size: 14px;
  margin-bottom: 10px;
}
.ki-teaser-btn {
  background: var(--gelb);
  color: var(--blau);
  padding: 9px 22px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, background 0.15s;
}
.ki-teaser-btn:hover { background: #ffc533; transform: scale(1.04); }