/* =========================================================
   A&K Repair — Stylesheet
   Dark tech theme
   ========================================================= */

:root {
  --bg: #0a0e17;
  --bg-alt: #0f1523;
  --card: #131a29;
  --card-border: #212b3d;
  --text: #e6ebf5;
  --text-dim: #94a3b8;
  --text-faint: #5b6b84;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --heat: #f59e0b;
  --success: #34d399;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

/* ---------- Icons ---------- */
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block;
}
.icon.icon-solid { fill: currentColor; stroke: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(34, 211, 238, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--card-border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  margin-right: auto;
  font-family: var(--font-heading);
}
.logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.logo-wordmark {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo-mark-text {
  color: var(--accent);
  letter-spacing: 0.5px;
}
.logo-text { color: var(--text); }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

.nav-cta { flex-shrink: 0; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-faint);
  flex-shrink: 0;
}
.lang-switch a { color: var(--text-dim); }
.lang-switch a.lang-active { color: var(--accent); }
.lang-switch a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.16), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.14), transparent 50%),
    linear-gradient(180deg, transparent, var(--bg) 90%);
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at top, black, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-content { max-width: 620px; }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.eyebrow.center { display: block; text-align: center; }

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.text-accent {
  background: linear-gradient(135deg, var(--accent), var(--heat));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-size: 1.6rem; color: var(--text); }
.hero-stats span { font-size: 0.85rem; color: var(--text-faint); }

.hero-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 14px;
  font-style: italic;
}

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.06), rgba(19, 26, 41, 0.6));
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.hero-visual-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.hero-visual-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
}

.hero-ring {
  transform-origin: 200px 200px;
  animation: hero-spin 14s linear infinite;
}
.hero-pulse {
  transform-origin: 230px 270px;
  animation: hero-pulse 2s ease-in-out infinite;
}
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(2); }
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 21, 35, 0.85);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  z-index: 2;
}
.floating-badge .icon { width: 16px; height: 16px; }
.badge-top {
  top: 10%;
  left: 4%;
  color: var(--accent);
  animation: float-y 4s ease-in-out infinite;
}
.badge-top .icon { color: var(--accent); }
.badge-bottom {
  bottom: 10%;
  right: 4%;
  animation: float-y 4.5s ease-in-out infinite 0.4s;
}
.badge-bottom .icon { color: var(--heat); }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-alt);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  padding: 18px 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.4px;
}
.section-title.center { text-align: center; }

.section-sub {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 48px;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / Leistungen ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.card-highlight {
  background: linear-gradient(165deg, rgba(245, 158, 11, 0.08), var(--card) 55%);
  border-color: rgba(245, 158, 11, 0.35);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--accent);
}
.card-icon .icon { width: 26px; height: 26px; }

.card-highlight .card-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--heat);
}

.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card > p { color: var(--text-dim); margin: 0 0 16px; font-size: 0.95rem; }

.card-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.card-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.card-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--heat);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---------- Reballing spotlight ---------- */
.reballing-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
.reballing-text p { color: var(--text-dim); }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.process-steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.step-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--heat);
  background: rgba(245, 158, 11, 0.12);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.process-steps h4 { margin: 0 0 4px; font-size: 1rem; }
.process-steps p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Timeline / Ablauf ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.timeline-item {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
}
.timeline-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.timeline-item h4 { margin: 0 0 8px; font-size: 1.05rem; }
.timeline-item p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature {
  text-align: center;
  padding: 12px;
}
.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent);
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature h4 { margin: 0 0 8px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Gallery / Einblicke ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  aspect-ratio: 4 / 3;
  background: var(--card);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 21, 35, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--heat);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 14, 0.9));
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}
.gallery-credit {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-dim); margin: 12px 0 0; font-size: 0.92rem; }

/* ---------- Contact ---------- */
.section-contact { padding-bottom: 110px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}
.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.95rem;
}
.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}
.contact-details em { color: var(--text-faint); font-style: italic; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; color: var(--text-dim); font-weight: 600; }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--success);
  min-height: 1.2em;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--card-border);
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.1), transparent 45%),
    var(--bg);
}
.legal-hero .eyebrow { margin-bottom: 10px; }
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; }
.legal-hero p { color: var(--text-dim); margin: 0; }

.legal-content {
  padding: 56px 0 100px;
  max-width: 780px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
}
.legal-content p {
  color: var(--text-dim);
  margin: 0 0 14px;
}
.legal-content ul {
  margin: 0 0 14px;
  padding-left: 20px;
  list-style: disc;
}
.legal-content li {
  color: var(--text-dim);
  margin-bottom: 6px;
}
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: var(--text); }

.info-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0 28px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.info-notice .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.info-notice strong { color: var(--text); }

.legal-notice {
  display: flex;
  gap: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 36px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.legal-notice strong { color: var(--heat); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  background: var(--bg-alt);
  padding-top: 48px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand p { color: var(--text-faint); font-size: 0.85rem; margin: 10px 0 0; max-width: 280px; }
.footer-brand .logo { margin-right: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; align-self: center; }
.footer-nav a { color: var(--text-dim); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { color: var(--text-faint); font-size: 0.78rem; margin: 0; }

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.4);
  z-index: 90;
  transition: transform 0.2s ease;
  color: #04121a;
}
.floating-cta .icon { width: 22px; height: 22px; stroke-width: 2; }
.floating-cta:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .reballing-grid,
  .contact-grid,
  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { max-width: none; }
  .hero-visual { min-height: 320px; order: -1; }
  .badge-top { top: 6%; left: 3%; }
  .badge-bottom { bottom: 6%; right: 3%; }
}

@media (max-width: 800px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--card-border);
    padding: 20px 24px;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .hero { padding: 80px 0 60px; }
  .section { padding: 64px 0; }
  .contact-form { padding: 24px; }
}
