/* =========================================================
   HS Metallbau — Stylesheet
   Farben & Maße sind als CSS-Variablen ganz oben definiert.
   ========================================================= */

:root {
  /* Farben */
  --steel:        #0a1723;   /* Dunkelblau/Anthrazit — Text & dunkle Buttons */
  --brand:        #2d4257;   /* Gedecktes Stahlblau — Navigation, Fließtext-Links */
  --accent:       #007daa;   /* Akzentblau — Buttons, Labels */
  --accent-dark:  #00688f;   /* Akzentblau, Hover */
  --muted:        #4f6778;   /* Grauer Fließtext */
  --surface:      #ffffff;

  /* Hintergrundverlauf der Seite */
  --bg-1: #e9eff5;
  --bg-2: #ccdae4;
  --bg-3: #b3c7d6;

  /* Glas-Optik der Karten */
  --glass-bg:     rgba(255, 255, 255, 0.42);
  --glass-bg-2:   rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.55);

  /* Radien & Schatten */
  --r-lg: 22px;
  --r-md: 18px;
  --r-sm: 14px;
  --r-xs: 12px;
  --shadow-lg: 0 24px 50px -24px rgba(10, 23, 35, 0.28);
  --shadow-md: 0 14px 30px -18px rgba(10, 23, 35, 0.25);

  --maxw: 1152px;
}

/* --- Basis ------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--steel);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

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

/* --- Bausteine -------------------------------------------- */

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
}
@media (min-width: 640px) { .card { padding: 48px; } }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow-pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.lead { color: var(--muted); font-size: 17px; max-width: 62ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }

.btn-dark   { background: var(--steel); color: #fff; box-shadow: var(--shadow-md); }
.btn-dark:hover { background: #12263a; }

.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-ghost  { background: var(--glass-bg-2); color: var(--brand); border-color: var(--glass-border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.75); }

/* --- Kopfbereich ------------------------------------------ */

.site-header { position: sticky; top: 16px; z-index: 50; padding: 16px 24px 0; }

.header-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: var(--r-xs);
  background: var(--steel);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
}
.logo-name  { display: block; font-size: 15px; font-weight: 700; line-height: 1.1; }
.logo-sub   { display: block; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--brand); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border);
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--steel);
  cursor: pointer;
}

.nav-mobile {
  display: none;
  max-width: var(--maxw);
  margin: 10px auto 0;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--brand); }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
}

/* --- Seiteninhalt ----------------------------------------- */

main { padding: 32px 24px 72px; }
.main-inner { max-width: var(--maxw); margin: 0 auto; }

/* Hero (Startseite) */
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3rem); margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.stat-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #cdd9e3, #93a7b8);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }

.media-caption {
  position: absolute;
  left: -20px; bottom: -22px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.media-caption strong { display: block; font-size: 15px; }
.media-caption span   { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .media-caption { left: 12px; bottom: -16px; } }

/* Ablauf + Kontaktkarte */
.section { margin-top: 64px; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2rem); }

.split { display: grid; gap: 24px; }
@media (min-width: 980px) { .split { grid-template-columns: 2fr 1fr; } }

.steps { display: grid; gap: 28px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-num { font-size: 22px; font-weight: 700; color: var(--brand); opacity: 0.55; }
.step h3 { font-size: 17px; margin: 10px 0 8px; }
.step p  { font-size: 14px; color: var(--muted); }

.contact-card {
  background: linear-gradient(to bottom right, rgba(0, 125, 170, 0.2), rgba(45, 66, 87, 0.1));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px;
}
.contact-card h3 { font-size: 22px; margin-bottom: 12px; }
.contact-card p  { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.contact-list { display: grid; gap: 10px; font-size: 14px; margin-bottom: 24px; }
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--accent); }

/* Werkstatt-Block */
.feature { overflow: hidden; padding: 0; display: grid; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature-text { padding: 36px; }
@media (min-width: 640px) { .feature-text { padding: 48px; } }
.feature-text h2 { font-size: clamp(1.6rem, 3.4vw, 2rem); margin-bottom: 16px; }
.feature-text p  { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.feature-media { min-height: 320px; background: linear-gradient(160deg, #cdd9e3, #8fa3b4); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.checklist svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
ul.checklist { list-style: none; margin: 0; padding: 0; }

/* Leistungen */
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 700px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.service {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-num {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(0, 125, 170, 0.12);
  color: var(--accent);
  font-size: 13px; font-weight: 700;
  margin-bottom: 18px;
}
.service h3 { font-size: 18px; margin-bottom: 10px; }
.service p  { font-size: 14px; color: var(--muted); }

/* Projekte */
.grid-4 { display: grid; gap: 24px; }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.project {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.project .frame {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #cdd9e3, #8fa3b4);
  margin-bottom: 18px;
}
.project .frame img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 0 8px 10px; }
.project-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.project h3 { font-size: 19px; margin: 8px 0 10px; }
.project p  { font-size: 14px; color: var(--muted); }

.cta-band { margin-top: 56px; text-align: center; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: 20px; }
.cta-band p  { color: var(--muted); margin-bottom: 24px; }

/* Kontaktformular */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.05fr; } }

.info-block { margin-top: 32px; }
.info-label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.info-value { font-size: 18px; font-weight: 700; margin-top: 4px; }
.info-value a:hover { color: var(--accent); }

.form-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
}
@media (min-width: 640px) { .form-card { padding: 36px; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(180, 198, 212, 0.8);
  border-radius: var(--r-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 125, 170, 0.15);
}
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.btn-block { width: 100%; }

/* Rechtstexte */
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 15px; color: var(--muted); }
.legal p { margin-bottom: 12px; }

/* --- Fußbereich ------------------------------------------- */

.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.5); padding: 48px 24px 32px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { font-size: 15px; margin-bottom: 12px; }
.footer-grid p, .footer-grid a { font-size: 14px; color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 36px; font-size: 13px; color: var(--muted); }

/* Zugänglichkeit */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
