/*
Theme Name: Allesleergefegt Child
Theme URI: https://allesleergefegt.de
Author: online-findbar.de
Description: Child-Theme fuer allesleergefegt.de basierend auf LeadPlatter Roofing
Template: leadplatter-roofing
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: allesleergefegt-child
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --alg-primary:     #8c6d53;
  --alg-primary-dk:  #7a5c43;
  --alg-text:        #1a1a1a;
  --alg-text-muted:  #555555;
  --alg-bg:          #f5f2ed;
  --alg-bg-dark:     #241f18;
  --alg-border:      #e2dbd2;
  --alg-white:       #ffffff;
  --alg-font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --alg-gap-section: 100px;
  --alg-gap-section-sm: 60px;
}

/* ============================================================
   GLOBAL RESET — Parent-Theme-Overrides
   ============================================================ */

/* Seitenweiter Cremeton-Hintergrund */
body,
.wp-site-blocks,
.entry-content,
.wp-block-post-content {
  background-color: var(--alg-bg) !important;
  font-family: var(--alg-font) !important;
  color: var(--alg-text) !important;
}

/* Kein globaler blockGap-Abstand zwischen Top-Level-Gruppen */
.wp-site-blocks > * + *,
.wp-block-post-content > * + * {
  margin-block-start: 0 !important;
}

/* Headings: leichter, eleganter — kein 900 */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--alg-font) !important;
  font-weight: 700 !important;
  color: var(--alg-text) !important;
  line-height: 1.15 !important;
}

/* Fliesstext */
p, li, td {
  font-family: var(--alg-font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--alg-text);
}

/* Links global */
a {
  color: var(--alg-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ============================================================
   BUTTONS — Parent-Theme komplett ueberschreiben
   ============================================================ */
.wp-block-button__link,
.wp-element-button {
  border-radius: 0 !important;
  font-family: var(--alg-font) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 15px 32px !important;
  transition: background-color 0.2s, color 0.2s !important;
}

/* Primaer-Button */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background-color: var(--alg-text) !important;
  color: var(--alg-white) !important;
  border: 2px solid var(--alg-text) !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background-color: var(--alg-primary) !important;
  border-color: var(--alg-primary) !important;
}

/* Outline-Button */
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--alg-text) !important;
  border: 2px solid var(--alg-text) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--alg-text) !important;
  color: var(--alg-white) !important;
}

/* CTA-Button dunkel (Kontakt-Sektion) */
.alg-btn-cta .wp-block-button__link {
  background-color: var(--alg-primary) !important;
  color: var(--alg-white) !important;
  border: 2px solid var(--alg-primary) !important;
  width: 100% !important;
  text-align: center !important;
  display: block !important;
}
.alg-btn-cta .wp-block-button__link:hover {
  background-color: var(--alg-primary-dk) !important;
  border-color: var(--alg-primary-dk) !important;
}

/* ============================================================
   QUOTE-BLOCK — Parent-Styles wegbuersten
   ============================================================ */
.wp-block-quote {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-style: normal !important;
  font-weight: 400 !important;
}
.wp-block-quote p {
  font-family: var(--alg-font) !important;
  font-style: italic !important;
  font-weight: 300 !important;
  line-height: 1.5 !important;
}
.wp-block-quote cite {
  font-family: var(--alg-font) !important;
  font-style: normal !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--alg-primary) !important;
  display: block !important;
  margin-top: 16px !important;
}

/* ============================================================
   SEKTIONS-WRAPPER — alle wp-block-group auf Vollbreite
   ============================================================ */
.wp-block-group {
  box-shadow: none !important;
}

/* Innerer Content-Wrapper: max 1200px, zentriert */
.alg-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ============================================================
   SEKTION 1: HERO
   ============================================================ */
.alg-hero {
  background-color: var(--alg-bg) !important;
  padding: 80px 60px 100px !important;
}

