:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --primary: #3157a6;
  --primary-dark: #244487;
  --accent: #f6ad55;
  --text: #1a202c;
  --text-muted: #4a5568;
  --border: #e2e8f0;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-pill: 999px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: var(--bg-alt);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.main-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: var(--primary);
  color: #fff;
}

.main-nav a.active {
  background: var(--primary-dark);
  color: #fff;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 1rem;
  gap: 1.2rem;
}

.hero-content,
.hero-search {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-content {
  background: var(--bg-alt);
  padding: 1.6rem 1.8rem;
}

.hero-content h1 {
  margin: 0 0 .8rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.hero-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.hero-search {
  background: #172033;
  color: #fff;
  padding: 1.6rem 1.7rem;
}

.hero-search h2 {
  margin: .6rem 0 .4rem;
}

.hero-search p {
  color: #cbd5e1;
  margin-top: 0;
}

.search-badge {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: var(--radius-pill);
  background: #e9efff;
  color: #244487;
  font-size: .8rem;
  font-weight: 700;
}

.hero-search-box {
  margin-top: .8rem;
}

.hero-search-box input {
  width: 100%;
  padding: .72rem .9rem;
  border: 1px solid #64748b;
  border-radius: 11px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.hero-search-box input::placeholder {
  color: #64748b;
}

#quickResults {
  margin-top: .65rem;
}

.hero-search-box a {
  display: block;
  margin-top: .35rem;
  padding: .45rem .6rem;
  border-radius: 8px;
  background: #3157a6;
  color: #fff !important;
  text-decoration: none;
}

.hero-search-box a:hover {
  background: #5677bd;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #edf2f7;
  color: var(--text);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Search */

#search-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

#search-input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid #1e293b;
  background: #020617;
  color: #e2e8f0;
}

#search-input::placeholder {
  color: #64748b;
}

#search-form button {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: #1a202c;
  cursor: pointer;
  font-weight: 600;
}

#search-results {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Sections */

.section {
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature {
  background: var(--bg-alt);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.section-highlight {
  background: #fff7ed;
}

.section-testimonial {
  text-align: center;
  font-style: italic;
}

/* Footer */

.site-footer {
  padding: 1.5rem 2rem;
  background: #0f172a;
  color: #e2e8f0;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
  }
}


/* ===== Gemeinsame Layout-Erweiterung – August 2026 ===== */
.logo-mark {
  background: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.78rem;
  letter-spacing: -0.04em;
}

.site-header {
  gap: 1.2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .15rem;
}

.main-nav a {
  margin-left: 0;
}

.nav-search-container {
  position: relative;
  margin-right: .35rem;
}

.nav-search {
  width: 190px;
  padding: .52rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.nav-search::placeholder {
  color: #64748b;
}

.hero-search {
  background: #172033;
  color: #fff;
}

.hero-search a,
.hero-search .nav-search-results,
.hero-search #quickResults {
  color: #fff;
}

.hero-search .nav-search-results a,
.hero-search #quickResults a {
  color: #fff !important;
  background: #3157a6;
  border-radius: 8px;
  display: block;
  padding: .45rem .6rem;
  margin-top: .25rem;
}

.hero-search .nav-search-results a:hover,
.hero-search #quickResults a:hover {
  background: #5677bd;
  color: #fff !important;
}

#quickSearch {
  width: 100%;
  padding: .72rem .9rem;
  border-radius: 11px;
  border: 1px solid #64748b;
  background: #fff;
  color: #172033;
  font: inherit;
}

#quickSearch::placeholder {
  color: #64748b;
}

#quickResults {
  margin-top: .65rem;
}

.feature {
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15,23,42,.10);
}

.btn-secondary {
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .main-nav {
    width: 100%;
  }

  .nav-search-container,
  .nav-search {
    width: 100%;
  }
}
