/*
Theme Name: NB Support Theme
Theme URI: https://nbsupport.de
Author: NB Support
Author URI: https://nbsupport.de
Description: Custom Theme für NB Support IT-Consulting
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nbsupport
*/

/* Local Fonts - DSGVO-konforme Alternative zu Google Fonts */
@font-face {
  font-family: 'Inter Local';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('Inter Light'), local('Inter-Light'),
       local('Segoe UI Light'), local('SegoeUI-Light'),
       local('Roboto Light'), local('Roboto-Light');
}

@font-face {
  font-family: 'Inter Local';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter Regular'), local('Inter-Regular'),
       local('Segoe UI'), local('SegoeUI'),
       local('Roboto'), local('Roboto-Regular');
}

@font-face {
  font-family: 'Inter Local';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Inter Medium'), local('Inter-Medium'),
       local('Segoe UI Semibold'), local('SegoeUI-Semibold'),
       local('Roboto Medium'), local('Roboto-Medium');
}

@font-face {
  font-family: 'Inter Local';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Inter SemiBold'), local('Inter-SemiBold'),
       local('Segoe UI Semibold'), local('SegoeUI-Semibold'),
       local('Roboto Medium'), local('Roboto-Medium');
}

@font-face {
  font-family: 'Inter Local';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Inter Bold'), local('Inter-Bold'),
       local('Segoe UI Bold'), local('SegoeUI-Bold'),
       local('Roboto Bold'), local('Roboto-Bold');
}

:root {
  --font-inter: 'Inter Local', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --primary-color: #60a5fa;
  --secondary-color: #3b82f6;
  --accent-color: #34d399;
  --text-dark: #ffffff;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --bg-light: #1e293b;
  --bg-dark: #0f172a;
  --card-bg: #334155;
  --gradient-start: #1e293b;
  --gradient-end: #334155;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 4px;
}

/* Keyboard Focus Styles - Only visible on keyboard navigation */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

.service-card:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: var(--border-radius);
}

.nav-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline: 2px solid var(--text-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.3);
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-outline:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  min-height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.1);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mobile-lang-switch {
  display: none;
}

.lang-switch button {
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  min-width: 44px;
  min-height: 44px;
}

.lang-switch button:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.lang-switch button.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-dark);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  z-index: 1001;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

#hero {
  height: auto;
  min-height: 64vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  padding: 120px 0 6rem 0;
  margin-top: 0;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(51, 65, 85, 0.7) 100%),
    url('https://images.unsplash.com/photo-1587202372775-e229f172b9d7?w=1920&q=80') center/cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(51, 65, 85, 0.7) 0%, rgba(15, 23, 42, 0.75) 100%),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80') center/cover no-repeat;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
  color: var(--text-dark);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
  color: var(--text-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  padding: 2rem 0;
}

#about {
  height: auto;
  min-height: 36vh;
  padding: 2rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--card-bg) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

.about-header .section-title {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  position: relative;
}

.about-header .section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.about-logo {
  text-align: left;
  margin-top: 2rem;
  margin-left: -4rem;
}

.about-logo-img {
  max-width: 600px;
  height: auto;
  min-height: 300px;
  object-fit: contain;
}

.about-content-side h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  line-height: 1.4;
}

.about-content-side p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

#services {
  background: var(--bg-dark);
  position: relative;
  z-index: 10;
  padding-top: 3rem;
}

#services .section-title {
  font-size: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  align-items: start;
}

.services-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.services-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1600px;
  margin: 0 auto;
  align-items: start;
}

/* Service Cards - Accordion Style */
.service-card {
  background: -webkit-linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(52, 211, 153, 0.2) 100%);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(52, 211, 153, 0.2) 100%);
  border: 2px solid rgba(96, 165, 250, 0.4);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(96, 165, 250, 0.3);
  overflow: hidden;
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  -webkit-transform: translateY(-5px);
  -moz-transform: translateY(-5px);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-card-header {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  outline: none;
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.service-card-header:focus {
  outline: none;
}

.service-card-header:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
  border-radius: var(--border-radius);
}

