/*
Theme Name: Schuldnerberatung Wendland
Theme URI: https://example.local/schuldnerberatung-wendland
Author: Codex
Description: Ruhiges WordPress-Theme für eine soziale, staatlich anerkannte Schuldnerberatungsstelle mit Standorten in Lüchow und Dannenberg.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: schuldnerberatung-wendland
*/

:root {
  --ink: #182521;
  --muted: #5c6965;
  --line: #d9e1dd;
  --paper: #f8faf8;
  --white: #ffffff;
  --green: #2d6a4f;
  --green-dark: #1b4332;
  --sage: #dfe9e3;
  --blue: #315f74;
  --amber: #d69f3a;
  --shadow: 0 14px 34px rgba(24, 37, 33, 0.08);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name {
  display: block;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.15;
}

.brand-subline {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--white);
  background: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--green);
}

.button.secondary {
  color: var(--green-dark);
  background: transparent;
  border-color: var(--green);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 250, 248, 0.98) 0%, rgba(248, 250, 248, 0.9) 44%, rgba(248, 250, 248, 0.34) 72%),
    var(--sage);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 12px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--amber));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 420px);
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 72px 0 96px;
}

.hero-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 42px 0 66px;
}

.hero-logo img {
  display: block;
  width: min(100%, 390px);
  height: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--amber);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.13;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #34423e;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.hero-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin-top: 18px;
}

.hero-locations div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(24, 37, 33, 0.07);
}

.hero-locations strong,
.hero-locations span,
.hero-locations a {
  display: block;
}

.hero-locations strong {
  font-size: 0.98rem;
}

.hero-locations span,
.hero-locations a {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-locations a {
  text-decoration: none;
}

.hero-locations a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.trust-strip {
  background: var(--green-dark);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.trust-item {
  padding: 22px;
  background: var(--green-dark);
}

.trust-item strong {
  display: block;
  font-size: 1.02rem;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

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

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

.card {
  min-height: 100%;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
}

.card p,
.card ul {
  margin: 0;
  color: var(--muted);
}

.card ul {
  padding-left: 20px;
}

.notice {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 26px;
  background: #fff8e8;
  border: 1px solid #ecd7a6;
  border-radius: var(--radius);
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--green-dark);
  background: var(--white);
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 900;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 14px;
}

.step {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-weight: 800;
}

.step p {
  margin: 6px 0 0;
  color: var(--muted);
}

.locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.location {
  padding: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-dark), var(--blue));
  border-radius: var(--radius);
}

.location p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.location a {
  color: var(--white);
}

.pfaendung-section {
  background: #f7faf8;
}

.pfaendung-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pfaendung-panel h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
}

.pfaendung-panel p {
  margin: 0;
  color: var(--muted);
}

.pfaendung-panel .button {
  width: fit-content;
  align-self: end;
}

.leitbild-section {
  background: var(--white);
}

.leitbild-content {
  max-width: 920px;
  padding: 30px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dropdown-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 800;
  list-style: none;
}

.dropdown-panel summary::-webkit-details-marker {
  display: none;
}

.dropdown-panel summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  flex: 0 0 auto;
}

.dropdown-panel[open] summary::after {
  content: "-";
}

.dropdown-body {
  padding-top: 22px;
}

.leitbild-content h3 {
  margin: 28px 0 10px;
  color: var(--green-dark);
  font-size: 1.12rem;
}

.leitbild-content h3:first-child {
  margin-top: 0;
}

.leitbild-content p,
.leitbild-content li {
  color: var(--muted);
}

.leitbild-content ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.leitbild-content blockquote {
  margin: 28px 0 0;
  padding: 20px 22px;
  color: var(--green-dark);
  background: var(--white);
  border-left: 5px solid var(--amber);
  border-radius: 6px;
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 34px;
  align-items: start;
}

.contact-box {
  padding: 28px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius);
}

.contact-box p {
  color: rgba(255, 255, 255, 0.84);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--white);
}

.legal-section {
  padding-top: 44px;
  background: #f1f5f3;
}

.legal-content {
  max-width: 760px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-content p {
  margin: 16px 0 0;
  color: var(--muted);
}

.legal-content a {
  color: var(--green-dark);
}

.site-footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.82);
  background: #101916;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.footer-inner a {
  color: var(--white);
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(248, 250, 248, 0.98) 0%, rgba(248, 250, 248, 0.95) 60%, rgba(248, 250, 248, 0.66) 100%),
      var(--sage);
  }

  .hero-content {
    padding: 56px 0 0;
  }

  .hero-logo {
    justify-content: flex-start;
    padding: 0 0 96px;
  }

  .hero-logo img {
    width: min(72vw, 280px);
  }

  .hero-inner,
  .trust-grid,
  .hero-locations,
  .grid.three,
  .grid.two,
  .section-head,
  .locations,
  .pfaendung-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 60px 0;
  }

  .nav a {
    min-height: 36px;
  }

  .button {
    width: 100%;
  }

  .notice,
  .step {
    grid-template-columns: 1fr;
  }

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