/* BTS - Barakat Technology Services -------------------------------------- */

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --white: #ffffff;
  --green-400: #4ade80;
  --red-400: #f87171;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--slate-950);
  color: var(--slate-300);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow { max-width: 960px; }

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

h1, h2, h3, h4, h5 { color: var(--white); margin: 0; }

.text-cyan { color: var(--cyan-400); }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  font-size: 1rem;
}

.btn-primary {
  background: var(--cyan-600);
  color: var(--white);
  box-shadow: 0 10px 25px -10px rgba(6, 182, 212, 0.6);
}
.btn-primary:hover { background: var(--cyan-500); transform: scale(1.04); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--cyan-400);
  color: var(--cyan-400);
}
.btn-outline:hover { background: var(--cyan-400); color: var(--slate-900); transform: scale(1.04); }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img { height: 56px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--slate-300);
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--cyan-400); }

.header-cta { display: block; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}
.menu-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  display: none;
  background: var(--slate-900);
  border-top: 1px solid var(--slate-800);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 16px 0; }
.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--slate-300);
}
.mobile-nav a:hover { background: var(--slate-800); color: var(--cyan-400); }
.mobile-cta { padding: 8px 20px 16px; }
.mobile-cta .btn { width: 100%; }

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

/* Hero -------------------------------------------------------------- */
.hero {
  padding: 160px 0 90px;
  background: radial-gradient(circle at 20% 20%, rgba(8,47,73,0.6), transparent 55%),
              linear-gradient(160deg, var(--slate-950), #0b1c3a 55%, var(--slate-900));
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 760px;
  margin: 0 auto 40px;
  color: var(--slate-300);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--slate-700);
  border-radius: 14px;
  padding: 28px 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.hero-card:hover { border-color: var(--cyan-500); transform: translateY(-4px); }
.hero-card svg { width: 40px; height: 40px; color: var(--cyan-400); margin-bottom: 14px; }
.hero-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--cyan-400); }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Generic section ----------------------------------------------------- */
section { padding: 90px 0; }
.section-dark { background: var(--slate-950); }
.section-alt { background: var(--slate-900); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { font-size: 1.15rem; max-width: 700px; margin: 0 auto; color: var(--slate-300); }

/* Services tabs --------------------------------------------------------- */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.tabs-inner {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 10px;
  padding: 6px;
  display: inline-flex;
  gap: 4px;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--slate-400);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab-btn.active { background: var(--cyan-600); color: var(--white); }
.tab-btn:not(.active):hover { color: var(--cyan-400); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 800px) { .card-grid { grid-template-columns: 1fr; } }

.service-card, .info-card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 14px;
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover, .info-card:hover {
  border-color: var(--cyan-500);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -25px rgba(6,182,212,0.4);
}
.service-card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.service-card svg { width: 34px; height: 34px; color: var(--cyan-400); flex-shrink: 0; }
.service-card h3 { font-size: 1.4rem; }
.service-card p { margin: 0 0 16px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan-400);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.feature-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  flex-shrink: 0;
}

.services-cta { text-align: center; margin-top: 56px; }

/* About ------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.about-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30,41,59,0.5);
  border-radius: 10px;
  padding: 14px 16px;
}
.about-fact svg { width: 22px; height: 22px; color: var(--cyan-400); flex-shrink: 0; }

.about-panel {
  background: linear-gradient(160deg, var(--slate-800), var(--slate-900));
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 14px;
  padding: 34px;
}
.about-panel h3 { color: var(--cyan-400); margin-bottom: 22px; font-size: 1.4rem; }
.about-panel ul { list-style: none; margin: 0; padding: 0; }
.about-panel li { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.about-panel svg { width: 22px; height: 22px; color: var(--cyan-400); flex-shrink: 0; margin-top: 2px; }
.about-panel strong { color: var(--white); }

/* Portfolio / Referenzen ------------------------------------------------ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 14px;
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.portfolio-card:hover { transform: translateY(-4px); border-color: var(--cyan-500); }
.portfolio-card svg { width: 30px; height: 30px; color: var(--cyan-400); }
.portfolio-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 12px;
  background: var(--slate-700);
  color: var(--slate-300);
  border-radius: 999px;
  font-size: 0.8rem;
}
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(6,182,212,0.15);
  color: var(--cyan-400);
  border: 1px solid rgba(6,182,212,0.3);
  font-size: 0.85rem;
}

.cta-banner {
  text-align: center;
  padding: 44px 30px;
  background: linear-gradient(120deg, var(--slate-800), var(--slate-900));
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 16px;
}
.cta-banner h4 { font-size: 1.6rem; margin-bottom: 12px; }
.cta-banner p { margin-bottom: 24px; }

/* Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-facts { display: flex; flex-direction: column; gap: 20px; }
.info-card { text-align: center; }
.info-card svg { width: 26px; height: 26px; color: var(--cyan-400); margin-bottom: 10px; }
.info-card h4 { margin-bottom: 6px; font-size: 1.05rem; }
.info-card .highlight { color: var(--cyan-400); font-weight: 700; }
.info-card .muted { color: var(--slate-400); font-size: 0.9rem; margin-top: 6px; }
.info-card.call {
  background: linear-gradient(135deg, var(--cyan-600), #0e7490);
  border: 1px solid var(--cyan-500);
}
.info-card.call h4, .info-card.call a { color: var(--white); }
.info-card.call .muted { color: rgba(255,255,255,0.85); }

.contact-form-wrap {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 14px;
  padding: 34px;
}
.contact-form-wrap h3 { margin-bottom: 24px; font-size: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.9rem;
  color: var(--slate-300);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--slate-900);
  border: 1px solid var(--slate-600);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.25);
}
.field.full { margin-bottom: 20px; }

/* Honeypot: für Menschen unsichtbar, aus Tab-Reihenfolge entfernt */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}
.consent-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--cyan-500); }
.consent-row label { font-size: 0.9rem; color: var(--slate-300); }
.consent-row a { color: var(--cyan-400); text-decoration: underline; cursor: pointer; }

