/* Basis-Stile */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  color: #222;
  background: #fff;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  position: absolute;
  width: 100%;
  top: 0;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.logo a {
    text-decoration: none;
    color:#fff
}
.logo a:hover{
    text-decoration:underline;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

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

/* Hero-Bereich */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url("ressources/bus.jpeg") center/cover;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-content {
  margin-bottom: 5vh;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: #4caf50;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #3a9440;
}

/* Sektionen */
.section {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: auto;
}

.section-alt {
  background: #f5f5f5;
}

.section p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.goal-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Kontakt */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-outline {
  border: 2px solid #4caf50;
  color: #4caf50;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #4caf50;
  color: white;
}

/* Footer */
footer {
  background: #222;
  color: #ddd;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.9rem;
}

footer a{
    color: #ddd;
    text-decoration: none;
}
footer a:hover{
    text-decoration: underline;
}


.testimonials {
  text-align: center;
  max-width: 700px;
  margin: 4rem auto;
}

.testimonials h2 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.testimonial-stack {
  position: relative;
  height: 260px;
}

.testimonial-stack input {
  display: none;
}

.cards {
  position: relative;
  height: 100%;
}

.cards .card {
  position: absolute;
  inset: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cards .card blockquote {
  font-style: italic;
  line-height: 1.6;
}

.cards .card span {
  margin-top: 1rem;
  font-weight: 600;
  color: #4caf50;
}

/* active card */
#card-1:checked ~ .cards .card:nth-child(1),
#card-2:checked ~ .cards .card:nth-child(2),
#card-3:checked ~ .cards .card:nth-child(3) {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 5;
}

/* controls */
.controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.controls label {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

#card-1:checked ~ .controls label[for="card-1"],
#card-2:checked ~ .controls label[for="card-2"],
#card-3:checked ~ .controls label[for="card-3"] {
  background: #4caf50;
}

/* Testimonial form styles */
.testimonials-form {
  max-width: 840px; /* align with section max widths */
  margin: 2rem auto 3rem;
  text-align: center;
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.testimonials-form .form-row {
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.testimonials-form label {
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #222;
  text-align: left;
}
.testimonials-form input[type="text"],
.testimonials-form textarea {
  padding: 0.65rem 0.8rem;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.testimonials-form input[type="text"]:focus,
.testimonials-form textarea:focus {
  border-color: #4caf50;
  box-shadow: 0 4px 10px rgba(74,193,80,0.06);
}
.testimonials-form textarea { resize: vertical; min-height: 90px; }
.testimonials-form .form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.testimonials-form .btn {
  padding: 0.7rem 1.4rem;
  border-radius: 28px;
}
.testimonials-form #formFeedback {
  color: #444;
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  /* make name + occupation appear inline on wider screens */
  .testimonials-form .form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .testimonials-form .form-row-inline .form-row { margin-bottom: 0; }
}

@media (max-width: 520px) {
  .testimonials-form { padding: 1rem; }
}

/* Testimonials Grid Section */
#testimonials {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
  text-align: left;
}

#testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.testimonials-grid .quote {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.testimonials-grid .quote blockquote {
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.testimonials-grid .quote .author {
  font-weight: 600;
  color: #4caf50;
  font-size: 0.95rem;
}
