/* GK Bauplanung – statische Visitenkarte
   Farben und Typo uebernommen aus dem urspruenglichen Contao-Layout */

:root {
  --accent: #ea1100;
  --text: #333;
  --muted: #666;
  --line: #ddd;
  --bg: #fff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 'Open Sans', 'Helvetica Neue', Arial, Geneva, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  border-top: 4px solid var(--accent);
  padding: 28px 0 24px;
}

header img {
  display: block;
  width: 114px;
  height: auto;
}

/* Inhalt */
main { flex: 1 0 auto; padding: 8px 0 56px; }

h1, h2, p, .contact, .legal {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -.02em;
  margin: 0 0 24px;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 36px 0 10px;
}

p { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.lead { font-size: 17px; }

/* Kontaktblock */
.contact {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 0 0 32px;
}

.contact p { margin: 0 0 .5em; }
.contact p:last-child { margin-bottom: 0; }

.legal { font-size: 14px; color: var(--muted); }
.legal h2 { font-size: 16px; }

/* Footer */
footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 14px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* Mobil */
@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 21px; letter-spacing: 0; }
  header { padding: 20px 0 18px; }
  main { padding-bottom: 40px; }
  footer .wrap { justify-content: flex-start; }
}

/* Druck */
@media print {
  header { border-top-color: #000; }
  h1, a { color: #000; }
  footer { border-top-color: #999; }
}
