:root {
  --color-bg:        #ffffff;
  --color-text:      #0d47a1;
  --color-accent:    #d32f2f; 
  --color-card:      #e3f2fd; 
  --color-card-hover: #1976d2; 
  --radius:          16px;
  --spacing-bottom:  15rem; 
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  min-height: 100vh;
  padding: 50px 1.5rem 5rem;
  text-align: center;
  background-image: url('hintergrund.jpeg');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
}

.page-wrapper {
  max-width: 1000px;
  margin: 25px auto 0;
  background: rgba(255, 255, 255, 0.98); 
  padding: 3rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-container img {
  display: block;
  max-width: 140px;
  height: auto;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.tagline {
  font-size: 1.3rem;
  color: #556677;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
}

/* KACHELN STYLING */
.workshops-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 2rem;
  max-width: 800px; 
  margin: 0 auto;
}

.workshop-tile {
  background: radial-gradient(circle, #1976d2 0%, #0d47a1 100%);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.25);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              background 0.3s ease, 
              box-shadow 0.3s ease;
  text-decoration: none;
  color: #ffffff !important; 
  min-height: 180px;
  width: calc(50% - 1rem); 
  min-width: 260px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) {
  .workshop-tile:hover {
    transform: translateY(-10px) scale(1.03);
    background: radial-gradient(circle, #2196f3 0%, #0a3578 100%);
    box-shadow: 0 16px 32px rgba(211, 47, 47, 0.45);
    color: #ffffff !important;
  }
}

.workshop-tile:active {
  transform: scale(0.98); 
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.workshop-title {
  font-size: clamp(1.4rem, 3.5vw, 1.7rem);
  font-weight: 700;
  padding: 2rem 1.5rem;
  line-height: 1.3;
}

/* GEBOOSTETE KACHEL (REISEN) */
.tile-boosted {
  border: 2px solid var(--color-accent) !important;
  position: relative;
  overflow: hidden;
  animation: pulse-border 2s infinite ease-in-out;
}

.tile-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--color-accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.4);
}

@keyframes pulse-border {
  0% { box-shadow: 0 8px 24px rgba(211, 47, 47, 0.25); }
  50% { box-shadow: 0 8px 30px rgba(211, 47, 47, 0.6); transform: scale(1.01); }
  100% { box-shadow: 0 8px 24px rgba(211, 47, 47, 0.25); }
}

/* ALLGEMEINE UNTERSEITEN REGELN */
.main-content-box {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 15px;
  text-align: left;
}

.main-content-box h2 {
  color: #0d47a1; 
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.3rem;
}

.intro-text {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.85;
}

.target-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.2rem;
  max-width: 1400px;
  margin: 0 auto 5rem;
}

.group-tile {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.08);
  padding: 3rem 2rem;
  text-align: left;
}

.group-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0d47a1; 
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
}

.group-desc {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--color-text);
}

.flexibility-section {
  max-width: 1100px;
  margin: 0 auto 5rem;
}

.flexibility-section h2 {
  font-size: 2.2rem;
  color: #0d47a1;
  margin-bottom: 2.5rem;
}

.flex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.flex-card {
  background: #f8fbfe; 
  border: 1px solid rgba(25, 118, 210, 0.15);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: left;
}

.flex-card h3 {
  color: var(--color-accent); 
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.philosophy-section {
  max-width: 800px;
  margin: 0 auto 5rem;
  padding: 3rem 2rem;
  background: linear-gradient(145deg, #e3f2fd, #ffffff); 
  border-radius: var(--radius);
  border: 1px solid rgba(25, 118, 210, 0.2);
}

.philosophy-section h2 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.philosophy-section p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text);
}

.formats-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.format-tag {
  background: var(--color-card);
  border: 1px solid var(--color-card-hover);
  color: #0d47a1;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
}

.cta-box {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

/* ZURÜCK BUTTONS */
.cta-highlight {
  display: inline-block;
  margin-top: 1.5rem;
  color: #ffffff !important;
  background: var(--color-accent);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-highlight:hover {
  transform: scale(1.05);
  background-color: #b71c1c;
}

/* ÜBER MICH DETAILS */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 2rem auto 4rem;
  padding-left: 2rem;
  border-left: 3px solid var(--color-card-hover);
  text-align: left;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px var(--color-card-hover);
}

.timeline-date {
  font-weight: 800;
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: #0d47a1;
  margin-bottom: 0.5rem;
}

.check-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem !important;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 900;
  font-size: 1.2rem;
}

.quote-box {
  background: #f0f7ff;
  border-left: 5px solid #1976d2;
  padding: 1.5rem 2rem;
  margin: 3rem auto;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.2rem;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.05);
}

/* KONTAKT BEREICH STARTSEITE */
.contact-section {
  margin: 5rem auto 2rem;
  padding: 2.5rem 2rem;
  background: #f4f9ff; 
  border-radius: var(--radius);
  border: 1px solid rgba(25, 118, 210, 0.15);
  max-width: 800px;
}

.contact-section h2 {
  color: #0d47a1; 
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-item:hover {
  color: var(--color-accent) !important; 
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.4rem;
}

/* FOOTER STYLING */
footer {
  margin-top: 6rem;
  padding-top: 2rem;
  color: #667788;
  font-size: 0.95rem;
  border-top: 1px solid #e0eaf5;
}

footer a {
  color: #1976d2;
  text-decoration: none;
  margin: 0 1rem;
}

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

/* RESPONSIVE DESIGN FOR SMARTPHONES */
@media (max-width: 768px) {
  body {
    padding: 40px 0.5rem 3rem; 
    background-size: 100% 40px, 8% 100%, 8% 100%;
  }
  .page-wrapper {
    padding: 2rem 1rem;
    margin-top: 10px;
  }
  .workshop-tile {
    width: 100%; 
  }
  h1 { font-size: 2.2rem; }
  .tagline { font-size: 1.1rem; }
  }
