/**
 * @file
 * Base layout and global styles for STRATEC 11 (standalone theme).
 */

:root {
  --stratec-red: #820000;
  --stratec-text: #222;
  --stratec-bg: #fff;
  --stratec-max-width: 1200px;
  --stratec-gutter: 1.25rem;
}

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

body {
  margin: 0;
  color: var(--stratec-text);
  background: var(--stratec-bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.container {
  width: min(100% - 2 * var(--stratec-gutter), var(--stratec-max-width));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static !important;
  overflow: visible;
  clip: auto;
  width: auto;
  height: auto;
}

.skip-link {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--stratec-red);
  color: #fff;
  text-decoration: none;
}

/* Header */
.stratec-header {
  background: var(--stratec-red);
  color: #fff;
}

.stratec-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.stratec-header a {
  color: inherit;
}

.stratec-header .site-branding__name,
.stratec-header .site-branding__slogan {
  margin: 0;
}

.stratec-header .site-branding__name {
  font-size: 1rem;
  font-weight: 700;
}

/* Navigation */
.stratec-nav {
  flex: 1 1 auto;
}

.stratec-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stratec-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.stratec-menu a:hover,
.stratec-menu a:focus {
  text-decoration: underline;
}

.stratec-menu--sub {
  flex-direction: column;
  padding-left: 1rem;
}

/* Main content */
.stratec-body {
  padding-block: 2rem;
}

.stratec-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.stratec-main > :first-child {
  margin-top: 0;
}

/* Footer */
.stratec-footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
}

.stratec-breadcrumb {
  padding-block: 0.75rem;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .stratec-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stratec-body__grid {
    grid-template-columns: 1fr;
  }
}