.alg-hero .wp-block-heading[level="1"],
.alg-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: var(--alg-text) !important;
  margin-bottom: 28px !important;
  letter-spacing: -0.01em !important;
}

/* "Fachgerecht & Diskret." kursiv + Primaerfarbe */
.alg-hero h1 em,
.alg-hero h1 .has-inline-color {
  font-style: italic !important;
  color: var(--alg-primary) !important;
  font-weight: 700 !important;
}

.alg-hero p {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: var(--alg-text-muted) !important;
  max-width: 480px !important;
  margin-bottom: 36px !important;
}

/* Video-Label unter dem Platzhalter */
.alg-video-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alg-text-muted);
  margin-top: 10px;
}

/* ============================================================
   SEKTION 2: UTILITY-BAR
   ============================================================ */
.alg-utility-bar {
  background-color: var(--alg-white) !important;
  border-top: 1px solid var(--alg-border) !important;
  border-bottom: 1px solid var(--alg-border) !important;
  padding: 28px 60px !important;
}

.alg-utility-bar p {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--alg-text) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Icon-Kreis vor den Items */
.alg-utility-bar .wp-block-column {
  border-right: 1px solid var(--alg-border);
  padding: 8px 24px;
}
.alg-utility-bar .wp-block-column:last-child {
  border-right: none;
}

/* ============================================================
   SEKTION 3: LEISTUNGEN
   ============================================================ */
.alg-leistungen {
  background-color: var(--alg-bg) !important;
  padding: 100px 60px !important;
}

.alg-section-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--alg-primary) !important;
  margin-bottom: 16px !important;
  display: block !important;
}

.alg-leistungen h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem) !important;
  font-weight: 700 !important;
  margin-bottom: 64px !important;
  color: var(--alg-text) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}

/* Leistungskarten */
.alg-card {
  background: var(--alg-white) !important;
  padding: 48px 36px !important;
  border: 1px solid var(--alg-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: box-shadow 0.25s ease !important;
}
.alg-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
}

/* Icon-Bereich oben in der Karte */
.alg-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: var(--alg-primary);
  opacity: 0.8;
}

.alg-card h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--alg-text) !important;
  margin-bottom: 14px !important;
}

.alg-card p {
  font-size: 0.92rem !important;
  color: var(--alg-text-muted) !important;
  line-height: 1.68 !important;
  margin-bottom: 28px !important;
}

.alg-card a.alg-more {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--alg-text) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.alg-card a.alg-more::after {
  content: '\2192';
  font-size: 0.9rem;
}
.alg-card a.alg-more:hover {
  color: var(--alg-primary) !important;
}

/* ============================================================
   SEKTION 4+5: VORGEHENSWEISE + ZITAT (kombiniert wie im Design)
   ============================================================ */
.alg-prozess-zitat {
  background-color: var(--alg-bg) !important;
  padding: 100px 60px !important;
}

.alg-prozess-zitat h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin-bottom: 56px !important;
  color: var(--alg-text) !important;
  letter-spacing: -0.01em !important;
}

/* Prozess-Nummern */
.alg-step-num {
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  color: var(--alg-text-muted) !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 4px !important;
  opacity: 0.5 !important;
}

.alg-step-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--alg-text) !important;
  margin-bottom: 8px !important;
}

.alg-step-text {
  font-size: 0.9rem !important;
  color: var(--alg-text-muted) !important;
  line-height: 1.65 !important;
  padding-bottom: 28px !important;
  border-bottom: 1px solid var(--alg-border) !important;
  margin-bottom: 28px !important;
}

/* Zitat-Box (Overlay-Card auf dem Vorher-Nachher-Bild) */
.alg-quote-box {
  background: var(--alg-white) !important;
  padding: 32px 36px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10) !important;
}

.alg-quote-mark {
  font-size: 2.5rem;
  color: var(--alg-primary);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 8px;
}

