/*
Theme Name: Netralis IT-Services
Theme URI: https://netralis.de
Author: Netralis UG (haftungsbeschränkt)
Author URI: https://netralis.de
Description: Professionelles IT-Services Theme für Netralis - Mobile-first, Bootstrap 5, SEO-optimiert
Version: 1.1.22
Requires at least: 6.0
Tested up to: 6.9.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: netralis-theme
Tags: one-column, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, translation-ready, block-styles, wide-blocks, custom-colors, custom-background

Netralis - Next Evolution in Trusted Infrastructure Services
*/

/* ==========================================================================
   Bootstrap-nah: Farben an Bootstrap 5 angelehnt
   ========================================================================== */
:root {
  --netralis-primary: #0d6efd;
  --netralis-primary-light: #0d6efd;
  --netralis-primary-dark: #0a58ca;
  --netralis-bg-default: #f8f9fa;
  --netralis-bg-paper: #fff;
  --netralis-text-primary: #212529;
  --netralis-text-secondary: #6c757d;
  --netralis-footer-bg: #212529;
}

/* ==========================================================================
   Base Styles - Mobile First
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--netralis-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Navigation - Sticky with Scroll Spy
   ========================================================================== */
.netralis-navbar {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

.netralis-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.netralis-navbar .navbar-brand {
  font-weight: 700;
  color: var(--netralis-primary) !important;
  font-size: 1.5rem;
}

.netralis-navbar .nav-link {
  color: #333 !important;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.netralis-navbar .nav-link:hover,
.netralis-navbar .nav-link.active {
  color: var(--netralis-primary) !important;
  border-bottom-color: var(--netralis-primary);
}

/* Mobile menu */
.netralis-navbar .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.netralis-hero {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Inline-Style setzt background-color und --hero-bg-color; Fallback für andere Kontexte */
  background-color: var(--hero-bg-color, var(--netralis-primary));
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6rem 0 4rem;
}

/* Hintergrundbild mit Blur (wenn Hero-Hintergrund = Bild) – Bild & Blur kommen per Inline-Style, 100 % Breite/Höhe */
.netralis-hero.hero-has-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.netralis-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Bei Hintergrundbild: nur dunkler Overlay, kein Gitter */
.netralis-hero.hero-has-bg-image::before {
  background-image: none;
  background-color: rgba(0, 0, 0, 0.25);
  opacity: 0.5;
}

.netralis-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Logo-Bereich (ohne Glow/Box) */
.netralis-hero .hero-logo-wrap {
  display: inline-block;
  margin-bottom: 1rem;
}

.netralis-hero .hero-logo-wrap .hero-logo {
  display: block;
  vertical-align: middle;
}

@media (max-width: 576px) {
  .netralis-hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .netralis-hero .container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
  .netralis-hero .hero-content {
    padding-left: 0;
    padding-right: 0;
  }
  .netralis-hero .hero-description {
    overflow-wrap: break-word;
  }
}

.netralis-hero h1 {
  color: white;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.netralis-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-size: 1.1rem;
}

.netralis-hero .hero-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.netralis-hero .btn-white {
  background: white;
  color: var(--netralis-primary);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 50px;
}

.netralis-hero .btn-white:hover {
  background: white;
  color: var(--netralis-primary-dark);
  transform: translateY(-2px);
}

.netralis-hero .btn-outline-white {
  border: 2px solid white;
  color: white;
  background: transparent;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 50px;
}

.netralis-hero .btn-outline-white:hover {
  background: white;
  color: var(--netralis-primary);
  border-color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.netralis-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .netralis-section {
    padding: 6rem 0;
  }
}

.netralis-section-title {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.netralis-section-subtitle {
  color: var(--netralis-text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Services Cards */
.netralis-service-card {
  height: 100%;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.netralis-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-color: var(--netralis-primary);
}

.netralis-service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--netralis-primary);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* Pricing Table */
.netralis-pricing-table .table thead th {
  font-weight: 600;
}

.netralis-pricing-table .category-row td {
  background: var(--netralis-primary);
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.netralis-pricing-mobile .card {
  border-radius: 12px;
  margin-bottom: 1rem;
}

.netralis-pricing-mobile .card-header {
  background: var(--netralis-primary);
  color: white;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
}

/* About Section */
.netralis-about-image {
  max-width: 400px;
  height: 300px;
  background: var(--netralis-primary);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

@media (min-width: 768px) {
  .netralis-about-image {
    height: 400px;
  }
}

.netralis-stat-box {
  text-align: center;
  padding: 1rem;
}

.netralis-stat-number {
  font-weight: 700;
  font-size: 2rem;
  color: var(--netralis-primary);
}

/* Why Us Cards */
.netralis-advantage-card {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.netralis-advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-color: var(--netralis-primary);
}

.netralis-advantage-icon {
  width: 48px;
  height: 48px;
  background: var(--netralis-primary);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Contact Section */
.netralis-contact-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.2s;
}

.netralis-contact-card:hover {
  border-color: var(--netralis-primary);
  transform: translateY(-2px);
}

.netralis-contact-card a {
  text-decoration: none;
  color: inherit;
}

.netralis-contact-avatar {
  width: 48px;
  height: 48px;
  background: var(--netralis-primary);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Contact Form */
.netralis-contact-form .form-control {
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.netralis-contact-form .form-control:focus {
  border-color: var(--netralis-primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.netralis-btn-primary {
  background: var(--netralis-primary);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 50px;
}

.netralis-btn-primary:hover {
  background: var(--netralis-primary-dark);
  transform: translateY(-2px);
}

/* Keep CTA button shape consistent across landing sections */
.netralis-section .btn-outline-primary {
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .netralis-section .btn-outline-primary,
  .netralis-section .netralis-btn-primary {
    padding: 10px 18px;
  }
}

/* Share Buttons */
.netralis-share-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--netralis-primary);
  transition: all 0.2s;
}

.netralis-share-btn:hover {
  color: white;
}

.netralis-share-btn.facebook:hover { background: #1877F2; border-color: #1877F2; }
.netralis-share-btn.x:hover { background: #000; border-color: #000; }
.netralis-share-btn.whatsapp:hover { background: #25D366; border-color: #25D366; }

/* ==========================================================================
   Footer
   ========================================================================== */
.netralis-footer {
  background: var(--netralis-footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.netralis-footer h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.netralis-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.netralis-footer a:hover {
  color: white;
}

.netralis-footer-links a {
  line-height: 1.35;
  word-break: break-word;
}

.netralis-footer .social-link {
  color: rgba(255, 255, 255, 0.6);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s;
}

.netralis-footer .social-link:hover {
  color: white;
}

.netralis-footer-social {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
}

.netralis-footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.netralis-footer-border {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

/* ==========================================================================
   Legal Pages (Impressum, AGB)
   ========================================================================== */
.netralis-legal-page {
  padding: 6rem 0 4rem;
  min-height: 100vh;
}

.netralis-legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.netralis-legal-page h6 {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.netralis-agb-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.scroll-margin-top {
  scroll-margin-top: 80px;
}

.text-primary-netralis {
  color: var(--netralis-primary) !important;
}

.bg-primary-netralis {
  background-color: var(--netralis-primary) !important;
}

/* Optionaler Editor-Content auf der Startseite (fuer SEO-verlinkte Zusatzinhalte) */
.netralis-frontpage-editor-content {
  padding: 1.5rem 0 0.5rem;
}

.netralis-frontpage-editor-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Cookie-Banner (DSGVO-konform)
   ========================================================================== */
#netralis-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #212529;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

#netralis-cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#netralis-cookie-banner p {
  margin: 0;
  flex: 1 1 300px;
  font-size: 0.9rem;
}

#netralis-cookie-banner a {
  color: #6ea8fe;
  text-decoration: underline;
}

#netralis-cookie-banner .btn-group {
  flex-shrink: 0;
}

#netralis-cookie-banner .btn {
  font-size: 0.875rem;
}

#netralis-cookie-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #212529;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

#netralis-cookie-panel .container {
  padding: 0.5rem 0;
}

#netralis-cookie-panel .form-check-input {
  cursor: pointer;
}
