/*
Theme Name: Harms Bergung
Author: Harms Bergung
Description: Individuelles klassisches Theme mit Video-Startseite und zugänglichem Seitenmenü.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: harms-bergung
*/
:root{--color-ink:#102b36;--color-ocean:#153e4c;--color-paper:#f3f3ed;--color-white:#fff;--color-accent:#c6d6bf;--font-body:Arial,Helvetica,sans-serif;--space-unit:clamp(1.25rem,4vw,4rem);--content-width:80rem;--header-height:7rem;--ease:cubic-bezier(.22,.61,.36,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--color-paper);color:var(--color-ink);font-family:var(--font-body);line-height:1.6}a{color:inherit;text-underline-offset:.25em}button{font:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid currentColor;outline-offset:6px}button{color:inherit} [hidden]{display:none!important}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link:focus{position:fixed;top:1rem;left:1rem;z-index:100;background:white;color:var(--color-ink);padding:1rem;width:auto;height:auto;clip-path:none}.site-header{position:absolute;inset:0 0 auto;z-index:10;display:flex;align-items:center;justify-content:space-between;min-height:var(--header-height);padding:1rem var(--space-unit);color:white;border-bottom:1px solid #ffffff35}.site-header--solid{position:relative;background:var(--color-ink)}.brand{font-size:clamp(1.15rem,2vw,1.7rem);font-weight:700;letter-spacing:-.055em;text-decoration:none}.menu-toggle{display:flex;gap:1rem;align-items:center;border:0;background:none;padding:.75rem 0 .75rem .75rem}.menu-icon{width:2rem;display:grid;gap:7px}.menu-icon::before,.menu-icon::after{content:'';height:1px;background:currentColor}.hero{isolation:isolate;position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:center;color:white;background:var(--color-ink);overflow:hidden}.hero__backdrop{position:absolute;inset:0;z-index:-3;background:radial-gradient(ellipse at 76% 24%,#92a8a655,transparent 48%),linear-gradient(177deg,#1c3d4c 0%,#476570 46%,#9aaead 48%,#244b59 49%,#0e303f 78%,#09232f 100%)}.hero__backdrop::after{content:'';position:absolute;inset:50% -10% 0;background:repeating-linear-gradient(176deg,transparent 0 25px,#c3d4cd0c 26px,transparent 28px 58px);transform:skewY(-2deg)}.hero__video,.hero__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.hero__video{opacity:0;transition:opacity .6s}.hero__video.is-playing{opacity:1}.hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#061b2ba6,#061b2b15),linear-gradient(0deg,#061b2b9c,transparent 65%)}.hero__content{padding:calc(var(--header-height) + 3rem) var(--space-unit) 10rem;width:100%;max-width:100rem}.eyebrow{font-size:.75rem;font-weight:400;letter-spacing:.2em;text-transform:uppercase;margin:0 0 2rem}.hero h1{font-size:clamp(3.25rem,7.8vw,8.5rem);font-weight:400;line-height:1.03;letter-spacing:-.055em;margin:0;max-width:12ch}.hero__bottom{position:absolute;bottom:2.25rem;left:var(--space-unit);right:var(--space-unit);display:flex;align-items:end;justify-content:space-between;gap:2rem;border-top:1px solid #ffffff55;padding-top:1.5rem}.text-link{text-decoration:none;display:inline-flex;align-items:center;gap:2rem}.text-link::after{content:'↗';font-size:1.4em}.hero__caption{margin:0;font-size:.8rem;letter-spacing:.04em}.video-toggle{border:1px solid #ffffff88;background:#102b3655;border-radius:0;padding:.5rem .9rem;margin-top:1rem}.intro{padding:clamp(4rem,9vw,9rem) var(--space-unit);display:grid;grid-template-columns:1fr 2fr;gap:3rem;max-width:100rem;margin:auto}.intro h2{font-size:clamp(2rem,4vw,4rem);font-weight:400;letter-spacing:-.04em;line-height:1.15;margin:0 0 2rem}.intro p{max-width:42rem}.site-footer{padding:2rem var(--space-unit);border-top:1px solid #102b3629;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.85rem}.drawer-layer{position:fixed;inset:0;z-index:50}.drawer-overlay{position:absolute;inset:0;background:#04151dbb;border:0;width:100%;height:100%;opacity:0;transition:opacity .35s}.drawer{position:absolute;right:0;top:0;height:100%;width:min(36rem,100%);background:var(--color-paper);padding:2rem clamp(1.5rem,5vw,4rem);display:flex;flex-direction:column;overflow:auto;transform:translateX(100%);transition:transform .35s var(--ease)}.drawer-layer.is-open .drawer{transform:translateX(0)}.drawer-layer.is-open .drawer-overlay{opacity:1}.drawer__top{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:clamp(3rem,12vh,8rem)}.drawer__close{border:1px solid #102b3644;background:none;padding:.5rem 1rem}.drawer ul{list-style:none;padding:0;margin:0}.drawer nav>ul>li>a{font-size:clamp(1.7rem,4vw,2.6rem);letter-spacing:-.04em}.drawer nav a{text-decoration:none;display:block;padding:.65rem 0}.drawer nav a:hover,.drawer nav .current-menu-item>a{text-decoration:underline}.drawer .sub-menu{padding-left:1.25rem;border-left:1px solid #102b3633}.drawer__contact{margin-top:auto;padding-top:3rem;overflow-wrap:anywhere}.menu-open{overflow:hidden}.content-shell{max-width:var(--content-width);margin:auto;padding:4rem var(--space-unit);min-height:55vh}.content-shell h1{font-size:clamp(2.5rem,6vw,5rem);line-height:1.1;letter-spacing:-.04em;font-weight:400}.entry-content{max-width:50rem}.entry-content img{max-width:100%;height:auto}.entry-content iframe{max-width:100%}.alignwide{max-width:var(--content-width)}.alignfull{max-width:100%}.wp-caption{max-width:100%}.sticky{border-top:2px solid var(--color-ocean)}.gallery-caption,.wp-caption-text{font-size:.85rem}.bypostauthor{font-weight:inherit}.pagination{margin-top:3rem}body.admin-bar .site-header{top:32px}body.admin-bar .drawer-layer{top:32px}
@media(max-width:782px){body.admin-bar .site-header,body.admin-bar .drawer-layer{top:46px}}
@media(max-width:600px){:root{--header-height:5.5rem}.hero__content{padding-bottom:12rem}.hero h1{font-size:clamp(3rem,12vw,4.5rem)}.hero__bottom{align-items:start;flex-direction:column;gap:1rem;bottom:1.5rem}.hero__caption{font-size:.7rem}.intro{grid-template-columns:1fr;gap:1rem}.intro .eyebrow{margin-bottom:0}.site-footer{flex-direction:column}.menu-toggle{gap:.75rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}.hero__video{display:none}}

/* Navigation system: horizontal header, disclosure mega panels, section rail. */
:root {
  --color-line: #102b3626;
  --color-muted: #52646b;
  --color-panel: #fff;
  --color-soft: #eaf0ef;
  --panel-radius: .65rem;
  --nav-gap: clamp(.75rem, 2vw, 2rem);
  --sidebar-width: clamp(14rem, 22vw, 21rem);
  --section-space: clamp(3rem, 6vw, 6rem);
  --admin-offset: 0px;
}
body.admin-bar { --admin-offset: 32px; }
.site-header {
  position: fixed;
  top: var(--admin-offset);
  background: #102b36cc;
  backdrop-filter: blur(16px);
  gap: 2rem;
}
.site-header--solid { position: sticky; background: var(--color-ink); }
.brand { flex-shrink: 0; }
.desktop-nav { margin-left: auto; }
.navigation-list, .navigation-list ul { list-style: none; margin: 0; padding: 0; }
.desktop-nav > ul { display: flex; align-items: center; gap: var(--nav-gap); }
.desktop-nav > ul > li { display: flex; align-items: center; gap: .25rem; }
.desktop-nav a { text-decoration: none; }
.desktop-nav > ul > li > a { padding: 1rem 0; }
.desktop-nav a:hover { text-decoration: underline; }
.submenu-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: .5rem;
}
.submenu-toggle::after {
  content: '';
  display: inline-block;
  width: .45rem;
  height: .45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.submenu-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.desktop-nav > ul > li.is-expanded { background: #ffffff12; border-radius: .25rem; }
.desktop-nav > ul > li > .sub-menu {
  position: absolute;
  top: calc(100% - .25rem);
  right: var(--space-unit);
  width: min(64rem, calc(100vw - 2 * var(--space-unit)));
  max-height: calc(100dvh - var(--header-height) - var(--admin-offset) - 1.5rem);
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-panel);
  color: var(--color-ink);
  border-radius: var(--panel-radius);
  box-shadow: 0 .5rem 1.5rem #04151d26;
}
.desktop-nav > ul > li > .sub-menu > li { min-width: 0; }
.desktop-nav > ul > li > .sub-menu > li > a {
  display: block;
  font-size: 1.25rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  padding: .5rem;
}
.desktop-nav .sub-menu .sub-menu a {
  display: block;
  border: 1px solid var(--color-line);
  border-radius: .35rem;
  padding: 1rem;
  margin-bottom: .6rem;
  overflow-wrap: anywhere;
}
.desktop-nav .sub-menu .sub-menu a:hover { background: var(--color-soft); }
.desktop-nav .sub-menu .submenu-toggle { display: none; }
.desktop-nav .sub-menu .sub-menu { display: block; }
.desktop-nav ~ .menu-toggle { display: none; }
.drawer .navigation-list > li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border-bottom: 1px solid var(--color-line); }
.drawer .navigation-list > li > .sub-menu { grid-column: 1 / -1; padding-bottom: 1rem; }
.drawer .sub-menu > li { position: relative; }
.drawer .sub-menu a { padding-right: 3rem; overflow-wrap: anywhere; }
.drawer .sub-menu .submenu-toggle { position: absolute; right: 0; top: 0; }
.drawer nav > ul > li > a { font-size: clamp(1.5rem, 4vw, 2rem); }
.drawer__top { margin-bottom: 2.5rem; }
/* White landing surface; Hero and content cards retain their own backgrounds. */
.landing-page { background-color: var(--color-white); }
.section-layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); max-width: 110rem; margin: auto; }
.section-sidebar { border-right: 1px solid var(--color-line); padding: var(--section-space) 1.5rem var(--section-space) var(--space-unit); }
.section-nav { position: sticky; top: calc(var(--sticky-header-edge, calc(var(--header-height) + var(--admin-offset))) + 2rem); }
.section-nav .eyebrow { color: var(--color-muted); margin-bottom: 1rem; }
.section-nav summary { display: flex; align-items: center; gap: .75rem; font-size: 1.15rem; margin-bottom: 1.25rem; cursor: pointer; }
.section-nav ul { list-style: none; padding: 0; margin: 0; }
.section-nav a { display: inline-block; text-decoration: none; padding: .4rem .65rem; margin: .25rem 0; border: 1px solid transparent; border-radius: .3rem; color: var(--color-muted); }
.section-nav a:hover, .section-nav a[aria-current="location"] { border-color: var(--color-ocean); color: var(--color-ocean); background: var(--color-soft); }
.area-section { padding: var(--section-space) clamp(1.25rem, 3vw, 3rem); border-bottom: 1px solid var(--color-line); }
.area-section, .area-section [id] { scroll-margin-top: calc(var(--sticky-header-edge, calc(var(--header-height) + var(--admin-offset))) + 2rem); }
.area-section h2 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.1; font-weight: 400; letter-spacing: -.05em; margin: 0 0 1.5rem; }
.area-section h3 { font-size: 1.4rem; font-weight: 400; margin: .75rem 0; }
.section-lead { color: var(--color-muted); font-size: clamp(1.1rem, 2vw, 1.4rem); }
.placeholder-card { background: var(--color-soft); border-radius: var(--panel-radius); padding: clamp(1.5rem, 3vw, 3rem); margin-top: 2.5rem; }
.placeholder-card .eyebrow { display: block; margin-bottom: 1rem; }
.area-section .text-link { overflow-wrap: anywhere; max-width: 100%; }
/* Unenhanced navigation is provided in the footer; no invisible focus stops. */
.desktop-nav:not(.is-enhanced) { display: none; }
@media (min-width: 1101px) {
  .section-nav summary { list-style: none; pointer-events: none; }
  .section-nav summary::-webkit-details-marker { display: none; }
}
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .desktop-nav ~ .menu-toggle:not([hidden]) { display: flex; }
  .section-layout { grid-template-columns: 1fr; }
  .section-sidebar { padding: 1.5rem var(--space-unit); border-right: 0; border-bottom: 1px solid var(--color-line); }
  .section-nav { position: static; }
  .section-nav summary { margin-bottom: 0; min-height: 44px; }
  .section-nav ul { padding-top: .5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
  .area-section { padding-left: var(--space-unit); padding-right: var(--space-unit); }
}
@media (max-width: 782px) { body.admin-bar { --admin-offset: 46px; } }
@media (max-width: 600px) {
  .area-section .text-link { font-size: .9rem; gap: .75rem; }
  .drawer { padding-top: 1.25rem; }
}
.mega-heading { display: block; font-size: 1.25rem; color: var(--color-muted); margin-bottom: 1rem; padding: .5rem; }
.drawer .mega-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: .75rem 0 0; }

