/*
Theme Name: FibraMate ETICS
Theme URI: https://fibramate.com
Author: FibraMate ETICS GmbH
Author URI: https://fibramate.com
Description: Offizielles Theme fuer FibraMate ETICS GmbH - kompatibel mit Elementor Pro.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fibramate-etics
Tags: business, custom-colors, custom-logo, custom-menu, featured-images
*/

/* ===== MARKENFARBEN ===== */
:root {
  /* FibraMate ETICS Corporate */
  --fm-blue:    #2680FF;
  --fm-dark:    #000DF2;
  --fm-light:   #DCE9FB;
  --fm-lighter: #EEF4FE;

  /* MateFloor */
  --mf-green:   #127D09;
  --mf-blue:    #001BA6;

  /* FibraMate Produkt (Glasfaser) */
  --fp-green:   #127D09;
  --fp-yellow:  #FFA626;

  /* K-Uni */
  --ku-blue:    #3A78C9;
  --ku-dark:    #1E4E8C;

  /* Neutrals */
  --white:   #ffffff;
  --light:   #f5f7fb;
  --dark-bg: #080d2e;
  --text:    #1a1e35;
  --grey:    #6b7280;
  --border:  #e2e6ee;
  --radius:  8px;
  --shadow:  0 6px 24px rgba(10,20,60,.10);
  --transition: .25s ease;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  margin: 0;
}
a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== ELEMENTOR FULLWIDTH ===== */
.elementor-section.elementor-section-stretched { left: 0 !important; }

/* ===== SITE HEADER (heller Blauton) ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--fm-light);
  border-bottom: 1px solid #c8d8ed;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(0,13,242,.10); }
.site-header .nav-logo { height: 50px; width: auto; }
.site-header .nav-link { color: var(--fm-dark); font-weight: 600; font-size: .92rem; }
.site-header .nav-link:hover { color: var(--fm-blue); }
.site-header .nav-cta {
  background: var(--fm-blue) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius);
}

/* ===== GLOBALE BUTTONS ===== */
.elementor-button.fm-primary {
  background: var(--fm-blue) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.elementor-button.fm-primary:hover { background: #1a6fe0 !important; }

/* ===== SECTION-LABELS ===== */
.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px;
  background: var(--fm-blue); color: #fff;
}
.section-label.green  { background: var(--fp-green); }
.section-label.mf     { background: var(--mf-blue);  }
.section-label.kuni   { background: var(--ku-dark);  }
.section-label.yellow { background: var(--fp-yellow); color: var(--text); }

/* ===== ICON CIRCLE ===== */
.icon-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--fm-lighter);
  display: flex; align-items: center; justify-content: center;
  color: var(--fm-dark);
  flex-shrink: 0;
}
.icon-circle svg { width: 26px; height: 26px; }

/* ===== EINHEITLICHE PRODUKTKARTE ===== */
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10,20,60,.08);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  border-top: 3px solid var(--cat-color, var(--fm-blue));
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-card-img {
  height: 180px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-card-img img        { width: 100%; height: 100%; object-fit: cover; }
.product-card-img.contain img{ object-fit: contain; padding: 18px; }
.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--cat-color, var(--fm-blue));
  color: #fff;
  font-size: .65rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
}
.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h4 {
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin: 0 0 12px;
}

.spec-list { list-style: none; margin: 0 0 auto; padding: 0; }
.spec-list li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; padding: 6px 0;
  border-bottom: 1px solid var(--light);
  color: var(--grey);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li strong { color: var(--text); font-weight: 600; }

.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  background: var(--cat-bg, #f0f5ff);
  color: var(--cat-color, var(--fm-blue));
  font-size: .7rem; font-weight: 600;
  padding: 3px 9px; border-radius: 3px;
  border: 1px solid var(--cat-border, rgba(38,128,255,.15));
}

/* ===== KATEGORIE-HEADER ===== */
.cat-header {
  display: flex; align-items: center; gap: 20px;
  padding-bottom: 22px; margin-bottom: 36px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.cat-header::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 72px; height: 2px; background: var(--cat-color, var(--fm-blue));
}
.cat-logo-wrap {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 10px; flex-shrink: 0;
}
.cat-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-eyebrow {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cat-color, var(--fm-blue));
}
.cat-title { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 0; }

/* ===== K-UNI PROFILE ILLUSTRATION ===== */
.profile-illust {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cat-color) 0%, var(--cat-dark, #1E4E8C) 100%);
  display: flex; align-items: center; justify-content: center;
}
.profile-illust svg { width: 70px; height: 70px; color: rgba(255,255,255,.95); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,.65);
  padding: 64px 0 28px;
}
.site-footer a { color: rgba(255,255,255,.6); transition: color .25s; }
.site-footer a:hover { color: var(--fm-blue); }
.site-footer .footer-logo {
  background: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 16px;
}
.site-footer .footer-logo img { height: 36px; width: auto; }

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--fm-dark); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, background .25s;
  z-index: 99;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover   { background: var(--fm-blue); }
.scroll-top svg     { width: 18px; height: 18px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .cat-header  { flex-wrap: wrap; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
