body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #2c3e50;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 60%;
  border-radius: 0 0 20px 20px; /* abgerundete Ecken unten links & rechts */#
   transition: box-shadow 0.3s ease, background-color 0.3s ease;
}


.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover {
    background-color: #34495e;
    color: #ffffff;
}

.nav-menu a:active,
.nav-menu a:focus {
    background-color: #1abc9c;
    color: #ffffff;
}
.burger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #ecf0f1;
  cursor: pointer;
  padding: 10px;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #2c3e50;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 999;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu li {
    margin: 10px 0;
    text-align: center;
  }
}


.container {
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    box-sizing: border-box;
    /* background: #ffffff; */
    border-radius: 8px;
    align-items: center;
    overflow: hidden;
}
#datenschtz {
    flex: 1 1 300px;
    margin-right: 20px;
}
#datenschtz h2 { margin-top: 0; }
#datenschtz p { margin-bottom: 0; }
#datenschtz a {
    color: #007BFF;
    text-decoration: none;
}
#datenschtz a:hover { text-decoration: underline; }
#social-media {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1 1 300px;
}
#social-media a {
    text-decoration: none;
    color: #141414;
    font-size: 24px;
    transition: color 0.3s;
}
#social-media a:hover { color: #007BFF; }
footer {
    text-align: center;
    padding: 20px 0;
    background: #f4f4f4;
    color: #141414;
    margin-top: 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}
footer p { margin: 0; }
footer a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}
footer a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    nav ul li {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
    .container {
        flex-direction: column;
        align-items: center;
    }
   
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
    align-items: center;
}

.grid-item {
    text-align: center;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

.grid-item img {
    display: block;
    margin: 0 auto 10px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.card {
    padding: 20px;
    margin: 20px auto;
    max-width: 1000px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.footer {
  background-color: #2c2c2c;
  color: #f0f0f0;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
}

.footer a {
  color: #f0f0f0;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.social-icons {
  margin: 10px 0;
}

.social-icons img {
  width: 28px;
  height: 28px;
  margin: 0 8px;
  vertical-align: middle;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}



#loading-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(44, 62, 80, 0.85);
  color: #ecf0f1;
  font-size: 1.2em;
  text-align: center;
  padding-top: 20%;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.spinner {
  margin: 0 auto 1em;
  width: 40px;
  height: 40px;
  border: 4px solid #ecf0f1;
  border-top: 4px solid #1abc9c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Erfolgsmeldung */
#success-message {
  display: none;
  margin-top: 1em;
  padding: 1em;
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

/* Formular-Container */
form {
  max-width: 600px;
  margin: 2em auto;
  padding: 25px;
  background-color: #ecf0f1;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: Arial, sans-serif;
}

/* Labels */
form label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

/* Eingabefelder */
form input[type="text"],
form input[type="email"],
form textarea {
  padding: 12px;
  border: 1px solid #bdc3c7;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

form input:focus,
form textarea:focus {
  border-color: #1abc9c;
  box-shadow: 0 0 5px rgba(26, 188, 156, 0.4);
  outline: none;
}

/* Textarea */
form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit-Button */
form input[type="submit"] {
  background-color: #1abc9c;
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

form input[type="submit"]:hover {
  background-color: #16a085;
  transform: scale(1.02);
}


.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-links a img:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#popup-success {
  display: none;
  position: fixed;
    
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2ecc71;
  color: white;
  padding: 1em 2em;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-weight: 600;
  z-index: 10000;
  animation: fadeInOut 4s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  10% { opacity: 1; transform: translateX(-50%) translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}
