/* ============================================================
   ideXo GmbH — Main Stylesheet
   ============================================================ */

@import url('../fonts/fonts.css');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --c-primary:      #0b1b43;  /* Dark Navy */
  --c-primary-dark: #07102e;  /* Dark Navy shade — footer */
  --c-accent:       #11bcce;  /* Signal Teal */
  --c-accent-dark:  #0ea3b3;  /* Signal Teal dark */
  --c-white:        #ffffff;
  --c-bg:           #eff2f9;  /* Cloud White */
  --c-text:         #0b1b43;
  --c-text-light:   #5a6b8a;
  --c-border:       #d5dbe8;

  --font: 'Josefin Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h:   70px;
  --max-w:      1200px;
  --pad:        24px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --shadow-sm: 0 2px 8px  rgba(28,43,58,.08);
  --shadow-md: 0 8px 24px rgba(28,43,58,.12);
  --shadow-lg: 0 16px 48px rgba(28,43,58,.16);

  --ease: .3s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: 96px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--c-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px 11px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px 8px; font-size: 14px; }

.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  border-color: var(--c-accent);
}
.btn-primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: var(--c-white);
  color: var(--c-primary);
}

/* ── Animate (Intersection Observer) ──────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

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

/* Logo */
.logo-text {
  font-size: 22px;
  font-weight: 300;
  color: var(--c-primary);
  letter-spacing: .05em;
}
.logo-text strong { font-weight: 700; }
.site-footer .logo-text { color: var(--c-white); }
.header-logo { display: flex; align-items: center; }
.header-logo a { display: flex; align-items: center; line-height: 1; transition: opacity var(--ease); }
.header-logo a:hover { opacity: .85; }
.header-logo img { display: block; }
.header-logo img,
.footer-logo img { height: 40px; width: auto; }

/* Nav */
.header-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav .nav-menu li a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-light);
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.header-nav .nav-menu li a:hover {
  color: var(--c-primary);
  background: var(--c-bg);
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Lang switcher */
.lang-switcher {
  padding-right: 16px;
}
.lang-switcher ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang-switcher a {
  padding: 10px;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-light);
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all var(--ease);
}
.lang-switcher a:hover,
.lang-switcher .current-lang a {
  color: var(--c-primary);
  background: var(--c-bg);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: all var(--ease);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 35%;
  background-color: var(--c-primary);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,27,67,.88) 0%, rgba(11,27,67,.65) 55%, rgba(11,27,67,.25) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 760px;
  padding: calc(var(--header-h) + 80px) 0 80px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-title span { color: var(--c-accent); }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 56px;
  max-width: 580px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }


/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--c-bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--c-white);
  border: none;
  border-top: 3px solid var(--c-accent);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__image { height: 260px; overflow: hidden; }
.service-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.service-card__body { padding: 28px; }

