/* ==========================================================================
   SpreeDev – globales Stylesheet
   ========================================================================== */

:root {
  --primary: #112619;
  --accent: #eff299;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --gray: #888888;
  --dark-gray: #333333;
  --text: #333333;
  --text-secondary: #555555;
}

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

body {
  font-family: Poppins, sans-serif;
  background-color: var(--white);
  color: var(--dark-gray);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 { font-weight: 300; line-height: 1.2; margin-bottom: 1rem; }
p { line-height: 1.6; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font: inherit; }
section { padding: 5rem 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 50px;
  font-weight: 300;
  text-align: center;
  cursor: pointer;
  background-color: var(--accent);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: rgba(0, 0, 0, 0.12) 0 6px 16px; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--lg { padding: 1rem 2rem; font-size: 1.25rem; }

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

.site-header {
  background-color: var(--primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--accent);
}
.site-header__inner { display: flex; justify-content: space-between; align-items: center; }
.site-header__logo img { height: 40px; display: block; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  position: relative;
  color: var(--white);
  font-weight: 400;
  font-size: 1rem;
  padding: 0.5rem 1rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav__link.active::after, .nav__link:hover::after { width: 100%; }
.nav__cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: rgba(0, 0, 0, 0.12) 0 6px 16px; }
.nav__cta:active { transform: translateY(0); box-shadow: none; }

.menu-toggle {
  display: none;
  padding: 0.5rem;
  background: none;
  position: relative;
  width: 40px;
  height: 40px;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  background-color: var(--white);
  height: 3px;
  width: 24px;
  border-radius: 2px;
  position: absolute;
  transition: 0.3s;
}
.menu-toggle span { top: 50%; left: 8px; transform: translateY(-50%); }
.menu-toggle span::before { content: ""; top: -8px; }
.menu-toggle span::after { content: ""; top: 8px; }
.menu-toggle[aria-expanded="true"] span { background-color: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    padding: 1rem 0;
    gap: 1rem;
  }
  .nav.open { display: flex; }
  .nav__cta { display: none; margin: 1rem auto 0; }
}

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

.site-footer {
  background-color: var(--primary);
  color: var(--white);
  border-top: 2px solid var(--accent);
  padding: 1rem 0;
}
.footer-cta {
  padding: 5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--accent);
  margin-bottom: 20px;
}
.footer-cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  border: 1px solid var(--accent);
}
.footer-cta__title { font-size: 2.5rem; margin: 0 auto 2rem; max-width: 600px; }
.site-footer__logo { width: 120px; margin-bottom: 1rem; display: block; }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: baseline;
}
.site-footer__cols .col { display: flex; flex-direction: column; }
.site-footer address { font-style: normal; line-height: 1.6; color: var(--white); }
.site-footer__links { display: flex; flex-direction: column; }
.site-footer__links a { color: var(--white); margin-bottom: 0.75rem; transition: color 0.3s; font-size: 1rem; }
.site-footer__links a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .site-footer { padding: 2rem 1rem; }
  .footer-cta { padding: 3rem 1rem; }
  .footer-cta__box { flex-direction: column; text-align: left; padding: 2rem; }
  .footer-cta__title { font-size: 1.4rem; margin-bottom: 1rem; }
  .site-footer__logo { width: 100px; margin: 0 auto 1rem; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 1rem; }
  .site-footer address { padding-top: 0.5em; }
}

/* ---------- Gemeinsame Bausteine ---------- */

.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
.section-title span { color: var(--primary); }

.page-hero {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
}
.page-hero h1 { font-size: 3rem; margin-bottom: 1.5rem; }
.page-hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto; opacity: 0.9; }

@media (max-width: 768px) {
  .section-title { font-size: 1.7rem; margin-bottom: 2rem; text-align: left; }
  .page-hero { padding: 3rem 1rem; }
  .page-hero h1 { font-size: 2rem; margin-bottom: 1rem; }
  .page-hero p { font-size: 1rem; }
}

/* Einblend-Animation (wird per JS aktiviert) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Startseite
   ========================================================================== */

