/*
Theme Name: Digitale Effizienz
Theme URI: https://www.digitale-effizienz.de
Author: Marcel Rubner
Author URI: https://www.digitale-effizienz.de
Description: Custom WordPress Theme für digitale-effizienz.de – migriert von Squarespace
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: digitale-effizienz
*/

/* ============================================================
   DESIGN TOKENS – exakt aus Squarespace übernommen
   ============================================================ */
:root {
  /* Farben */
  --color-white:       #F8F8FF;
  --color-teal:        #7BC4C4;
  --color-pink:        #E6007E;
  --color-coral:       #FF6B6B;
  --color-dark:        #007D8C;
  --color-black:       #1a1a1a;
  --color-text:        #2d2d2d;
  --color-text-light:  #555555;
  --color-bg:          #F8F8FF;
  --color-footer-bg:   #1a1a1a;
  --color-footer-text: #cccccc;

  /* Typografie */
  --font-main: 'Roboto Slab', Georgia, serif;
  --font-size-base: 1rem;       /* 16px */
  --font-size-sm:   0.9rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.5rem;
  --font-size-2xl:  2rem;
  --font-size-3xl:  2.75rem;
  --font-size-4xl:  3.5rem;

  /* Layout */
  --max-width: 1800px;
  --content-padding: 3vw;       /* Squarespace: Rand 3vw */
  --section-padding: 80px;
  --section-padding-sm: 48px;

  /* Buttons */
  --btn-radius: 8px;
  --btn-padding: 14px 32px;
  --btn-font-size: 1rem;
  --btn-font-weight: 700;

  /* Transitions */
  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-pink);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-dark);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
li { margin-bottom: 0.4em; }

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.de-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.de-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.de-section--sm {
  padding-top: var(--section-padding-sm);
  padding-bottom: var(--section-padding-sm);
}

/* Two-column layout (Text + Bild) */
.de-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.de-split--reverse {
  direction: rtl;
}
.de-split--reverse > * {
  direction: ltr;
}

/* Cards Grid */
.de-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.de-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.de-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.de-card__icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.de-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-black);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.de-btn {
  display: inline-block;
  padding: var(--btn-padding);
  font-family: var(--font-main);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
}

/* Primär – Pink ausgefüllt */
.de-btn--primary {
  background-color: var(--color-pink);
  color: #ffffff;
  border-color: var(--color-pink);
}
.de-btn--primary:hover {
  background-color: #c4006b;
  border-color: #c4006b;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Sekundär – Pink Outline */
.de-btn--secondary {
  background-color: transparent;
  color: var(--color-pink);
  border-color: var(--color-pink);
}
.de-btn--secondary:hover {
  background-color: var(--color-pink);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Tertiär – nur Text mit Unterstrich */
.de-btn--tertiary {
  background: none;
  color: var(--color-pink);
  border: none;
  padding: 0;
  text-decoration: underline;
  font-weight: 700;
}
.de-btn--tertiary:hover {
  color: var(--color-dark);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.de-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 16px 0;
}

.de-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.de-header__logo img {
  height: 48px;
  width: auto;
}

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

.de-nav a {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-black);
  text-decoration: none;
  transition: color var(--transition);
}
.de-nav a:hover,
.de-nav a.current-menu-item {
  color: var(--color-pink);
}

/* Mobile Toggle */
.de-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.de-nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-black);
  transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.de-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.de-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,26,26,0.65) 0%,
    rgba(26,26,26,0.25) 60%,
    transparent 100%
  );
  z-index: 1;
}

.de-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: #ffffff;
}

.de-hero__content h1 {
  color: #ffffff;
  margin-bottom: 28px;
  line-height: 1.1;
}

/* ============================================================
   SECTION COLORS
   ============================================================ */
.de-bg-white    { background-color: #ffffff; }
.de-bg-light    { background-color: var(--color-bg); }
.de-bg-teal     { background-color: var(--color-teal); color: #ffffff; }
.de-bg-dark     { background-color: var(--color-dark); color: #ffffff; }
.de-bg-teal h2,
.de-bg-teal h3,
.de-bg-dark h2,
.de-bg-dark h3  { color: #ffffff; }

/* ============================================================
   FEATURE LIST (Checkmarks)
   ============================================================ */
.de-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em 0;
}
.de-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: var(--font-size-lg);
}
.de-features li::before {
  content: '✓';
  color: var(--color-pink);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   QUOTE / TESTIMONIAL
   ============================================================ */
.de-quote {
  background: var(--color-teal);
  color: #ffffff;
  border-radius: 12px;
  padding: 40px 48px;
  text-align: center;
}
.de-quote p {
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-style: italic;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.de-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 60px 0 32px;
}

.de-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.de-footer h4 {
  color: #ffffff;
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.de-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.de-footer ul li { margin-bottom: 8px; }
.de-footer a {
  color: var(--color-footer-text);
  font-size: var(--font-size-sm);
}
.de-footer a:hover { color: var(--color-teal); }

.de-footer p { font-size: var(--font-size-sm); }

.de-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--font-size-sm);
}

/* ============================================================
   ANIMATIONS – "Gleiten" wie in Squarespace (Slide-up, Mittel)
   ============================================================ */
@keyframes de-slide-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.de-animate {
  opacity: 0;
  animation: de-slide-up 0.55s ease forwards;
}
.de-animate.is-visible {
  animation-play-state: running;
}

/* Staggered delays für Kinder-Elemente */
.de-stagger > *:nth-child(1) { animation-delay: 0s; }
.de-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.de-stagger > *:nth-child(3) { animation-delay: 0.2s; }
.de-stagger > *:nth-child(4) { animation-delay: 0.3s; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.de-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: var(--font-size-sm);
}

.de-form input[type="text"],
.de-form input[type="email"],
.de-form input[type="tel"],
.de-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 10px 18px;          /* Squarespace: 10px oben/unten, 10px links/rechts */
  border: 1px solid #cccccc;
  border-radius: 50px;         /* Squarespace: Feldform "Pille" */
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  background: #ffffff;
  transition: border-color var(--transition);
  margin-bottom: 16px;
}

.de-form textarea,
.wpcf7 textarea {
  border-radius: 12px;         /* Textarea hat keinen Pillen-Radius */
  min-height: 140px;
  resize: vertical;
}

.de-form input:focus,
.de-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-teal);
}

.wpcf7 input[type="submit"] {
  background-color: var(--color-pink);
  color: #ffffff;
  border: 2px solid var(--color-pink);
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  font-family: var(--font-main);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.wpcf7 input[type="submit"]:hover {
  background-color: #c4006b;
  border-color: #c4006b;
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }

  .de-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
    --content-padding: 5vw;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .de-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .de-split--reverse {
    direction: ltr;
  }

  .de-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 24px var(--content-padding);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .de-nav.is-open { display: flex; }

  .de-nav-toggle { display: flex; }

  .de-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .de-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .de-hero {
    min-height: 55vh;
  }
}
