@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

:root {
  --gradient-brand: linear-gradient(135deg, #D63384 15%, #4f56a2 70%);
  --color-main: #4f56a2;
  --color-accent: #D63384;
  --color-dark: #212429;
  --color-white: #f4f4f4;
  --color-text: #444;
  --padding-push: 13rem;
  --radius: 0.625rem;
  --radius-sm: 0.375rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text);
  background-color: var(--color-dark);
  overflow-x: hidden;
}

/* ========== UTILITIES ========== */
.paddingPush {
  padding-left: var(--padding-push);
  padding-right: var(--padding-push);
}

.btn-gradient {
  background: var(--gradient-brand);
  color: var(--color-white);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
}



.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3.5rem;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

section {
  background-color: var(--color-dark);
  padding: 5rem 0;
}

@media (hover: hover) {
.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.nav-links a:hover {
  color: var(--color-accent);
}
.nav-links a:hover::after {
  width: 100%;
}
.mobile-nav a:hover {
  color: var(--color-accent);
}
.nav-links .kontakt-btn:hover,
.mobile-nav .kontakt-btn:hover{
  color: var(--color-white);
}
.nav-links .kontakt-btn:hover::after{
 width: 0;
}
/* .buttons_area button:hover{
  background: var(--gradient-brand);
  color: #f4f4f4;
} */
.faq-question:hover {
  color: var(--color-main);
}
.footer-links a:hover {
  color: var(--color-accent);
}
}

/* ========== NAV ========== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--padding-push);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-bar.scrolled {
  background: rgba(33, 36, 41, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-logo span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.3s ease;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  width: 28px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 20rem;
  height: 100vh;
  background: rgba(33, 36, 41, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.mobile-nav a:not(.kontakt-btn) {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========== HERO ========== */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,36,41,0.3) 0%, rgba(33,36,41,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 50rem;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-content h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(244, 244, 244, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ========== LEISTUNGEN ========== */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.leistung-card {
  min-width: 200px;
  border-radius: var(--radius);
  padding: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.leistung-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.leistung-card-inner {
  background: var(--color-white);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  height: 100%;
}

.leistung-card-inner img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.leistung-card-inner .card-text {
  padding: 1.5rem;
}

.leistung-card-inner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.leistung-card-inner p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text);
}

/* ========== ÜBER UNS / METRICS ========== */
.metrics-banner {
  background: var(--gradient-brand);
  padding: 3.5rem 0;
  margin-bottom: 3rem;
}

.metrics-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.metric-item {
  text-align: center;
}

.metric-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(244,244,244,0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text {
  color: rgba(244, 244, 244, 0.85);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 55rem;
}

/* ========== REFERENZEN ========== */
.referenzen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.referenz-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.referenz-card img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: opacity 0.3s ease;
}

.referenz-overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 36, 41, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.referenz-card:hover .referenz-overlay,
.referenz-card.active .referenz-overlay {
  opacity: 1;
}

.referenz-overlay h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.4rem;
}

.referenz-overlay p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  opacity: 0.85;
}


/* ========== KONTAKT ========== */
.contact_wrapper {
  width: 100%;
  border-radius: var(--radius);
  border: 4px solid transparent;
  background: linear-gradient(var(--color-white), var(--color-white)), var(--gradient-brand);
  background-clip: padding-box, border-box;
  background-origin: border-box;
}
.contact_wrapper form {
  margin: 35px 30px;
}
form .dbl-field,
form .grund {
  display: flex;
  margin-bottom: 25px;
  justify-content: space-between;
}
.dbl-field .field {
  height: 50px;
  display: flex;
  position: relative;
  width: calc(100% / 2 - 13px);
}
form .grund {
  height: 50px;
}
form .field input,
form .message textarea,
form .grund select {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  border: 1px solid var(--color-text);
  color: #000;
}
form .grund select {
  cursor: pointer;  
  -webkit-appearance: none; /* Disable default styling on all webkit browsers  */  
  -moz-appearance: none; /* Disable ugly ass outline & default styling on ff, firefox, IE 11+ */
  &:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
  }
  &::-ms-expand {
    display: none;
  }
  background-color: transparent;
}
.field input::placeholder,
.message textarea::placeholder {
  color: #8b8a8a;
}
.field input:focus,
.message textarea:focus,
.grund select:focus {
  padding-left: 0.8rem;
  border: 2px solid var(--color-accent);
  outline: none;
}
.grund_dropdown {
  width: 100%;
  position: relative;
  z-index: 1;
}
form .message {
  position: relative;
}
form .message i {
  top: 30px;
  font-size: 15px;
}
form .message textarea {
  min-height: 130px;
  max-height: 500px;
  max-width: 100%;
  min-width: 100%;
}
form .message textarea::-webkit-scrollbar {
  width: 0px;
}
.message textarea:focus {
  padding-top: 14px;
}
form .buttons_area {
  margin: 25px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  text-align: center;
  background: none;
}
.buttons_area button {
  font-size: 18px;
  color: var(--color-text);
  font-weight: 520;
  width: 100%;
  outline: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 13px 25px;
  background: var(--color-white);
  border: 2px solid var(--color-text);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
  overflow: hidden; 
  transition: color 0.6s ease; 
}

.buttons_area button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-brand);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.buttons_area button:hover {
  color: #f4f4f4;
}

.buttons_area button:hover::before {
  opacity: 1;
}

.buttons_area span {
  font-size: 17px;
  display: none;
  /* color: _; */
  color: var(--color-text);
  background-color: none;
  font-weight: 100;
}


/* ========== FAQ ========== */

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  user-select: none;
}

.faq-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 15rem;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: rgba(244,244,244,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.site-footer {
  background: rgba(15, 17, 20, 0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-white);
}

.footer-brand span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(244,244,244,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-copy {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(244,244,244,0.35);
  font-size: 0.8rem;
}

/* ========== RECHTLICHES ========== */
.rechtlich-pages{
  padding-top: 8rem;
  color: var(--color-white);
}
.rechtlich-pages h3{
  text-align: center;
}
.rechtlich-pages a{
  color: var(--color-white);
}
.rechtlich-pages ul,
.rechtlich-pages ol{
  margin-left: 50px;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  :root {
    --padding-push: 4rem;
  }
}

@media (max-width: 950px) {
  :root {
    --padding-push: 2rem;
  }

  .metric-item {
    width: 45%;
  }

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

  .nav-links {
    display: none !important;
  }

  .burger-menu {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  .leistungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leistung-card {
    min-width: 0;
  }

  .metrics-grid {
    flex-wrap: wrap;
    gap: 2rem;
  }

  form .dbl-field{
    flex-direction: column;
    margin-bottom: 0px;
  }

  form .dbl-field .field{
    width: 100%;
    height: 45px;
    margin-bottom: 20px;
  }

  form .message textarea{
    resize: none;
  }

  form .buttons_area{
    gap: .5rem;
  }

  .buttons_area button{
    width: 100%;
    padding: 11px 0;
    font-size: 16px;
  }

  .buttons_area span{
    margin: 0;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  :root {
    --padding-push: 1.25rem;
  }

  .leistungen-grid,
  .referenzen-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    font-size: 1.7rem;
  }

  .metric-number {
    font-size: 2rem;
  }

  .nav-bar {
    padding: 1rem var(--padding-push);
  }
  .rechtlich-pages ul,
  .rechtlich-pages ol{
    margin-left: 30px;
  }

}
