/* ==========================================================
   SD Projekt Service – Stylesheet
   ========================================================== */

:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #1a1a1a;
  --surface-2: #201f1c;
  --border: #2c2b28;

  --gold: #d4af37;
  --gold-light: #f3d477;
  --gold-dark: #a3781f;
  --gold-gradient: linear-gradient(135deg, #f3d477 0%, #d4af37 45%, #a3781f 75%, #f3d477 100%);

  --silver: #b8bcc2;
  --silver-dark: #6f747c;

  --text: #f5f5f4;
  --text-muted: #a8a8ad;

  --radius: 10px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --transition: 220ms ease;

  --header-height: 78px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 800; letter-spacing: 0.02em; overflow-wrap: break-word; }
p { margin: 0 0 1em; color: var(--text-muted); overflow-wrap: break-word; }

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

.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: #0a0a0a;
  padding: 12px 18px;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.6em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow span {
  width: 18px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
  flex-shrink: 0;
}

.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-gradient);
  background-size: 220% 220%;
  background-position: 0% 0%;
  color: #171207;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--silver-dark);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-small { padding: 10px 20px; font-size: 0.78rem; }
.btn-large { padding: 17px 36px; font-size: 0.9rem; }

.btn-whatsapp {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  background: transparent;
  border: 1px solid #2f6b4f;
  color: #4fd88a;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25d366;
  color: #25d366;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(8, 8, 8, 0.9);
  border-bottom-color: rgba(212, 175, 55, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-text strong { color: var(--gold); font-weight: 800; }

.main-nav ul {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}
.nav-link.active {
  color: var(--gold);
}
.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--silver);
  transition: color var(--transition);
}
.header-phone .icon { width: 18px; height: 18px; }
.header-phone:hover,
.header-phone:focus-visible { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-height) + 70px) 0 90px;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08), transparent 45%),
    linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-inner > *,
.contact-inner > *,
.about-inner > *,
.footer-grid > *,
.advantages-grid > *,
.services-grid > *,
.projects-grid > *,
.form-row > *,
.cta-inner > * {
  min-width: 0;
}
.form-field input,
.form-field textarea {
  min-width: 0;
}

.hero-title {
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  overflow-wrap: break-word;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 480px;
  color: var(--silver);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.hero-actions .btn .icon {
  width: 18px;
  height: 18px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  padding: 8px 2px;
}
.hero-link .icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}
.hero-link:hover,
.hero-link:focus-visible {
  text-decoration: underline;
}
.hero-link:hover .icon-arrow,
.hero-link:focus-visible .icon-arrow {
  transform: translateX(4px);
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-logo-glow {
  position: relative;
  display: inline-flex;
}
.hero-logo-glow::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 65%);
  filter: blur(30px);
  z-index: 0;
  animation: glow-pulse 4.5s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(420px, 90vw);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.15);
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* ---------- Vorteile ---------- */
.advantages {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
}

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

.advantage {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: #171207;
  margin-bottom: 12px;
}
.advantage-icon .icon { width: 22px; height: 22px; }

.advantage h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.advantage p { margin: 0; font-size: 0.92rem; }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
  max-width: 640px;
}
.section-lead {
  max-width: 380px;
  margin: 0;
}

/* ---------- Services ---------- */
.services {
  padding: 100px 0;
}

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

.service-card {
  background: linear-gradient(180deg, var(--surface) 0%, #161513 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold);
  margin-bottom: 8px;
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gold-gradient);
  color: #171207;
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.service-card p { font-size: 0.92rem; margin-bottom: 4px; }

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}
.service-card:hover .icon-arrow { transform: translateX(4px); }

/* ---------- About ---------- */
.about {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  display: flex;
  justify-content: center;
}

.about-logo {
  width: min(320px, 100%);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.12);
}

.about-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  text-transform: uppercase;
}

.about-text {
  max-width: 560px;
  font-size: 1.02rem;
}

.team {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--gold-gradient);
  color: #171207;
  flex-shrink: 0;
}

.team-member h3 {
  font-size: 1rem;
  margin: 0;
}
.team-member p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Projects ---------- */
.projects {
  padding: 100px 0;
}

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

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 20px;
  transition: transform var(--transition), border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.35);
}

.project-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #1e1c18, #131211);
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}
.project-image .icon { width: 46px; height: 46px; opacity: 0.85; }

