/*
Theme Name: La Spina IT Service
Version: 2.0
*/

:root {
  --blue: #1f3b5c;
  --beige: #8a8766;
  --bg: #f7f7f5;
  --text: #2b2b2b;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: white;
}

/* HEADER */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 3px solid #1f3b5c;
  background: white;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--bg), #ffffff);
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  color: var(--blue);
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: #555;
}

.subline {
  font-size: 22px;
  margin-top: 20px;
  color: var(--beige);
  font-weight: bold;
}

/* BUTTONS */
.button {
  display: inline-block;
  padding: 14px 26px;
  margin: 10px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.button.whatsapp {
  background: #25D366;
}

/* SECTIONS */
.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.section h2 {
  color: var(--blue);
  font-size: 28px;
  margin-bottom: 15px;
}

/* BOX DESIGN (Flyer-Style) */
.box {
  background: var(--bg);
  border-left: 6px solid var(--blue);
  padding: 20px;
  margin-bottom: 20px;
}

.box.alt {
  border-left: 6px solid var(--beige);
}

/* TRUST AREA */
.trust {
  background: var(--bg);
  padding: 40px 20px;
  text-align: center;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 16px;
  border-radius: 50%;
}

/*
Theme Name: La Spina IT Service
Version: 2.0
*/

:root {
  --blue: #1f3b5c;
  --beige: #8a8766;
  --bg: #f7f7f5;
  --text: #2b2b2b;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: white;
}

/* HEADER */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 3px solid #1f3b5c;
  background: white;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--bg), #ffffff);
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  color: var(--blue);
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: #555;
}

.subline {
  font-size: 22px;
  margin-top: 20px;
  color: var(--beige);
  font-weight: bold;
}

/* BUTTONS */
.button {
  display: inline-block;
  padding: 14px 26px;
  margin: 10px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.button.whatsapp {
  background: #25D366;
}

/* SECTIONS */
.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.section h2 {
  color: var(--blue);
  font-size: 28px;
  margin-bottom: 15px;
}

/* BOX DESIGN (Flyer-Style) */
.box {
  background: var(--bg);
  border-left: 6px solid var(--blue);
  padding: 20px;
  margin-bottom: 20px;
}

.box.alt {
  border-left: 6px solid var(--beige);
}

/* TRUST AREA */
.trust {
  background: var(--bg);
  padding: 40px 20px;
  text-align: center;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 16px;
  border-radius: 50%;
}

/* HEADER KOMPLETT-REWRITE */
header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 0 !important; /* Weniger Abstand nach oben/unten */
  border-bottom: 3px solid #1f3b5c;
  background: white;
}

/* Versteckt ALLES im Header, was kein Logo und keine Nav ist */
header > *:not(a):not(nav):not(img.logo) {
  display: none !important;
}

/* Versteckt spezifisch den Bereich über dem Logo, falls es ein Link-Platzhalter ist */
header a:first-of-type:not(:has(img.logo)) {
  display: none !important;
}

/* Dein Logo-Design */
header img.logo {
  max-width: 250px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Desktop-Anpassung */
@media (min-width: 768px) {
  header img.logo {
    max-width: 320px !important;
  }
}

/* Navigation */
nav {
  margin-top: 15px;
  width: 100%;
}

/* ... dein restlicher Code ... */

/* ==========================================
   MENÜ DESIGN FIX
   ========================================== */
nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    flex-wrap: wrap;       /* Falls es viele Links sind, brechen sie um */
    justify-content: center; 
}

nav ul li {
    margin: 5px 15px;      /* Etwas mehr Abstand für Touch-Geräte */
}

nav ul li a {
    text-decoration: none;
    color: #1f3b5c; 
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s; /* Macht den Farbwechsel geschmeidiger */
}

nav ul li a:hover {
    color: #8a8766; 
}

/* FOOTER DESIGN */
footer {
    background: #1f3b5c; /* Dein Dunkelblau */
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.footer-nav a:hover {
    border-bottom: 1px solid #8a8766; /* Dein Beige */
}

/* Container für die Buttons */
.cta-container {
    display: flex;
    gap: 15px; /* Abstand zwischen den Buttons */
    justify-content: center; /* Mittig ausrichten */
    margin-top: 20px;
    flex-wrap: wrap; /* Für mobile Ansicht optimiert */
}

/* Gemeinsame Button-Styles */
.btn-primary, .btn-whatsapp {
    text-decoration: none !important;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    color: white !important;
    transition: transform 0.2s, background 0.3s;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Der blaue Kontakt-Button */
.btn-primary {
    background-color: #1f3b5c; /* Dein Dunkelblau */
}

.btn-primary:hover {
    background-color: #2a4f7c;
    transform: translateY(-2px);
}

/* Der grüne WhatsApp-Button */
.btn-whatsapp {
    background-color: #25d366; /* Original WhatsApp Grün */
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}

/* Logo-Größe maximieren */
.custom-logo-link img {
    max-width: 350px !important; /* Erhöht die maximale Breite */
    width: 100% !important;
    height: auto !important;
}

/* Header-Abstände vergrößern */
header .site-branding {
    padding: 20px 0 !important; /* Gibt dem Logo oben und unten mehr Platz */
}

/* Falls das Logo in einem Container steckt, diesen weiten */
.header-container {
    max-width: 1200px; /* Oder 'none' für volle Breite */
    margin: 0 auto;
}

/* --- Logo-Power-Boost --- */

/* Wir zwingen das Logo, breiter zu werden */
.custom-logo-link img, 
.site-logo img, 
header img,
.navbar-brand img {
    max-width: 400px !important; /* Hier kannst du die Breite steuern */
    max-height: none !important; /* Entfernt die Höhenbegrenzung */
    width: 400px !important;     /* Wir geben eine feste Breite vor */
    height: auto !important;     /* Die Höhe passt sich automatisch an */
}

/* Wir geben dem Header mehr Platz nach oben und unten */
.site-header, header {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    height: auto !important; /* Verhindert, dass der Header das Logo abschneidet */
}

/* Falls dein Theme das Logo in der Mitte oder links begrenzt */
.site-branding, .logo {
    min-width: 400px !important;
}