/* GKI GmbH – Visitenkarte. Statisch, ohne externe Ressourcen, ohne Skripte. */

:root {
  --brand:        #245aa6;   /* aus dem Logo entnommen */
  --brand-deep:   #1a4480;
  --bg:           #ffffff;
  --bg-soft:      #f5f7fa;
  --text:         #191d23;
  --text-muted:   #576270;
  --line:         #e1e6ed;
  --shadow:       0 1px 2px rgba(25,29,35,.05), 0 8px 28px rgba(25,29,35,.06);
  --serif:  Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap:   58rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand:      #6d9ce0;
    --brand-deep: #8db4ea;
    --bg:         #14171c;
    --bg-soft:    #1a1e25;
    --text:       #e9ecf1;
    --text-muted: #98a2af;
    --line:       #2a3038;
    --shadow:     0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Kopf ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  background: var(--bg);
}
.site-head .wrap { display: flex; align-items: center; gap: 1rem; }
.site-head img { display: block; width: 135px; height: 55px; }
@media (max-width: 30rem) { .site-head img { width: 108px; height: 44px; } }

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

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 3.1vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .45rem;
}
.hero .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, .95rem + .55vw, 1.35rem);
  color: var(--brand);
  margin: 0 0 1.9rem;
}
.rule { width: 3.5rem; height: 3px; background: var(--brand); border: 0; margin: 0 0 1.9rem; }

.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); max-width: 54ch; margin: 0; }

/* ---------- Inhalt ---------- */

section { padding-block: clamp(1.75rem, 4vw, 2.75rem); }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.15rem + .55vw, 1.65rem);
  letter-spacing: -.01em;
  margin: 0 0 1rem;
}
h3 {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 .4rem;
}
p { margin: 0 0 1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; max-width: 68ch; }
ul.plain li { position: relative; padding-left: 1.1rem; margin-bottom: .35rem; }
ul.plain li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: .32rem; height: .32rem; border-radius: 50%; background: var(--brand);
}

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }

/* ---------- Kontaktkarte ---------- */

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1.75rem 2.5rem;
}
.contact-grid p { margin: 0; }
.contact-grid a { text-decoration: none; font-weight: 550; }
.contact-grid a:hover { text-decoration: underline; }
address { font-style: normal; }

/* ---------- Rechtstexte ---------- */

.legal { padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.legal h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
  letter-spacing: -.015em; margin: 0 0 .6rem;
}
.legal h2 { margin-top: 2.25rem; }
.legal h2:first-of-type { margin-top: 1.75rem; }
.dl { margin: 0 0 1rem; }
.dl div { display: flex; flex-wrap: wrap; gap: .1rem .6rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.dl dt { flex: 0 0 15rem; color: var(--text-muted); margin: 0; }
.dl dd { flex: 1 1 16rem; margin: 0; }
@media (max-width: 34rem) { .dl dt { flex-basis: 100%; } }

.back { display: inline-block; margin-bottom: 1.5rem; font-size: .93rem; text-decoration: none; }
.back:hover { text-decoration: underline; }

/* ---------- Fuss ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 1.75rem 0 2.5rem;
  font-size: .92rem;
  color: var(--text-muted);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: baseline; }
.site-foot nav { display: flex; gap: 1.5rem; }
.site-foot .company { margin-right: auto; }

/* ---------- Druck ---------- */

@media print {
  .site-head, .site-foot { border-color: #ccc; }
  .card { box-shadow: none; background: transparent; }
  a { color: #000; text-decoration: none; }
  body { font-size: 11pt; }
}