.project-tag {
  display: inline-block;
  margin: 18px 20px 6px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
}

.project-card h3 {
  margin: 0 20px;
  font-size: 1.02rem;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, #141312 0%, #1c1811 60%, #14110a 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.cta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-list li {
  color: var(--silver);
  font-weight: 600;
  font-size: 0.95rem;
}
.cta-list li::before {
  content: "\2713";
  color: var(--gold);
  font-weight: 800;
  margin-right: 8px;
}

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  text-transform: uppercase;
}

#contactForm {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--silver);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  outline: none;
}
.form-field textarea { resize: vertical; }

.form-field.invalid input,
.form-field.invalid textarea {
  border-color: #d64545;
}

.field-error {
  min-height: 1.1em;
  font-size: 0.78rem;
  color: #ff6b6b;
}

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.form-checkbox input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.form-checkbox label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}
.form-checkbox label a {
  color: var(--gold);
}
.form-checkbox label a:hover,
.form-checkbox label a:focus-visible {
  text-decoration: underline;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
}
.form-status.success { color: #4fd88a; }
.form-status.error { color: #ff6b6b; }

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

.info-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.info-card ul { display: flex; flex-direction: column; gap: 16px; }
.info-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--silver);
}
.info-card .icon { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.info-card a:hover,
.info-card a:focus-visible { color: var(--gold); }

/* ---------- Legal pages (Impressum, Datenschutz) ---------- */
.legal {
  padding: calc(var(--header-height) + 70px) 0 100px;
  background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
  min-height: 55vh;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 0.3em;
  overflow-wrap: break-word;
}

.legal-subtitle {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 2em;
}

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px clamp(20px, 5vw, 32px);
  margin-bottom: 32px;
}
.legal-toc h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.legal-toc ol {
  columns: 2;
  column-gap: 32px;
  padding-left: 1.2em;
}
.legal-toc li {
  font-size: 0.85rem;
  margin-bottom: 8px;
  break-inside: avoid;
}
.legal-toc a { color: var(--text-muted); }
.legal-toc a:hover,
.legal-toc a:focus-visible { color: var(--gold); }

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px clamp(20px, 5vw, 48px);
}

.legal-content h2 {
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 1.8em;
  scroll-margin-top: calc(var(--header-height) + 20px);
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--text);
  margin-bottom: 1em;
}
.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.35em;
}

.legal-content a { color: var(--gold); }
.legal-content a:hover,
.legal-content a:focus-visible { text-decoration: underline; }

.legal-back { margin-top: 40px; }

@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
}

/* ---------- Rechtliches & Downloads: document cards ---------- */
.legal-lead {
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.legal-section-title {
  color: var(--gold);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 44px 0 6px;
}
.legal-section-title:first-of-type { margin-top: 8px; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 8px;
}

.doc-card {
  background: linear-gradient(180deg, var(--surface) 0%, #161513 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.doc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-soft);
}

.doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold);
  margin-bottom: 4px;
}

