/*
====================================================
  BASISVARIABLEN
====================================================
*/
:root {
  /* Schriften */
  font-family: 'InterVariable', sans-serif;
  font-optical-sizing: auto;

  /* Farben */
  --blue: #0067a5;
  --gray-light: #f5f5f7;
  --gray-dark: #444444;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #eeeeee;

  /* Schatten */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);
}

@supports not (font-variation-settings: normal) {
  :root {
    font-family: 'Inter', sans-serif;
  }
}

/*
====================================================
  RESET & BASICS
====================================================
*/
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}

/*
====================================================
  TESTIMONIAL SECTION (Was Kunden sagen)
====================================================
*/
.testimonial-section {
  background: var(--gray-light);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
}

.testimonial-section h2 {
  font-size: 2.2rem;
  color: var(--blue);
  margin-bottom: 3rem;
}

.testimonial-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 18px;
  box-sizing: border-box;
}

.testimonial-box {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 1s cubic-bezier(.68,-0.55,.27,1.55), opacity 2s ease;
  padding: 2rem;
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
}

.testimonial-box.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}

.testimonial-box.exit {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.testimonial-author {
  font-weight: bold;
  color: var(--gray-dark);
}

body.darkmode .testimonial-section {
  background: #2a2a2a;
}

body.darkmode .testimonial-box {
  background: #1c1c1e;
  color: #eeeeee;
}

body.darkmode .testimonial-text {
  color: #dddddd;
}

body.darkmode .testimonial-author {
  color: #ffffff;
}

/*
====================================================
BURGER MENU & RESPONSIVE NAVIGATION
====================================================
*/
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--blue);
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  nav.main-nav {
    display: none !important;
  }
  .burger {
    display: block !important;
  }
}

.mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 85px;
    left: 0;
    background: white;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-nav a {
    padding: 0.8rem 0;
    text-decoration: none;
    color: var(--blue);
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.mobile-nav.show {
    display: flex;
}

/*
====================================================
DARKMODE
====================================================
*/
body.darkmode {
    background-color: #2a2a2a;
    color: #f0f0f0;
}

body.darkmode .sticky-header,
body.darkmode footer,
body.darkmode .kontakt-section,
body.darkmode .leistungen-section,
body.darkmode .why-cw,
body.darkmode .leistung-box,
body.darkmode .why-box,
body.darkmode .testimonial-box {
    background-color: #1c1c1e;
    color: #f0f0f0;
}

body.darkmode .leistung-box.alt {
    background-color: #2a2a2a;
}

body.darkmode .leistung-text.centered {
    background-color: transparent;
    color: #f0f0f0;
}

body.darkmode .leistung-text.centered i {
    color: #66bfff;
}

body.darkmode .leistung-text.centered h3 {
    color: #ffffff;
}

body.darkmode .leistung-text.centered p {
    color: #dddddd;
}

body.darkmode a {
    color: #7ac7ff;
}

body.darkmode a:hover {
    color: #a8dcff;
}

body.darkmode .leistung-box,
body.darkmode .why-box {
    box-shadow: none;
    border-color: #333;
}

body.darkmode .slider {
    background-color: #666;
}

body.darkmode .slider:before {
    background-color: #fff;
}

body.darkmode h1,
body.darkmode h2,
body.darkmode h3 {
    color: #ffffff;
}

body.darkmode p {
    color: #dddddd;
}

body.darkmode #backToTop {
  background: #444;
  color: #fff;
}
body.darkmode #backToTop:hover {
  background: #666;
}

body.darkmode .about-me-section {
  background: #1c1c1e;
  color: #eeeeee;
}

body.darkmode .about-text h2,
body.darkmode .about-text h3 {
  color: #ffffff;
}

body.darkmode .about-text p,
body.darkmode .about-text li {
  color: #dddddd;
}

body.darkmode .about-img img {
  box-shadow: none;
}

body.darkmode .impressum-section {
  background: #1c1c1e;
  color: #eeeeee;
}

body.darkmode .impressum-section h1,
body.darkmode .impressum-section h2 {
  color: #ffffff;
}

body.darkmode .impressum-section p {
  color: #dddddd;
}

