/*
Theme Name: VeliCloud
Theme URI: https://velicloud.de
Author: Velitor Solutions
Author URI: https://velitor-solutions.com/
Description: Individuelles Theme fuer VeliCloud, die Cloud-Marke der Velitor Solutions. Dark-Tech / Cloud-Gradient Design mit Glassmorphism-Karten.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: velicloud
*/

/* ===========================================================
   VeliCloud — Stylesheet
   Dark Tech / Cloud-Gradient Design
   =========================================================== */

:root {
  --bg: #05060d;
  --bg-alt: #0a0d1a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0fb;
  --text-muted: #9aa1c4;
  --text-faint: #6b7196;

  --accent-blue: #4f7cff;
  --accent-violet: #8b5cf6;
  --accent-cyan: #22d3ee;

  --gradient-1: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  --gradient-2: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  --gradient-text: linear-gradient(135deg, #7fa4ff, #b39dff 55%, #6fe3ff);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 0 1px var(--border), 0 20px 60px -20px rgba(79, 124, 255, 0.35);
  --container: 1160px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background FX ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-fx::before,
.bg-fx::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
}

.bg-fx::before {
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, var(--accent-blue), transparent 70%);
}

.bg-fx::after {
  bottom: -22%;
  right: -14%;
  background: radial-gradient(circle, var(--accent-violet), transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-1);
  color: #050614;
  box-shadow: 0 12px 30px -10px rgba(79, 124, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(139, 92, 246, 0.6);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 20px;
  background: rgba(8, 10, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--gradient-1);
  box-shadow: 0 8px 20px -6px rgba(79, 124, 255, 0.7);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links a.active {
  color: var(--text);
  background: var(--surface-strong);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 90px 0 60px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 26px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  max-width: 880px;
  margin: 0 auto 24px;
}

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

.hero-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

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

.stat {
  padding: 20px 10px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Page header (inner pages) ---------- */

.page-header {
  padding: 70px 0 40px;
  text-align: center;
}

.page-header .eyebrow {
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 16px;
}

.page-header p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */

section {
  padding: 80px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--gradient-1);
  margin-bottom: 20px;
  box-shadow: 0 10px 24px -8px rgba(79, 124, 255, 0.6);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  color: #050614;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card ul li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-cyan);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Parent-brand banner ---------- */

.parent-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.parent-banner strong {
  color: var(--text);
}

.parent-banner a {
  color: var(--accent-cyan);
  font-weight: 600;
}

.parent-banner a:hover {
  text-decoration: underline;
}

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 30px;
  color: var(--text-faint);
}

.photo-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.7;
}

.photo-placeholder span {
  font-size: 0.85rem;
  max-width: 220px;
}

.about-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 18px;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.placeholder-note {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c9b8ff;
  font-size: 0.8rem;
}

.values-grid {
  margin-top: 20px;
}

/* ---------- Timeline (about) ---------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 24px 1fr;
  gap: 4px;
}

.timeline-item .t-year {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  padding-top: 2px;
}

.timeline-item .t-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-item .t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-1);
  flex-shrink: 0;
}

.timeline-item .t-bar {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin-top: 4px;
}

.timeline-item:last-child .t-bar {
  display: none;
}

.timeline-item .t-content {
  padding-bottom: 34px;
}

.timeline-item .t-content h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline-item .t-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Services page extras ---------- */

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

.process-step {
  position: relative;
  padding: 26px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.process-step .step-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  display: block;
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.contact-info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 22px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

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

.contact-row .c-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-row .c-icon svg {
  width: 17px;
  height: 17px;
  color: var(--accent-cyan);
}

.contact-row .c-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.contact-row .c-value {
  font-size: 0.98rem;
  font-weight: 500;
}

.contact-row a.c-value:hover {
  color: var(--accent-cyan);
}

.contact-form {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.05);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-question .chev {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  color: var(--text-faint);
}

.faq-item.open .faq-question .chev {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 60px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: var(--gradient-1);
  opacity: 0.18;
  filter: blur(80px);
  z-index: -1;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 30px;
}

.cta-band .hero-actions {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 18px;
}

.footer-bottom a:hover {
  color: var(--text-muted);
}

/* ---------- Utilities ---------- */

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

.mt-lg {
  margin-top: 60px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    gap: 36px;
  }
  .photo-placeholder {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-inner.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 10, 20, 0.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px;
    backdrop-filter: blur(16px);
  }
  .nav-inner {
    position: relative;
  }
  .nav-cta .btn-ghost {
    display: none;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 60px 0 40px;
  }
  .cta-band {
    padding: 40px 26px;
  }
}

/* ---------- Generic WP page content (entry-content) ---------- */

.entry-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 16px;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child {
  margin-top: 0;
}

.entry-content p {
  margin-bottom: 18px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 18px 1.3em;
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.entry-content blockquote {
  border-left: 3px solid var(--accent-blue);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-faint);
  font-style: italic;
}

/* ---------- Custom logo (Design -> Anpassen -> Website-Identitaet) ---------- */

.brand img.custom-logo {
  max-height: 38px;
  width: auto;
  display: block;
}

/* ---------- Bundled VeliCloud logo (header/footer) ---------- */

.brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-brand .brand-logo-img {
  height: 28px;
}
