:root {
  --dark-blue: #334578f7;
  --light-blue: #a3bfd0;
  --text: #1f2937;
  --bg: #f8fafc;
  --light: #ffffff;
  --footertext: #dce4e7;
  --grey: #758e9f;
  --grey2: #5e6d86;
}

html {
  overflow-y: scroll;
}

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

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

a {
  color: var(--text);
}

a:hover {
  color: var(--light-blue);
}

header {
  background: var(--light);
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Text – saubere und lesbare Größe */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo svg {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.logo div {
  line-height: 1.5;
}

.logo strong {
  font-size: 1.3rem; /* vernünftige Größe */
  font-weight: 700;
  color: var(--dark-blue);
}

.logo small {
  font-size: 1.02rem; /* etwas kleiner als der Name */
  font-weight: 550;
  letter-spacing: 0.3px;
  opacity: 0.9;
  color: var(--dark-blue);
}

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav a:hover {
  color: var(--grey);
}

.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://picsum.photos/id/1015/2000/1200") center/cover;
  color: white;
  text-align: center;
  padding: 120px 5% 100px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-button {
  display: inline-block;
  background: var(--dark-blue);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 2rem;
}

.cta-button:hover {
  background: var(--text);
  color: white;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 5% 80px;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--dark-blue);
  text-align: center;
}

h2 {
  font-size: 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  text-align: left;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0rem;
  color: var(--text);
  text-align: left;
}

h4 {
  font-size: 1rem;
  margin-top: 0.7rem;
  margin-bottom: 0rem;
  color: var(--text);
  text-align: left;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid h2 {
  margin-top: 0rem;
  margin-bottom: 0.3rem;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 1.2rem 2rem 2rem;
}

footer {
  background: var(--text);
  color: var(--light-blue);
  text-align: center;
  padding: 2.5rem 5%;
  font-size: 0.95rem;
}

footer a {
  color: var(--light);
  text-decoration: none;
}

footer a:hover {
  color: var(--grey);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  nav a {
    margin: 0 1rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}
