:root {
    --primary: #0077cc;
    --primary-dark: #005a99;
    --accent: #00c2a8;
    --bg: #f5f7fb;
    --text: #222;
    --muted: #666;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* Navigation & Hero */

.hero {
    background: linear-gradient(135deg, #005a99, #00c2a8);
    color: var(--white);
    padding-bottom: 80px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
}

.logo {
    font-weight: 800;
    font-size: 0.2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

.hero-content {
    padding: 60px 8% 0 8%;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: #e3f2fd;
}

.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background: #e3f2fd;
}

/* Sections */

.section {
    padding: 60px 8%;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.section p {
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.section-light {
    background: var(--white);
}

/* Cards */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    text-align: left;
}

/* Kontakt */

.contact-box {
    margin: 25px auto 0 auto;
    max-width: 400px;
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.contact-box p {
    text-align: left;
    margin-bottom: 8px;
}

/* Footer */

.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Toggle Button */
.toggle-btn {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    transition: background 0.3s ease;
}

.toggle-btn:hover {
    background: var(--primary-dark);
}

/* Wrapper für klappbares Formular */
.contact-form-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0;
}

/* Wenn geöffnet */
.contact-form-wrapper.open {
    max-height: 600px;
    padding: 20px 0;
}

/* Formular selbst */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    cursor: pointer;
}

.contact-info-box {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0077cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-info-box p {
    margin: 5px 0;
    font-size: 16px;
}

.company-contact-box {
    margin: 30px auto;
    padding: 25px 30px;
    background: #f4f8fc;
    border-left: 4px solid #0077cc;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    max-width: 420px;
    box-shadow: 
    -6px 0 14px rgba(0,0,0,0.08),   /* Schatten links */
     6px 0 14px rgba(0,0,0,0.08);   /* Schatten rechts */

    text-align: center;
}

.company-contact-box.centered {
    text-align: center;
    border-left: none;
    border-top: 4px solid #0077cc;
}

.company-contact-box p {
    margin: 6px 0;
}

.company-contact-box .company-title {
    font-weight: 700;
    font-size: 18px;
    color: #0077cc;
    margin-bottom: 10px;
}

.logo img {
    height: 60px;   /* Größe anpassen */
    width: auto;
    display: block;
}

.contact-logo {
    text-align: center;
    margin-bottom: 15px;
}

.contact-logo img {
    height: 60px;        /* wirkt hochwertig */
    width: auto;
    border-radius: 12px; /* optional: weiche Ecken */
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.contact-info {
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: #1E1E1E;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.leistung {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.leistung:hover {
  transform: translateY(-5px);
}

.leistung img {
  width: 50%;
  height: 200px;
  object-fit: cover;
}

.leistung h3 {
  color: #0077cc;
  margin: 15px 0 5px;
  font-size: 18px;
}

.leistung p {
  color: #333;
  font-size: 15px;
  padding: 0 15px 20px;
  line-height: 1.6;
}


/* --- MOBILE ANPASSUNGEN --- */
@media (max-width: 768px) {
    .nav {
        flex-direction: column; /* Logo oben, Menü darunter */
        padding: 15px 5%;
    }

    .nav-links {
        margin-top: 15px;
        gap: 10px;
        flex-wrap: wrap; /* Erlaubt Zeilenumbruch, falls es zu viele Links sind */
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        padding: 40px 5% 0 5%;
    }

    .hero-content h1 {
        font-size: 1.8rem; /* Kleinere Schrift für Handys */
    }
}