.doc-card h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.doc-card p {
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.doc-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.doc-actions .btn {
  white-space: normal;
  text-align: center;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  background: transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--gold-gradient);
  color: #171207;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #060606;
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.footer-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2px;
}
.footer-people { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 4px; }
.footer-tagline { color: var(--gold); font-size: 0.85rem; margin: 0; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-legal-links {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover,
.footer-col a:focus-visible { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(15, 14, 12, 0.9);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  z-index: 400;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--gold-gradient);
  color: #171207;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo-glow::before { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */

/* Tablet */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { order: -1; }
  .hero-logo { width: min(300px, 70vw); }

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

  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-text { margin-left: auto; margin-right: auto; }
  .team { justify-content: center; }

  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav + layout */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul {
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
  }
  .main-nav .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .header-phone span { display: none; }
  .header-actions .btn-small { display: none; }
  .hamburger { display: flex; }

  .advantages-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-list { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn-large { width: 100%; justify-content: center; }
  .hero { padding-top: calc(var(--header-height) + 40px); }

  .header-inner { gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-text { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { gap: 12px; }
}

/* ==========================================================
   SD Projekt Service GbR – Premium-Startseite (neu, index.html)
   Eigenständiger Abschnitt: nur neue/umbenannte Klassen, keine
   der obigen Regeln (Impressum/Datenschutz/AGB/Rechtliches) wird
   hier verändert oder überschrieben.
   ========================================================== */

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg:not(.svg-sprite) {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(9, 11, 13, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}
.home-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (min-width: 861px) {
  .home-brand img {
    width: 96px;
    height: 96px;
    margin: -10px 0 -26px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  }
}
.home-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
}
.home-brand strong {
  color: var(--text);
  font-size: 1.02rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.home-brand small {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav a:hover,
.nav a:focus-visible,
.nav a.active { color: var(--gold); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.nav-phone svg { width: 16px; height: 16px; color: var(--gold); }
.nav-phone:hover,
.nav-phone:focus-visible {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  background: #060606;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 62vw, 680px);
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 90% 80% at 78% 25%, #1d1a14 0%, #0a0a0a 62%);
  border-bottom: 1px solid var(--border);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(6, 6, 6, 0.97) 0%, rgba(6, 6, 6, 0.86) 32%, rgba(6, 6, 6, 0.5) 58%, rgba(6, 6, 6, 0.12) 82%, transparent 100%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 64px 24px;
}

.hero-copy { max-width: 700px; }
.hero-copy .eyebrow { justify-content: flex-start; }

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.14;
  text-transform: uppercase;
  margin: 0.35em 0 0.45em;
  overflow-wrap: break-word;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--silver);
  max-width: 480px;
  margin-bottom: 1.6em;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.home-hero-actions .btn .icon,
.home-hero-actions .btn svg { width: 18px; height: 18px; }

.btn-outline-gold {
  background: rgba(10, 10, 10, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--text);
}
.btn-outline-gold:hover,
.btn-outline-gold:focus-visible {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  transform: translateY(-2px);
}

.trust-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.trust-strip > div {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border-left: 1px solid var(--border);
}
.trust-strip > div:first-child { border-left: none; }
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold);
  margin-bottom: 4px;
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-strip strong { color: var(--text); font-size: 0.98rem; letter-spacing: 0.04em; text-transform: uppercase; }
.trust-strip p { color: var(--text-muted); font-size: 0.82rem; margin: 0; max-width: 200px; }

/* ---------- Kontaktleiste (Quick-Contact) ---------- */
.quick-contact-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  margin: 34px 0;
  overflow: hidden;
}
.quick-contact-bar > a,
.quick-contact-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  min-width: 0;
  border-left: 1px solid rgba(212, 175, 55, 0.18);
  transition: background var(--transition);
}
.quick-contact-bar > a:first-child,
.quick-contact-bar > div:first-child { border-left: none; }
.quick-contact-bar > a:hover,
.quick-contact-bar > a:focus-visible { background: rgba(212, 175, 55, 0.07); }
.quick-contact-bar small {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.quick-contact-bar strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Services ---------- */
.home-services { padding: 110px 0; }

.home-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.home-section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  max-width: 620px;
}
.home-section-head > p {
  max-width: 360px;
  margin: 0;
  color: var(--text-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.home-service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.home-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-soft);
}

.svc-media {
  position: relative;
  overflow: hidden;
  height: 150px;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, #211d15 0%, #121110 75%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.svc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0) 55%, rgba(10, 9, 8, 0.75) 100%);
}
.home-service-card:hover .svc-media img { transform: scale(1.06); }
.svc-media img { transition: transform 400ms ease; }

.svc-body { padding: 22px 24px 26px; }
.home-service-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  hyphens: auto;
}
.home-service-card p {
  font-size: 0.9rem;
  margin: 0;
}

.svc-icon {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold);
  transition: background var(--transition), transform var(--transition);
}
.svc-icon svg { width: 19px; height: 19px; }
.home-service-card:hover .svc-icon {
  background: var(--gold-gradient);
  color: #171207;
  transform: scale(1.08);
}

/* ---------- Kompetenz / Qualifikation ---------- */
.competence { padding: 0 0 110px; }

.competence-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.competence-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  max-width: 560px;
}
.competence-copy > p {
  max-width: 560px;
  margin-bottom: 32px;
}

