/*
Theme Name: FacilityPro Senselino V3
Theme URI: https://facility.senselino.ch
Author: Grandesign / Bruno Grandinetti
Description: Ein schlankes WordPress-Theme fuer Facility Management, Hauswartung, Raeumung und Reinigungsdienste.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: facilitypro-start
*/

/* ---------------------------------------------------------
   Root Variablen
--------------------------------------------------------- */

:root {
  --primary: #123c69;
  --primary-dark: #0b2745;
  --accent: #f4a261;
  --bg: #f7f9fc;
  --text: #17202a;
  --muted: #657282;
  --card: #ffffff;
  --border: #e5eaf1;
  --shadow: 0 18px 45px rgba(18, 60, 105, 0.12);
}

/* ---------------------------------------------------------
   Global
--------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

/* ---------------------------------------------------------
   Logo / Brand
--------------------------------------------------------- */

.brand {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  gap: 2px;
  line-height: 1.1;
  flex-shrink: 0;
}

.brand small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 2px;
}

.brand-logo {
  width: var(--logo-width, 170px);
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.custom-logo {
  max-height: 72px;
  width: auto;
}

/* ---------------------------------------------------------
   Navigation Desktop
--------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 650;
  font-size: 0.95rem;
}

.nav ul,
.nav-menu,
.site-header nav ul,
.site-header .menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav li,
.nav-menu li,
.site-header nav li,
.site-header .menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav a,
.nav-menu a,
.site-header nav a,
.site-header .menu a {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav-menu a:hover,
.site-header nav a:hover,
.site-header .menu a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */

.btn,
.wp-block-button__link,
input[type="submit"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #1b2430;
  font-weight: 800;
  padding: 13px 22px;
  box-shadow: 0 10px 20px rgba(244, 162, 97, 0.25);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(18, 60, 105, 0.25);
}

.header-cta {
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: none !important;
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 162, 97, 0.22), transparent 25%),
    linear-gradient(135deg, #0b2745 0%, #123c69 56%, #1a5f8f 100%);
  color: #ffffff;
  padding: 86px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: #ffd6ad;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.02;
  margin: 12px 0 20px;
  letter-spacing: -0.055em;
}

.hero p {
  font-size: 1.14rem;
  color: rgba(255, 255, 255, 0.84);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
}

.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #1b2430;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex: 0 0 24px;
}

/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */

.section {
  padding: 78px 0;
}

.section-title {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin: 0 0 12px;
  letter-spacing: -0.045em;
  color: var(--primary-dark);
}

.section-title p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------------------------------------------------------
   Cards / Grid
--------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(18, 60, 105, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.28rem;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------
   Split Layout / Highlights
--------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.highlight {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 13px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

/* ---------------------------------------------------------
   CTA
--------------------------------------------------------- */

.cta {
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: 32px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------------------
   Kontaktformular
--------------------------------------------------------- */

.contact-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-weight: 750;
  color: var(--primary-dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #ffffff;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.site-footer {
  background: #091d33;
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 10px;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-menu li {
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------------------------------------------------------
   WordPress Content
--------------------------------------------------------- */

.page-content {
  padding: 72px 0;
}

.wp-block-group,
.wp-block-columns {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------
   Back to Top Button
--------------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  z-index: 9999;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   Desktop Fix
--------------------------------------------------------- */

@media (min-width: 821px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .nav {
    display: flex !important;
  }

  .header-cta {
    display: inline-flex !important;
  }
}

/* ---------------------------------------------------------
   Mobile / Tablet Navigation
--------------------------------------------------------- */

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .header-inner {
    position: relative;
    padding: 12px 0;
    gap: 12px;
  }

  .brand-logo {
    width: min(var(--logo-width, 135px), 135px);
    max-height: 54px;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .header-cta {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 999px;
    background: var(--primary);
    border: none;
    box-shadow: 0 10px 20px rgba(18, 60, 105, 0.22);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    cursor: pointer;
    flex: 0 0 46px;
  }

  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(18, 60, 105, 0.16);
    padding: 16px;
    z-index: 999;
  }

  .nav.is-open {
    display: block !important;
  }

  .nav ul,
  .nav-menu,
  .site-header nav ul,
  .site-header .menu {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 4px;
    width: 100%;
  }

  .nav li,
  .nav-menu li,
  .site-header nav li,
  .site-header .menu li {
    width: 100%;
  }

  .nav a,
  .nav-menu a,
  .site-header nav a,
  .site-header .menu a {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 750;
  }

  .nav a:hover,
  .nav-menu a:hover,
  .site-header nav a:hover,
  .site-header .menu a:hover {
    background: var(--bg);
    color: var(--primary);
  }

  .hero {
    padding: 60px 0;
  }

  .hero-grid,
  .split,
  .cta {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .cta {
    padding: 28px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

/* ---------------------------------------------------------
   Kleine Smartphones
--------------------------------------------------------- */

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding: 48px 0 56px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card {
    padding: 22px;
    border-radius: 22px;
  }

  .section {
    padding: 56px 0;
  }

  .card {
    padding: 24px;
  }
}
