/* AccountingPartners — statische Visitenkarten-Website
   Nachbau des bisherigen Divi/WordPress-Designs, ohne CMS-Unterbau. */

:root {
  --blue-dark: #05285b;
  --blue: #1a5693;
  --blue-accent: #2ea3f2;
  --icon-blue: #255491;
  --ink: #0c0c0c;
  --grey-text: #7a7a7a;
  --grey-bg: rgba(0, 0, 0, 0.05);
  --border: #e2e3e4;
  --white: #ffffff;
  --header-h: 85px;
  --header-h-mobile: 64px;
  --container-w: 1140px;
  --font: 'Work Sans', Helvetica, Arial, Lucida, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p, li {
  hyphens: auto;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5 {
  overflow-wrap: break-word;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-accent);
}

h1, h2, h3, h4, h5 {
  color: var(--blue);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }

p { margin: 0 0 1.1em; }

ul { margin: 0 0 1.1em; padding-left: 1.2em; }
ul ul { list-style-type: circle; margin-bottom: 0; }
main li + li { margin-top: 0.4em; }

.caps { font-variant: small-caps; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-mobile);
}

@media (min-width: 768px) {
  .header-inner { height: var(--header-h); }
}

.logo img {
  height: 40px;
  width: auto;
}
@media (min-width: 768px) {
  .logo img { height: 58px; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue-accent);
}

.lang-switch {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
}

.lang-switch a {
  display: inline-block;
  padding: 0.4em 0.7em;
  background: var(--border);
  color: var(--ink);
}

.lang-switch a.is-current {
  background: var(--blue);
  color: #fff;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h-mobile) 0 auto 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .header-right {
    gap: 14px;
  }
}

/* ---------- Hero ---------- */
.hero {
  display: block;
  line-height: 0;
}
.hero img {
  width: 100%;
  height: auto;
}

/* ---------- Page title band ---------- */
/* nur oben/unten setzen – sonst wird das seitliche Container-Padding überschrieben */
.page-title {
  padding-top: 48px;
  padding-bottom: 8px;
}
@media (min-width: 768px) {
  .page-title { padding-top: 64px; }
}

/* ---------- Generic sections ---------- */
.section {
  padding: 40px 0;
}
@media (min-width: 900px) {
  .section { padding: 64px 0; }
}

.intro-row {
  display: grid;
  gap: 24px;
  align-items: start;
  min-width: 0;
}
.intro-row > * {
  min-width: 0;
}
@media (min-width: 768px) {
  .intro-row {
    grid-template-columns: 1fr 2fr;
    gap: 48px;
  }
}

.two-col {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.two-col > * {
  min-width: 0;
}
@media (min-width: 768px) {
  .two-col.equal { grid-template-columns: 1fr 1fr; gap: 48px; }
  .two-col.wide-narrow { grid-template-columns: 2fr 1fr; gap: 48px; }
  .two-col.narrow-wide { grid-template-columns: 1fr 2fr; gap: 48px; }
}

/* ---------- Blurb cards (Team / Dienstleistungen teaser) ---------- */
.blurb-grid {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .blurb-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.blurb-card {
  display: block;
  background: var(--grey-bg);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
}
.blurb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 26px -8px rgba(0, 0, 0, 0.25);
}
.blurb-card .ico {
  color: var(--icon-blue);
  margin-bottom: 16px;
}
.blurb-card .ico svg { width: 56px; height: 56px; }
.blurb-card h4 { margin-bottom: 0.4em; }
.blurb-card h4 a { color: var(--blue); }
.blurb-card p { margin: 0; color: var(--grey-text); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  gap: 40px;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 32px; }
}

.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}
.team-member h4 { margin-bottom: 0.2em; }
.team-member .position {
  margin: 0 0 0.6em;
  font-weight: 500;
  color: var(--ink);
}
.team-member .email {
  display: inline-block;
  margin-bottom: 1em;
  font-size: 0.95rem;
  word-break: break-word;
}

.vita {
  border-top: 1px solid var(--border);
  padding-top: 0.9em;
}
.vita summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  list-style: none;
}
.vita summary::-webkit-details-marker { display: none; }
.vita summary::after {
  content: '+';
  float: right;
  font-weight: 400;
}
.vita[open] summary::after {
  content: '–';
}
.vita .vita-content {
  margin-top: 0.8em;
  font-size: 0.95rem;
}
.vita .vita-content p { margin: 0 0 0.9em; }
.vita .vita-content ul { margin: 0 0 0.9em; }

/* ---------- Career page image+text rows ---------- */
.career-row {
  margin-bottom: 48px;
}
.career-row:last-child { margin-bottom: 0; }
.career-row img {
  border-radius: 8px;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: auto;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.4em 0;
}

/* ---------- Kontakt ---------- */
.contact-card {
  background: var(--grey-bg);
  border-radius: 10px;
  padding: 32px;
}
.contact-card address { font-style: normal; }
.contact-card p { margin: 0 0 1em; }

.map-frame {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--grey-bg);
}
@media (min-width: 768px) {
  .map-frame { height: 100%; min-height: 360px; }
}

.map-canvas {
  width: 100%;
  height: 100%;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 40, 91, 0.5);
  transition: background 0.2s ease;
}
.map-placeholder:hover::before,
.map-placeholder:focus-visible::before {
  background: rgba(5, 40, 91, 0.35);
}
.map-placeholder-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  padding: 0 24px;
}
.map-placeholder-inner svg {
  width: 30px;
  height: 30px;
}
.map-placeholder-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.map-placeholder:hover .map-placeholder-label,
.map-placeholder:focus-visible .map-placeholder-label {
  background: var(--blue-accent);
}
.map-placeholder-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 260px;
}
.map-frame.is-loaded .map-placeholder {
  display: none;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--blue-accent); color: #fff; }
.btn.btn-outline {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.btn.btn-outline:hover { color: var(--blue-accent); box-shadow: inset 0 0 0 1.5px var(--blue-accent); }

/* ---------- Legal pages ---------- */
.legal h3 { margin-top: 1.6em; }
.legal ul.inline { padding-left: 1.2em; }
.legal a { text-decoration: underline; }

/* ---------- Sitemap ---------- */
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.sitemap-list a {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: #fff;
  margin-top: 64px;
}

.footer-panels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
}
@media (min-width: 1024px) {
  .footer-panels {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .footer-panels .panel-right { text-align: right; }
  .footer-panels .panel-center { text-align: center; }
}

.panel {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: #fff;
  padding: 0.6em 1em;
  white-space: nowrap;
}

.panel .ico {
  display: inline-flex;
  font-size: 26px;
  border: 2px solid #fff;
  padding: 0.4em;
  border-radius: 50%;
  transition: all 0.35s ease;
}
.panel .ico svg { width: 1em; height: 1em; fill: currentColor; }

.panel:hover {
  color: #fff;
}
.panel:hover .ico {
  transform: scale(1.15);
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.15);
}
.panel:hover .ico svg { filter: invert(1); }

.footer-nav {
  background: rgba(0, 0, 0, 0.17);
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin: 0;
  padding: 16px 24px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}
.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--blue-accent);
}

/* ---------- Leaflet tweaks ---------- */
.leaflet-popup-content { font-family: var(--font); }