.service-card-header h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card-header p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text-dark);
  flex-grow: 1;
}

.expand-hint {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
}

.service-card.expanded .expand-hint {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
}

.service-card-details {
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height 0.4s ease, padding 0.4s ease;
  -moz-transition: max-height 0.4s ease, padding 0.4s ease;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: -webkit-linear-gradient(135deg, rgba(52, 211, 153, 0.2) 0%, rgba(96, 165, 250, 0.15) 100%);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2) 0%, rgba(96, 165, 250, 0.15) 100%);
  border-top: 1px solid rgba(96, 165, 250, 0.3);
  padding: 0 1.5rem;
}

.service-card.expanded .service-card-details {
  max-height: 400px;
  padding: 1.5rem;
  overflow-y: auto;
}

.service-card-details h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--card-bg) 100%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(96, 165, 250, 0.3);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-details {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-details li {
  padding: 0.35rem 0;
  padding-left: 1.4rem;
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
  position: relative;
  font-size: 0.8rem;
  line-height: 1.4;
}

.service-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.35rem;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 0.75rem;
  line-height: 1.4;
}

.service-details li:last-child {
  border-bottom: none;
}

.service-details li.special-note:before {
  content: '';
}

#contact {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-light) 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background: linear-gradient(145deg, var(--card-bg) 0%, var(--bg-light) 100%);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid #475569;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #475569;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
  background: var(--bg-light);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-input {
  width: 16px !important;
  height: 16px;
  min-width: 16px;
  margin: 0.2rem 0 0 0;
  cursor: pointer;
  flex-shrink: 0;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  min-width: 30px;
}

#main-content {
  flex: 1;
}

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
  text-align: center;
  width: 100%;
  position: relative;
  clear: both;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  justify-items: center;
}

.footer-section {
  text-align: center;
  width: 100%;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-company-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #475569;
  padding-top: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.footer-badges {
  display: inline-flex !important;
  flex-direction: row !important;
  gap: 1rem !important;
  justify-content: center !important;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.badge {
  background: rgba(96, 165, 250, 0.2);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 1rem;
    border-radius: 0 0 15px 15px;
    z-index: 100;
  }

  .main-nav.active {
    display: block !important;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a {
    display: block;
    padding: 1rem 1.5rem;
  }

  .lang-switch {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    order: 99;
  }

  .mobile-lang-switch {
    display: flex !important;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
  }

  .mobile-lang-switch button {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 50px;
    min-height: 44px;
  }

  .mobile-lang-switch button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-dark);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-layout,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-logo {
    margin-left: 0;
    text-align: center;
  }

  .about-logo-img {
    max-width: 300px;
  }

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

  .service-card-header {
    padding: 1.5rem 1.2rem 2rem;
    height: auto;
    min-height: 260px;
  }

  .service-card-header h3 {
    font-size: 1.1rem;
  }

  .service-card-header p {
    font-size: 0.9rem;
  }

  .service-card-details h4 {
    font-size: 0.9rem;
  }

  .service-details li {
    font-size: 0.78rem;
    padding: 0.3rem 0;
    padding-left: 1.3rem;
    line-height: 1.4;
  }

  .service-details li::before {
    top: 0.3rem;
    font-size: 0.72rem;
  }

  .expand-hint {
    bottom: 12px;
    right: 12px;
    font-size: 1.1rem;
  }

  #hero {
    padding: 100px 0 6rem 0;
  }

  .header-container {
    padding: 0.8rem 1rem;
    min-height: 70px;
  }

  .logo-img {
    height: 50px;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 1200px) {
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-logo-img {
    max-width: 450px;
    min-height: 250px;
  }

  .about-logo {
    margin-left: -2rem;
  }
}

@media (max-width: 1024px) {
  .services-grid-3,
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-logo {
    margin-left: 0;
    text-align: center;
  }

  .about-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-header {
    text-align: center;
  }

  #hero::before {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
  }

  #hero::after {
    width: 100%;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  }

}

