/* ===========================
  MARKER-IT.DE
  CSS – style.css
=========================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #0f62fe;
  --primary-dark:  #0043ce;
  --primary-light: #d0e2ff;
  --accent:        #00d4ff;
  --dark:          #0a0e1a;
  --dark-2:        #111827;
  --dark-3:        #1f2937;
  --text:          #1f2937;
  --text-muted:    #6b7280;
  --light:         #f9fafb;
  --light-2:       #f3f4f6;
  --border:        #e5e7eb;
  --white:         #ffffff;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.14);
  --transition:    0.25s ease;
  --font:          'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === LOGO === */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 48px; width: auto; display: block; }

/* Navbar-Logo */
.nav-inner .logo-img { height: 44px; }

/* Footer-Logo */
.footer .logo-img { height: 44px; filter: brightness(0) invert(1); }

/* === UTILITIES === */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2.5rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,98,254,0.35);
}

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-large { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* === BADGE === */
.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  text-decoration: none;
}
.logo:hover { color: var(--primary); }
.logo strong { color: var(--primary); }
.logo-icon { color: var(--primary); font-size: 1.2rem; }
.logo-light { color: var(--white); }
.logo-light strong { color: var(--accent); }
.logo-light .logo-icon { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links li a {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.btn-nav {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 8px;
}
.btn-nav:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(15,98,254,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(0,212,255,0.15) 0%, transparent 60%),
    linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0d1b3e 100%);
}

/* Animated Grid */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,98,254,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,98,254,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem 4rem;
  max-width: 750px;
}

.hero-content .badge {
  background: rgba(15,98,254,0.2);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.3);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

/* Telefon-Button im Hero – größer und auffälliger */
.hero-phone-btn {
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  gap: 0.6rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(15,98,254,0.4);
}
.hero-phone-btn:hover {
  box-shadow: 0 8px 32px rgba(15,98,254,0.55);
}

/* Meta-Zeile unter den Buttons */
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.83rem;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.55);
}
.hero-meta-dot { color: rgba(255,255,255,0.25); }

/* ===========================
   PAGE HERO (Inner Pages)
=========================== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, #0d1b3e 100%);
  color: var(--white);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 20% 50%, rgba(15,98,254,0.2) 0%, transparent 60%);
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 0.75rem 0 1rem; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.7); }
.page-hero-small { padding: 4rem 0 3rem; }

/* ===========================
   SECTIONS
=========================== */
.section { padding: 5rem 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--dark-2); color: var(--white); }
.section-dark .section-header p { color: rgba(255,255,255,0.65); }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ===========================
   CARDS (Vorteile)
=========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 10px;
  padding: 10px;
  color: var(--primary);
}
.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
}
.card h3 { margin-bottom: 0.5rem; color: var(--dark); }
.card p { color: var(--text-muted); font-size: 0.93rem; }

/* ===========================
   SERVICES OVERVIEW
=========================== */
.services-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}
.service-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(15,98,254,0.4);
  transform: translateY(-3px);
}
.service-item > div { min-width: 0; }
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px;
  margin-top: 0.1rem;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: rgba(255,255,255,0.85);
}
.service-item h4 {
  margin-bottom: 0.3rem;
  color: var(--white);
  font-size: 1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.service-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

/* ===========================
   SERVICE BLOCKS (Leistungen)
=========================== */
.service-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.service-block:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius);
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  padding: 22px;
  color: var(--primary);
}
.service-block-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
}

.service-block-content h2 { font-size: 1.5rem; color: var(--dark); margin-bottom: 0.75rem; }
.service-block-content p { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.7; }

.service-list { display: flex; flex-direction: column; gap: 0.4rem; }
.service-list li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Tech-Badges (Logos unter Service-Listen) */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--light-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.75rem 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}
.tech-badge:hover {
  border-color: var(--primary-light);
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }

/* ===========================
   CONTACT
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: 10px;
  padding: 10px;
}
.contact-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
}
.contact-item strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-item a, .contact-item span { font-size: 0.95rem; color: var(--dark); font-weight: 500; }
.contact-item a:hover { color: var(--primary); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--light);
  outline: none;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--primary); background: var(--white); }

.form-hint { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.form-hint a { color: var(--primary); }

/* Feedback Banner */
.form-feedback {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}
.form-feedback--success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-feedback--error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Lade-Button */
.btn-loading {
  opacity: 0.75;
  cursor: not-allowed;
  position: relative;
  padding-left: 2.5rem;
}
.btn-loading::before {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3rem;
  padding: 4rem 1.5rem 3rem;
  align-items: start;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links ul li a,
.footer-contact ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-links ul li a:hover,
.footer-contact ul li a:hover { color: var(--white); }

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.5rem;
}
.footer-bottom p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.footer-bottom a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--white); }

/* ===========================
   LEGAL PAGES
=========================== */
.legal-content { max-width: 820px; margin: 0 auto; padding-bottom: 2rem; }

.legal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.legal-box h2 { font-size: 1.25rem; color: var(--dark); margin-bottom: 0.75rem; border-bottom: 2px solid var(--primary-light); padding-bottom: 0.5rem; }
.legal-box h3 { font-size: 1rem; color: var(--dark); margin: 1rem 0 0.4rem; font-weight: 600; }
.legal-box p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.75; margin-bottom: 0.75rem; }
.legal-box p:last-child { margin-bottom: 0; }
.legal-box a { color: var(--primary); font-weight: 500; }
.legal-box a:hover { text-decoration: underline; }
.legal-box .service-list { margin-top: 0.5rem; }
.legal-box .service-list li { font-size: 0.92rem; color: var(--text-muted); padding: 0.2rem 0; }

/* ===========================
   MOBILE MENU
=========================== */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .service-block.reverse { direction: ltr; }
  .service-block-icon { width: 80px; height: 80px; font-size: 2.5rem; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .hero-content { padding-top: 4rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 4.5rem 0 2.5rem; }
  .hero { min-height: auto; padding: 2rem 0; }
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .service-block { padding: 1.5rem; }
  .legal-box { padding: 1.5rem; }
}
