:root {
  --blue: #0b4ea8;
  --blue-light: #1d7ff0;
  --red: #c72b2b;
  --red-light: #ff4d4d;
  --black: #111;
  --muted: #f9f9f9;
  --maxwidth: 1100px;
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* --- Grundlayout --- */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* --- Header --- */
header {
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  color: #fff;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.container {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.title {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.subtitle {
  font-size: 14px;
  opacity: 0.95;
  margin-top: 2px;
  font-weight: 500;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, #fff 0%, #f2f7ff 100%);
  padding: 60px 16px;
  text-align: center;
  animation: fadeIn 1.2s ease both;
}

.hero h1 {
  margin: 8px 0;
  font-size: 40px;
  background: linear-gradient(90deg, var(--blue-light), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin: 12px auto 0;
  max-width: 760px;
  color: #1a2a40;
  font-size: 18px;
  opacity: 0.95;
}

/* --- Services --- */
.services {
  padding: 60px 0;
  background: var(--muted);
  text-align: center;
}

.services h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
}

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

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeUp 1s ease both;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

.card h3 {
  margin: 10px 0 6px;
  color: var(--blue);
}

.card p {
  color: #333;
  font-size: 15px;
  line-height: 1.5;
}

/* --- DEKRA Bereich --- */
.dekra {
  margin: 40px auto 0;
  padding: 20px;
  background: linear-gradient(90deg, rgba(11, 78, 168, 0.1), rgba(199, 43, 43, 0.08));
  border-left: 6px solid var(--red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  animation: fadeUp 1.4s ease both;
}

/* --- Kontaktbereich --- */
.contact {
  padding: 60px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  background: linear-gradient(180deg, #fff, #f7f9fc);
}

.contact h2 {
  color: var(--blue);
  font-size: 28px;
}

.contact .left {
  flex: 1 1 320px;
}

.contact .right {
  flex: 1 1 320px;
}

.contact form {
  display: flex;
  flex-direction: column;
}

.contact input,
.contact textarea {
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  transition: border 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--blue-light);
  outline: none;
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(199, 43, 43, 0.4);
}

/* --- Impressum --- */
section.container {
  padding: 60px 16px;
}

section.container h2 {
  font-size: 28px;
  color: var(--blue);
  margin-bottom: 16px;
}

section.container h3 {
  color: var(--red);
  margin-top: 24px;
}

/* --- Footer --- */
footer {
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.4px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* --- Animationen --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }

  .services h2 {
    font-size: 26px;
  }

  .contact {
    flex-direction: column;
  }

  .card img {
    height: 140px;
  }
}
