/* Deebot T30e — Zimmer-Anleitung / room instructions.
   Plain CSS, mobile-first, no framework. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #2f6f5e;
  --accent-dark: #214f42;
  --border: #e4ded3;
  --radius: 10px;
  --max-width: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* Header */
header.site {
  background: var(--accent);
  color: #fff;
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
header.site h1 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}
header.site .tagline {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
}
.lang-switch a {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.lang-switch a:hover { background: rgba(255,255,255,0.3); }

/* Main content */
main { padding: 1.5rem 0 3rem; }

section { margin-bottom: 2.6rem; }

h2 {
  color: var(--accent-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.35rem;
  font-size: 1.3rem;
}
h3 {
  font-size: 1.05rem;
  color: var(--accent-dark);
  margin-top: 1.4rem;
}

p { margin: 0.7rem 0; }

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

/* Standalone photo row (intro, robot prep) */
.photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.1rem 0;
}
.photo-row figure {
  flex: 1 1 260px;
  max-width: 100%;
}

/* Step cards grid (lettered steps with a photo) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.step figure { margin: 0; }
.step p {
  margin: 0.8rem 0.9rem 0.9rem;
  font-size: 0.95rem;
}

figure { margin: 0; }
figure img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: zoom-in;
}
figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  padding: 0.25rem 0.4rem;
}

/* Plain ordered/lettered lists without photos */
ol.plain, ul.plain {
  padding-left: 1.3rem;
}
ol.plain li, ul.plain li {
  margin-bottom: 0.6rem;
}

/* Small inline figure (e.g. a single illustrative photo inside a list item) */
.small-figure {
  max-width: 220px;
  margin: 0.6rem 0 0.2rem;
}
.small-figure img { height: auto; }

/* Video */
.video-wrap {
  margin: 1.1rem 0;
}
.video-wrap video {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  display: block;
}
.video-wrap figcaption { text-align: left; }

/* Note / callout box */
.note {
  background: #fff6e0;
  border: 1px solid #ead9a0;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

footer.site {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.5rem 0 2.5rem;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  z-index: 1000;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
#lightbox .lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 640px) {
  header.site h1 { font-size: 1.5rem; }
  h2 { font-size: 1.5rem; }
}
