/*
Theme Name: Schunke Kanzlei Produktion
Theme URI: https://www.stbschunke.de/
Author: Codex
Description: Eigenstaendiges Kanzlei-Theme mit Kontaktleiste, horizontaler Navigation, Schloss-Hero, rechter Linkliste und dunkelblauem Footer.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schunke-kanzlei-reference
*/

:root {
  --navy: #061b38;
  --navy-2: #09284f;
  --blue: #005bbb;
  --blue-soft: #e9f2ff;
  --ink: #162033;
  --muted: #647083;
  --line: #dfe6f0;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

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

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

.top-contact {
  background: var(--navy);
  color: #dce8f8;
  font-size: 0.92rem;
}

.top-contact-inner,
.brandbar-inner,
.hero-inner,
.main-inner,
.footer-inner {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: clamp(20px, 5vw, 54px);
  padding-right: clamp(20px, 5vw, 54px);
}

.top-contact-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: flex-end;
  min-height: 42px;
}

.top-contact a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.brandbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.brandbar-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding-bottom: 18px;
  padding-top: 22px;
  overflow: visible;
}

.brand-block {
  max-width: 590px;
  width: min(590px, 100%);
}

.brand-logo {
  display: block;
}

.brand-logo img {
  display: block;
  width: min(570px, 100%);
}

.top-nav ul,
.side-panel ul,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-nav {
  overflow: visible;
  position: relative;
  z-index: 30;
}

.top-menu {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0 19px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 30;
}

.top-nav > ul {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0 19px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 30;
}

.top-menu li {
  list-style: none;
  position: relative;
}

.top-nav li {
  list-style: none;
  position: relative;
}