/* Success Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.success-content {
  background: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  margin: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-content h3 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem 0;
}

.success-checkmark {
  margin: 0 auto 1.5rem auto;
  width: 100px;
  height: 100px;
}

.checkmark-circle {
  width: 100px;
  height: 100px;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkmark-circle::before {
  content: '✓';
  font-size: 50px;
  color: var(--accent-color);
  font-weight: bold;
}

/* Sidebar Logo */
.sidebar-logo {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo-img {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.sidebar-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(96, 165, 250, 0.5));
}

.sidebar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Sidebar CTA Button */
.sidebar-cta {
    padding: 1rem 0;
}

.sidebar-contact-btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-dark);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.sidebar-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.4);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

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

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.5);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Improved Footer Link Hover Effects */
.footer-section a,
.footer-column a {
    position: relative;
    display: inline-block;
}

.footer-section a::after,
.footer-column a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section a:hover,
.footer-column a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section a:hover::after,
.footer-column a:hover::after {
    width: 100%;
}

/* Footer Description */
.footer-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

/* Footer Layout */
.footer-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* Footer Brand Section */
.footer-brand-section {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: left;
}

.footer-logo-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-inline img {
    width: 50px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo-inline img:hover {
    transform: scale(1.1);
}

.footer-logo-inline span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-description {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer Links Wrapper - Contains Services & Legal */
.footer-links-wrapper {
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

/* Footer Columns */
.footer-column {
    min-width: 140px;
}

.footer-column h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.footer-column ul.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-column .link-icon {
    color: var(--primary-color);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-column a:hover .link-icon {
    transform: translateX(3px);
}

/* Footer Columns - Side by Side - WordPress Override */
.footer-columns,
.footer-columns.is-layout-flex,
.footer-columns.is-layout-grid,
.wp-block-group.footer-columns,
div.footer-columns {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 3rem !important;
    padding-top: 0 !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

.footer-column,
.footer-column.is-layout-flex,
.footer-column.is-layout-grid,
.wp-block-group.footer-column,
div.footer-column {
    display: inline-block !important;
    width: auto !important;
    min-width: 120px !important;
    text-align: left !important;
    flex: 0 0 auto !important;
}

.footer-column h4 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-column a .link-icon {
    color: var(--primary-color);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.footer-column a:hover .link-icon {
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(96, 165, 250, 0.15);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-badges,
.footer-badges.is-layout-flex,
.footer-badges.is-layout-grid,
.wp-block-group.footer-badges,
div.footer-badges {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 0.75rem !important;
}

.footer-badges .badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* NB Support Section */
.nb-support-section {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nb-support-section:hover {
    opacity: 1;
}

.nb-support-section img {
    width: 40px;
    height: auto;
    filter: brightness(0) invert(1);
}

.nb-support-section span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* IT Images Section */
.it-images-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--gradient-end) 0%, var(--bg-light) 100%);
}

.it-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.it-image-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(96, 165, 250, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.it-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
    border-color: var(--primary-color);
}

.it-image-card .icon {
    font-size: 4rem;
    transition: transform 0.3s ease;
}

.it-image-card:hover .icon {
    transform: scale(1.1);
}

.it-image-card .label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .it-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   ENHANCED RESPONSIVE STYLES
   Mobile First + Full HD Optimization
   ========================================== */

/* Extra Small Devices (320px - 479px) */
@media (max-width: 479px) {
  .container {
    padding: 0 1rem;
  }

  .header-container {
    padding: 0.5rem 0.75rem;
    min-height: 60px;
  }

  .logo-img {
    height: 40px;
  }

  .lang-switch button {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: 38px;
    min-height: 38px;
  }

  #hero {
    padding: 80px 0 3rem 0;
    min-height: 50vh;
  }

  .hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  #about {
    padding: 1.5rem 0;
    min-height: auto;
  }

  .about-logo-img {
    max-width: 200px;
    min-height: 150px;
  }

  .about-content-side h3 {
    font-size: 1.3rem;
  }

  .about-content-side p {
    font-size: 1rem;
  }

  #services {
    padding-top: 1.5rem;
  }

  .service-card-header {
    padding: 1.5rem 1rem 2rem;
    height: auto;
    min-height: 240px;
  }

  .service-card-header h3 {
    font-size: 1.1rem;
  }

  .service-card-header p {
    font-size: 0.85rem;
  }

  .service-card-details {
    padding: 0 1rem;
  }

  .service-card.expanded .service-card-details {
    padding: 1.25rem 1rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .service-details li {
    font-size: 0.75rem;
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    line-height: 1.4;
  }

  .service-details li::before {
    top: 0.25rem;
    font-size: 0.68rem;
  }

  #contact {
    padding: 1.5rem 0;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .contact-form h3 {
    font-size: 1.25rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 0.95rem;
  }

  .checkbox-label {
    font-size: 0.8rem;
  }

  .contact-info h3 {
    font-size: 1.25rem;
  }

  .contact-item {
    margin-bottom: 1rem;
  }

  .contact-item-icon {
    font-size: 1.25rem;
    min-width: 25px;
  }

  .trust-indicators h4 {
    font-size: 1rem !important;
  }

  .trust-item span {
    font-size: 0.9rem !important;
  }

  /* Footer Mobile Extra Small */
  .site-footer {
    padding: 2rem 0 1rem;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-brand-section {
    max-width: 100%;
    min-width: auto;
    text-align: center;
  }

  .footer-logo-inline {
    justify-content: center;
  }

  .footer-description {
    text-align: center;
  }

  .footer-links-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    width: 100%;
  }

  .footer-column {
    min-width: auto;
    text-align: left;
  }

  .footer-column h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .footer-column a {
    font-size: 0.85rem;
  }

  .footer-badges {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .footer-badges .badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
  }
}

/* Small Devices (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .hero-title {
    font-size: 1.75rem;
  }

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

  .about-logo-img {
    max-width: 250px;
    min-height: 180px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-brand-section {
    text-align: center;
    max-width: 100%;
  }

  .footer-logo-inline {
    justify-content: center;
  }

  .footer-description {
    text-align: center;
  }

  .footer-links-wrapper {
    justify-content: center;
    gap: 3rem;
  }

  .footer-column {
    text-align: left;
  }
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .services-grid,
  .services-grid-3,
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }


  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-brand-section {
    text-align: center;
    max-width: 500px;
    margin-bottom: 1.5rem;
  }

  .footer-logo-inline {
    justify-content: center;
  }

  .footer-description {
    text-align: center;
  }

  .footer-links-wrapper {
    justify-content: center;
    gap: 4rem;
  }
}

/* Large Tablets / Small Desktops (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .container {
    max-width: 1200px;
  }

  .services-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Full HD (1440px - 1919px) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding: 0 3rem;
  }

  .header-container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.35rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content {
    max-width: 900px;
  }

  #hero {
    min-height: 70vh;
    padding: 140px 0 7rem 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.25rem;
  }

  .about-layout {
    gap: 3rem;
  }

  .about-content-side h3 {
    font-size: 2rem;
  }

  .about-content-side p {
    font-size: 1.15rem;
  }

  .services-grid-4 {
    gap: 2rem;
    max-width: 1400px;
  }

  .service-card-header {
    height: 360px;
  }

  .service-card-header h3 {
    font-size: 1.4rem;
  }

  .service-card-header p {
    font-size: 1rem;
  }

  .service-details li {
    font-size: 0.88rem;
    padding: 0.45rem 0;
    padding-left: 1.5rem;
    line-height: 1.4;
  }

  .service-details li::before {
    top: 0.45rem;
    font-size: 0.8rem;
  }

  .contact-content {
    max-width: 1300px;
    gap: 3rem;
  }

  .footer-container {
    max-width: 1400px;
  }
}

/* Ultra Wide / 4K (1920px+) */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
    padding: 0 4rem;
  }

  .header-container {
    max-width: 1800px;
    padding: 1.25rem 4rem;
  }

  .logo-img {
    height: 80px;
  }

  .main-nav ul {
    gap: 2.5rem;
  }

  .main-nav a {
    font-size: 1.1rem;
  }

  #hero {
    min-height: 75vh;
    padding: 160px 0 8rem 0;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
  }

  .hero-content {
    max-width: 1000px;
  }

  .hero-buttons .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
  }

  #about {
    min-height: 40vh;
    padding: 4rem 0;
  }

  .about-logo-img {
    max-width: 700px;
    min-height: 350px;
  }

  .about-content-side h3 {
    font-size: 2.2rem;
  }

  .about-content-side p {
    font-size: 1.25rem;
  }

  #services {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .section-subtitle {
    font-size: 1.35rem;
  }

  .services-grid-4 {
    max-width: 1800px;
    gap: 2.5rem;
  }


  .service-card-header {
    padding: 2.5rem 2rem 3rem;
    height: 380px;
  }

  .service-card-header h3 {
    font-size: 1.5rem;
  }

  .service-card-header p {
    font-size: 1.05rem;
  }

  .service-card.expanded .service-card-details {
    padding: 2rem 1.75rem;
  }

  .service-card-details h4 {
    font-size: 1.1rem;
  }

  .service-icon {
    width: 90px;
    height: 90px;
    font-size: 3.5rem;
  }

  .service-details li {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    padding-left: 1.6rem;
    line-height: 1.4;
  }

  .service-details li::before {
    top: 0.5rem;
    font-size: 0.85rem;
  }

  #contact {
    padding: 4rem 0;
  }

  .contact-content {
    max-width: 1500px;
    gap: 4rem;
  }

  .contact-form {
    padding: 3rem;
  }

  .contact-form h3 {
    font-size: 2rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 16px;
    font-size: 1.1rem;
  }

  .site-footer {
    padding: 4rem 0 1.5rem;
  }

  .footer-container {
    max-width: 1600px;
  }

  .footer-description {
    font-size: 1rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
    min-width: 48px;
  }

  .expand-hint {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .main-nav a {
    padding: 1rem 1.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .lang-switch button {
    min-width: 48px;
    min-height: 48px;
  }

  .contact-item {
    padding: 0.5rem 0;
  }

  .footer-column a {
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
    padding: 80px 0 2rem 0;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }

  .hero-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .scroll-to-top,
  .mobile-menu-toggle,
  .lang-switch,
  #cookie-consent-banner {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: 100%;
  }

  #hero {
    min-height: auto;
    padding: 2rem 0;
  }

  #hero::before,
  #hero::after {
    display: none;
  }

  .service-card-details {
    display: none;
  }
}

