/* ==========================================================================
   Cirsten Breuer — Diplom Sozialpädagogin / Systemische Supervisorin (SG)
   ========================================================================== */

:root {
  --color-green: #9c9c28;
  --color-green-dark: #83831f;
  --color-green-light: #eef0d8;
  --color-magenta: #a8174c;
  --color-magenta-light: #d94f82;
  --color-text: #262626; /* 85% Schwarz */
  --color-text-soft: #55564a;
  --color-white: #ffffff;
  --font-main: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --max-width: 1120px;
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ---------- Scroll-reveal utility ---------- */

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

.stagger.in-view > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.65;
  background: var(--color-white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-magenta);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.6em;
}

h2.section-title {
  font-size: 1.9rem;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 1.2em;
}

h2.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 5px;
  background: var(--color-magenta);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease) 0.15s;
}

[data-animate].in-view h2.section-title::after,
h2.section-title.in-view::after {
  transform: scaleX(1);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-magenta);
}

section {
  padding: 84px 0;
}

.bg-decor {
  background-image: url('../img/headerstreifen.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.strip-decor {
  height: 16px;
  background-image: url('../img/headerstreifen.jpg');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 160%;
  position: relative;
  z-index: 3;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: height 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.3s var(--ease);
}

.site-header.scrolled .container {
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 48px;
  width: auto;
  transition: height 0.3s var(--ease), transform 0.4s var(--ease);
}

.site-header.scrolled .brand img {
  height: 38px;
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.05);
}

.brand-text {
  line-height: 1.2;
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--color-text);
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--color-text-soft);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-magenta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-magenta);
  text-decoration: none;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-green-dark);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 90px 0;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #7a7a1c, #9c9c28, #b3672f, #8a1440, #9c9c28);
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,30,10,0.35), rgba(30,30,10,0.6));
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  z-index: 0;
  animation: floatBlob 14s ease-in-out infinite;
}

.hero-blob.b1 {
  width: 340px;
  height: 340px;
  background: var(--color-magenta);
  top: -120px;
  right: -80px;
  animation-duration: 16s;
}

.hero-blob.b2 {
  width: 220px;
  height: 220px;
  background: var(--color-white);
  bottom: -60px;
  left: -60px;
  opacity: 0.12;
  animation-duration: 12s;
  animation-delay: -4s;
}

.hero-blob.b3 {
  width: 150px;
  height: 150px;
  background: var(--color-white);
  top: 30%;
  right: 12%;
  opacity: 0.15;
  animation-duration: 10s;
  animation-delay: -2s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-18px, 22px) scale(1.06); }
  66% { transform: translate(14px, -16px) scale(0.96); }
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--color-white);
  opacity: 0.9;
}

.hero h1 {
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: 0.3em;
  letter-spacing: -0.01em;
}

.hero p.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2em;
  opacity: 0.95;
  line-height: 1.6;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--color-white);
  font-size: 1.1rem;
  z-index: 1;
  animation: bounceHint 2.2s ease-in-out infinite;
  transition: background 0.25s var(--ease);
}

.scroll-hint:hover {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

@keyframes bounceHint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-magenta);
  color: var(--color-white);
  animation: pulseRing 2.6s ease-out infinite;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 130%;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(168,23,76,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(168,23,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(168,23,76,0); }
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(168,23,76,0.4);
  text-decoration: none;
  animation-play-state: paused;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  margin-left: 12px;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
  transform: translateY(-3px);
}

/* ---------- Über mich ---------- */

.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--color-green-light), #dcdfb8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green-dark);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--color-green);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.about-photo:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 16px 30px rgba(0,0,0,0.12);
}

.qualifications li {
  transition: transform 0.25s var(--ease);
}

.qualifications li:hover {
  transform: translateX(6px);
  color: var(--color-magenta);
}

.qualifications {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  display: grid;
  gap: 10px;
}

.qualifications li {
  position: relative;
  padding-left: 26px;
}

.qualifications li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-magenta);
  font-weight: 700;
}

.attitude-box {
  background: var(--color-green-light);
  border-left: 4px solid var(--color-green);
  padding: 18px 22px;
  border-radius: var(--radius);
  font-style: italic;
  color: var(--color-text-soft);
  margin-top: 1.4em;
}

/* ---------- Fachliches / Leistungen ---------- */

.services {
  background: #faf9f2;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 2em;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  border-top: 4px solid var(--color-green);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.12);
  border-top-color: var(--color-magenta);
}

.service-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.service-card:hover .icon {
  transform: rotate(-10deg) scale(1.12);
  background: var(--color-magenta);
  color: var(--color-white);
}

.service-card h3 {
  font-size: 1.1rem;
}

.service-card p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.timeline {
  margin-top: 60px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding-bottom: 26px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 6px;
  bottom: -6px;
  width: 2px;
  background: var(--color-green-light);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-year {
  font-weight: 700;
  color: var(--color-magenta);
}

.timeline-item .dot {
  position: absolute;
  left: 95px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-magenta);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}

.timeline-item.in-view .dot {
  transform: scale(1);
}

.timeline-item:last-child .dot {
  animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(168,23,76,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(168,23,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(168,23,76,0); }
}

/* ---------- Kolping Kooperation ---------- */

.partner {
  background: var(--color-green);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.partner::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 40px);
  animation: driftStripes 30s linear infinite;
  pointer-events: none;
}

@keyframes driftStripes {
  0% { transform: translate(0, 0); }
  100% { transform: translate(56px, 56px); }
}

.partner .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.partner h2.section-title {
  color: var(--color-white);
}

.partner h2.section-title::after {
  background: var(--color-white);
}

.partner-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.partner-badge:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.18);
}

.partner-badge strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* ---------- Referenzen / Testimonials ---------- */

.testimonials {
  background: var(--color-white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 2em;
}

.testimonial-card {
  background: #faf9f2;
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.08);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 16px;
  font-size: 3.2rem;
  color: var(--color-green);
  opacity: 0.25;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card p {
  color: var(--color-text-soft);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-card footer {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ---------- Kontakt ---------- */

.contact {
  background: #faf9f2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact-info .item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

form {
  display: grid;
  gap: 16px;
  background: var(--color-white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8c8;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

form input,
form textarea {
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(156,156,40,0.18);
}

.contact-info .icon {
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.contact-info .item:hover .icon {
  transform: scale(1.12) rotate(-6deg);
  background: var(--color-magenta);
  color: var(--color-white);
}

form button {
  border: none;
  cursor: pointer;
  justify-self: start;
}

form .hint {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #2c2c1f;
  color: #d8d8c8;
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: #d8d8c8;
}

.footer-grid a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* ---------- Impressum page ---------- */

.legal {
  padding: 60px 0 90px;
}

.legal h2 {
  margin-top: 1.4em;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid,
  .partner .container,
  .contact-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .service-cards {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 8px 12px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 90px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .scroll-hint {
    display: none;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TEMP — nur für die Variantenauswahl, vor Launch komplett entfernen
   ========================================================================== */

.variant-back {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 999;
  background: rgba(20,20,10,0.6);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--font-main);
  text-decoration: none;
  backdrop-filter: blur(4px);
  opacity: 0.5;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.variant-back:hover {
  opacity: 1;
  transform: translateY(-2px);
  text-decoration: none;
}
