/* ==========================================================================
   GfUD eG – Corporate CSS
   ========================================================================== */

:root{
  /* Colors */
  --ink:   #18222D;
  --cloud: #F6F8FA;
  --mist:  #E9EEF3;
  --steel: #C7D1DA;
  --teal:  #0E5A64;  /* primary */
  --navy:  #1F3C57;  /* secondary */
  --amber: #F5A623;  /* accent */
  --green: #1F9D62;
  --red:   #D64545;
  --blue:  #3B82F6;

  /* Typography */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-h1: 2.5rem; /* 40px */
  --fs-h2: 2rem;   /* 32px */
  --fs-h3: 1.5rem; /* 24px */
  --fs-body: 1.125rem; /* 18px */
  --fs-small: 0.9375rem; /* 15px */

  /* Spacing */
  --s1: 0.5rem;  /* 8px */
  --s2: 1rem;    /* 16px */
  --s3: 1.5rem;  /* 24px */
  --s4: 2rem;    /* 32px */
  --s5: 2.5rem;  /* 40px */

  /* Surfaces */
  --radius: 8px;
  --shadow-1: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.08);

  /* Layout */
  --container: 1200px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: --ink;
  color: var(--ink); background: var(--cloud); line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Containers */
.section { padding-block: var(--s5); }

/* Typography */
h1, h2, h3 { margin: 0 0 var(--s2); font-weight: 600; color: var(--navy); }
h1 { font-size: var(--fs-h1); line-height: 1.2; }
h2 { font-size: var(--fs-h2); line-height: 1.25; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 var(--s2); font-size: var(--fs-body); color: var(--ink); }
.small { font-size: var(--fs-small); color: #3a4652; }
code, pre { font-family: var(--mono); }

/* Header & Nav */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy); color: white; box-shadow: var(--shadow-1);
}
/* ==========================================================================
   Navigation – responsive, barrierefrei, GfUD eG
   ========================================================================== */

.header {
  background-color: #1F3C57; /* Navy */
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================
   Container – zentrales Layout
   ============================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--s3);
  box-sizing: border-box;
}

.container h1,
.container p,
.container .lead {
  text-align: left;
}

/* ============================
   Navigation – GfUD eG
   ============================ */

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
  position: sticky;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #EFF4F8;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #EFF4F8;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(255,255,255,0.12);
}

/* ============================
   Mobil: vertikal, nicht sticky
   ============================ */
@media (max-width: 600px) {
  .header,
  .nav {
    position: static !important;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Hero */
.hero {
  height: 300px;
  background: linear-gradient(135deg, var(--mist), #f9fbfd);
  border-bottom: 1px solid var(--steel);
}

.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: calc(var(--s5) + 16px);
}

.hero .content {
  text-align: left;
  max-width: 60ch;
  margin-left: 0;
}

.hero h1 {
  color: var(--teal);
  margin-top: 0;
}

.hero .lead {
  font-size: 1.25rem;
  color: #2a3a48;
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--teal); color: white; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: #0b4c55; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: rgba(14,90,100,0.08); }
.btn-tertiary { background: transparent; color: var(--amber); border-color: transparent; }
.btn-tertiary:hover { text-decoration: underline; }

/* ============================
   Cards – GfUD eG
   ============================ */

.card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: var(--s3);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-2, 0 4px 12px rgba(0,0,0,0.15));
  transform: translateY(-2px);
}

.card img.card-image {
  width: 100%;
  height: 300px;
  object-fit: contain; /* oder cover, je nach CI-Stil */
  border-radius: var(--radius, 8px);
  margin-bottom: var(--s2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  object-fit: cover;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: var(--s2, 1rem);
}

.card h3 {
  margin-top: 0;
  margin-bottom: var(--s1);
  font-size: 1.2rem;
  color: var(--ink, #1F3C57);
}

.card p {
  margin: 0 0 var(--s1) 0;
  color: var(--text, #333);
  line-height: 1.5;
}

.card .meta {
  font-size: 0.875rem;
  color: #5a6673;
  margin-top: var(--s1);
}

.card a {
  display: inline-block;
  margin-top: var(--s1);
  color: var(--link, #1F3C57);
  font-weight: 500;
  text-decoration: underline;
}
.card-grid {
  display: grid;
  gap: var(--s3);
  margin-block: var(--s3);
}

.card-grid.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================
   Responsive Verhalten
   ============================ */
@media (max-width: 600px) {
  .card {
    padding: var(--s2, 1rem);
  }

  .card h3 {
    font-size: 1.1rem;
  }
}

/* Grid */
.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Lists */
.list { display: grid; gap: 12px; padding: 0; margin: 0; }
.list li { list-style: none; }

/* Forms */
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--steel);
  border-radius: var(--radius); background: white; font-size: 1rem;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--teal); outline: 3px solid rgba(14,90,100,0.2);
}
.label { display: block; margin-bottom: 6px; font-weight: 600; }
.help { color: #5a6673; font-size: 0.95rem; }

/* Tables */
.table {
  width: 100%; border-collapse: collapse; background: white;
  border: 1px solid var(--steel); border-radius: var(--radius); overflow: hidden;
}
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--steel); }
.table th { background: var(--mist); text-align: left; }

/* Alerts */
.alert {
  border-radius: var(--radius); padding: 12px 14px; border: 1px solid;
  display: flex; gap: 10px; align-items: center;
}
.alert-info { background: #eef5ff; border-color: #bcd5ff; color: #0c3b77; }
.alert-success { background: #eaf7f0; border-color: #cbe9d9; color: #095c34; }
.alert-warning { background: #fff7ea; border-color: #ffe0a6; color: #7b4d08; }
.alert-danger { background: #fdecec; border-color: #f7c4c4; color: #7b1f1f; }

/* Footer */
.footer { margin-top: var(--s5); border-top: 1px solid var(--steel); background: #f3f6fa; }
.footer .content { padding-block: var(--s4); color: #42505c; }

/* Dark mode */
@media (prefers-color-scheme: dark){
  :root{
    --ink:   #E6EDF5;
    --cloud: #0f141a;
    --mist:  #18222D;
    --steel: #324454;
    --navy:  #122433;
  }
  .card, .table, .input, .select, .textarea { background: #121a22; border-color: #324454; }
  .table th { background: #18222D; }
  .nav a { color: #dbe6ee; }
  .footer { background: #10161d; border-top-color: #324454; }
}