.hero {
  background-color: var(--primary);
  color: var(--white);
  padding: 11rem 0;
  position: relative;
  overflow: hidden;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  max-width: 50%;
}
.hero__title { font-size: 3.5rem; margin-bottom: 1.5rem; max-width: 800px; }
.hero__text { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; opacity: 0.9; }
.hero__actions { display: flex; gap: 1rem; margin-top: 1rem; }
.hero__media {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero__media video { width: 100%; max-width: 600px; height: auto; display: block; }

@media (max-width: 768px) {
  .hero { padding: 6rem 1rem; }
  .hero__content { max-width: 100%; align-items: center; }
  .hero__title { font-size: 2.5rem; }
  .hero__text { font-size: 1rem; max-width: 100%; }
  .hero__actions { flex-direction: column; align-items: center; width: 100%; }
  .hero__media { display: none; }
}

.services { background-color: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.service-card {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: rgba(0, 0, 0, 0.05) 0 4px 10px;
}
.service-card__icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.card-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card-text { font-size: 1rem; line-height: 1.6; }

.why__list { max-width: 800px; margin: 0 auto; }
.why__item { display: flex; align-items: flex-start; margin-bottom: 3rem; }
.why__icon { font-size: 2.5rem; color: var(--primary); margin-right: 1rem; margin-top: 0.3rem; }
.why__body { flex: 1; }
.why__body h3 { font-size: 2.5rem; margin-bottom: 0.8rem; }
.why__body p { font-size: 1.5rem; line-height: 1.6; padding: 0.2rem; }

.clients { background-color: #f9f9f9; }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.client-logo { background-color: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 1.5rem; text-align: center; }
.client-logo img { display: block; margin: 0 auto; }

.case-teasers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.case-teaser {
  background: #f2f2f2;
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.case-teaser__img { margin: 1.5rem 0; flex: 1; display: flex; align-items: center; justify-content: center; }
.case-teaser__img img { width: 100%; height: 200px; object-fit: cover; border-radius: 0.75rem; margin-bottom: 1rem; }
.case-teaser__action { margin-top: auto; text-align: center; }

.milestones { background-color: var(--primary); color: var(--white); }
.milestones__list {
  display: grid;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  position: relative;
}
.milestones__track,
.milestones__progress {
  position: absolute;
  left: 60px;
  top: 0;
  width: 2px;
}
.milestones__track { bottom: 0; background: rgba(255, 255, 255, 0.2); z-index: 1; }
.milestones__progress { height: 0; background: var(--accent); z-index: 2; }
.milestone { display: flex; align-items: flex-start; position: relative; z-index: 3; }
.milestone__num {
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent);
  width: 60px;
  margin-right: 20px;
  padding-right: 20px;
  text-align: center;
  position: relative;
  z-index: 4;
  background: var(--primary);
}
.milestone__body { flex: 1; }
.milestone__body h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.milestone__body p { font-size: 1rem; line-height: 1.6; }
.text-center { text-align: center; }

.testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.testimonial { text-align: center; padding: 2rem; }
.testimonial__quote { font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.6; }
.testimonial__author { display: flex; flex-direction: column; align-items: center; }
.testimonial__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }
.testimonial__name { font-size: 1.2rem; margin-bottom: 0.25rem; }
.testimonial__role { font-size: 0.9rem; color: #777; }

@media (max-width: 768px) {
  .services, .why, .clients, .case-teasers, .milestones, .testimonials { padding: 3rem 1rem; }
  .service-card, .case-teaser { padding: 1.5rem; }
  .why__item { flex-direction: column; }
  .why__icon { margin: 0 0 1rem; }
  .why__body h3 { font-size: 1.8rem; }
  .why__body p { font-size: 1.2rem; }
  .client-logo { padding: 1rem; }
  .case-teasers__grid { gap: 1rem; margin-top: 2rem; }
  .case-teaser__img img { height: 150px; }
  .milestones__track, .milestones__progress { display: none; }
  .milestone { flex-direction: column; }
  .milestone__num { width: auto; margin: 0 0 0.5rem; padding: 0; text-align: left; }
  .milestone__body h3 { font-size: 1.5rem; }
  .milestone__body p { font-size: 0.9rem; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .testimonial { padding: 1.5rem; }
  .testimonial__quote { text-align: left; }
}

/* ==========================================================================
   Über uns
   ========================================================================== */

.about-hero { background-color: var(--primary); color: var(--white); padding: 6rem 0; text-align: center; }
.about-hero h1 { font-size: 3rem; margin-bottom: 1.5rem; }
.about-hero p { font-size: 1.6rem; max-width: 700px; margin: 0 auto 2.5rem; opacity: 0.9; }
.pill { display: inline-block; border: 2px solid var(--accent); border-radius: 9999px; padding: 0 1.5rem; }

.about-why .container { max-width: 800px; }
.about-why h2 { font-size: 3.5rem; font-weight: 400; margin-bottom: 1rem; }
.about-why p { font-size: 1.5rem; margin-bottom: 2rem; }
.check-list { list-style: none; margin: 0 0 3rem; }
.check-list li { display: flex; align-items: center; margin-bottom: 1rem; font-size: 1.5rem; }
.check-list li::before { content: "✔️"; margin-right: 0.75rem; }

.about-person .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-person h2 { font-size: 2rem; margin-bottom: 1rem; }
.about-person p { margin-bottom: 1.25rem; font-size: 1.4rem; }
.about-person__image { text-align: center; }
.about-person__image img { width: 100%; max-width: 300px; border-radius: 8px; }

.stats { padding: 3rem 0 5rem; }
.stats .container { display: flex; justify-content: center; gap: 4rem; text-align: center; }
.stat h3 { font-size: 2.5rem; margin: 0; }
.stat p { margin: 0.5rem 0 0; color: var(--gray); }

.values { background-color: var(--light-gray); }
.values .container { max-width: 1000px; display: flex; flex-direction: column; gap: 3rem; }
.values__intro { text-align: center; margin-bottom: 2rem; }
.values__intro h2 { font-size: 2.5rem; font-weight: 400; margin-bottom: 1.5rem; }
.values__intro h2 span { color: var(--primary); border: 2px solid var(--primary); border-radius: 9999px; padding: 0 1.5rem; }
.values__intro p { max-width: 600px; margin: 0 auto; }
.values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.value-card {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.value-card__icon { font-size: 1.75rem; color: var(--primary); margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; padding-bottom: 0.7rem; color: var(--text); }
.value-card p { color: var(--text-secondary); }

@media (max-width: 768px) {
  .about-hero { padding: 4rem 1rem; }
  .about-hero h1 { font-size: 2.5rem; }
  .about-hero p { font-size: 1.2rem; margin-bottom: 2rem; }
  .about-why { padding: 3rem 1rem; }
  .about-why h2 { font-size: 2rem; }
  .about-why p, .check-list li { font-size: 1.2rem; }
  .about-person { padding: 3rem 1rem; }
  .about-person .container { grid-template-columns: 1fr; }
  .about-person p { font-size: 1.2rem; }
  .about-person__image img { max-width: 250px; }
  .stats { padding: 2rem 1rem 4rem; }
  .stat h3 { font-size: 2rem; }
  .values { padding: 3rem 1rem; }
  .values__intro h2 { font-size: 1.8rem; }
  .values__intro p, .value-card p { font-size: 0.9rem; }
  .values__grid { grid-template-columns: 1fr; }
  .value-card h3 { font-size: 1.25rem; }
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.projects__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2.5rem; }
.project {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.08) 0 4px 20px;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.6s;
}
.project:hover { transform: translateY(-5px); box-shadow: rgba(0, 0, 0, 0.1) 0 10px 25px; }
.project__image { width: 100%; height: 250px; position: relative; overflow: hidden; }
.project__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.project__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}
.project:hover .project__image img { transform: scale(1.05); }
.project:hover .project__image::before { opacity: 1; }
.project__body { padding: 1.5rem; }
.project__body h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tag { background-color: var(--light-gray); color: var(--dark-gray); padding: 0.3rem 0.75rem; border-radius: 20px; font-size: 0.85rem; }

@media (max-width: 1024px) {
  .projects__grid { gap: 2rem; }
}
@media (max-width: 768px) {
  .projects { padding: 3rem 1rem; }
  .projects__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .project { box-shadow: rgba(0, 0, 0, 0.05) 0 2px 10px; }
  .project__image { height: 200px; }
  .project__body { padding: 1rem; }
  .project__body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
  .tag { font-size: 0.8rem; padding: 0.25rem 0.6rem; }
}

/* ==========================================================================
   Fallstudien
   ========================================================================== */

.cases { background-color: var(--light-gray); }
.cases .container { text-align: center; }
.cases h1 { font-size: 2.5rem; margin-bottom: 2rem; font-weight: 400; color: var(--text); }
.cases__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.case-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: left;
  box-shadow: rgba(0, 0, 0, 0.05) 0 4px 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: rgba(0, 0, 0, 0.1) 0 8px 24px; }
.case-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 0.75rem; margin-bottom: 1rem; }
.case-card h2 { font-size: 1.25rem; margin-bottom: 0.5rem; padding-bottom: 1rem; color: var(--text); }
.case-card p { font-size: 0.95rem; color: var(--text-secondary); }

@media (max-width: 768px) {
  .cases { padding: 3rem 1rem; }
  .cases .container { padding: 0; }
  .cases h1 { font-size: 2rem; margin-bottom: 1.5rem; }
  .cases__grid { grid-template-columns: 1fr; gap: 1rem; }
  .case-card { padding: 1rem; }
  .case-card img { height: 150px; }
  .case-card h2 { font-size: 1.1rem; }
  .case-card p { font-size: 0.85rem; }
}

/* Artikel (einzelne Fallstudie) */
.article { max-width: 800px; margin: 0 auto; padding: 4rem 1rem; }
.article h2 { font-size: 2rem; margin: 3rem 0 1rem; }
.article h2:first-child { margin-top: 0; }
.article p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1.5rem 1.5rem; }
.article li { margin-bottom: 0.75rem; line-height: 1.6; }
.article strong { font-weight: 600; }
.article img { display: block; width: 100%; height: auto; margin: 1rem auto 2rem; border-radius: 0.5rem; }

