@font-face {
  font-family: 'HPSimplifiedHansin';
  src: url('/fonts/HPSimplifiedHansin.ttf') format('truetype');
  font-weight: normal;
  font-style: normal; /* ← statt italic */
}

.firmenname {
  font-family: 'HPSimplifiedHansin', sans-serif;
  font-style: italic;
  font-weight: normal;
  font-size: 3rem;
  color: #0385d6;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000000; /* scharfer Schatten */
}

.header-firmenname {
  font-family: 'HPSimplifiedHansin', sans-serif;
  font-style: italic;
  font-weight: normal;
  font-size: 2rem;
  color: #0385d6;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  margin-left: 10px;
  white-space: nowrap;
  text-decoration: none;     /* Verhindert Unterstreichung */
  cursor: pointer;           /* Cursor-Hand für Klickgefühl */
  display: inline-block;
}

@media (max-width: 768px) {
  .header-firmenname {
    font-size: 1.4rem;
    text-align: left;
  }
}

.firmenname-inline {
  font-family: 'HPSimplifiedHansin', sans-serif;
  font-style: italic;
  font-weight: bold;
  color: #1380c1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  font-size: 1rem;
}

html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    background: linear-gradient(to bottom right, #f0f2f5, #ffffff);
    color: #212529;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Zentrierung der gesamten Seite */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header fixiert */
header {
    background-color: #1380c1;
    color: white;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 80px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
  background-color: white;
  color: #1380c1;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Hamburger-Menü */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}
/* Hero Section*/
.hero {
    height: 60vh;
    background-image: 
        url('img/blitz.png'),             /* Blitz im Vordergrund */
        url('img/emk_back.svg');        /* Dein Dreiecks-/Polygon-Hintergrund */
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: contain, cover;      /* Blitz sichtbar, Hintergrund füllt alles */
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 70px;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Abdunklung */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    background-size: 50vw, cover; /* Blitz auf max. 50% der Bildschirmbreite */
    background-position: top center, center center;
    padding-top: 60px;
  }
}

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero-button {
    padding: 10px 20px;
  }
}


.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
}

.hero-button:hover {
    background: white;
    color: #1380c1;
}

/* Sektionen */
section {
    padding: 80px 20px;
    background-color: #ffffff;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #ddd;
}

.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 0;
}

.services-list li {
    background: #1380c1;
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.services-list li:hover {
    background: #0e5c8e;
    transform: translateY(-5px);
}

/* Kontaktformular */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    height: auto;
    font-size: 1rem;
}

.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    height: 200px;
    resize: vertical;
    font-size: 1rem;
}

.contact-form button {
    background-color: #1380c1;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #0e5c8e;
}

/* Lade-Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1380c1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    background-color: #2a2d30;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    width: 100%;
}

footer a {
  color: #ffffff; /* oder z. B. #66ccff für hellblau */
  text-decoration: none;
  font-weight: bold;
}

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

/* Sektionen mit Schatten */
section.appear {
    transform: scale(1.05); /* Sanftes Vergrößern */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Stärkerer Schatten */
}

/* Erfolgsmeldung nach dem Absenden */
.success-message {
    background-color: #28a745;
    color: white;
    padding: 12px;
    margin-top: 15px;
    border-radius: 5px;
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}

