/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */

/* ==========================================================================
   HTML5 Boilerplate: Grundstile
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  margin: 1em 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #ccc;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

textarea {
  resize: vertical;
}

/* ==========================================================================
   Vergabe-Suche: Designvariablen
   ========================================================================== */

:root {
  --page-bg: #f3f5f7;
  --body-bg: #858a8e;
  --surface: #ffffff;

  --primary: #174f7a;
  --primary-dark: #103a5a;
  --accent: #e7f1f8;

  --text: #20262c;
  --muted: #65717c;
  --border: #d8e0e6;

  --shadow: 0 12px 30px rgba(27, 55, 78, 0.12);
  --page-shadow: 0 0 32px rgba(0, 0, 0, 0.18);

  --radius: 16px;
}

/* ==========================================================================
   Vergabe-Suche: Allgemeine Grundstile
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--body-bg);
  color: var(--text);
  font-family: system-ui,
  -apple-system,
  BlinkMacSystemFont,
  "Segoe UI",
  sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

/* ==========================================================================
   Vergabe-Suche: Gemeinsame Seitenbreite
   ========================================================================== */

.header-inner,
.main,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ==========================================================================
   Vergabe-Suche: Kopfbereich
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;

  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 72px;
  gap: 24px;
}

.brand {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* ==========================================================================
   Vergabe-Suche: Hauptnavigation
   ========================================================================== */

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;

  gap: 8px;
}

.nav a {
  padding: 8px 12px;

  border-radius: 999px;

  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--accent);
  outline: none;
}

/* ==========================================================================
   Vergabe-Suche: Hauptinhalt
   ========================================================================== */

.main {
  padding: 32px;

  background: var(--page-bg);
  box-shadow: var(--page-shadow);
}

/* ==========================================================================
   Vergabe-Suche: Hero-Bild
   ========================================================================== */

.hero {
  min-height: 300px;

  overflow: hidden;

  background: url("../img/vergabesuche1.jpg") center / cover no-repeat;

  border-radius: var(--radius);
}

/* ==========================================================================
   Vergabe-Suche: Einleitungskarte
   ========================================================================== */

.content-card {
  margin: 32px 0;
  padding: clamp(24px, 4vw, 44px);

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin-top: 0;

  color: var(--primary-dark);
}

.content-card p {
  margin-bottom: 0;

  hyphens: auto;
  text-align: justify;
}

/* ==========================================================================
   Vergabe-Suche: Bildlinks
   ========================================================================== */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

  gap: 2rem;
  margin: 4rem 0;
}

.image-link {
  display: block;

  padding: 1rem;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  text-decoration: none;

  transition: box-shadow 0.25s ease,
  transform 0.25s ease;
}

.image-link:hover,
.image-link:focus-visible {
  box-shadow: 0 18px 40px rgba(27, 55, 78, 0.18);
  transform: translateY(-6px);
}

.image-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.image-link img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 10px;
}

/* ==========================================================================
   Vergabe-Suche: Fußbereich
   ========================================================================== */

.site-footer {
  margin-top: 48px;

  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 88px;
  gap: 24px;

  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;

  gap: 16px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
}

/* ==========================================================================
   Vergabe-Suche: Tablet und kleine Bildschirme
   ========================================================================== */

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;

    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .main {
    padding: 16px;
  }

  .content-card p {
    text-align: left;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;

    padding: 24px 0;
  }
}

/* ==========================================================================
   Vergabe-Suche: Smartphones
   ========================================================================== */

@media (max-width: 460px) {
  .header-inner,
  .footer-inner {
    width: min(100% - 20px, 1120px);
  }

  .main {
    width: calc(100% - 16px);
    padding: 12px;
  }

  .nav a {
    padding: 7px 9px;

    font-size: 0.94rem;
  }

  .hero {
    min-height: 180px;

    border-radius: 10px;
  }

  .content-card {
    padding: 18px;
  }

  .link-grid {
    gap: 1rem;
  }

  .image-link {
    padding: 0.5rem;
  }
}

/* ==========================================================================
   HTML5 Boilerplate: Hilfsklassen
   ========================================================================== */

.hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;

  overflow: hidden;

  border: 0;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static;

  width: auto;
  height: auto;
  margin: 0;

  overflow: visible;

  clip: auto;

  white-space: inherit;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  display: table;

  content: "";
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   HTML5 Boilerplate: Beispiel-Media-Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Zusätzliche Anpassungen für größere Ansichten */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Zusätzliche Anpassungen für hochauflösende Displays */
}

/* ==========================================================================
   HTML5 Boilerplate: Druckansicht
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    box-shadow: none !important;
    color: #000 !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