.service-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.service-card__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(17,188,206,.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.service-card__icon svg {
  width: 22px; height: 22px;
  stroke: var(--c-accent); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.service-card__body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 0;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.service-card__subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.service-card__body p {
  font-size: 15px;
  color: var(--c-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-content h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.about-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.about-text {
  font-size: 16px;
  color: var(--c-text-light);
  line-height: 1.85;
  margin-bottom: 24px;
}
.about-text p { margin-bottom: 16px; }
.about-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.5;
}
.about-facts__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.about-facts__icon svg {
  width: 11px;
  height: 11px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%; height: 480px;
  object-fit: cover;
}
.about-branded {
  height: 480px;
  position: relative;
  background-image: url('../img/pexels-maltelu-1606957.webp');
  background-size: cover;
  background-position: center 40%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-branded__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 67, .72);
}
.about-branded__logo {
  position: relative;
  z-index: 1;
  width: 200px;
  height: auto;
  opacity: .9;
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages-section {
  background: var(--c-primary);
  padding: 80px 0;
}
.advantages-section .section-header h2 { color: var(--c-white); }
.advantages-section .section-subtitle   { color: rgba(255,255,255,.55); }

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 32px 24px 32px 28px;
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid rgba(17,188,206,.35);
  border-radius: var(--r-lg);
  transition: background var(--ease), border-color var(--ease);
}
.advantage-card:hover {
  background: rgba(255,255,255,.05);
  border-left-color: var(--c-accent);
}
.advantage-card__num {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 56px;
  font-weight: 700;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.advantage-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.advantage-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,188,206,.15);
  border-radius: 50%;
  border: 1px solid rgba(17,188,206,.25);
}
.advantage-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--c-accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.advantage-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0;
  line-height: 1.3;
}
.advantage-card p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--c-bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-form-wrap .wpcf7-form p { margin-bottom: 0; }
.contact-form-wrap .wpcf7-form .wpcf7-not-valid-tip { font-size: 12px; color: #e05252; margin-top: 4px; }
.contact-form-wrap .wpcf7-form .wpcf7-response-output { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; border: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid #d0d7e2;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--c-text);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(17,188,206,.12);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6b8a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.cf7-consent {
  font-size: 13px;
  color: var(--c-text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}
.cf7-consent a { color: var(--c-accent); }
.cf7-consent .wpcf7-list-item { margin: 0; }

/* Submit button */
.contact-form-wrap input[type="submit"] {
  padding: 14px 32px 11px;
  background: var(--c-accent);
  color: var(--c-white);
  border: 2px solid var(--c-accent);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.contact-form-wrap input[type="submit"]:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  box-shadow: var(--shadow-md);
}

/* Contact Info box */
.contact-info {
  padding: 40px;
  background: #fff;
  border-radius: var(--r-lg);
  border-top: 3px solid var(--c-accent);
  box-shadow: var(--shadow-sm);
}
.contact-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}
.contact-info-item,
.contact-info__item {
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(17,188,206,.1);
  border: 1px solid rgba(17,188,206,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.contact-info-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info-label,
.contact-info__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-text-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.contact-info-value,
.contact-info__item a,
.contact-info__item address {
  font-size: 15px;
  color: var(--c-text);
  font-style: normal;
  line-height: 1.6;
  transition: color var(--ease);
}
.contact-info-value a { color: var(--c-text); transition: color var(--ease); }
.contact-info-value a:hover,
.contact-info__item a:hover { color: var(--c-accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,.6);
  padding: 64px 0 0;
  border-top: 2px solid var(--c-accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.58); }

.site-footer h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-list a,
.footer-contact-list span {
  font-size: 14px;
  color: rgba(255,255,255,.58);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: color var(--ease);
}
.footer-contact-list a:hover { color: var(--c-accent); }
.footer-contact-icon { flex-shrink: 0; margin-top: 1px; }
.footer-contact-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--c-accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
}
.footer-legal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal-list li { margin: 0; padding: 0; }
.footer-legal-list a {
  font-size: 14px;
  color: rgba(255,255,255,.58);
  transition: color var(--ease);
}
.footer-legal-list a:hover { color: var(--c-accent); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-lang {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  letter-spacing: .05em;
}

/* ============================================================
   STATIC PAGES (Impressum / Datenschutz)
   ============================================================ */
.page-content {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 96px;
  min-height: 60vh;
}
.page-inner { max-width: 820px; }
.page-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -.02em;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
}
.page-body { font-size: 16px; line-height: 1.8; color: var(--c-text); }
.page-body h2 { font-size: 22px; font-weight: 700; color: var(--c-primary); margin: 36px 0 16px; }
.page-body h3 { font-size: 18px; font-weight: 600; color: var(--c-primary); margin: 28px 0 12px; }
.page-body p  { margin-bottom: 16px; }
.page-body a  { color: var(--c-accent); text-decoration: underline; }
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 16px; }
.page-body li { margin-bottom: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .advantages-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-grid       { gap: 48px; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .footer-brand     { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .section { padding: 64px 0; }

  /* Mobile nav */
  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--c-primary);
    padding: 24px var(--pad);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--ease);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }
  .header-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .header-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .header-nav .nav-menu li a { display: block; padding: 12px 16px; font-size: 16px; }

  .mobile-toggle   { display: flex; }
  .header-cta      { display: none; }

  /* Sections */
  .services-grid   { grid-template-columns: 1fr; }
  .about-grid      { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 300px; }
  .about-branded    { height: 300px; }
  .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
  .form-row        { grid-template-columns: 1fr; gap: 0; }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }

  .hero-buttons    { flex-direction: column; align-items: flex-start; }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --pad: 16px; }
  .advantages-grid   { grid-template-columns: 1fr; }
  .contact-info      { padding: 28px 20px; }
}
