/* andserve.it – reines CSS, Mobile First, Light/Dark nach Systemeinstellung
   Farben: Verlauf der bisherigen Seite (#0c71c3 → #29c4a9) */

:root {
  --g-bottom: #0c71c3;
  --g-top: #29c4a9;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .9);
  --surface: #ffffff;
  --surface-text: #424242;
  --surface-muted: #5f6b75;
  --surface-link: #0c71c3;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --g-bottom: #062f52;
    --g-top: #0f5c50;
    --muted: rgba(255, 255, 255, .8);
    --surface: #161b20;
    --surface-text: #e8ecef;
    --surface-muted: #a7b0b8;
    --surface-link: #29c4a9;
  }
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--g-bottom); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(0deg, var(--g-bottom) 0%, var(--g-top) 100%) fixed;
  color: var(--text);
  font: 16px/1.6 var(--font);
}
a { color: inherit; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* Startseite */
.hero { display: flex; justify-content: center; padding: 4rem 1.5rem 3rem; }
.hero h1 { margin: 0; line-height: 0; }
.hero + main { flex: 1; display: flex; flex-direction: column; }
.hero img { display: block; width: min(280px, 72vw); height: auto; }

.projects {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  width: 100%;
  max-width: 64rem;
  display: grid;
  gap: 1.25rem;
  flex: 1;
  align-content: start;
}
.projects a {
  display: block;
  text-decoration: none;
  background: var(--surface);
  color: var(--surface-text);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, background .2s;
}
.projects img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: #e9eef2;
}
.projects span { display: block; padding: .8rem 1rem; font-weight: 500; }
.projects a:hover { transform: translateY(-3px); }
.projects a:hover span { color: var(--surface-link); }

/* Fuß */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.25rem;
  padding: 1.25rem;
  font-size: .8rem;
  color: var(--muted);
}
footer a { text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

/* Unterseiten */
.bar { padding: 1.25rem 1.5rem; }
.bar img { display: block; height: 26px; width: auto; }
.legal {
  flex: 1;
  width: calc(100% - 2rem);
  max-width: 44rem;
  margin: 0 auto 2rem;
  padding: 1.75rem 1.5rem 2rem;
  background: var(--surface);
  color: var(--surface-text);
  border-radius: 12px;
}
.legal h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 1.25rem; }
.legal h2 { font-size: 1rem; font-weight: 600; margin: 1.75rem 0 .35rem; }
.legal p, .legal address { margin: 0 0 .75rem; font-style: normal; color: var(--surface-muted); }
.legal .stand { font-size: .85rem; margin-top: 2rem; }
.imprint { display: block; width: 230px; max-width: 100%; height: auto; margin: .5rem 0 1rem; padding: .5rem .6rem; background: #fff; border-radius: 6px; }
.legal a { color: var(--surface-link); }
.todo { background: #fff2a8; color: #4a3b00; padding: 0 .25em; border-radius: 3px; }

/* ab Tablet */
@media (min-width: 640px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 5rem 2rem 4rem; }
  .hero h1 { margin: 0; line-height: 0; }
.hero + main { flex: 1; display: flex; flex-direction: column; }
.hero img { width: 340px; }
  .bar { padding: 1.5rem 2.5rem; }
  .legal { padding: 2.5rem 3rem; }
}
@media (min-width: 960px) {
  .projects { grid-template-columns: repeat(3, 1fr); flex: 0 0 auto; }
  .hero { margin-top: auto; }
  .hero + main { flex: 0 0 auto; }
  body > footer { margin-top: auto; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