.alg-quote-text {
  font-size: 1rem !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: var(--alg-text) !important;
  margin-bottom: 14px !important;
}

.alg-quote-author {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--alg-text-muted) !important;
}

/* Vorher/Nachher Labels auf Bildern */
.alg-bild-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--alg-text);
  color: var(--alg-white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
}

/* ============================================================
   SEKTION 5: UEBER UNS
   ============================================================ */
.alg-ueber-uns {
  background-color: var(--alg-white) !important;
  padding: 100px 60px !important;
}

.alg-ueber-uns h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin-bottom: 36px !important;
  letter-spacing: -0.01em !important;
}

.alg-ueber-uns h3,
.alg-ueber-uns h4 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  font-style: italic !important;
  color: var(--alg-text) !important;
  margin-bottom: 10px !important;
  margin-top: 28px !important;
}

.alg-ueber-uns p {
  font-size: 0.95rem !important;
  color: var(--alg-text-muted) !important;
  line-height: 1.75 !important;
}

/* Signatur */
.alg-signature {
  font-size: 1.25rem !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--alg-primary) !important;
  margin-top: 32px !important;
  display: block !important;
}
.alg-signature-sub {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--alg-text-muted) !important;
  margin-top: 4px !important;
  display: block !important;
}

/* Foto-Rahmen (leicht versetzt wie im Design) */
.alg-foto-wrap {
  position: relative;
}
.alg-foto-bg {
  position: absolute;
  bottom: -16px;
  left: -16px;
  right: 16px;
  top: 16px;
  background: var(--alg-border);
  z-index: 0;
}
.alg-foto-inner {
  position: relative;
  z-index: 1;
}

/* ============================================================
   SEKTION 6: KONTAKT (dunkler Hintergrund)
   ============================================================ */
.alg-kontakt {
  background-color: var(--alg-bg-dark) !important;
  padding: 80px 60px !important;
}

.alg-kontakt h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: var(--alg-white) !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.01em !important;
}

.alg-kontakt p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

.alg-kontakt .alg-contact-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.alg-kontakt .alg-icon-circle {
  width: 36px;
  height: 36px;
  background: var(--alg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.alg-kontakt a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem !important;
}

/* Formular-Panel (helles Kaestchen auf dunklem BG) */
.alg-form-panel {
  background: var(--alg-bg) !important;
  padding: 36px !important;
}

.alg-form-panel label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alg-text-muted);
  margin-bottom: 6px;
}

.alg-form-panel input,
.alg-form-panel textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--alg-border);
  background: var(--alg-white);
  font-family: var(--alg-font);
  font-size: 0.9rem;
  color: var(--alg-text);
  border-radius: 0;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

.alg-form-panel input:focus,
.alg-form-panel textarea:focus {
  border-color: var(--alg-primary);
}

.alg-form-panel textarea {
  height: 110px;
  resize: vertical;
}