/* Legal Pages (Datenschutz, Impressum, AGB, Cookies) */
.legal-page {
  padding: 3rem 0;
}

.legal-page h1 {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--card-bg);
  text-align: center;
  color: var(--primary-color);
}

.legal-page h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-top: 2rem;
}

.legal-page h3 {
  font-size: 1.4rem;
  color: var(--accent-color);
}

.legal-page h4 {
  font-size: 1.1rem;
  color: var(--text-light);
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  margin-left: 1.5rem;
  color: var(--text-light);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.page-header {
  margin-bottom: 2rem;
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-top: 1px solid var(--primary-color);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-text h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cookie-banner-text p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.cookie-btn-accept {
  background: var(--primary-color);
  color: var(--bg-dark);
}

.cookie-btn-accept:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.cookie-btn-necessary {
  background: transparent;
  border: 2px solid var(--text-muted);
  color: var(--text-light);
}

.cookie-btn-necessary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

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

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.5);
}

/* ========================================
   Form Validation Styles
   ======================================== */
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.form-group input.valid,
.form-group textarea.valid {
  border-color: var(--accent-color);
}

.form-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.checkbox-group.invalid .checkbox-label {
  color: #ef4444;
}

/* ========================================
   404 Page Styles
   ======================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-content {
  max-width: 600px;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(96, 165, 250, 0.3);
}

.error-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.error-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.error-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Loading Skeleton Animation
   ======================================== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, var(--bg-light) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .error-code {
    font-size: 5rem;
  }
}
