/* Vision — adapted to match Angebot/Projekte look & responsiveness
   Only this file changed; HTML kept as-is. */

/* ROOT / COLORS */
:root{
  --brand-dark:#000000;
  --accent:#5c5c5c;
  --page-bg:#fffeef;
  --logo-h:90px;
  --nav-gap:16px;
  --max-width:1350px;
}

/* BASE */
*{box-sizing:border-box}
html,body{height:100%}
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #000;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    background-color: #fffeef;
}

header {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 11000; /* höher als .top-nav */
    height: var(--logo-h);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo img {
    height: var(--logo-h);
    max-width: 40vw;
    width: auto;
    object-fit: contain;
}

.top-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--logo-h) + var(--nav-gap));
    z-index: 10900; /* kleiner als header */
    width: 95%;
    max-width: 920px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    padding: 8px 12px;
    border-radius: 40px;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.top-nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 25px;
}

.top-nav ul li a:hover {
    background: #d1d1d1;
    color: #fff;
}

.top-nav ul li.separator {
    color: #a4cede;
    font-size: 0.8rem;
}


/* reserve space for header+nav */
main {
    margin-top: calc(var(--logo-h) + 96px);
    flex: 1;
}

/* VISION CONTENT — transform violet box into white card matching site style */
.vision-section {
  padding: 40px 16px 80px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  flex: 1;
}

.vision-box {
  max-width: var(--max-width);
  width: 100%;
  background: #ffffff;             /* white card like Angebot/Projekte */
  border-radius: 16px;
  padding: 36px 44px;
  box-shadow: 0 12px 34px rgba(26,52,116,0.06);
  border: 1px solid rgba(26,52,116,0.06);
  transform: translateY(18px);
  opacity: 0;
  animation: card-pop .72s cubic-bezier(.2,.9,.3,1) forwards;
  box-sizing: border-box;
  position: relative;
}

/* Title / underline */
.vision-title {
  margin:0 0 28px;
  text-align:center;
  color:var(--brand-dark);
  font-size:2.2rem;
  line-height:1.05;
  letter-spacing:0.2px;
  position:relative;
}
.vision-title::after{
  content:"";
  display:block;
  height:6px;
  width:0%;
  margin:12px auto 0;
  background:#000;
  border-radius:6px;
  animation: underline-grow .7s .18s cubic-bezier(.2,.9,.3,1) forwards;
}

/* paragraphs */
.vision-box p{
  margin:0 0 18px;
  color:#222;
  line-height:1.7;
  font-size:1rem;
  text-align:left;
}

/* small responsive tweak to center text on very small screens */
@media (max-width:520px){
  .vision-box p { text-align:left; }
}

/* subtle accent (vertical on desktop, horizontal on small screens) */
.vision-box::before{
  content:"";
  position:absolute;
  left:18px;
  top:18px;
  bottom:18px;
  width:6px;
  background: linear-gradient(180deg,var(--accent), rgba(127,182,217,0.6));
  border-radius:6px;
  transform: scaleY(0);
  transform-origin: top;
  opacity:0;
  animation: accent-grow .55s .45s cubic-bezier(.2,.9,.3,1) forwards;
}

/* Footer */
footer {
    position: relative;
    width: 100%;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    margin-top: 40px;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer ul li a {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #a4cede;
}

/* ANIMATIONS */
@keyframes card-pop {
  from { opacity:0; transform: translateY(28px); }
  to   { opacity:1; transform:none; }
}
@keyframes underline-grow {
  from { width:0%; opacity:0; }
  to   { width:48%; opacity:1; }
}
@keyframes accent-grow {
  from { transform:scaleY(0); opacity:0; }
  to   { transform:scaleY(1); opacity:1; }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    :root{ --logo-h:80px; }
    main{ margin-top: calc(var(--logo-h) + 90px); }
}

@media screen and (max-width: 900px) {
  header {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    z-index: 50;
  }

  .logo img {
    max-height: 90px;
    width: auto;
  }

  .top-nav {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin-top: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  .top-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}


@media screen and (max-width: 768px) {
    :root{ --logo-h:72px; }
    .top-nav{ top: calc(var(--logo-h) + 12px); }
    main{ margin-top: calc(var(--logo-h) + 82px); }

    .logo img {
        max-height: 100px;
    }

    .top-nav {
        padding: 12px 25px;
        width: 90%;
    }

    .top-nav ul {
        gap: 15px;
    }

    .top-nav ul li a {
        font-size: 1rem;
        padding: 6px 12px;
    }

    main {
        margin-top: 160px;
    }

    .services-section {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .service-icon svg {
        width: 56px;
        height: 56px;
    }
}

@media screen and (max-width: 480px) {
    :root{ --logo-h:56px; }
    header{ right:8px; }
    .top-nav{ top: calc(var(--logo-h) + 10px); padding:6px 8px; border-radius:32px; }
    main{ margin-top: calc(var(--logo-h) + 72px); }

    .logo img {
        max-height: 80px;
    }

    .top-nav {
        padding: 8px 15px;
        top: 30px;
    }

    .top-nav ul {
        gap: 10px;
    }

    .top-nav ul li a {
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    main {
        /* margin-top: 130px; */
        margin-top: clamp(120px, 20vh, 220px);
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .service-card {
        padding: 20px;
    }

    .service-card h2 {
        font-size: 1.3rem;
    }

    .service-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* Override: center first h1 and force black for texts & animated parts */
.services-section h1 {
  color: #000 !important;
  text-align: center !important; /* ensure centered */
}

/* animated underline (h1) -> black */
.services-section h1::after {
  background: #000 !important;
}

/* animated badge on cards -> black */
.service-card::before {
  background: #000 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12) !important;
}

/* make general text black */
body,
.services-section h1,
.service-card h2,
.service-card p,
.top-nav ul li a,
footer ul li a {
  color: #000 !important;
}

/* icons: fill/stroke -> black */
.service-icon svg,
.service-icon svg * {
  fill: #000 !important;
  stroke: #000 !important;
  color: #000 !important;
}

/* ensure animated gradients fallback to black where applied */
@keyframes h1-grad-shift { /* keep animation but ensure visible on black text fallback */ }

/* respect reduced motion (no change) */
@media (prefers-reduced-motion: reduce) {
  .services-section h1,
  .services-section h1::after,
  .service-card,
  .service-card::before {
    animation: none !important;
    transition: none !important;
  }
}