/* ************* IMPORTS ************* */
@import url("normalize.css");
@import url("colors3.css");
@import url("fonts.css");

/* ************* DESIGN TOKENS / VARIABLEN ************* */
:root {
  /* fs = font-size */
  --fs-body: 1.25rem;
  --fs-hero-h1: 2.5rem;
  --fs-hero-h1-mobile: 1.5rem;
  --fs-hero-p: 2rem;
  --fs-hero-h2-mobile: 1.25rem;
  --fs-section-title: 2.5rem;
  --fs-section-title-mobile: 2rem;
  --fs-footer: 1rem;

  /* Sonstiges */
  --header-height: 80px;
  --borderradius: 14px;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.375;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-wrap: break-word; /* bewirkt das Umbrechen in eine neue Zeile
  bei sehr langen URLs (siehe Datenschutz) */
  overflow-x: hidden;
  scroll-behavior: smooth;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", Arial, sans-serif;
  text-wrap: balance;
}

h2 {
  font-weight: 500;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary-1);
}

ul,
ol,
dl {
  list-style-position: inside;
}

:is(ul, ol, dl) :is(ul, ol, dl) {
  padding-inline-start: 1lh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ab der 2. Section: ungerade = --color-bg, gerade = weiß */
section:nth-of-type(n + 2):nth-of-type(odd) {
  background: var(--color-bg);
}
section:nth-of-type(n + 2):nth-of-type(even) {
  background: var(--white);
}

#home {
  /* scroll-margin-top: var(--header-height); */
}

:is(#services, #pricing, #about, #contact) {
  /* scroll-margin-top: 60px; */
}

/* ****** Header ****** */
header {
  height: var(--header-height);
  background: var(--white);
  color: var(--color-text);
  padding: 0.5rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(var(--rgb-black), 0.1);
  border-bottom: 1px solid var(--color-primary-2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  animation: logo-fly-in 0.8s ease-out forwards;
}

/* ========= Logo-Animation */
.logo-img {
  display: block;
  margin-right: 1em;
  width: 200px;
}
@keyframes logo-fly-in {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }

  80% {
    transform: translateX(7%);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
  }
}
/* ========= END Logo-Animation */

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 1rem 0.5rem;
}

nav ul li a:hover {
  color: var(--black);
  transform: scale(1.15);
}

/* ****** Hamburger Menu ****** */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  padding: 1rem;
  border: 1px solid var(--gray-700);
  border-radius: 100%;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--color-primary-1);
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ****** Hero Section ****** */
.hero {
  max-height: 100vh;
  width: 100%;
  border-bottom: 1px solid var(--gray-100);
}