/* ===== DARKMODE: MOBILE NAVIGATION ===== */
body.darkmode .mobile-nav {
    background: #1c1c1e;
}

body.darkmode .mobile-nav a {
    color: #eeeeee;
    border-color: #333;
}

/*
====================================================
FADE-IN
====================================================
*/
.fadein-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fadein-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/*
====================================================
HEADER 
====================================================
*/

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 40px;
}

nav.main-nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--blue);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav.main-nav a:hover {
    color: #004f7f;
}

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--blue);
}

/*
====================================================
HERO 
====================================================
*/
.hero {
    position: relative;
    height: 100vh;
    background: url('/data/hero.webp') center center / cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 1.2s ease-out forwards;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--blue);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: #004f7f;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
====================================================
WHY & ABOUT SELECTION
====================================================
*/
.why-cw {
    background: var(--gray-light);
    padding: 5rem 2rem;
    text-align: center;
}

.why-title {
    font-size: 2.2rem;
    color: var(--blue);
    margin-bottom: 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-box {
    background: white;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.why-box i {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.why-box h3 {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.why-box p {
    font-size: 1rem;
    color: var(--text-dark);
}

/* ===== ABOUT ME SECTION ===== */
.about-me-section {
  background: var(--white);
  padding: 5rem 2rem;
  color: var(--text-dark);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: space-between;
}

.about-text {
  flex: 1 1 60%;
  min-width: 300px;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.about-text h3 {
  font-size: 1.3rem;
  color: var(--gray-dark);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-text ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.about-text li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.about-img {
  flex: 1 1 35%;
  min-width: 240px;
  text-align: center;
}

.about-img img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/*
====================================================
LEISTUNGEN SELECTION
====================================================
*/
.leistungen-section {
    background: var(--white);
    padding: 5rem 2rem;
}

.leistungen-intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.leistungen-intro h2 {
    font-size: 2.2rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.leistungen-intro p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.leistung-box {
    padding: 3rem 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.leistung-box.alt {
    background: var(--gray-light);
}

.leistung-text.centered {
    max-width: 700px;
    margin: 0 auto;
}

.leistung-text.centered i {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 1rem;
    display: inline-block;
}

.leistung-text.centered h3 {
    font-size: 1.3rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.leistung-text.centered p {
    font-size: 1rem;
    color: var(--text-dark);
}

/*
====================================================
KONTAKT SELECTION
====================================================
*/
.kontakt-section {
    background: var(--gray-light);
    padding: 5rem 2rem;
    text-align: center;
}

.kontakt-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.kontakt-section h2 {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.kontakt-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.kontakt-daten a {
    display: inline-block;
    margin: 0.5rem 0;
    font-size: 1rem;
    color: var(--blue);
    text-decoration: none;
}

.kontakt-daten a i {
    margin-right: 0.5rem;
}

.kontakt-daten a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.95rem;
    }
}

/*
====================================================
BACK TO TOP
====================================================
*/
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  z-index: 999;
}

#backToTop:hover {
  background: #004f7f;
}

/* ===== IMPRESSUM SECTION ===== */
.impressum-section {
  background: var(--gray-light);
  padding: 5rem 2rem;
  color: var(--text-dark);
}

.impressum-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.impressum-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.impressum-section h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--gray-dark);
}

.impressum-section p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/*
====================================================
COOKIE BANNER 
====================================================
*/
.cookie-banner {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  z-index: 99999 !important;
  font-size: 0.95rem;
  pointer-events: auto !important;
  height: auto;
  min-height: unset;
}

.cookie-banner.hidden {
  display: none !important;
}

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

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: white;
  text-decoration: underline;
}

.cookie-banner button {
  background: white;
  color: var(--blue);
  border: none;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

body.darkmode .cookie-banner {
  background: #1c1c1e;
  color: #eee;
}

body.darkmode .cookie-banner button {
  background: #eee;
  color: #1c1c1e;
}

.menu-overlay.active {
  z-index: 999 !important;
}

/*
====================================================
FOOTER 
====================================================
*/
footer {
    background: white;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}

footer a {
    color: #666;
    margin: 0 1rem;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
