/*
Theme Name: SV Mosler Gutachter
Theme URI: https://sv-mosler.de/
Author: SV Mosler
Description: Professionelles WordPress-Theme für SV Mosler mit eigener Admin-Seite, bearbeitbaren Texten, Zertifikats-Uploads, Partnerbereich, Aktuelles und Kontaktanfragen.
Version: 2.6.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: sv-mosler
*/

:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #ededeb;
  --ink: #10131a;
  --text: #222733;
  --muted: #606a74;
  --line: #d7dadd;
  --blue: #223645;
  --navy: #0e0f26;
  --gold: #fbb100;
  --gold-soft: #fff4d1;
  --red: #e21b24;
  --shadow: 0 24px 58px rgba(14, 15, 38, 0.16);
  --radius: 8px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--navy);
  color: #fff;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 15, 38, var(--header-bg-opacity, 0.54));
  backdrop-filter: blur(9px);
  transition: background 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(14, 15, 38, var(--header-scrolled-opacity, 0.78));
  backdrop-filter: blur(14px);
}

.site-header .container {
  width: min(calc(100% - 40px), 1560px);
  max-width: 1560px;
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 158px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.header-identity {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-with-image {
  width: min(700px, 46vw);
  max-width: 700px;
}

.brand-with-image .brand-copy {
  display: none;
}

.brand-logo,
.custom-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 142px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border: 1px solid rgba(251, 177, 0, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--gold);
  font-weight: 950;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: #fff;
  line-height: 1.15;
}

.brand-copy span {
  max-width: 300px;
  color: #d8dde2;
  font-size: 0.84rem;
  line-height: 1.28;
}

.primary-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 780;
}

.primary-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

.primary-nav a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(251, 177, 0, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
}

.nav-toggle span:not(.sr-only),
.nav-toggle span:not(.sr-only)::before,
.nav-toggle span:not(.sr-only)::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.nav-toggle span:not(.sr-only)::before {
  transform: translateY(-6px);
}

.nav-toggle span:not(.sr-only)::after {
  transform: translateY(4px);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(720px + 158px);
  margin-top: -158px;
  padding-top: 158px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 15, 38, 0.95) 0%, rgba(14, 15, 38, 0.78) 48%, rgba(14, 15, 38, 0.22) 100%),
    linear-gradient(0deg, rgba(14, 15, 38, 0.82) 0%, rgba(14, 15, 38, 0.02) 45%);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 34px;
}

.hero-copy {
  max-width: 850px;
  padding: 118px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero .eyebrow {
  color: #ffd154;
}

.eyebrow::before {
  width: 38px;
  height: 2px;
  flex: 0 0 38px;
  background: var(--gold);
  content: "";
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.35rem, 5.2vw, 4.75rem);
  line-height: 1.03;
}

.hero-text {
  max-width: 720px;
  margin: 25px 0 0;
  color: #f4f4f1;
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.2;
}

.button-primary {
  background: var(--gold);
  color: #101010;
}

.button-primary:hover {
  background: #ffca45;
}

.button-secondary {
  border-color: rgba(251, 177, 0, 0.6);
  background: rgba(14, 15, 38, 0.24);
  color: #fff;
}

.button-secondary:hover {
  border-color: #fff;
}

.hero-proof {
  margin-bottom: 92px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 244, 241, 0.92)),
    #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero-proof img {
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(14, 15, 38, 0.16));
}

.hero-proof p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.trust-band {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(14, 15, 38, 0.12);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-grid article {
  min-height: 128px;
  padding: 24px;
  background: #fff;
}

.trust-grid strong,
.metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.03rem;
}

.trust-grid span,
.metric span {
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  padding: 92px 0;
}

.section-muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.split-section,
.section-heading,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1fr);
  gap: 54px;
}

.section-heading {
  align-items: end;
  margin-bottom: 36px;
}

.section-lead h2,
.section-heading h2,
.contact-grid h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.08rem);
  line-height: 1.12;
}

