/* ==========================================================================
   giw gmbh – zentrales Stylesheet
   Reines CSS, keine Skripte. Farben orientieren sich am Firmenlogo.
   ========================================================================== */

:root {
  --color-primary: #005ca1;
  --color-primary-dark: #003f70;
  --color-primary-light: #62a0cd;
  --color-bg: #ffffff;
  --color-bg-alt: #eaf4fb;
  --color-bg-accent: #495677;
  --color-border: #c5e5f9;
  --color-text: #16202b;
  --color-text-invert: #ffffff;
  --color-focus: #ff9800;
  --max-width: 1180px;
}

/* -- Basis / Reset -------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  font-size: 112.5%; /* 18px Basis, gut lesbar für ältere Augen */
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--color-primary-dark);
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.85rem;
}

h3 {
  font-size: 1.35rem;
}

p,
li {
  font-size: 1.1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

/* -- Sprungmarke für Tastatur-Nutzer -------------------------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary-dark);
  color: var(--color-text-invert);
  padding: 0.8rem 1.2rem;
  z-index: 100;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  left: 0;
}

/* -- Layout-Hilfen --------------------------------------------------------- */

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

main {
  display: block;
}

section {
  padding: 3rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

/* -- Kopfbereich ------------------------------------------------------------ */

header.site-header {
  border-bottom: 4px solid var(--color-primary);
  background-color: var(--color-bg);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: inline-block;
}

.logo {
  width: 300px;
  height: auto;
}

nav.main-nav-wrap {
  width: 100%;
}

ul.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  justify-content: center;
}

ul.main-nav a {
  display: inline-block;
  padding: 0.6rem 0.3rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary-dark);
  border-bottom: 3px solid transparent;
}

ul.main-nav a:hover,
ul.main-nav a:focus {
  border-bottom-color: var(--color-primary-light);
}

ul.main-nav a[aria-current="page"] {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

@media (min-width: 700px) {
  nav.main-nav-wrap {
    width: auto;
  }
}

/* -- Hero ------------------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #ffffff 70%);
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  max-width: 46rem;
}

.hero p.lead {
  font-size: 1.35rem;
  max-width: 42rem;
  color: var(--color-text);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* -- Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--color-primary);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-invert);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-invert);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary-dark);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-bg-alt);
}

/* -- Karten / Grid ------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-primary);
  border-radius: 6px;
  padding: 1.75rem;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  margin-bottom: 0;
}

/* -- Person / Team ---------------------------------------------------------- */

.person-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.person-photo {
  width: 190px;
  height: 190px;
  border-radius: 6px;
  border: 4px solid var(--color-bg-alt);
  outline: 1px solid var(--color-border);
  object-fit: cover;
  flex-shrink: 0;
}

.person-section > div {
  flex: 1 1 320px;
  min-width: 0;
}

.person-name {
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* -- Geschichte / Zeitleiste ------------------------------------------------ */

.timeline {
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.2rem;
  padding-left: 1.2rem;
  border-left: 4px solid var(--color-primary);
}

.timeline-item dt {
  flex: 0 0 8rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}

.timeline-item dd {
  margin: 0;
  font-size: 1.1rem;
}

/* -- Philosophie / Zitat -------------------------------------------------- */

.philosophie {
  background-color: var(--color-primary);
  color: var(--color-text-invert);
  padding: 3rem 0;
  text-align: center;
}

.philosophie h2 {
  color: var(--color-text-invert);
}

.philosophie ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

/* -- Kontakt-Boxen -------------------------------------------------------- */

.kontakt-box {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem;
}

.kontakt-box dt {
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 1rem;
}

.kontakt-box dd {
  margin: 0.2rem 0 0 0;
  font-size: 1.15rem;
}

/* -- Fusszeile -------------------------------------------------------------- */

footer.site-footer {
  background-color: var(--color-bg-accent);
  color: var(--color-text-invert);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

footer.site-footer h2 {
  color: var(--color-text-invert);
  font-size: 1.25rem;
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

footer.site-footer a {
  color: #d9ecfa;
}

footer.site-footer address {
  font-style: normal;
  font-size: 1.05rem;
}

footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer.site-footer li {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.copyright {
  text-align: center;
  padding: 1rem 1.5rem 1.5rem;
  margin: 0;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* -- Tabellen (Leistungsübersicht) ----------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1.05rem;
}

th,
td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

th {
  background-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

/* -- Responsive -------------------------------------------------------------- */

@media (max-width: 640px) {
  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 0;
  }
}
