/*
Theme Name: SEU Web Theme
Author: SEU Product Engineering
Description: Projektneutraler Theme-Core mit Hero-, Navigation- und Footer-Slots.
Version: 0.25
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: seu-web-theme
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--seu-theme-text-color);
  background: var(--seu-theme-page-background);
  font-family: var(--seu-theme-font-body);
  font-size: var(--seu-theme-body-size);
  line-height: var(--seu-theme-body-line-height);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1,h2,h3,h4,h5,h6 { color: var(--seu-theme-heading-color); }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: #111;
  display: block; font-size: 14px; height: auto; left: 8px; padding: 14px 18px;
  top: 8px; width: auto; z-index: 100000;
}

.seu-theme-shell,
.seu-theme-content-shell {
  width: calc(100% - var(--seu-theme-site-active-gutter) - var(--seu-theme-site-active-gutter));
  max-width: var(--seu-theme-site-max-width);
  margin-inline: auto;
  box-sizing: border-box;
}

.seu-theme-site-header { position: relative; z-index: 50; background: var(--seu-theme-page-background); }
.seu-theme-hero { overflow: hidden; background: var(--seu-theme-page-background); padding: 0; }
.seu-theme-hero-card { border-radius: 0; overflow: visible; }
.seu-theme-hero-visual {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: var(--seu-theme-page-background);
  border-radius: 0;
}

/*
 * Generic Hero default: width-fit.
 *
 * The full page width determines the image width. The original
 * aspect ratio determines the resulting height. The image is therefore shown
 * completely and is not cropped by a fixed Hero viewport.
 *
 * A future explicit presentation variant may opt into cover/crop semantics,
 * but cropping is not the generic default.
 */
.seu-theme-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.seu-theme-hero-nav-band {
  position: relative; z-index: 2; min-height: var(--seu-theme-navigation-height); margin-top: 0; padding-inline: 0; box-sizing: border-box;
  display: flex; align-items: center;
  background: linear-gradient(90deg, var(--seu-theme-navigation-start) 0%, var(--seu-theme-navigation-end) 100%);
  border-top: 1px solid rgba(255,255,255,.18);
}
.seu-theme-hero-nav-band--overlay { margin-top: calc(-1 * var(--seu-theme-navigation-height)); }
.seu-theme-navigation-inner { display: flex; align-items: center; }
.seu-theme-site-header, .seu-theme-hero, .seu-theme-hero-card, .seu-theme-hero-nav-band, .seu-theme-site-footer { width: 100%; max-width: none; box-sizing: border-box; }
.seu-theme-nav-label { display: none; color: var(--seu-theme-navigation-text); font-weight: 700; }
.seu-theme-nav-toggle { display: none; border: 1px solid rgba(255,255,255,.48); border-radius: var(--seu-theme-radius); padding: .7rem 1rem; background: transparent; color: #fff; font-weight: 700; }
.seu-theme-main-nav { width: 100%; }
.seu-theme-main-nav ul, .seu-theme-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.seu-theme-main-nav ul { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 0; }
.seu-theme-main-nav li + li { border-left: 1px solid rgba(248,245,239,.18); }
.seu-theme-main-nav a {
  width: 100%; min-height: calc(var(--seu-theme-navigation-height) - 1px); padding: .35rem .65rem; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--seu-theme-navigation-text); text-decoration: none;
  font-size: var(--seu-theme-navigation-size); font-weight: var(--seu-theme-navigation-weight); text-transform: uppercase;
}
.seu-theme-main-nav a:hover, .seu-theme-main-nav a:focus-visible { background: rgba(255,255,255,.07); }
.seu-theme-main-nav .current-menu-item > a, .seu-theme-main-nav .current_page_item > a { box-shadow: inset 0 -4px 0 var(--seu-theme-accent-color); }

.seu-theme-button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .55rem .85rem;
  border-radius: var(--seu-theme-radius); border: 1px solid var(--seu-theme-button-background);
  background: var(--seu-theme-button-background); color: var(--seu-theme-button-text); text-decoration: none; font-weight: 600;
}
.seu-theme-button:hover, .seu-theme-button:focus-visible, .wp-block-button__link:hover, .wp-block-button__link:focus-visible {
  background: var(--seu-theme-button-hover); border-color: var(--seu-theme-button-hover); color: var(--seu-theme-button-text);
}

.seu-theme-content {
  padding-block-end: 4rem;
}

