/* ============================================================
   Safkom GmbH — styles.css
   Farbwelt aus dem Logo: Anthrazit, Beige (#D6C4B0), Bronze (#A47151)
   ============================================================ */

:root {
  --ink: #262220;          /* Anthrazit: Text, dunkle Flächen */
  --ink-soft: #575049;     /* Sekundärtext */
  --paper: #FCFAF7;        /* warmes Weiss */
  --surface: #F4EFE8;      /* leicht getönte Fläche */
  --line: #E5DDD2;         /* Trennlinien */
  --beige: #D6C4B0;        /* Logo-Beige */
  --bronze: #A47151;       /* Logo-Bronze, grosse Akzente */
  --bronze-deep: #86583B;  /* Bronze dunkel: Links, kleine Akzente */
  --on-dark: #EDE6DC;      /* Text auf Anthrazit */
  --on-dark-soft: #BDB3A6; /* Sekundärtext auf Anthrazit */
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  /* Sticky Footer: bei kurzem Inhalt füllt <main> den Rest der Höhe,
     der Footer sitzt am unteren Rand ohne weisse Fläche darunter. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* ---------- Grundelemente ---------- */

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--bronze-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.container {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

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

/* ---------- Kopfzeile ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 1.75rem;
  height: 2.35rem;
}

.brand strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--beige);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--bronze);
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  padding: 3.5rem 0 3rem;
}

.hero img {
  width: 11rem;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--on-dark);
  max-width: 34em;
  margin: 0 auto 0.5rem;
}

.hero p {
  color: var(--on-dark-soft);
  max-width: 38em;
  margin: 0 auto;
}

/* ---------- Abschnitte ---------- */

.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-title {
  color: var(--bronze-deep);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 44em;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--beige);
}

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

.card p {
  color: var(--ink-soft);
  margin: 0;
}

/* Kontakt-/Definitionslisten */

.contact-list {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.25rem 2rem;
  grid-template-columns: max-content 1fr;
}

.contact-list dt {
  font-weight: 600;
  padding: 0.35rem 0;
}

.contact-list dd {
  margin: 0;
  padding: 0.35rem 0;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .contact-list {
    grid-template-columns: 1fr;
  }
  .contact-list dt {
    padding-bottom: 0;
  }
  .contact-list dd {
    padding-top: 0;
  }
}

/* ---------- Unterseiten (Rechtstexte) ---------- */

.page {
  padding: 3rem 0 4rem;
}

.page h1 {
  margin-bottom: 1.5rem;
}

.prose {
  max-width: 46em;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  width: 1.5rem;
  height: 2rem;
}

.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--beige);
}

/* Startseite ohne Abstand zwischen Hero und Fusszeile-Sektionen */
main > .hero + .container .section:first-child {
  border-top: 0;
}