.hero-content {
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-headline {
  padding-top: 2rem;
}

.hero-img {
  width: 100vw;
  height: 40vh;
  background-image: url("../img/@AdobeStock_627636944-Amnaj-1536x1024.jpg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 2rem 0;
}

.hero-btn {
  margin-top: 3rem;
  display: flex;
  gap: 3rem;
}

.hero-headline h1 {
  font-weight: 500;
  font-size: var(--fs-hero-h1);
  color: var(--color-primary-0);
  margin-bottom: 1rem;
  animation: slideInUp 1s ease-out;
}

.hero-headline h2 {
  font-size: var(--fs-hero-p);
  font-weight: 400;
  color: var(--color-primary-0);
  margin-bottom: 2rem;
  animation: slideInUp 1s ease-out 0.3s both;
}

.cta-button,
.service-button {
  color: var(--white);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: var(--borderradius);
  font-weight: 500;
  transition: all 0.5s ease;
  animation: slideInUp 1s ease-out 0.6s both;
  box-shadow: 0 4px 15px rgba(var(--rgb-black), 0.3);
}

.cta-button {
  background: var(--color-accent-1);
  background: linear-gradient(
    -45deg,
    var(--color-accent-2),
    var(--color-accent-1)
  );
}

.service-button {
  background: linear-gradient(
    -45deg,
    var(--color-success-2),
    var(--color-success-1)
  );
}

.cta-button:hover,
.service-button:hover {
  transform: translateY(-3px);
  color: var(--black);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.cta-button:hover {
  box-shadow: 0 6px 20px rgba(var(--rgb-accent), 0.6);
  background: linear-gradient(
    -45deg,
    var(--color-accent-2),
    var(--color-accent-2)
  );
}

.service-button:hover {
  box-shadow: 0 6px 20px rgba(var(--rgb-success), 0.6);
  background: linear-gradient(
    -45deg,
    var(--color-success-2),
    var(--color-success-2)
  );
}

/* ****** Services Section ****** */
.services {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.section-title {
  text-align: center;
  font-size: var(--fs-section-title);
  margin-bottom: 3rem;
  color: var(--color-primary-0);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 3px;
  background: var(--grad-accent);
}

.services-grid-2,
.services-grid-3 {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.services-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.services-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--borderradius);
  box-shadow: 0 10px 30px rgba(var(--rgb-black), 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-100);
}

.service-card a {
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(var(--rgb-black), 0.15);
}

.service-icon {
  margin-bottom: 1rem;
}

.service-icon img {
  height: 48px;
}

/* ****** Preise Section ****** */
.price-content {
  margin-bottom: 2rem;
}

.price {
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center; /* vertikal */
  margin-top: auto;
  height: 5rem;
  background: var(--color-success-2);
  color: var(--black);
  font-size: 1.8rem;
  font-weight: 500;
  border-radius: 12px;
}

.price-enum {
  text-align: left;
  list-style: none;
  padding-left: 2.2rem; /* Abstand für Aufzählungszeichen */
  text-indent: -0.9rem; /* zieht die erste Zeile zurück */
}

.price-enum li {
  padding: 0.5rem 0;
}

.price-enum li::before,
.about-features li::before {
  content: "•";
  font-weight: 600;
  color: var(--color-success-0);
}

.price-enum li::before {
  margin-right: 0.5rem;
}

.footnote {
  margin: 0 1.5rem;
}

/* ****** About Section ****** */
.about {
  border-bottom: 1px solid var(--gray-100);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Jeder zweite Abschnitt: Text- und Bild-Spalte vertauschen */
.about-content:nth-of-type(even) {
  direction: rtl;
}

/* Inhalt wieder normal ausrichten */
.about-content:nth-of-type(even) > * {
  direction: ltr;
}

.about-content:not(:first-child) {
  margin-top: 3rem;
}

.contact-icon img,
.download-agb img {
  height: 36px;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 0.5rem;
}

.about-features {
  list-style: none;
}

.about-features li {
  padding: 0.5rem 0;
}

.about-features li::before {
  margin-right: 0.3rem;
}

.about-image,
.about-image-2-3,
.about-image-potrait {
  object-fit: cover;
  border-radius: var(--borderradius);
}

.about-image {
  aspect-ratio: 3 / 2;
  max-width: 100%;
}

.about-image-2-3 {
  aspect-ratio: 2 / 3;
  max-width: 100%;
  height: auto;
}

.about-image-potrait {
  aspect-ratio: 2 / 3;
  width: 100%;
}

/* ****** Contact Section ****** */
.contact {
  font-size: 1.4rem;
}

.services,
.about,
.contact {
  padding: 7.5rem 0 3rem;
}

address,
.phone,
.email,
.download-agb {
  font-style: normal;
  color: var(--color-text);
}

address:hover,
.phone:hover,
.email:hover,
.download-agb a:hover {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--color-primary-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* ****** Footer ****** */
footer {
  background: var(--color-primary-0);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

footer div p {
  font-size: var(--fs-footer);
}

.social-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icon {
  width: 4rem;
  filter: grayscale(50%);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.social-icon:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

#map {
  margin-top: 2rem;
  width: 100%;
  height: 500px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(var(--rgb-black), 0.15);
  scroll-margin-top: 90px;
}

.footer-link {
  text-decoration: none;
  color: var(--white);
}

.qrcode {
  width: 200px;
}

/* ****** Animations ****** */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ****** Mobile Responsive ****** */
/* ****************************** */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    flex-direction: column;
    background: var(--color-primary-1);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
  }

  nav ul.active {
    left: 0;
  }

  nav ul li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid var(--color-primary-0);
  }

  nav ul li a {
    font-size: 1.2rem;
    color: var(--white);
    display: block;
    width: 100%;
    padding: 1.5rem 0;
  }

  nav ul li a:hover {
    color: var(--white);
    background: var(--color-primary-2);
    transform: scale(1);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .services-grid-2,
  .services-grid-3 {
    grid-template-columns: 1fr;
  }

  #map {
    height: 400px;
  }

  .hero-headline h1 {
    font-size: var(--fs-hero-h1-mobile);
  }

  .section-title {
    font-size: var(--fs-section-title-mobile);
  }

  .hero-headline h2 {
    font-size: var(--fs-hero-h2-mobile);
  }
  .hero-btn {
    flex-direction: column;
    margin: 0;
    gap: 1.5rem;
  }

  .cta-button,
  .service-button {
    font-weight: 400;
  }
}

/* ****** Impressum & Datensch. & AGB ****** */
.section-text {
  margin: 8rem 0 2.5rem;
}

.imprint-h1 {
  font-size: 1.75rem;
}

.download-agb {
  text-align: center; /* optional, falls mehrere Links existieren */
}

.download-agb a {
  display: inline-flex;
  align-items: center; /* vertikale Zentrierung */
  justify-content: center; /* horizontale Zentrierung */
  gap: 0.5rem; /* Abstand zwischen Text und Icon */
  text-decoration: none;
}

/* NEUE INDEX.PHP */

.about,
.services,
.contact,
.section-text {
  min-height: calc(100vh - var(--header-height));
}

.sub-head {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary-1);
}
.p-bold {
  font-weight: bold;
}

.hero-btn {
  margin-top: 2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.hero-btn a {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hero-btn {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .hero-btn a {
    width: 100%;
    text-align: center;
  }
}
