/*
Theme Name: Sahin Kanzlei
Theme URI: https://sahin-ub.de/
Author: OpenAI Codex
Description: Ruhiges, professionelles WordPress-Theme fuer Sahin-Unternehmensberatung mit Kanzlei-Farbschema, Leistungsseiten und Demo-Inhaltsimport.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: sahin-kanzlei
*/

:root {
  --sk-ink: #0f2638;
  --sk-ink-soft: #24384a;
  --sk-pine: #1f6b5a;
  --sk-pine-dark: #154a42;
  --sk-gold: #c59b45;
  --sk-paper: #f7f4ed;
  --sk-white: #ffffff;
  --sk-mist: #eef2f1;
  --sk-line: #d8dfdd;
  --sk-text: #24303a;
  --sk-muted: #66727d;
  --sk-radius: 8px;
  --sk-shadow: 0 18px 48px rgba(15, 38, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

a {
  color: var(--sk-pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus {
  color: var(--sk-pine-dark);
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--sk-ink);
  color: var(--sk-white);
  padding: 10px 14px;
  border-radius: var(--sk-radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 223, 221, 0.88);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--sk-ink);
  text-decoration: none;
  min-width: 0;
}

.site-branding img {
  width: auto;
  max-width: 210px;
  max-height: 54px;
  object-fit: contain;
}

.site-branding__fallback {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sk-ink);
  color: var(--sk-white);
  font-weight: 700;
}

.site-branding__text {
  display: grid;
  line-height: 1.2;
}

.site-branding__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sk-ink);
}

.site-branding__tagline {
  font-size: 0.82rem;
  color: var(--sk-muted);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sk-line);
  border-radius: var(--sk-radius);
  background: var(--sk-white);
  color: var(--sk-ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--sk-radius);
  color: var(--sk-ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a {
  background: var(--sk-mist);
  color: var(--sk-pine-dark);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--sk-radius);
  background: var(--sk-pine);
  color: var(--sk-white);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--sk-pine-dark);
  color: var(--sk-white);
}

.button--light {
  background: var(--sk-white);
  color: var(--sk-ink);
  border-color: rgba(255, 255, 255, 0.72);
}

.button--light:hover,
.button--light:focus {
  background: var(--sk-paper);
  color: var(--sk-ink);
}

.button--ghost {
  background: transparent;
  color: var(--sk-ink);
  border-color: var(--sk-line);
}

.button--ghost:hover,
.button--ghost:focus {
  background: var(--sk-mist);
  color: var(--sk-ink);
}

.site-main {
  min-height: 60vh;
}

.section {
  padding: 84px 0;
}

.section--paper {
  background: var(--sk-paper);
}

.section--mist {
  background: var(--sk-mist);
}

.section--ink {
  background: var(--sk-ink);
  color: var(--sk-white);
}

.section__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section__header {
  max-width: 760px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sk-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px;
  color: var(--sk-ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.13;
  letter-spacing: 0;
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4,
.section--ink h5,
.section--ink h6 {
  color: var(--sk-white);
}

h1 {
  font-size: clamp(2.45rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 18px;
}

.lead {
  color: var(--sk-ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.section--ink .lead,
.section--ink p {
  color: rgba(255, 255, 255, 0.82);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 78px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--sk-ink);
  color: var(--sk-white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 38, 56, 0.92) 0%, rgba(15, 38, 56, 0.70) 46%, rgba(15, 38, 56, 0.22) 100%);
  content: "";
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 72px;
}

.hero__content {
  max-width: 760px;
}

.hero h1 {
  color: var(--sk-white);
}

.hero .lead {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 880px;
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__meta-item {
  min-height: 116px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.10);
}

.hero__meta-item strong {
  display: block;
  color: var(--sk-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero__meta-item span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.intro-panel {
  padding: 28px;
  border-left: 4px solid var(--sk-gold);
  background: var(--sk-white);
  box-shadow: var(--sk-shadow);
}

.intro-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-list li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sk-line);
}

.intro-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

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

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

.service-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--sk-line);
  border-radius: var(--sk-radius);
  background: var(--sk-white);
  box-shadow: 0 8px 28px rgba(15, 38, 56, 0.06);
}

.service-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(31, 107, 90, 0.10);
  color: var(--sk-pine-dark);
  font-weight: 800;
}

.service-card p {
  color: var(--sk-muted);
}

.service-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  color: var(--sk-pine-dark);
  font-weight: 800;
  text-decoration: none;
}

.service-card a::after {
  margin-left: 8px;
  content: ">";
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 54px;
  align-items: center;
}

.feature-media {
  overflow: hidden;
  border-radius: var(--sk-radius);
  box-shadow: var(--sk-shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  top: 0.34em;
  left: 0;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sk-pine);
  color: var(--sk-white);
  font-size: 11px;
  line-height: 1;
  content: "✓";
}

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

.process-step {
  position: relative;
  min-height: 190px;
  padding: 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--sk-radius);
  background: rgba(255, 255, 255, 0.06);
}

.process-step::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  margin-bottom: 18px;
  color: var(--sk-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  gap: 40px;
  align-items: center;
}

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

.contact-details div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-details dt {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.contact-details dd {
  margin: 0;
  color: var(--sk-white);
}

.contact-details a {
  color: var(--sk-white);
}

.page-hero {
  background: var(--sk-ink);
  color: var(--sk-white);
  padding: 78px 0;
}

.page-hero__inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--sk-white);
}

.content-area {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.entry-content > * {
  max-width: 780px;
}

.entry-content > .alignwide {
  max-width: 1100px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 34px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2em;
}

.entry-content li + li {
  margin-top: 8px;
}

.site-footer {
  background: #071925;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.site-footer h2,
.site-footer h3 {
  color: var(--sk-white);
  font-size: 1.18rem;
}

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

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

.not-found {
  text-align: center;
}

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--sk-white);
    border-bottom: 1px solid var(--sk-line);
    box-shadow: 0 18px 28px rgba(15, 38, 56, 0.10);
  }

  body.nav-open .site-navigation {
    display: block;
  }

  .primary-menu {
    width: min(1180px, calc(100% - 32px));
    display: grid;
    gap: 2px;
    margin: 0 auto;
    padding: 14px 0;
  }

  .primary-menu a {
    width: 100%;
  }

  .hero__meta,
  .intro-grid,
  .feature-split,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-header__inner {
    min-height: 68px;
  }

  .site-branding img {
    max-width: 170px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(15, 38, 56, 0.72) 0%, rgba(15, 38, 56, 0.94) 100%);
  }

  .hero__inner {
    padding: 88px 0 44px;
  }

  .hero__meta,
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero__meta {
    margin-top: 34px;
  }

  .hero__meta-item {
    min-height: auto;
  }

  .contact-details div,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
