/* ===========================================================
   Robotic Systems – Website Styles
   Reines CSS, keine externen Abhängigkeiten (keine Web-Fonts,
   keine Tracker) – datenschutzfreundlich und schnell.
   =========================================================== */

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

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --heading: #111111;
  --muted: #666666;
  --gold: #c0a063;
  --line: #eeeeee;
  --maxw: 760px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* korrekte Höhe auf Mobilgeräten */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---------- Startseite: zentriertes Logo ---------- */
.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.hero__logo {
  display: block;
  width: min(440px, 82vw); /* nicht zu groß, nicht zu klein – responsiv */
  height: auto;
}

/* ---------- Footer (auf allen Seiten gleich) ---------- */
.site-footer {
  flex: 0 0 auto;
  padding: 1.75rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0.35rem 0;
}

.footer-links {
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
}

.footer-links a,
.footer-credit a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-links .sep {
  color: #cccccc;
}

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page-header {
  flex: 0 0 auto;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.page-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.page-header__logo {
  display: inline-block;
}

.page-header__logo img {
  display: block;
  height: 60px;
  width: auto;
}

.content {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.content h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 1.5rem;
}

.content h2 {
  font-size: 1.3rem;
  color: var(--heading);
  margin: 2.4rem 0 0.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.content h3 {
  font-size: 1.08rem;
  color: var(--heading);
  margin: 1.7rem 0 0.4rem;
}

.content h4 {
  font-size: 1rem;
  color: #333333;
  margin: 1.2rem 0 0.3rem;
}

.content p {
  margin: 0 0 1rem;
}

.content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.content li {
  margin: 0 0 0.5rem;
}

.content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
  word-break: break-word; /* lange URLs brechen auf dem Handy sauber um */
}

.content a:hover,
.content a:focus-visible {
  color: var(--gold);
}

/* ---------- Mobile Feinschliff ---------- */
@media (max-width: 480px) {
  .content {
    padding-top: 1.75rem;
  }

  .content h1 {
    font-size: 1.55rem;
  }

  .page-header__logo img {
    height: 50px;
  }
}