/* Animation beim Laden */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* PopUp für "Unsere Leistungen" und "Kontakt" */
.services-list li,
.contact-form button {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.services-list li.appear, .contact-form button.appear {
    opacity: 1;
}


/* Dropdown-Menü für Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: #1380c1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: bold;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Responsive Navigation */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        background-color: #1380c1;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        display: none;
        padding: 10px 20px;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
            position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1100;
    color: white;
    }

    .dropdown-content {
        position: static;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
    }

    .dropdown-content a {
        padding-left: 20px;
        background-color: transparent;
        color: white;
    }

    .dropdown-content a:hover {
        background-color: rgba(255,255,255,0.1);
    }
    
      .header-firmenname {
    font-size: 1.2rem;
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.3;
    text-align: left;
    padding-right: 50px; /* Platz fürs Burger-Menü */
    max-width: 70vw;
  }

  .logo {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* Referenzbereich */
.reference-entry {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reference-images {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reference-images img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
}

.reference-description {
    flex: 2;
    min-width: 250px;
}

.reference-description h2 {
    margin-top: 0;
    color: #1380c1;
}

/* Modal für Bildanzeige */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: 5% auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
}

#form-status {
    display: none; /* standardmäßig ausgeblendet */
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    background-color: #e6f9ee;
    color: #207844;
    border: 1px solid #b4e2c5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
#form-status.error {
    background-color: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.leistung {
    background-color: #ffffff;
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.icon-header svg {
    flex-shrink: 0;
}

.icon-header h2 {
    font-size: 1.6rem;
    color: #1380c1;
    margin: 0;
}

.leistungen-accordion h1 {
    text-align: center;
    margin-bottom: 40px;
}

.accordion-item {
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

.accordion-header {
    background-color: #1380c1;
    color: white;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #f9f9f9;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

.accordion-inner img {
    max-width: 400px;
    width: 100%;
    border-radius: 8px;
    flex: 1 1 40%;
}

.accordion-inner p {
    flex: 1 1 50%;
    font-size: 1rem;
    color: #333;
    margin: 0;
}

@media (max-width: 768px) {
    .accordion-inner {
        flex-direction: column;
    }
}

.modern-checklist {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.modern-checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #333;
}

.modern-checklist li span {
    position: absolute;
    left: 0;
    color: #1380c1;
    font-size: 1.2rem;
    line-height: 1;
}


.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.contact-form {
    flex: 1 1 60%;
}

.contact-info {
    flex: 1 1 35%;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1 1 48%;
    min-width: 150px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: auto !important; /* <- verhindert Überschreibung durch globales width: 100% */
}

#contact {
  scroll-margin-top: 100px; /* oder passend zur Höhe des Headers */
}

/* Größeres Textfeld */
.contact-form textarea {
    height: 200px;
    resize: vertical;
}

/* Optional für Mobile */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
}

.contact-info.styled {
    display: flex;
    flex-direction: column;
    gap: 25px;
    font-size: 1rem;
    color: #212529;
    background: transparent;  /* ← kein Hintergrund */
    padding: 0;                /* ← kein Innenabstand */
    border-radius: 0;
    box-shadow: none;          /* ← kein Schatten */
}

.contact-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-block .icon {
    flex-shrink: 0;
    margin-top: 4px;
}

section:nth-of-type(even) {
    background-color: #2a2d30;
}

.modern-impressum {
    padding-top: 60px;
}

.impressum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.impressum-block h2 {
    font-size: 1.2rem;
    color: #1380c1;
    margin-bottom: 10px;
}

.impressum-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.impressum-block a {
    color: #1380c1;
    text-decoration: none;
}

.impressum-block a:hover {
    text-decoration: underline;
}

.datenschutz-modern {
    padding-top: 60px;
}

.datenschutz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.datenschutz-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #333;
}

.datenschutz-card h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #1380c1;
}

.datenschutz-card h3 {
    font-size: 1rem;
    margin-top: 20px;
    color: #0e5c8e;
}

.datenschutz-card p, 
.datenschutz-card ul {
    font-size: 0.95rem;
    line-height: 1.6;
}

.datenschutz-card a {
    color: #1380c1;
    text-decoration: none;
}

.datenschutz-card a:hover {
    text-decoration: underline;
}

.datenschutz-card ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style: disc;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 2px solid #0385d6;
  padding: 20px;
  font-size: 0.95rem;
  color: #212529;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-banner p {
  margin-bottom: 10px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 10px 20px;
  background-color: #0385d6;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.cookie-buttons button:hover {
  background-color: #026bb1;
}

.leistungen-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.leistung-kachel {
  background-color: #1380c1;
  color: white;
  padding: 30px 25px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 1 calc(33.333% - 30px);
  box-sizing: border-box;
}

/* Medium: 2 Spalten ab 900px */
@media (max-width: 900px) {
  .leistung-kachel {
    flex: 0 1 calc(50% - 30px);
  }
}

/* Klein: 1 Spalte ab 600px */
@media (max-width: 600px) {
  .leistung-kachel {
    flex: 0 1 100%;
  }
}

.leistung-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.leistung-kachel h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.leistung-kachel p {
  font-size: 1rem;
  margin-bottom: 16px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.checklist svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero {
    padding: 100px 15px 60px;
    min-height: auto;
    background-size: 60vw, cover;
    background-position: top center, center center;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .firmenname {
    font-size: 2rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}