/*
Theme Name: Vogel & Mayer-Hug
Theme URI: https://vogel-mayer-hug.example
Author: Vogel & Mayer-Hug GmbH
Description: Minimalistisches Theme mit Vollbild-Startseite, Logo oben links und Overlay-Menü oben rechts.
Version: 2.1.0
License: GPL-2.0-or-later
Text Domain: vmh
*/

/*
  Montserrat wird direkt aus dem Theme-Assets-Ordner (assets/fonts/) geladen –
  kein externer Request. Roundo und Archivo Black werden aus der WordPress
  Font Library eingebunden, sofern dort hochgeladen (functions.php).
*/

:root {
  --font-primary: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Hintergrund = Farbe aus dem neuen Startseiten-Bild (#2a2e31) */
  --color-bg:        #2a2e31;
  --color-bg-elev:   #343a3d;   /* Karten */
  --color-bg-elev-2: #3d4346;   /* Platzhalterflaechen */

  --color-gold:       #af9865;  /* Logo-Gold – Linien, Punkte, Zierelemente */
  --color-gold-light: #c9b489;  /* Gold fuer Text (Kontrast 5,7:1 auf Karten) */

  --color-text:      #f0ece4;   /* Kontrast 13,7:1 auf --color-bg */
  --color-text-soft: #d5d0c7;   /* Kontrast 7,5:1 auf Karten */

  --color-line:      rgba(240, 236, 228, 0.14);
  --color-line-soft: rgba(240, 236, 228, 0.08);

  /* Tatsaechliche Hoehe der Kopfzeile – Grundlage fuer den Abstand der Unterseiten */
  --header-h: 6.4rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Nur fuer Screenreader sichtbar */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.6rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  border-radius: 4px;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 1rem; }

/* ---------- Grundgeruest ---------- */
.site {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: var(--color-bg);
}
.site--home { overflow: hidden; }

/* ===========================================================
   KOPFZEILE – Logo oben links, Menue-Icon oben rechts
   =========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  min-height: var(--header-h);
  background: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Leicht transparenter Header, sobald auf einer Unterseite gescrollt wird –
   damit Logo und Menue-Icon nicht im Fliesstext untergehen. */
.site--inner .site-header.is-scrolled {
  background: rgba(42, 46, 49, 0.82);
  border-bottom-color: var(--color-line-soft);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

/* Falls backdrop-filter nicht unterstuetzt wird: etwas kraeftiger deckend. */
@supports not ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .site--inner .site-header.is-scrolled { background: rgba(42, 46, 49, 0.94); }
}

/* Ohne JavaScript greift die Scroll-Klasse nicht – dann dauerhaft absetzen. */
.no-js .site--inner .site-header {
  background: rgba(42, 46, 49, 0.82);
  border-bottom-color: var(--color-line-soft);
}

/* ---------- Logo ---------- */
.site-logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}
.site-logo img {
  width: 118px;
  height: auto;
}

@media (min-width: 768px) {
  :root { --header-h: 9rem; }
  .site-header { padding: 1.3rem 2.25rem; }
  .site-logo img { width: 170px; }
}

/* Startseite: Logo groesser, passend zur Bildkomposition */
.site-logo--home img { width: 165px; }

@media (min-width: 768px) {
  .site-logo--home img { width: clamp(200px, 20vw, 300px); }
}

/* Startseite auf dem Handy: Logo mittig ueber den Portraits – wie im Entwurf.
   Soll es auch dort oben links stehen, diesen ganzen Block loeschen. */
@media (max-width: 767px) {
  .site-logo--home {
    position: fixed;
    top: 14vh;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
  }
  .site-logo--home img { width: min(62vw, 330px); }

  /* Bei geoeffnetem Menue ausblenden, damit es die Menuepunkte nicht ueberlagert */
  .nav-is-open .site-logo--home { opacity: 0; visibility: hidden; }
}

/* ---------- Menue-Icon (Burger) ---------- */
.nav-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--color-gold);
  position: relative;
  z-index: 90;
}