.more-cases { max-width: 1000px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.more-cases h2 { font-size: 2rem; margin-bottom: 2rem; }
.more-cases__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.more-card {
  display: block;
  background-color: var(--light-gray);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.more-card:hover { transform: translateY(-4px); box-shadow: rgba(0, 0, 0, 0.1) 0 8px 24px; }
.more-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.more-card__body { padding: 1rem 1.25rem; }
.more-card__body h3 { margin: 0.25rem 0 0.5rem; font-size: 1.25rem; }
.more-card__body p { font-size: 0.95rem; line-height: 1.4; margin: 0; }

@media (max-width: 768px) {
  .article { padding: 2rem 1rem; }
  .article h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
  .article p, .article li { font-size: 0.9rem; line-height: 1.5; }
  .article ul, .article ol { margin-left: 1rem; }
  .more-cases { padding: 1rem 1rem 3rem; }
  .more-cases h2 { font-size: 1.5rem; margin-bottom: 1rem; }
  .more-cases__grid { grid-template-columns: 1fr; gap: 1rem; }
  .more-card img { height: 140px; }
  .more-card__body h3 { font-size: 1.1rem; }
  .more-card__body p { font-size: 0.85rem; }
}

/* ==========================================================================
   Rechtliches (Impressum, Datenschutz, AGB)
   ========================================================================== */

.legal .container { max-width: 1000px; }
.legal h1 { font-size: 2.5rem; }
.legal h2 { font-size: 1.8rem; margin: 2rem 0 1rem; color: var(--primary); }
.legal h3 { font-size: 1.4rem; margin: 1.5rem 0 1rem; color: var(--primary); }
.legal p { margin-bottom: 1rem; line-height: 1.6; font-size: 1rem; }
.legal ul { margin: 0 0 1.5rem 1.5rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--primary); text-decoration: underline; }
.legal .stand { margin-top: 2rem; font-style: italic; }

@media (max-width: 768px) {
  .legal { padding: 3rem 1rem; }
  .legal .container { padding: 0 1rem; }
  .legal h1 { font-size: 2rem; }
  .legal h2 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
  .legal h3 { font-size: 1.3rem; margin: 1.25rem 0 0.75rem; }
  .legal p, .legal li { font-size: 0.9rem; }
  .legal ul { margin-left: 1rem; }
}

/* 404 */
.not-found { text-align: center; padding: 8rem 1rem; }
.not-found h1 { font-size: 4rem; color: var(--primary); }