.competence-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.competence-list > div {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.competence-list > div:hover { border-color: rgba(212, 175, 55, 0.35); }
.competence-list svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.competence-list strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.competence-list small {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.competence-panel {
  background: linear-gradient(165deg, #17140d 0%, var(--surface) 60%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.panel-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.competence-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 22px;
}
.competence-panel ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}
.competence-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.competence-panel li svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}
.text-link span { transition: transform var(--transition); }
.text-link:hover span,
.text-link:focus-visible span { transform: translateX(4px); }

/* ---------- Über uns ---------- */
.home-about {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.home-about-logo {
  position: relative;
  display: flex;
  justify-content: center;
}
.home-about-logo img {
  width: min(280px, 100%);
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.12));
}
.about-badge {
  position: absolute;
  bottom: 6%;
  right: 6%;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}
.about-badge strong { color: var(--gold); }

.about-copy h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}
.about-copy p.big {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 600;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.about-tags span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Kontakt ---------- */
.home-contact { padding: 100px 0; }

.contact-card {
  background: linear-gradient(150deg, #17140d 0%, var(--surface) 55%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  padding: 48px clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.contact-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 420px;
}
.contact-copy p { max-width: 420px; margin: 0; }

.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-links a,
.contact-links > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.06);
  transform: translateY(-2px);
}
.contact-links small {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.contact-links strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }

/* ---------- Footer (neue Startseite) ---------- */
footer:has(.home-footer-grid) {
  background: #060606;
  border-top: 1px solid var(--border);
}
.home-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 44px;
}
.home-footer-grid .footer-logo { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px; object-fit: contain; }
.home-footer-grid .footer-people a,
.home-footer-grid .footer-tagline { color: var(--text-muted); transition: color var(--transition); }
.home-footer-grid .footer-people a:hover,
.home-footer-grid .footer-people a:focus-visible { color: var(--gold); }

.home-footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Floating WhatsApp-Button ---------- */
.floating-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #06210f;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.floating-contact:hover,
.floating-contact:focus-visible {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

.delay-1 { transition-delay: 160ms; }
.delay-2 { transition-delay: 260ms; }
.delay-3 { transition-delay: 360ms; }

.home-projects { padding: 110px 0; border-top: 1px solid var(--border); }

/* ---------- Responsive: Premium-Startseite ---------- */
@media (max-width: 980px) {
  .competence-wrap { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .home-about-logo { justify-content: center; }
  .about-tags { justify-content: center; }
  .contact-card { grid-template-columns: 1fr; text-align: center; }
  .contact-copy h2, .contact-copy p { margin-left: auto; margin-right: auto; }
  .quick-contact-bar { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius); }
  .quick-contact-bar > a:nth-child(3),
  .quick-contact-bar > div:nth-child(4) { border-left: none; }
  .quick-contact-bar > a:nth-child(3),
  .quick-contact-bar > div:nth-child(3) { border-top: 1px solid rgba(212, 175, 55, 0.18); }
  .quick-contact-bar > div:nth-child(4) { border-top: 1px solid rgba(212, 175, 55, 0.18); }
}

@media (max-width: 860px) {
  .nav {
    display: block;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    padding: 0 24px;
    background: #0a0b0d;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
  }
  .nav.open { max-height: 320px; padding: 18px 24px 24px; }
  .nav a { display: block; width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .menu-toggle { display: flex; }
  .nav-phone span { display: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip > div:nth-child(3) { border-left: none; }
  .contact-links { grid-template-columns: 1fr; }
  .home-footer-grid { grid-template-columns: 1fr 1fr; }
  .home-footer-grid .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .nav-wrap { padding: 0 18px; height: 68px; gap: 10px; }
  .home-brand { gap: 8px; flex-shrink: 1; }
  .home-brand img { width: 38px; height: 38px; }
  .home-brand strong {
    font-size: 0.9rem;
    max-width: 32vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-phone { padding: 9px 12px; }
  .hero-media { min-height: auto; padding: 32px 0 40px; }
  .hero-scrim { background: rgba(6, 6, 6, 0.9); }
  .hero-overlay { padding: 0 20px; }
  .home-hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .quick-contact-bar { grid-template-columns: 1fr; }
  .quick-contact-bar > a,
  .quick-contact-bar > div { border-left: none; border-top: 1px solid rgba(212, 175, 55, 0.18); }
  .quick-contact-bar > a:first-child { border-top: none; }
  .home-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .home-footer-grid .footer-brand { grid-column: auto; }
  .home-footer-grid .home-about-logo,
  .home-footer-grid .footer-logo { margin-left: auto; margin-right: auto; }
}