.section-heading p,
.rich-copy p,
.contact-grid > div > p {
  color: var(--muted);
  font-size: 1.02rem;
}

.rich-copy p:first-child {
  margin-top: 0;
}

.proof-image {
  display: inline-flex;
  max-width: 460px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 209, 0.48)),
    #fff;
}

.proof-image img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(14, 15, 38, 0.12));
}

.expertise-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metric {
  min-height: 145px;
  padding: 24px;
  background: var(--surface);
}

.card-grid,
.partner-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.technical-grid {
  display: grid;
  width: min(calc(100% - 40px), 1280px);
  max-width: 1280px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card,
.partner-grid article,
.news-grid article,
.technical-card,
.certificate-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(14, 15, 38, 0.07);
}

.service-card {
  min-height: 260px;
  padding: 27px;
}

.service-card span,
.certificate-copy span,
.news-grid time {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.service-card h3,
.partner-grid h3,
.news-grid h3,
.certificate-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.23rem;
  line-height: 1.3;
}

.service-card p,
.partner-grid p,
.news-grid p,
.technical-card p,
.certificate-copy p {
  margin: 0;
  color: var(--muted);
}

.technical-section {
  background:
    linear-gradient(180deg, rgba(14, 15, 38, 0.04), rgba(14, 15, 38, 0)),
    var(--bg);
}

.technical-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.technical-card:first-child {
  grid-column: auto;
}

.technical-card:first-child > div {
  align-self: auto;
}

.technical-media {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(14, 15, 38, 0.08), rgba(251, 177, 0, 0.08)),
    #f8f8f6;
}

.technical-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: var(--technical-image-fit, cover);
  object-position: var(--technical-image-position, center center);
  filter: saturate(0.88) contrast(0.96);
  transform: scale(var(--technical-image-scale, 1));
  transform-origin: var(--technical-image-position, center center);
}

.technical-card div {
  padding: 26px;
  flex: 1;
}

.technical-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.28;
}

.technical-card p {
  max-width: 760px;
}

.certificates-section {
  background: var(--surface);
}

.certificate-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.certificate-card {
  overflow: hidden;
}

.certificate-media {
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(34, 54, 69, 0.08), rgba(251, 177, 0, 0.09)),
    #f8f8f6;
}

.certificate-media img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  padding: 18px;
}

.certificate-card-3 .certificate-media {
  background:
    linear-gradient(135deg, rgba(34, 54, 69, 0.06), rgba(251, 177, 0, 0.1)),
    #f8f8f6;
}

.certificate-card-3 .certificate-media img {
  width: auto;
  max-width: 88%;
  height: auto;
  max-height: 240px;
  padding: 0;
  filter: drop-shadow(0 16px 24px rgba(14, 15, 38, 0.13));
}

.certificate-media span {
  color: var(--muted);
  font-weight: 850;
}

.certificate-copy {
  padding: 26px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(251, 177, 0, 0.8);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.partner-grid article,
.news-grid article {
  padding: 24px;
}

.partner-logo,
.logo-placeholder {
  display: grid;
  min-height: 112px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f8f6;
}

.partner-logo img {
  max-width: 92%;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(14, 15, 38, 0.08));
}

.logo-placeholder {
  border-style: dashed;
  color: var(--muted);
  font-weight: 850;
}

.news-grid img {
  width: calc(100% + 48px);
  max-width: none;
  height: 190px;
  margin: -24px -24px 20px;
  object-fit: cover;
}

.contact-section {
  background: var(--surface);
}

.contact-grid {
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.contact-list p {
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  display: block;
  color: var(--ink);
}

.contact-list a,
.contact-list span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6d9dc;
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.privacy {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted) !important;
  font-weight: 500 !important;
}

.privacy input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.captcha-field {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f8f6;
}

.captcha-field input[type="number"] {
  max-width: 180px;
}

.svm-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 750;
}

.form-message.success {
  background: #e9f7ee;
  color: #14542b;
}