.form-status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.form-status.success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: var(--green-400); }
.form-status.error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: var(--red-400); }
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.form-status.hidden { display: none; }

/* Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--slate-950);
  border-top: 1px solid var(--slate-800);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.footer-badges span { display: flex; align-items: center; gap: 8px; color: var(--slate-300); }
.footer-badges svg { width: 18px; height: 18px; color: var(--cyan-400); }

.footer-col h4 { margin-bottom: 16px; font-size: 1.1rem; }
.footer-list { list-style: none; margin: 16px 0 0; padding: 0; }
.footer-list li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--slate-300); font-size: 0.95rem; }
.footer-list svg { width: 16px; height: 16px; color: var(--cyan-400); }

.footer-services { list-style: none; margin: 10px 0 0; padding: 0; font-size: 0.9rem; }
.footer-services li { margin-bottom: 6px; }

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--cyan-400); }
.footer-bottom p { color: var(--slate-400); margin: 0; }

/* Legal pages (Impressum / Datenschutz) ------------------------------ */
.legal-section { padding: 150px 0 90px; min-height: 70vh; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-400);
  margin-bottom: 32px;
  font-weight: 500;
}
.back-link svg { width: 18px; height: 18px; }
.legal-box {
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: 14px;
  padding: 40px;
}
.legal-box h1 { font-size: 2.2rem; margin-bottom: 32px; }
.legal-block { margin-bottom: 32px; }
.legal-block h2 {
  font-size: 1.4rem;
  color: var(--cyan-400);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-block h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 10px; }
.legal-block p { margin: 0 0 12px; color: var(--slate-300); }
.legal-block .contact-line { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.legal-block .contact-line svg { width: 16px; height: 16px; color: var(--cyan-400); }
.legal-block a.link { color: var(--cyan-400); text-decoration: underline; }
.legal-note {
  background: var(--slate-800);
  border: 1px solid var(--slate-600);
  border-radius: 10px;
  padding: 18px 20px;
}
.legal-note h3 { color: var(--cyan-400); font-size: 1rem; margin-bottom: 6px; }

/* Utility --------------------------------------------------------- */
.icon { display: inline-block; vertical-align: middle; }

/* Partner Badges Section ------------------------------------------ */
.partner-badges-section {
  background: var(--slate-900);
  border-top: 1px solid var(--slate-700);
  border-bottom: 1px solid var(--slate-700);
  padding: 28px 0;
}

.partner-badges-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.partner-badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 40px;
}

.partner-badge-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cyan-600), var(--cyan-400));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.partner-badge-icon.ufsp-icon {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.partner-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.partner-badge-label {
  font-size: 0.85rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.partner-badge-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan-400);
}

.partner-badge-divider {
  width: 1px;
  height: 50px;
  background: var(--slate-700);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .partner-badges-inner {
    flex-direction: column;
    gap: 0;
  }
  .partner-badge-divider {
    width: 60%;
    height: 1px;
  }
  .partner-badge-item {
    padding: 16px 20px;
  }
}

/* Partner Logo Images -------------------------------------------- */
.partner-badge-logo-wrap {
  width: 56px;
  height: 56px;
  background: transparent;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.partner-badge-logo-wrap.ufsp-wrap {
  background: transparent;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-logo-img.ufsp-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
}

/* Badge Images direkt ohne Rahmen --------------------------------- */
.partner-badge-logo-only {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Ubiquiti Logo: cyan → weiß */
.badge-img-ubiquiti {
  height: 55px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* UFSP Badge: unverändert */
.badge-img-ufsp {
  height: 80px;
  width: 80px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* UniFi Logo: cyan → weiß */
.badge-img-unifi {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* WhatsApp Floating Button ---------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: var(--white);
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  transform: translateY(-3px);
}

.whatsapp-label {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 14px;
    border-radius: 50%;
  }
  .whatsapp-label {
    display: none;
  }
}

/* Google Maps Section --------------------------------------------- */
.maps-section {
  background: var(--slate-900);
  padding: 60px 0 0;
}

.maps-wrapper {
  margin-top: 30px;
  width: 100%;
  overflow: hidden;
  border-top: 2px solid var(--cyan-600);
}

.maps-wrapper iframe {
  display: block;
  filter: invert(90%) hue-rotate(180deg) saturate(0.8) brightness(0.85);
}
