/*
Theme Name: Büro & PraxisConcept
Theme URI: https://buero-praxisconcept.de
Author: Elli-B. Juhl
Description: Theme für Büro- und PraxisConcept mit Gutenberg-Unterstützung
Version: 1.0
License: GPL v2 or later
Text Domain: buero-praxisconcept
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #20282A;
  --petrol: #173235;
  --petrol-deep: #0F2224;
  --brass: #B8894A;
  --brass-light: #E9CFA3;
  --cream: #F7F3EA;
  --paper: #FFFFFF;
  --sage: #7C9484;
  --line: #DCD5C6;
  --muted: #6C6A62;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .serif, .wp-block-heading {
  font-family: 'Fraunces', serif;
}

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

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

header {
  background: var(--petrol);
  color: var(--cream);
  padding: 16px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-mark img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-size: 16px;
}

.logo-text span {
  color: var(--brass-light);
  font-style: italic;
}

.burger {
  background: none;
  border: 1px solid #4C6467;
  color: var(--cream);
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--petrol);
  flex-direction: column;
  padding: 8px 1.5rem 20px;
  gap: 2px;
  border-top: 1px solid #2A4245;
  list-style: none;
}

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

.main-nav a {
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid #24393C;
  display: block;
  color: var(--cream);
}

.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--brass-light);
}

.nav-cta a,
.nav-cta {
  border: 1px solid var(--brass-light);
  padding: 11px 18px;
  border-radius: 2px;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}

.nav-cta a:hover {
  background: var(--brass-light);
  color: var(--petrol-deep);
}

.hero {
  background: var(--petrol-deep);
  color: var(--cream);
  padding: 56px 1.5rem;
}

.hero-inner {
  max-width: 640px;
}

.hero-photo {
  display: none;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--brass-light);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.hero h1 {
  font-size: 29px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero h1 em {
  color: var(--brass-light);
  font-style: italic;
}

.hero p {
  font-size: 15.5px;
  color: #D8D4C8;
  margin-bottom: 28px;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
}

.btn-primary {
  background: var(--brass);
  color: var(--petrol-deep);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  text-align: center;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  border: 1px solid #4C6467;
  color: var(--cream);
  padding: 14px 22px;
  font-size: 14px;
  text-align: center;
  background: none;
  cursor: pointer;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--brass-light);
  color: var(--brass-light);
}

.trust {
  background: var(--paper);
  padding: 18px 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  text-align: center;
}

section {
  padding: 56px 1.5rem;
}

.section-head {
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--petrol);
}

.section-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 14.5px;
}

.page-layout {
  padding: 56px 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-content h1 {
  font-family: 'Fraunces', serif;
  font-size: 29px;
  font-weight: 500;
  color: var(--petrol);
  margin-bottom: 20px;
}

.page-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--petrol);
  margin: 32px 0 16px;
}

.page-content p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.page-content img {
  width: 100%;
  border-radius: 2px;
  margin: 24px 0;
}

.contact-form {
  margin-top: 32px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--petrol);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brass);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  display: inline-block;
}

.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 24px;
}

.sidebar-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--petrol);
  margin-bottom: 12px;
}

.sidebar-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.sidebar-btn {
  display: block;
  text-align: center;
}

.segments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.segment {
  background: var(--paper);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}

.segment.featured {
  background: #FBF9F4;
}

.segment .kicker {
  font-size: 11.5px;
  color: var(--brass);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.segment .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
}

.segment h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--petrol);
  margin-bottom: 8px;
}

.segment p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.segment .link {
  margin-top: auto;
  font-size: 13px;
  color: var(--brass);
  font-weight: 600;
}

.about {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 1rem 1.5rem;
}

.about-photo {
  display: none;
  background: linear-gradient(180deg, #E3DCCB, #D3CBB4);
  max-width: 260px;
  border-radius: 2px;
  align-items: center;
  padding: 18px;
  margin: 0 auto;
  overflow: hidden;
  flex-direction: column;
}

.about-photo img {
  width: 100%;
}

.about-photo .tag {
  color: var(--petrol-deep);
  font-size: 12px;
  padding: 7px 12px;
}

.about-text h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--petrol);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 12px;
}

.quote {
  font-style: italic;
  font-size: 17px;
  color: var(--petrol);
  border-left: 2px solid var(--brass);
  padding-left: 16px;
  margin-top: 22px;
}

.quote span {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}

.stats {
  background: var(--sage);
  color: #173235;
  padding: 40px 1.5rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 28px;
  text-align: center;
}

.stat .num {
  font-size: 30px;
  font-weight: 500;
}

.stat .label {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.85;
}

.cta-band {
  background: var(--petrol);
  color: var(--cream);
  text-align: center;
  padding: 56px 1.5rem;
}

.cta-band h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 14px;
}

.cta-band p {
  color: #C9C4B6;
  margin-bottom: 26px;
}

footer {
  background: var(--petrol-deep);
  color: #94A19E;
  padding: 40px 1.5rem 24px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2A4245;
}

.footer-grid h4 {
  color: var(--cream);
  font-size: 13px;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  opacity: 0.85;
  color: #94A19E;
}

.footer-grid a:hover {
  opacity: 1;
  color: var(--cream);
}

.footer-grid ul,
.footer-grid .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin: 0;
  padding: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  font-size: 11.5px;
  color: #6E7C79;
}

#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--brass);
  color: var(--petrol-deep);
  border: none;
  border-radius: 2px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 90;
}

#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  opacity: 0.85;
}

.alignwide {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: none;
}

.wp-block-image img {
  border-radius: 2px;
}

@media(min-width: 640px) {
  .about-photo {
    max-width: 280px;
  }
}

@media(min-width: 860px) {
  header {
    padding: 18px 4rem;
  }

  .logo-mark {
    width: 45px;
    height: 45px;
  }

  .logo-mark img {
    width: 45px;
    height: 45px;
  }

  .logo-text {
    font-size: 19px;
  }

  .burger {
    display: none;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: 34px;
    border: none;
  }

  .main-nav a {
    padding: 0;
    border: none;
    opacity: 0.88;
    font-size: 18px;
  }

  .main-nav a:hover {
    opacity: 1;
    color: var(--brass-light);
  }

  .nav-cta {
    margin-top: 0;
  }

  .hero {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    padding: 90px 1.5rem;
  }

  .hero-photo {
    display: block;
    width: 100%;
    max-width: 32rem;
    height: 23rem;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
  }

  .hero-quote {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 54, 57, 0.75);
    color: var(--cream);
    padding: 16px 20px;
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
  }

  .hero-quote span {
    display: block;
    font-style: normal;
    font-size: 12px;
    opacity: 0.75;
    margin-top: 4px;
  }

  .hero-photo img {
    display: block;
    width: 93%;
    height: auto;
    object-position: center;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero p {
    font-size: 17px;
    max-width: 480px;
  }

  .btn-row {
    flex-direction: row;
    margin-bottom: 70px;
  }

  .btn-primary,
  .btn-ghost {
    padding: 14px 26px;
  }

  .trust {
    flex-direction: row;
    justify-content: center;
    gap: 56px;
    padding: 20px 4rem;
  }

  section:not(.hero):not(.about) {
    padding: 90px 4rem;
  }

  .section-head {
    max-width: 600px;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .section-head p {
    font-size: 15.5px;
  }

  .segments {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1080px;
    margin: 0 auto;
  }

  .segment {
    padding: 38px 28px;
  }

  .about {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 4rem;
  }

  .about-photo {
    display: flex;
    flex-shrink: 0;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-text p {
    max-width: 480px;
  }

  .quote {
    font-size: 19px;
    max-width: 440px;
  }

  .stats {
    gap: 90px;
    padding: 56px 4rem;
  }

  .stat .num {
    font-size: 38px;
  }

  .cta-band {
    padding: 80px 4rem;
  }

  .cta-band h2 {
    font-size: 30px;
  }

  .cta-band p {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

  footer {
    padding: 50px 4rem 30px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 22px;
    font-size: 12px;
  }

  .page-layout {
    flex-direction: row;
    max-width: 1080px;
    margin: 0 auto;
    padding: 90px 1.5rem;
    gap: 64px;
  }

  .form-row {
    flex-direction: row;
  }

  .form-row .form-group {
    flex: 1;
  }

  .page-content {
    flex: 1;
    min-width: 0;
  }

  .page-content h1 {
    font-size: 38px;
  }

  .page-sidebar {
    width: 300px;
    flex-shrink: 0;
  }
}
