/*
Theme Name: Schaefer Local
Theme URI: https://schaefer-steuer.de
Author: Jarvis
Description: Lokales Redesign fuer Schaefer Steuerberatung.
Version: 1.0.0
Text Domain: schaefer-local
*/

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --green-900: #294d3f;
  --green-700: #3f6b57;
  --green-600: #5f7f61;
  --sage: #8ca87c;
  --sage-tint: #eef3ea;
  --warm-50: #f9f5f4;
  --orange: #ff843d;
  --ink: #191919;
  --muted: #5c675f;
  --white: #ffffff;
  --line: #e7ded9;
  --shadow: 0 18px 50px rgba(41, 77, 63, 0.12);
  --radius: 8px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--green-900);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  color: var(--green-700);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

h1,
h2 {
  font-weight: 600;
}

h3 {
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  max-width: 920px;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 18px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(140, 168, 124, 0.14);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-900);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.15;
}

.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--green-900);
}

.main-nav .button,
.main-nav .button:hover {
  color: var(--white);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--green-900);
  color: var(--white);
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--sage);
}

.button.accent {
  background: var(--orange);
  color: var(--ink);
}

.hero {
  padding: 56px 0 20px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p {
  max-width: 720px;
  color: #34423b;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

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

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  max-width: 820px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.trust-item {
  background: rgba(255, 255, 255, 0.85);
  padding: 18px;
}

.trust-item strong {
  display: block;
  color: var(--green-700);
  font-size: 1.35rem;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--sage-tint);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 560px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 26px;
  box-shadow: 0 4px 18px rgba(25, 25, 25, 0.04);
}

.card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--green-700);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.service-row {
  padding: 56px 0;
}

.service-row.alt {
  background: var(--sage-tint);
}

.service-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.service-row-reverse .service-icon {
  order: 2;
}

.service-row-reverse .service-icon + div {
  order: 1;
}

.service-icon {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--green-700);
}

.service-icon svg {
  max-width: 65%;
  height: auto;
}

.service-row h3 {
  margin-bottom: 12px;
}

.service-row .button.secondary {
  margin-top: 8px;
}

.media-panel {
  min-height: 430px;
  border-radius: var(--radius);
  background: center/cover;
  box-shadow: var(--shadow);
}

.media-panel.office {
  background-image: url("office-photo.jpg");
}

.media-panel.digital {
  background-image: url("digital-photo.jpg");
}

.media-panel.documents {
  background-image: url("documents-photo.jpg");
}

.media-panel.hero-photo {
  background-image: url("hero-photo.jpg");
}

.media-panel.portrait {
  background-image: url("portrait-photo.jpg");
  background-position: center;
  aspect-ratio: 1144 / 1375;
  min-height: 0;
}

.access-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(41, 77, 63, 0.93), rgba(140, 168, 124, 0.82)),
    url("img/access-card-bg.jpg") center/cover;
}

.access-card h3,
.access-card a {
  color: var(--white);
}

.contact-stack {
  display: grid;
  gap: 32px;
  max-width: 640px;
}

.contact-box {
  border-left: 5px solid var(--orange);
  background: var(--warm-50);
  padding: 26px;
}

.contact-box.vcard {
  border-radius: var(--radius);
}

.form-grid,
.wpcf7-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--green-900);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  background: var(--white);
}

input[type="checkbox"] {
  width: auto;
  justify-self: start;
}

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

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.req {
  color: #ff843d;
  font-weight: 700;
}

/* Label-Text als eigene Zeile, damit der Pflichtfeld-Stern direkt hinter
   der Beschriftung steht und nicht durch das Label-Grid umbricht. */
.label-text {
  display: block;
}

/* Einwilligung: Checkbox direkt vor dem Text, nicht darueber */
.accept-row .wpcf7-list-item {
  margin: 0;
}

.accept-row .wpcf7-list-item > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}

.accept-row input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 4px;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-not-valid-tip {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
}

.wpcf7-response-output {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 14px 16px;
  margin-top: 18px;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

/* Rechtstexte: ruhiges, gut lesbares Langtext-Layout */
.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 8px;
}

.legal-content h1 + h2 {
  margin-top: 28px;
}

.legal-content h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin: 52px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-content h3 {
  font-size: 1.08rem;
  color: var(--green-900);
  margin: 32px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li::marker {
  color: var(--sage);
}

.legal-content a {
  color: var(--green-700);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .legal-content h2 {
    margin-top: 40px;
  }
}

.site-footer {
  background: var(--green-900);
  color: var(--white);
  padding: 44px 0;
}

.site-footer a,
.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-credit {
  width: min(var(--content), calc(100% - 32px));
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-credit a {
  opacity: 0.9;
}

.partner-badges {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--green-900);
    font-weight: 800;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 32px;
    background:
      linear-gradient(180deg, rgba(249, 245, 244, 0.98) 0%, rgba(249, 245, 244, 0.93) 100%),
      url("img/hero-mobile-bg.jpg") center/cover;
  }

  .trust-row,
  .grid.cols-3,
  .grid.cols-2,
  .split {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .service-row {
    padding: 40px 0;
  }

  .service-row-inner {
    gap: 20px;
    text-align: center;
  }

  .service-row-reverse .service-icon,
  .service-row-reverse .service-icon + div {
    order: initial;
  }

  .service-icon {
    width: 140px;
    height: 140px;
  }

  .section-head {
    display: block;
  }

  .media-panel {
    min-height: 300px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, var(--content));
  }

  .brand span {
    max-width: 165px;
  }

  .actions .button {
    width: 100%;
  }

  .card {
    padding: 20px;
  }
}
