/* Stylesheet for fg-itsec.de: no external fonts, no JavaScript. */

:root {
  --text: #1b1f23;
  --muted: #5a6470;
  --bg: #ffffff;
  --bg-soft: #f4f7f4;
  --line: #dde3de;
  --green: #2e7d32;      /* taken from the mascot's helmet */
  --green-soft: #e6f2e6;
  --blue: #1f5fae;       /* taken from the mascot's bow tie */
  --wrap: 72rem;
  --measure: 46rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--green); }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; }

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  max-width: 26rem;
}
.brand:hover { color: var(--text); }
.brand img { flex: none; width: 48px; height: auto; }

/* Navigation: dropdowns on wide screens via :hover / :focus-within */

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav > li { position: relative; }

.nav a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: var(--green-soft); color: var(--text); }
.nav > li.active > a { color: var(--green); font-weight: 600; }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 5;
}
.nav > li:hover > ul,
.nav > li:focus-within > ul { display: block; }

/* On small screens the sub pages are reachable via the parent pages */
@media (max-width: 48rem) {
  .header-inner { padding-bottom: 0.5rem; }
  .nav { margin: 0 -0.7rem; }
  .nav ul { display: none !important; }
}

/* Content */

.content {
  max-width: calc(var(--measure) + 2.5rem);
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  flex: 1;
}

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2.1rem; margin: 0 0 1.5rem; }
h2 { font-size: 1.45rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }

.hero { margin: 0 0 2rem; }

.notice {
  background: var(--bg-soft);
  border-left: 4px solid var(--green);
  padding: 0.75rem 1rem;
  color: var(--muted);
}

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.cards a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.cards a:hover { border-color: var(--green); background: var(--green-soft); }

/* Portraits */

.portrait { margin: 0 0 1.5rem; max-width: 16rem; }
.portrait img { display: block; border-radius: 8px; }
.portrait figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }

@media (min-width: 48rem) {
  .portrait { float: right; margin: 0.35rem 0 1.5rem 2rem; }
  .content::after { content: ""; display: block; clear: both; }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.footer-inner p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green); }