.top-menu a {
  color: var(--navy);
  display: block;
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.15;
  padding: 12px 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-nav a {
  color: var(--navy);
  display: block;
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.15;
  padding: 12px 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-menu a:hover,
.top-menu .current-menu-item > a,
.top-menu .current_page_item > a,
.top-nav a:hover,
.top-nav .current-menu-item > a,
.top-nav .current_page_item > a {
  color: var(--blue);
}

.top-menu ul {
  background: #ffffff;
  border-top: 3px solid var(--blue);
  box-shadow: 0 18px 34px rgba(6, 27, 56, 0.16);
  display: block;
  left: -18px;
  min-width: 240px;
  opacity: 0;
  padding: 10px 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.top-nav > ul ul {
  background: #ffffff;
  border-top: 3px solid var(--blue);
  box-shadow: 0 18px 34px rgba(6, 27, 56, 0.16);
  display: block;
  left: -18px;
  min-width: 240px;
  opacity: 0;
  padding: 10px 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.top-menu ul ul,
.top-nav > ul ul ul {
  left: 100%;
  top: -13px;
  transform: translateX(8px);
}

.top-menu li:hover > ul,
.top-menu li:focus-within > ul,
.top-nav li:hover > ul,
.top-nav li:focus-within > ul {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-menu ul li:hover > ul,
.top-menu ul li:focus-within > ul,
.top-nav > ul ul li:hover > ul,
.top-nav > ul ul li:focus-within > ul {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.top-menu ul a {
  font-size: 0.91rem;
  letter-spacing: 0.025em;
  padding: 10px 18px;
  white-space: normal;
}

.top-nav > ul ul a {
  font-size: 0.91rem;
  letter-spacing: 0.025em;
  padding: 10px 18px;
  white-space: normal;
}

.hero {
  background:
    linear-gradient(90deg, rgba(6, 27, 56, 0.9) 0%, rgba(6, 27, 56, 0.68) 38%, rgba(6, 27, 56, 0.16) 100%),
    var(--hero-image) center / cover no-repeat;
  color: #ffffff;
}

.hero-inner {
  min-height: clamp(360px, 44vw, 560px);
  padding-bottom: clamp(48px, 8vw, 92px);
  padding-top: clamp(58px, 9vw, 112px);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.3vw, 4.8rem);
  line-height: 1.03;
  margin: 0 0 22px;
  max-width: 760px;
}

.hero-text {
  color: #ecf4ff;
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

.claim {
  color: var(--blue);
  font-size: clamp(0.88rem, 1.15vw, 1.12rem);
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.3;
  margin: 12px 0 0;
  text-align: center;
  text-transform: uppercase;
}

.claim-subline {
  align-items: center;
  color: #687385;
  display: flex;
  gap: 14px;
  justify-content: center;
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.25;
  margin: 7px 0 0;
  text-align: center;
  text-transform: uppercase;
}

.claim-subline::before,
.claim-subline::after {
  background: #8993a2;
  content: "";
  display: block;
  height: 1px;
  width: 58px;
}

.subline {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.main-inner {
  padding-bottom: clamp(48px, 6vw, 82px);
  padding-top: clamp(48px, 6vw, 82px);
}

.content-layout {
  align-items: start;
  display: grid;
  gap: clamp(34px, 4vw, 62px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.content {
  min-width: 0;
}

.content h1,
.content h2,
.content h3 {
  color: var(--navy);
  line-height: 1.16;
}

.content h1 {
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  hyphens: auto;
  line-height: 1.12;
  margin: 0 0 24px;
  max-width: 980px;
  overflow-wrap: break-word;
}

.content h1 .headline-line {
  display: block;
}

.content h1 .headline-top,
.content h1 .headline-name {
  font-size: clamp(2.15rem, 4.7vw, 3.85rem);
  font-weight: 850;
  letter-spacing: 0.015em;
  line-height: 1.08;
  text-transform: uppercase;
}

.content h1 .headline-sub {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  margin-top: 10px;
}

@media (min-width: 1280px) {
  .content-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .content h1 {
    font-size: clamp(2.35rem, 2.8vw, 3.35rem);
  }
}

.content h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  margin-top: 1.45em;
}

.content p,
.content li {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.content .wp-block-image,
.content figure {
  max-width: 100%;
}

.side-panel {
  background: #ffffff;
  border-top: 5px solid var(--blue);
  box-shadow: 0 18px 48px rgba(6, 27, 56, 0.11);
  padding: 28px;
}

.side-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-section + .side-section {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 26px;
}

.side-kicker {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.side-title {
  color: var(--navy);
  font-size: 1.32rem;
  line-height: 1.2;
  margin: 0 0 18px;
}

.side-menu li {
  border-bottom: 1px solid var(--line);
}

.side-menu a,
.link-list a {
  color: var(--navy);
  display: block;
  font-weight: 850;
  padding: 11px 0;
  text-decoration: none;
}

.side-menu a:hover,
.side-menu .current-menu-item > a,
.side-menu .current_page_item > a,
.link-list a:hover {
  color: var(--blue);
}

.side-menu ul {
  border-left: 2px solid var(--blue-soft);
  list-style: none;
  margin: 0 0 10px 12px;
  padding-left: 14px;
}

.side-menu .children {
  border-left: 2px solid var(--blue-soft);
  list-style: none;
  margin: 0 0 10px 12px;
  padding-left: 14px;
}

.side-menu ul a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 6px 0;
}

.side-contact {
  background: #ffffff;
  border: 1px solid var(--line);
  color: #4d596b;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  padding: 18px;
}

.side-contact strong {
  color: var(--navy);
}

.side-contact a {
  color: var(--navy);
  font-weight: 800;
}

.link-list a {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 5px 0;
}

.link-list span {
  color: var(--muted);
  display: block;
  font-size: 0.95rem;
  padding: 5px 0;
}

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

.footer-inner {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  padding-bottom: 48px;
  padding-top: 48px;
}

.footer-logo {
  display: block;
  margin-bottom: 22px;
  width: min(380px, 100%);
}

.site-footer p {
  color: #d8e5f5;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-top: 0;
}

.site-footer strong {
  color: #ffffff;
}

.site-footer a {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}

.footer-links a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 920px) {
  .content-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .top-menu,
  .top-nav > ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

  .top-contact-inner {
    justify-content: flex-start;
  }

  .brandbar-inner {
    min-height: 0;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(6, 27, 56, 0.92) 0%, rgba(6, 27, 56, 0.72) 100%),
      var(--hero-image) center / cover no-repeat;
  }

  .claim span {
    display: block;
  }
}
