/* Ising IT Services – Dark Professional Theme */
:root {
  --bg-primary: #070b14;
  --bg-secondary: #0f1629;
  --bg-card: #141c2f;
  --bg-elevated: #1a2540;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #22d3ee;
  --accent-secondary: #818cf8;
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --border: rgba(148, 163, 184, 0.12);
  --border-hover: rgba(34, 211, 238, 0.35);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 76px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #67e8f9; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.site-header.menu-open {
  border-bottom-color: transparent;
}

.site-header.scrolled { background: rgba(7, 11, 20, 0.95); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo img {
  width: auto;
  height: 62px;
  max-width: min(75vw, 210px);
  object-fit: contain;
  object-position: left center;
}

.logo--footer img {
  height: 39px;
  max-width: 126px;
}

@media (min-width: 768px) {
  .logo img {
    height: 67px;
    max-width: 224px;
  }
}

.nav-desktop { display: none; }
.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-desktop a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-desktop a:hover { color: var(--text-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.45);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--border-hover);
  background: rgba(34, 211, 238, 0.08);
  color: var(--text-primary);
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-rows: 0fr;
  background: rgba(10, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color var(--transition),
    box-shadow var(--transition);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.nav-mobile[aria-hidden="false"] {
  pointer-events: auto;
}

.nav-mobile.open {
  grid-template-rows: 1fr;
  border-bottom-color: var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nav-mobile-inner {
  min-height: 0;
  overflow: hidden;
}

.nav-mobile.open .nav-mobile-inner {
  max-height: min(70vh, 480px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile ul {
  list-style: none;
  padding: 0.5rem 1.25rem 1.25rem;
}

.nav-mobile li { border-bottom: 1px solid var(--border); }
.nav-mobile li:last-child { border-bottom: none; }

.nav-mobile a {
  display: block;
  padding: 0.875rem 0;
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 500;
}

.nav-mobile .btn {
  width: 100%;
  margin-top: 0.75rem;
  text-align: center;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 .gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 11, 20, 0.4));
  pointer-events: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat span { font-size: 0.8125rem; color: var(--text-muted); }

/* Sections */
section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p { color: var(--text-secondary); font-size: 1.0625rem; }

/* Services */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

html.js-animate .service-card:not(.visible),
html.js-animate .feature-item:not(.visible) {
  opacity: 0;
  transform: translateY(20px);
}

.service-card,
.feature-item {
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition), box-shadow var(--transition);
}

html.js-animate .service-card.visible,
html.js-animate .feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js-animate .service-card:not(.visible),
  html.js-animate .feature-item:not(.visible) {
    opacity: 1;
    transform: none;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img { transform: scale(1.05); }

.service-card-body { padding: 1.5rem; }

.service-card-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* About */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-features {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 10px;
  color: var(--accent);
  font-size: 1.25rem;
}

.feature-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.875rem; color: var(--text-secondary); }

/* CTA */
.cta-section {
  padding: 4rem 0;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--accent-gradient);
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.contact-item a { color: var(--text-primary); }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-checkbox input { width: auto; margin-top: 0.25rem; accent-color: var(--accent); }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Legal pages */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-hero p { color: var(--text-secondary); }

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }

.impressum-card {
  display: grid;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.impressum-photo-wrap {
  display: flex;
  justify-content: center;
}

.impressum-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid var(--border-hover);
}

.impressum-card h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.impressum-role { color: var(--accent); font-weight: 500; margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

/* Responsive */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .impressum-card {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .impressum-photo-wrap {
    justify-content: flex-start;
    align-self: center;
    padding-top: 1rem;
  }
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: block; }
  .nav-mobile,
  .nav-overlay { display: none !important; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 6rem 0; }
}

@media (min-width: 1280px) {
  .container { padding: 0 2rem; }
}

/* Cookie- & Datenschutz-Banner */
body.cookie-banner-open {
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.cookie-banner__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.cookie-banner__box {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.cookie-banner__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.cookie-banner__box h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cookie-banner__box p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cookie-banner__box p a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner__accept {
  width: 100%;
  font-size: 1.0625rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 6px 28px rgba(14, 165, 233, 0.45);
}

.cookie-banner__decline {
  width: 100%;
  padding: 0.625rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.cookie-banner__decline:hover {
  color: var(--text-secondary);
  border-color: var(--text-muted);
}

.cookie-banner__hint {
  margin-bottom: 0 !important;
  margin-top: 1rem !important;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
}

@media (min-width: 480px) {
  .cookie-banner__actions {
    flex-direction: column-reverse;
  }

  .cookie-banner__accept {
    order: -1;
  }
}