.alg-form-panel button {
  width: 100%;
  background-color: var(--alg-primary);
  color: var(--alg-white);
  border: none;
  padding: 16px;
  font-family: var(--alg-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.2s;
}
.alg-form-panel button:hover {
  background-color: var(--alg-primary-dk);
}

/* Zwei-Spalten-Layout im Formular (Name + Telefon nebeneinander) */
.alg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ============================================================
   PLATZHALTER-BLOECKE
   ============================================================ */
.alg-placeholder {
  background-color: #ddd8d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--alg-font);
}

/* Video-Platzhalter mit Play-Button */
.alg-video-placeholder {
  background-color: #c8c0b4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.alg-video-placeholder .alg-play {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--alg-text);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ============================================================
   COLUMNS — globaler Gap-Reset
   ============================================================ */
.wp-block-columns {
  gap: 32px !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.wp-block-column {
  margin-block-start: 0 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .alg-hero,
  .alg-utility-bar,
  .alg-leistungen,
  .alg-prozess-zitat,
  .alg-ueber-uns,
  .alg-kontakt {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .alg-hero {
    padding-top: 56px !important;
    padding-bottom: 64px !important;
  }

  .alg-leistungen,
  .alg-prozess-zitat,
  .alg-ueber-uns {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .wp-block-columns {
    flex-direction: column !important;
  }

  .alg-form-row {
    grid-template-columns: 1fr;
  }
}


/* === HOMEPAGE: Page-Title ausblenden === */
.page-title,
.entry-title,
.wp-block-post-title,
h1.entry-title,
.page .entry-header,
.page .entry-header h1,
.site-main .entry-header {
  display: none !important;
}

/* === VORGEHENSWEISE: Zahlen gross + duenn === */
.alg-prozess-zitat span[style*='color:#bbb'] {
  font-size: 4.5rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}


/* ============================================================
   SEITENTITEL KOMPLETT AUSBLENDEN
   ============================================================ */
.page-title,
.entry-title,
.wp-block-post-title,
.is-style-zypento-page-heading,
h1.entry-title,
main > h1:first-child {
  display: none !important;
}

/* Wrapper-Block mit Titel-Banner komplett entfernen */
.is-style-leadplatter-roofing-y70-a3 {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Main padding-top wenn Titel-Block weg */
main.wp-block-group {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


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

/* Parent-Theme Header komplett ausblenden */
.is-style-leadplatter-roofing-header-one-dark,
.leadplatter-roofing-header-one-dark-top,
.leadplatter-roofing-header-one-dark-meta {
  display: none !important;
}

/* Unser Header-Wrapper */
.alg-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e8e3dc !important;
  padding: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06) !important;
}

.alg-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.alg-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.alg-logo svg {
  display: block;
}

/* Nav-Links */
.alg-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.alg-nav a {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.15s;
  position: relative;
  padding-bottom: 2px;
}

.alg-nav a:hover {
  color: #8c6d53;
}

/* Aktiver Link: Unterstrich in Primaerfarbe */
.alg-nav a.current,
.alg-nav a[aria-current="page"] {
  color: #8c6d53;
  border-bottom: 2px solid #8c6d53;
}

/* CTA-Button Header */
.alg-header-cta {
  display: inline-block;
  flex-shrink: 0;
  background: #1a1a1a;
  color: #ffffff !important;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 0;
  transition: background-color 0.2s;
  white-space: nowrap;
}
.alg-header-cta:hover {
  background: #8c6d53 !important;
  color: #ffffff !important;
  text-decoration: none;
}

/* Mobile: Nav ausblenden unter 768px */
@media (max-width: 768px) {
  .alg-nav {
    display: none;
  }
  .alg-header-inner {
    padding: 0 20px;
    justify-content: space-between;
  }
  .alg-header-cta {
    font-size: 0.65rem;
    padding: 11px 16px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

/* Parent-Theme Footer ausblenden */
.is-style-leadplatter-roofing-y10a4 {
  display: none !important;
}

/* Unser Footer */
.alg-footer {
  background-color: #222222 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.alg-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px;
}

.alg-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* Footer Logo */
.alg-footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Footer Nav */
.alg-footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.alg-footer-nav a {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55) !important;
  text-decoration: none;
  transition: color 0.15s;
}
.alg-footer-nav a:hover {
  color: rgba(255,255,255,0.9) !important;
}

/* Footer Copyright */
.alg-footer-copy {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35) !important;
  margin: 0;
  white-space: nowrap;
}

/* Parent-Footer-Block mit altem Inhalt weg */
.wp-block-group.has-accent-3-background-color {
  display: none !important;
}

/* Alle Text+Links im Footer generell hell */
footer,
.alg-footer,
.alg-footer * {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .alg-footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .alg-footer-nav {
    justify-content: flex-start;
    gap: 16px;
  }
  .alg-footer-copy {
    white-space: normal;
  }
}