/* Landing-page progress: instant updates also for reduced-motion preferences. */
:root {
  --progress-size: 2rem;
  --progress-stroke: 3;
  --progress-track: var(--color-line);
  --progress-fill: var(--color-ocean);
}
.scroll-progress { display: inline-flex; flex: 0 0 var(--progress-size); width: var(--progress-size); height: var(--progress-size); }
.scroll-progress svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.scroll-progress circle { fill: none; stroke-width: var(--progress-stroke); }
.scroll-progress__track { stroke: var(--progress-track); }
.scroll-progress__ring { stroke: var(--progress-fill); stroke-dasharray: 100; stroke-dashoffset: var(--scroll-progress-offset, 100); transition: none; }
.navigation-unavailable { display: block; padding: 1rem 0; opacity: .65; }
.drawer .navigation-unavailable { font-size: 1.5rem; }
.desktop-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: .4em; }

/* Global identity and chrome; values can be replaced from the brandbook. */
:root {
  --logo-width: 10rem;
  --logo-height: 3rem;
  --footer-background: var(--color-ink);
  --footer-foreground: var(--color-paper);
  --footer-gap: clamp(2rem, 5vw, 6rem);
  --button-radius: .25rem;
}
.brand a { color: inherit; display: inline-flex; align-items: center; text-decoration: none; }
.brand .custom-logo { display: block; width: auto; height: auto; max-width: var(--logo-width); max-height: var(--logo-height); object-fit: contain; }
.brand { --brand-symbol-height: .75em; --brand-symbol-gap: 12px; }
.brand a { gap: var(--brand-symbol-gap); }
.brand-symbol { position: relative; display: inline-block; flex: 0 0 auto; height: var(--brand-symbol-height); width: calc(var(--brand-symbol-height) * 1.16822); overflow: hidden; }
.brand-symbol__image { position: absolute; display: block; max-width: none; height: auto; }
/* Align the visible marks, excluding transparent file margins only. */
.brand-symbol__image--white-file { width: 141.8304%; left: -20.6625%; top: -7.4121%; }
.brand-symbol__image--square-file { width: 100.1597%; left: .0799%; top: -7.3714%; }
.brand-symbol__image--full-file { width: 100%; height: 100%; inset: 0; object-fit: contain; }
.brand-name { min-width: 0; }
.footer-grid { align-items: start; }
.footer-contact .brand, .footer-grid > nav > h2 { line-height: 1; }
@media (max-width: 700px) {
  .brand { --brand-symbol-height: .65em; --brand-symbol-gap: 10px; }
}
.language-switcher { flex-shrink: 0; }
.language-switcher ul { display: flex; list-style: none; gap: .6rem; padding: 0; margin: 0; font-size: .8rem; }
.language-switcher a { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem; text-decoration: none; }
.language-switcher [aria-current] { font-weight: 700; border-bottom: 1px solid currentColor; }
.language-switcher [aria-disabled] { opacity: .5; }
.site-footer { display: block; background: var(--footer-background); color: var(--footer-foreground); padding: clamp(3rem, 6vw, 6rem) var(--space-unit) 1.5rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); gap: var(--footer-gap); max-width: var(--content-width); margin: auto; }
.footer-grid h2 { font-size: 1.2rem; font-weight: 400; margin: 0 0 1.5rem; }
.footer-contact .brand { margin-bottom: 2rem; }
.footer-contact p { max-width: 30rem; white-space: normal; overflow-wrap: anywhere; }
.footer-contact address { font-style: normal; margin-top: 1.5rem; }
.contact-button { display: inline-block; padding: .75rem 1.5rem; margin-top: .75rem; border: 1px solid currentColor; border-radius: var(--button-radius); text-decoration: none; }
.contact-button:hover { background: var(--footer-foreground); color: var(--footer-background); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu a { display: inline-block; padding: .5rem 0; text-decoration: none; overflow-wrap: anywhere; }
.footer-menu a:hover { text-decoration: underline; }
.site-footer a:not(.contact-button) { color: var(--footer-link, var(--footer-foreground)); }
.footer-bottom { max-width: var(--content-width); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid currentColor; font-size: .8rem; }
@media (max-width: 1100px) {
  .site-header { gap: 1rem; }
  .site-header .menu-toggle { margin-left: auto; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .site-header { gap: .75rem; }
  .site-header .brand { max-width: 45%; }
  .site-header .custom-logo { max-width: 100%; max-height: 2.5rem; }
}
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