.seu-theme-site-footer {
  margin-top: 2rem; overflow: hidden; color: var(--seu-theme-text-color);
  border-top: 4px solid var(--seu-theme-footer-divider); background: var(--seu-theme-footer-background);
}
.seu-theme-footer-inner {
  min-height: var(--seu-theme-footer-min-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: var(--seu-theme-footer-padding-block);
  padding-inline: 0;
  box-sizing: border-box;
}
.seu-theme-footer-nav ul { gap: .75rem; }
.seu-theme-footer-copy { margin: 0; opacity: .9; }
.seu-theme-footer-nav a { display: inline-flex; align-items: center; min-height: 32px; padding: .25rem 0; color: var(--seu-theme-footer-link); text-decoration: underline; text-underline-offset: .18em; font-weight: 600; }

@media (max-width: 900px) {
  .seu-theme-hero { overflow: visible; }
  .seu-theme-hero-nav-band { min-height: var(--seu-theme-navigation-height-mobile); margin-top: 0; }
  .seu-theme-navigation-inner { justify-content: space-between; }
  .seu-theme-nav-label, .seu-theme-nav-toggle { display: inline-flex; }
  .seu-theme-main-nav { display: none !important; position: absolute; z-index: 100; left: 0; right: 0; top: 100%; padding: 0; background: linear-gradient(90deg, var(--seu-theme-navigation-start) 0%, var(--seu-theme-navigation-end) 100%); box-shadow: 0 12px 24px rgba(42,49,51,.16); }
  .seu-theme-nav-toggle[aria-expanded="true"] + .seu-theme-main-nav, .seu-theme-main-nav.is-open { display: block !important; padding: .65rem 0; box-sizing: border-box; }
  .seu-theme-main-nav ul { display: flex; flex-direction: column; width: calc(100% - var(--seu-theme-site-active-gutter) - var(--seu-theme-site-active-gutter)); max-width: var(--seu-theme-site-max-width); margin-inline: auto; }
  .seu-theme-main-nav li + li { border-left: 0; }
  .seu-theme-main-nav a { min-height: 48px; }
  .seu-theme-footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  :root { --seu-theme-site-active-gutter: var(--seu-theme-site-gutter-mobile); }
  .seu-theme-footer-nav ul { flex-direction: column; align-items: stretch; width: 100%; }
  .seu-theme-footer-nav a { width: 100%; }
}


/* Generic frontpage composition only; contributed feature owns its own presentation. */
.seu-theme-frontpage-feature {
  margin-block: 0;
  padding-block-end: var(--seu-theme-content-start-gap);
}

.seu-theme-editorial-content {
  margin-block: 0 3rem;
}


/* =========================================================
 * Generic Content Shell Contract
 * =========================================================
 *
 * The content shell shares the horizontal inset grid with navigation and footer content;
 * surface wrappers stay full width. Full content width is the default policy.
 * A narrower reading measure is opt-in via the readable variant.
 */
.seu-theme-content-shell {
  padding-block-start: var(--seu-theme-content-start-gap);
}

.seu-theme-content-shell--full {
  max-inline-size: var(--seu-theme-site-max-width);
}

.seu-theme-content-shell--readable > * {
  max-inline-size: var(--seu-theme-readable-width, 72ch);
}

/* WordPress editorial content uses the full shell unless an explicit
 * readable/narrow presentation policy is selected.
 */
.seu-theme-editorial-content,
.seu-theme-editorial-content > article,
.seu-theme-editorial-content .entry-content {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}


/* =========================================================
 * Typography hierarchy 0.13
 * ========================================================= */
body { font-family: var(--seu-theme-font-family-body); }

.seu-theme-main-nav,
.seu-theme-nav-toggle,
.seu-theme-nav-label {
  font-family: var(--seu-theme-font-family-navigation);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--seu-theme-font-family-heading);
  font-weight: var(--seu-theme-heading-weight);
  line-height: var(--seu-theme-heading-line-height);
  color: var(--seu-theme-heading-color);
  margin-block: 0 0.135em;
}

h1 { font-size: var(--seu-theme-heading-1-size); }
h2 { font-size: var(--seu-theme-heading-2-size); }
h3 { font-size: var(--seu-theme-heading-3-size); }
h4 { font-size: var(--seu-theme-heading-4-size); }
h5 { font-size: var(--seu-theme-heading-5-size); }
h6 { font-size: var(--seu-theme-heading-6-size); }

.wp-block-heading {
  font-family: var(--seu-theme-font-family-heading);
}

/* =========================================================
 * Content Vertical Rhythm 0.13
 * =========================================================
 *
 * Defaults use zero space before; shared presentation-settings.css
 * applies optional per-style before/after configuration.
 * Spacing is semantic end spacing; navigation -> first content remains
 * responsibility of the Content Shell.
 */
.seu-theme-editorial-content > article > * {
  margin-block-start: 0;
}

.seu-theme-editorial-content h1,
.seu-theme-editorial-content h2,
.seu-theme-editorial-content h3,
.seu-theme-editorial-content h4,
.seu-theme-editorial-content h5,
.seu-theme-editorial-content h6 {
  margin-block-start: 0;
  margin-block-end: var(--seu-theme-heading-end-gap);
}

.seu-theme-editorial-content p {
  margin-block-start: 0;
  margin-block-end: var(--seu-theme-paragraph-end-gap);
}

.seu-theme-editorial-content ul,
.seu-theme-editorial-content ol {
  margin-block-start: 0;
  margin-block-end: var(--seu-theme-list-end-gap);
}

.seu-theme-editorial-content li {
  margin-block-start: 0;
  margin-block-end: var(--seu-theme-list-item-gap);
}

.seu-theme-editorial-content p:empty {
  display: none;
}

/* Stable desktop heading sizes; explicit mobile reduction. */
@media (max-width: 620px) {
  h1 { font-size: var(--seu-theme-heading-1-size-mobile); }
  h2 { font-size: var(--seu-theme-heading-2-size-mobile); }
  h3 { font-size: var(--seu-theme-heading-3-size-mobile); }
  h4 { font-size: var(--seu-theme-heading-4-size-mobile); }
  h5 { font-size: var(--seu-theme-heading-5-size-mobile); }
  h6 { font-size: var(--seu-theme-heading-6-size-mobile); }
}


/* =========================================================
 * Frontpage Feature System Block 0.13
 * =========================================================
 * The dynamic block itself has no frontend wrapper beyond the existing
 * `.seu-theme-frontpage-feature` Presentation Slot rendered by PHP.
 */