.form-message.error {
  background: #fff1f1;
  color: #801f1f;
}

.site-footer {
  background: var(--navy);
  color: #d6dce2;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.32fr) minmax(150px, 0.68fr) minmax(180px, 0.76fr) minmax(145px, 0.58fr) minmax(180px, 0.72fr);
  gap: 28px;
  padding: 52px 0;
}

.footer-brand {
  min-width: 0;
  overflow: hidden;
}

.footer-grid h2,
.footer-grid strong {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1rem;
}

.footer-grid p {
  margin: 0;
  color: #bfc6cc;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-brand img {
  display: block;
  width: min(100%, 420px);
  max-width: 100%;
  max-height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  max-width: 430px;
}

.legal-page {
  background: var(--surface);
}

.legal-container {
  max-width: 920px;
}

.legal-container h1 {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  line-height: 1.1;
}

.legal-copy {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(14, 15, 38, 0.07);
}

.legal-copy p {
  margin: 0 0 18px;
  color: var(--text);
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1680px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 0px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 16px;
    border: 1px solid rgba(251, 177, 0, 0.25);
    border-radius: var(--radius);
    background: rgba(14, 15, 38, 0.98);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: grid;
    gap: 4px;
  }
}

@media (max-width: 1320px) {
  .hero-grid,
  .split-section,
  .section-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    max-width: 470px;
    margin-bottom: 72px;
  }

  .expertise-band,
  .card-grid,
  .partner-grid,
  .news-grid,
  .technical-grid,
  .certificate-showcase,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .technical-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 1040px) {
  .header-inner {
    min-height: 136px;
  }

  .hero {
    min-height: calc(720px + 136px);
    margin-top: -136px;
    padding-top: 136px;
  }

  .brand-with-image {
    width: min(520px, 56vw);
  }

}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
    max-width: calc(100vw - 28px);
  }

  .brand {
    min-width: 0;
    max-width: 100%;
  }

  .brand-copy span {
    display: none;
  }

  .brand-with-image {
    width: min(360px, calc(100vw - 96px));
    min-width: 0;
  }

  .brand-logo,
  .custom-logo {
    max-width: 100%;
    max-height: 92px;
  }

  .header-inner {
    min-height: 140px;
    gap: 12px;
  }

  .header-identity {
    max-width: calc(100vw - 86px);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero {
    min-height: calc(790px + 140px);
    margin-top: -140px;
    padding-top: 140px;
  }

  .hero-copy {
    width: 100%;
    max-width: 360px;
    padding: 92px 0 34px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 1.82rem;
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .hero-text {
    max-width: 100%;
    font-size: 0.96rem;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 270px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    max-width: 330px;
    margin-bottom: 64px;
  }

  .hero-proof img {
    width: 104px;
    height: 104px;
  }

  .trust-band {
    margin-top: 0;
  }

  .section {
    padding: 66px 0;
  }

  .trust-grid,
  .expertise-band,
  .card-grid,
  .partner-grid,
  .news-grid,
  .technical-grid,
  .certificate-showcase,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .technical-grid {
    width: min(calc(100% - 28px), var(--max));
  }

  .technical-card:first-child {
    display: flex;
    flex-direction: column;
  }

  .section-lead h2,
  .section-heading h2,
  .contact-grid h2 {
    font-size: 1.86rem;
  }

  .certificate-media,
  .certificate-media img {
    height: 310px;
    min-height: 310px;
  }

  .certificate-card-3 .certificate-media img {
    max-width: 88%;
    height: auto;
    max-height: 180px;
    min-height: 0;
  }

  .contact-form {
    padding: 20px;
  }

  .technical-media {
    aspect-ratio: 1 / 1;
    height: auto;
    padding: 0;
  }

  .technical-media img {
    height: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: var(--technical-image-fit, cover);
  }

  .technical-card div {
    padding: 22px;
  }

  .footer-brand img {
    max-width: 100%;
    max-height: 86px;
  }

  .legal-copy {
    padding: 20px;
  }
}
