/* Fussenecker Transport - Haupt-Stylesheet */
/* Optimiert für alle Browser und Geräte */

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

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #11111f;
  color: #387ed4;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Standard-Seiten (nicht Startseite) */
body:not(.home-page) {
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: #11111f;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(56, 126, 212, 0.1);
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.logo {
  max-width: 50px;
  height: auto;
  display: block;
}

/* Navigation */
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10px 20px;
}

/* Fallback für ältere Browser ohne gap-Unterstützung */
@supports not (gap: 10px) {
  nav ul li {
    margin: 5px 10px;
  }
}

nav ul li a {
  text-decoration: none;
  color: #387ed4;
  padding: 5px 10px;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border-radius: 4px;
  display: block;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #ffffff;
  background-color: rgba(56, 126, 212, 0.2);
  outline: none;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Content */
.intro {
  padding: 20px;
  text-align: center;
}

.intro h2 {
  margin-bottom: 20px;
  font-size: 2em;
}

.intro h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.intro p {
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro strong {
  color: #ffffff;
  font-weight: 700;
}

/* Thumbnails/Bilder */
.thumbnails {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Fallback für ältere Browser ohne gap */
@supports not (gap: 20px) {
  .thumbnails img {
    margin: 10px;
  }
}

.thumbnails img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  display: block;
}

.thumbnails img:hover {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
}

/* Formulare */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.form-container h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5em;
  color: #ffffff;
}

.form-container form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 15px;
}

/* Fallback für ältere Browser ohne gap */
@supports not (gap: 15px) {
  .form-container input,
  .form-container textarea,
  .form-container button {
    margin-bottom: 15px;
  }
}

.form-container label {
  text-align: left;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 12px;
  background-color: #1a1a2e;
  border: 1px solid #387ed4;
  color: #387ed4;
  border-radius: 4px;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
}

/* Autofill-Styles für Chrome/Safari/Edge */
.form-container input:-webkit-autofill,
.form-container input:-webkit-autofill:hover,
.form-container input:-webkit-autofill:focus,
.form-container textarea:-webkit-autofill,
.form-container textarea:-webkit-autofill:hover,
.form-container textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #387ed4;
  -webkit-box-shadow: 0 0 0px 1000px #1a1a2e inset;
  -webkit-transition: background-color 5000s ease-in-out 0s;
  transition: background-color 5000s ease-in-out 0s;
}

.form-container input:focus,
.form-container textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 5px rgba(56, 126, 212, 0.5);
}

/* Placeholder-Styles für alle Browser */
.form-container input::-webkit-input-placeholder,
.form-container textarea::-webkit-input-placeholder {
  color: rgba(56, 126, 212, 0.6);
}

.form-container input::-moz-placeholder,
.form-container textarea::-moz-placeholder {
  color: rgba(56, 126, 212, 0.6);
  opacity: 1;
}

.form-container input:-ms-input-placeholder,
.form-container textarea:-ms-input-placeholder {
  color: rgba(56, 126, 212, 0.6);
}

.form-container input::-ms-input-placeholder,
.form-container textarea::-ms-input-placeholder {
  color: rgba(56, 126, 212, 0.6);
}

.form-container input::placeholder,
.form-container textarea::placeholder {
  color: rgba(56, 126, 212, 0.6);
}

.form-container button,
.form-container input[type="submit"] {
  background-color: #387ed4;
  color: #11111f;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
}

.form-container button:hover,
.form-container input[type="submit"]:hover,
.form-container button:focus,
.form-container input[type="submit"]:focus {
  background-color: #ffffff;
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(56, 126, 212, 0.3);
  outline: none;
}

.form-container button:active,
.form-container input[type="submit"]:active {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

/* Cookie Consent Banner */
#cookieConsentContainer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 20px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

#cookieConsentContainer a {
  color: #62D2FF;
  text-decoration: underline;
}

#cookieConsentContainer button {
  margin-left: 20px;
  padding: 8px 20px;
  background-color: #387ed4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#cookieConsentContainer button:hover {
  background-color: #ffffff;
  color: #11111f;
}

/* Success/Error Messages */
.message {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.message.success {
  background-color: rgba(76, 175, 80, 0.2);
  border: 2px solid #4CAF50;
  color: #4CAF50;
}

.message.error {
  background-color: rgba(244, 67, 54, 0.2);
  border: 2px solid #f44336;
  color: #f44336;
}

/* Team Seite Styles */
.team-section {
  margin: 50px 0;
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.team-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 30px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 auto;
}

/* Fallback für Browser ohne gap */
@supports not (gap: 30px) {
  .team-grid {
    margin: -15px;
  }
  .team-card {
    margin: 15px;
  }
}

.team-card {
  background-color: #1a1a2e;
  border: 1px solid #387ed4;
  border-radius: 12px;
  padding: 30px;
  max-width: 350px;
  width: 100%;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-align: center;
}

.team-card:hover {
  -webkit-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(56, 126, 212, 0.3);
  border-color: #ffffff;
}

.team-card-partner {
  border-color: #2a5a8a;
}

.team-card-partner:hover {
  border-color: #5a9fd4;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 2.5em;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(135deg, #387ed4, #5a9fd4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.team-avatar span {
  display: block;
}

/* Team Avatar mit Bild */
.team-avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 3px solid #387ed4;
}

.team-avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-info h4 {
  font-size: 1.5em;
  margin-bottom: 5px;
  color: #ffffff;
}

.team-role {
  color: #5a9fd4;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 1em;
}

.team-description {
  color: #387ed4;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: left;
}

.team-contact {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #387ed4;
}

.team-contact a {
  color: #5a9fd4;
  text-decoration: none;
  -webkit-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.team-contact a:hover {
  color: #ffffff;
}

/* Call-to-Action Section */
.team-cta {
  background: linear-gradient(135deg, #1a1a2e, #2a2a4e);
  border: 2px solid #387ed4;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 60px auto 40px;
  max-width: 600px;
}

.team-cta h3 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #ffffff;
}

.team-cta p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #387ed4;
}

.cta-button {
  display: inline-block;
  background-color: #387ed4;
  color: #11111f;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #ffffff;
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(56, 126, 212, 0.4);
}

/* Responsive für Team-Seite */
@media (max-width: 768px) {
  .team-grid {
    gap: 20px;
  }
  
  .team-card {
    max-width: 100%;
  }
  
  .section-title {
    font-size: 1.5em;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .team-card {
    padding: 20px;
  }
  
  .team-cta {
    padding: 30px 20px;
  }
  
  .team-cta h3 {
    font-size: 1.5em;
  }
}

/* Traffic Updates */
.traffic-updates {
  background-color: #1a1a2e;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid #387ed4;
}

.traffic-updates h2 {
  margin-top: 0;
}

.traffic-updates p {
  line-height: 1.6;
  margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-top: 120px;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  nav {
    width: 100%;
    margin-top: 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 5px;
  }

  nav ul li a {
    display: block;
    padding: 10px;
  }

  .intro h2 {
    font-size: 1.5em;
  }

  .thumbnails img {
    max-width: 150px;
  }

  #cookieConsentContainer {
    font-size: 14px;
  }

  #cookieConsentContainer button {
    margin: 10px 0 0 0;
    display: block;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 10px;
  }

  .form-container {
    padding: 10px;
  }
}
