/* Autoglasveredelung Hermann – Redesign */
:root {
  --red: #b82c39;
  --red-deep: #8f1f2b;
  --red-soft: rgba(184, 44, 57, 0.16);
  --ink: #0b0b0b;
  --charcoal: #141414;
  --steel: #1e1e1e;
  --line: rgba(255, 255, 255, 0.1);
  --muted: #a7a7a7;
  --paper: #f4f4f4;
  --white: #ffffff;
  --max: 1140px;
  --header-h: 5rem;
  --font-display: "Oswald", "Segoe UI", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--white);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(184, 44, 57, 0.18), transparent 55%),
    radial-gradient(700px 360px at 0% 20%, rgba(184, 44, 57, 0.08), transparent 50%),
    linear-gradient(180deg, #0b0b0b 0%, #111 40%, #0d0d0d 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 0.35rem 0.45rem;
  border-radius: 2px;
}

.logo-link img {
  height: 52px;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.55rem 0.85rem;
  position: relative;
  transition: color 0.2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 0.45rem;
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.05rem !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--red-deep) !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.05);
  animation: heroDrift 20s var(--ease) infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.55) 42%, rgba(8, 8, 8, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.15) 0%, rgba(8, 8, 8, 0.78) 100%);
}

.hero-content {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 7.5rem 0 4.5rem;
}

.hero-brand {
  width: min(168px, 42vw);
  margin-bottom: 1.4rem;
  background: var(--white);
  padding: 0.55rem;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 11ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: fadeUp 0.85s 0.06s var(--ease) both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  animation: fadeUp 0.9s 0.12s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.95s 0.18s var(--ease) both;
}

.page-hero {
  position: relative;
  min-height: 44vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.page-hero .hero-media img {
  animation: none;
  transform: none;
  object-position: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.35)),
    linear-gradient(180deg, transparent, rgba(8, 8, 8, 0.75));
}

.page-hero-content {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0 2.8rem;
}

.page-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--red);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.25rem 0;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-lead {
  margin: 0 0 1.6rem;
  max-width: 52ch;
  color: var(--muted);
}

.section-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.section-panel {
  background:
    linear-gradient(160deg, rgba(184, 44, 57, 0.12), transparent 45%),
    var(--steel);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(255, 255, 255, 0.88);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--red);
}

.media-frame {
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* Service bands */
.service-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.service-band:nth-child(even) {
  grid-template-columns: 0.95fr 1.05fr;
}

.service-band:nth-child(even) .service-copy {
  order: 2;
}

.service-copy {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  padding: clamp(2rem, 5vw, 3.4rem);
  width: min(560px, 100%);
  margin-left: auto;
}

.service-band:nth-child(even) .service-copy {
  margin-left: 0;
  margin-right: auto;
}

.service-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1.05;
}

.service-copy p {
  margin: 0;
  color: var(--muted);
}

.service-copy .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.service-visual {
  min-height: 300px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(184, 44, 57, 0.35), rgba(0, 0, 0, 0.2)),
    url("../assets/images/hero.jpg") center/cover no-repeat;
}

.service-visual--repair {
  background-position: 20% 60%;
  filter: saturate(0.85);
}

.service-visual--tint {
  background-position: 80% 40%;
}

.service-visual--custom {
  background-position: 45% 70%;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2rem;
}

.feature-item {
  background: var(--charcoal);
  padding: 1.35rem 1.15rem;
}

.feature-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  min-height: 560px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--steel);
}

.gallery-item--hero {
  grid-row: 1 / span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
  transition: transform 0.7s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.gallery-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.5rem 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0.55)),
    url("../assets/images/hero.jpg") 75% center / cover no-repeat;
}

.cta-band h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
}

.cta-band p {
  margin: 0 0 1.4rem;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.86);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.25rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.25rem;
}

.contact-block h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.contact-block p,
.contact-block a {
  margin: 0;
  color: var(--muted);
}

.contact-block a:hover {
  color: var(--red);
}

.contact-form {
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #101010;
  color: var(--white);
  padding: 0.8rem 0.9rem;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid rgba(184, 44, 57, 0.45);
  border-color: var(--red);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  margin: 0.4rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-consent a {
  color: #e36a75;
  text-decoration: underline;
}

.form-status {
  margin: 0.85rem 0 0;
}

.form-status.is-ok {
  color: #63c58a;
}

.form-status.is-error {
  color: #ff7b7b;
}

.map-embed {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #1a1a1a;
  min-height: 340px;
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}

/* Legal */
.legal-content {
  max-width: 74ch;
}

.legal-content h2 {
  margin: 2rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: #e36a75;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #070707;
  border-top: 3px solid var(--red);
  padding: 3rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .logo-link {
  margin-bottom: 0.9rem;
}

.footer-brand p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
}

.footer-col h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.elp-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.42;
  transition: opacity 0.2s;
  font-size: 0.82rem;
}

.elp-credit:hover {
  opacity: 0.85;
}

.elp-credit img {
  height: 18px;
  width: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, 0, 0);
  }
}

@media (max-width: 960px) {
  .section-split,
  .contact-grid,
  .footer-grid,
  .service-band,
  .service-band:nth-child(even),
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-rows: auto;
    min-height: 0;
  }

  .gallery-item--hero {
    grid-row: auto;
    min-height: 320px;
  }

  .service-band:nth-child(even) .service-copy {
    order: initial;
  }

  .service-copy,
  .service-band:nth-child(even) .service-copy {
    margin: 0;
    width: 100%;
  }

  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
    background: #0f0f0f;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-cta {
    margin: 0.4rem 0 0;
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .feature-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 82vh;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .reveal,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
