/* Grundlegende Variablen */
:root {
  --max-w: 1000px;
  --gap: 1rem;
  --accent: #2b7cff;
  --accent-light: #4d90ff;
  --bg: #f7f8fb;
  --text: #222;
  --text-light: #666;
}

/* Reset & Basis */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER FIX 🔥 */
.site-header {
  background: #f2f2f2;
  border-bottom: 1px solid #e6e9ef;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 20px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

.logo {
  font-size: 30px;
  font-weight: bold;
  color: #2f6df6;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.8;
}

/* NAV FIX */
.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.site-header nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  font-size: 18px;
  white-space: nowrap;
}


.site-header nav a:hover,
.site-header nav a.active {
  color: var(--accent);
}

.site-header nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* 🔥 NUR INDEX größer */
.home .site-header nav a {
  font-size: clamp(28px);
  white-space: nowrap;
  
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7f8fb 100%);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-image {
  max-width: 200px;
  margin: 2rem auto;
  display: block;
}

#cta {
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

#cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(43, 124, 255, 0.2);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.card-link:hover {
  transform: translateY(-8px);
}

.card {
  background: white;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(10,10,20,0.08);
  border: 2px solid transparent;
  transition: all 0.3s;
  height: 100%;
}

.card-link:hover .card {
  box-shadow: 0 12px 30px rgba(10,10,20,0.12);
  border-color: var(--accent);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.card-link-text {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Kontakt Formular */
#contact {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(10,10,20,0.08);
  margin: 3rem 0;
}

#contact h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d6dbe6;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 124, 255, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button[type="submit"] {
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  justify-self: start;
}

button[type="submit"]:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  color: var(--text-light);
  border-top: 1px solid #e6e9ef;
  background: white;
}