.nav-toggle__icon {
  display: block;
  width: 1.85rem;
  height: 1.1rem;
  position: relative;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle__bar:nth-child(3) { bottom: 0; }

.nav-toggle:hover { color: var(--color-gold-light); }

/* Geoeffnet: Icon wird zum X */
.nav-is-open .nav-toggle__bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-is-open .nav-toggle__bar:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

@media (min-width: 768px) {
  .nav-toggle { width: 3.25rem; height: 3.25rem; }
  .nav-toggle__icon { width: 2.1rem; height: 1.25rem; }
}

/* ===========================================================
   OVERLAY-MENUE
   =========================================================== */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 33, 36, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.site-nav[hidden] { display: none; }

.nav-is-open .site-nav {
  opacity: 1;
  visibility: visible;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem;
  text-align: center;
}

.site-nav__item + .site-nav__item { margin-top: 1.6rem; }

.site-nav__link {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: clamp(1.35rem, 5.5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 0.25rem 0.5rem;
  position: relative;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -0.35rem;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav__link:hover { color: var(--color-gold-light); }
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }

.site-nav__link.is-current { color: var(--color-gold-light); }
.site-nav__link.is-current::after { transform: scaleX(1); }

/* Menue offen: Seite dahinter nicht mitscrollen */
.nav-is-open { overflow: hidden; }

/* Ohne JavaScript: Menue dauerhaft als schlichte Liste unter dem Header */
.no-js .nav-toggle { display: none; }
.no-js .site-nav {
  position: static;
  opacity: 1;
  visibility: visible;
  background: rgba(30, 33, 36, 0.9);
  backdrop-filter: none;
  padding: 5rem 0 1.25rem;
}
.no-js .site-nav[hidden] { display: flex; }
.no-js .site-nav__list { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.no-js .site-nav__item + .site-nav__item { margin-top: 0; }
.no-js .site-nav__link { font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .site-nav__link,
  .site-nav__link::after,
  .nav-toggle__bar,
  .site-header,
  .skip-link { transition: none; }
}

/* ===========================================================
   STARTSEITE / HERO
   =========================================================== */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Das Querformat-Bild ist bewusst sehr breit (2100 x 1024, Seitenverhaeltnis
     2,05:1). Dadurch wird auf uebliche Desktop-Fenster fast nur seitlich
     beschnitten – oben bleibt die ruhige Flaeche fuer das Logo, unten bleiben
     die Portraits vollstaendig im Bild, so wie im Entwurf. */
  object-position: center 40%;
  background: var(--color-bg);
}

@media (max-width: 767px) {
  .hero { object-position: center center; }
}

/* ===========================================================
   UNTERSEITEN
   =========================================================== */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.75rem) 1.5rem 6rem;
  background: transparent;
}

.page-wrap h1 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--color-gold);
}

.page-wrap h2 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 2.5rem 0 0.75rem;
  color: var(--color-text);
}

.page-wrap p,
.page-wrap li {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-soft);
}

.page-wrap a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 180, 137, 0.6);
}
.page-wrap a:hover { color: var(--color-gold-light); }

@media (max-width: 480px) {
  .page-wrap { padding: calc(var(--header-h) + 2rem) 1.25rem 4rem; }
}

/* ===========================================================
   LEISTUNGEN
   =========================================================== */
.page-wrap--leistungen { max-width: 980px; }

.leistungen-photo {
  width: 100%;
  height: 220px;
  margin: 2rem 0 0;
  border-radius: 4px;
  overflow: hidden;
}
.leistungen-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .leistungen-photo { height: 360px; }
}

.leistungen-photo--placeholder {
  background: repeating-linear-gradient(
    135deg,
    rgba(240,236,228,0.05), rgba(240,236,228,0.05) 10px,
    rgba(240,236,228,0.02) 10px, rgba(240,236,228,0.02) 20px
  );
  border: 1px dashed var(--color-line);
}

.leistungen-digital {
  margin: 2.5rem 0 2rem;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--color-gold);
  background: rgba(175, 152, 101, 0.10);
  border-radius: 0 4px 4px 0;
}

.leistungen-digital__text {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text-soft);
  margin: 0;
}

@media (min-width: 768px) {
  .leistungen-digital__text { font-size: 1.05rem; }
}

.leistungen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .leistungen-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.leistungen-block {
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 2rem 1.75rem 2.25rem;
}

.leistungen-block__title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--color-gold);
}

.leistungen-block__intro { margin: 0 0 0.5rem; }

.leistungen-block__subtitle {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin: 2rem 0 1rem;
}

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

.leistungen-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.55rem;
}

.leistungen-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* ===========================================================
   KONTAKT
   =========================================================== */
.page-wrap--kontakt { max-width: 980px; }

.kontakt-intro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .kontakt-intro {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
  }
}

.kontakt-address { flex: 0 0 auto; }

.kontakt-address__label {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin: 0 0 0.75rem;
}

.kontakt-address__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.kontakt-address__company {
  display: block;
  color: var(--color-gold);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.kontakt-office-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  flex: 1 1 auto;
  width: 100%;
}
.kontakt-office-photos--two { grid-template-columns: 1fr 1fr; }

@media (max-width: 480px) {
  .kontakt-office-photos--two { grid-template-columns: 1fr; }
}

.kontakt-office-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}
@media (min-width: 768px) {
  .kontakt-office-photo { height: 260px; }
}

.kontakt-office-photo--placeholder {
  background: repeating-linear-gradient(
    135deg,
    rgba(240,236,228,0.05), rgba(240,236,228,0.05) 10px,
    rgba(240,236,228,0.02) 10px, rgba(240,236,228,0.02) 20px
  );
  border: 1px dashed var(--color-line);
}

.kontakt-team__title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  color: var(--color-gold);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.team-card {
  background: var(--color-bg-elev);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card__photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-elev-2);
}
.team-card__photo { width: 100%; height: 100%; object-fit: cover; }

.team-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__photo--placeholder svg {
  width: 38%;
  height: 38%;
  fill: none;
  stroke: rgba(240,236,228,0.32);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-card__info { padding: 1.25rem 1.4rem 1.5rem; }

.team-card__name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  margin: 0 0 0.3rem;
  color: var(--color-text);
}

.team-card__role {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin: 0 0 0.85rem;
}

.team-card__contact {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-text-soft);
}
.team-card__contact-line { display: block; }
.team-card__contact a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(201, 180, 137, 0.6);
}
.team-card__contact a:hover { color: var(--color-gold-light); }
