/* Font & Basis */
body {
  font-family: 'Rubik', sans-serif;
  margin: 0;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

main a {
  color: #3abff8;
  text-decoration: underline;
}


a.cta-button {
  text-decoration: none !important;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Rubik', sans-serif;
  appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

select:focus {
  outline: none;
  border-color: #3abff8;
  box-shadow: 0 0 0 3px rgba(58, 191, 248, 0.3);
}

/*Body HERO */

body.home .hero {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
    url("img/hero.webp?v=20250606") center 30% / cover no-repeat;
  color: white;
  padding: 60px 20px;
  min-height: 500px;
  max-height: 680px;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

body.home .hero-content-narrow {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

body.home .hero h1,
body.home .hero p,
body.home .hero p strong {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

body.einreichen .hero {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
    url("img/hero-einreichen.webp?v=20250606") center 30% / cover no-repeat;
}

body.checkout .hero {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
    url("img/hero-checkout.webp?v=20250606") center center / cover no-repeat;
}

body.danke .hero {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
    url("img/hero-danke.webp?v=20250606") center center / cover no-repeat;
}

body.kontakt .hero {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
    url("img/hero-kontakt.webp?v=20250606") center center / cover no-repeat;
}

body.agb .hero {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
    url("img/hero-agb.webp?v=20250606") center center / cover no-repeat;
}

body.datenschutz .hero {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
    url("img/hero-datenschutz.webp?v=20250606") center center / cover no-repeat;
}

body.impressum .hero {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
    url("img/hero-impressum.webp?v=20250606") center center / cover no-repeat;
}

/* HERO */
.hero {
  background: linear-gradient(to right, #3abff8, #60a5fa);
  color: white;
  padding: 80px 0;
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.hero .text {
  flex: 1;
  max-width: 600px;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  white-space: normal;
}

.hero p {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 500;
  max-width: 100%;
  margin-bottom: 2rem;
  letter-spacing: 0.3px;
}

.hero p strong {
  display: block;
  margin-top: 0.8rem;
  font-size: 1rem;
  color: white;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero .image {
  flex: 1;
  max-width: 500px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.hero .image img {
  width: 100%;
  max-width: 300px;
  height: auto;
}


/* Buttons */
.cta-button {
  display: inline-block;
  background: linear-gradient(to right, #007acc, #009de0);
  color: white;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 14px 34px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.cta-button:hover {
  background: linear-gradient(to right, #005fa3, #0077b8);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive Hero */
@media (max-width: 768px) {


  body.home .hero {
    min-height: auto;
    padding: 40px 20px;
    background-position: center center;
  }

  body.checkout .hero {
    background-position: center center;
    min-height: auto;
    padding: 40px 20px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }

  .hero .text {
    order: 1;
    margin-bottom: 20px;
  }

  .hero .image {
    display: none;
  }

  .hero .image img {
    max-width: 160px;
    height: auto;
  }

  .cta-button {
    order: 3;
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 10px;
  }

  .hero p strong {
    margin-top: 1rem;
    font-size: 0.95rem;
  }
}

.hero-small {
  padding: 60px 0;
}

.hero-content-narrow {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.hero-content-narrow .text {
  flex: 1;
  max-width: 700px;
  width: 100%;
}

.hero-image-small {
  flex: 0 0 auto;
  max-width: 300px;
}

.hero-image-small img {
  max-width: 260px;
  margin-top: 20px;
}


/* Navigation */
.main-nav {
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  min-height: 60px;
}

.logo img {
  height: 50px;
  max-height: 8vh;
  width: auto;
  display: block;
}

.logo img:hover {
  filter: brightness(0) saturate(100%) invert(32%) sepia(91%) saturate(2400%) hue-rotate(183deg) brightness(95%) contrast(95%);
  transition: filter 0.2s;
}

.logo a {
  font-weight: 800;
  font-size: 1.2rem;
  color: #007acc;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Desktop Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007acc;
}

/* Hamburger-Menü Toggle (hidden default) */
.nav-toggle {
  display: none;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

/* Hamburger-Icon */
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  background: #007acc;
  height: 3px;
  width: 100%;
  position: absolute;
  left: 0;
  transition: 0.3s ease;
}

.nav-toggle-label span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-label span::before {
  top: -10px;
}

.nav-toggle-label span::after {
  top: 10px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 20px 20px;
    z-index: 999;
    display: none;
    list-style: none;
    gap: 16px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
  }

  .nav-toggle:checked+.nav-toggle-label+.nav-links {
    display: flex;
  }
}


/* SECTION */
.section {
  padding: 80px 20px;
}

.section.light {
  background: #f9f9f9;
}

/* Steps */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.step {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 160px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.step img {
  height: 80px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

.step span {
  font-weight: 500;
  font-size: 1rem;
}

.step.optional {
  background: #f0f8ff;
  opacity: 0.85;
}

.optional-label {
  margin-top: 50px;
  font-size: 1.2rem;
  text-align: center;
  color: #3abff8;
  font-weight: 600;
}

/* Pakete */
.paket-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

.paket {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 140px;
}

.paket h3,
.paket h4 {
  height: 60px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.paket p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: auto;
}

.preis {
  margin-top: 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #007acc;
}

.paket.optional {
  background: #f0f8ff;
}

.paket-cta {
  text-align: center;
  margin-top: 40px;
}

.steuerhinweis {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 20px;
}

/* FAQ */
#faq details {
  background: #fff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

#faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.05rem;
  color: #007acc;
  margin-bottom: 10px;
}

#faq details[open] summary {
  margin-bottom: 5px;
}

#faq p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

/* Formulare & Karten */
form.cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 60px;
  margin-bottom: 80px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card label {
  font-weight: 600;
}

.card input[type="text"],
.card input[type="url"],
.card input[type="email"],
.card textarea {
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.card textarea {
  min-height: 150px;
  resize: vertical;
}

.card input:focus,
.card textarea:focus {
  border-color: #00bfff;
  outline: none;
}

.card input::placeholder {
  color: #999;
  font-style: italic;
}

.pflicht-hinweis {
  font-size: 0.85rem;
  color: #999;
  margin-top: -20px;
  margin-bottom: 20px;
}

.char-counter {
  font-size: 0.85rem;
  color: #777;
  text-align: right;
}

#reference-fields input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

#add-reference {
  margin-top: 10px;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 20px;
  background: linear-gradient(to right, #007acc, #009de0);
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

#add-reference:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Zwei Felder nebeneinander */
@media (min-width: 768px) {
  .card-row {
    display: flex;
    gap: 30px;
  }

  .card-row .card {
    flex: 1;
  }
}

/* Upload-Felder */
.file-upload {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.upload-button {
  background: linear-gradient(to right, #007acc, #009de0);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease;
}

.upload-button:hover {
  background: linear-gradient(to right, #005fa3, #0077b8);
}

.file-name {
  font-size: 0.9rem;
  color: #555;
}

.error-message {
  background-color: #ffe3e3;
  border-left: 5px solid #d32f2f;
  color: #a10000;
  font-size: 1rem;
  font-weight: 600;
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.error-message:empty {
  display: none;
}


input[type="file"].error {
  border: 1px solid #d32f2f;
  background-color: #fff5f5;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 1em;
  margin-top: 1em;
  border-radius: 5px;
  border: 1px solid #c3e6cb;
}

.form-error-box {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1em;
  margin-top: 1em;
  border-radius: 5px;
  border: 1px solid #f5c6cb;
}

.g-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.card .g-recaptcha {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}

/* Footer */
.footer {
  padding: 40px 20px;
  text-align: center;
  background: #f9f9f9;
  font-size: 0.9rem;
  color: #888;
}