/* Möbelwerkstatt Schulte – responsives Layout
   Farbschema unverändert: Orange #f39100, Grau #f2f2f2 / #4b4b4b / #545454 */

:root {
  --orange: #f39100;
  --orange-text: #c26f00;   /* etwas dunkler für ausreichenden Kontrast bei Text */
  --paper: #f2f2f2;
  --ink: #4b4b4b;
  --ink-soft: #545454;
  --flyer-note: #8a7260;
  --maxw: 880px;
  --gap: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--orange) url("img/bg.jpg") repeat-x top;
  color: var(--ink-soft);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Verdana, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-underline-offset: 2px; }
a:hover, a:focus-visible { color: var(--orange-text); }

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

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

/* ---------- Seitenrahmen ---------- */
.page {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 6px rgba(0, 0, 0, .25);
  overflow: hidden;           /* Hintergrundmotive nicht über den Rand */
  isolation: isolate;
}

@media (min-width: 900px) {
  .page { margin-block: 1.5rem; }
}

/* dezente Hintergrundmotive (wie im Original) */
.deko { position: absolute; z-index: -1; pointer-events: none; display: none; }
.deko-teddy  { top: 0;      left: 46%;  }
.deko-ball   { top: 330px;  left: 0;    }
.deko-schiff { bottom: 0;   right: 6%;  }
@media (min-width: 760px) { .deko { display: block; } }

.inner { padding-inline: var(--gap); }

/* ---------- Kopfbereich ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem 1rem;
}

.logo { flex: 0 0 auto; }
.logo img { width: clamp(130px, 28vw, 193px); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--orange);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-weight: bold;
  padding: .45rem .9rem;
  cursor: pointer;
}
.nav-toggle:hover { color: var(--orange-text); }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: block;
  padding: .45rem 0 .45rem 1rem;
  color: var(--ink);
  font-weight: bold;
  text-decoration: none;
}
.nav a::before {                       /* kleiner Aufzählungspunkt wie im Original */
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  background: var(--orange);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-text); }

@media (max-width: 700px) {
  .site-header { align-items: center; flex-wrap: nowrap; }
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 0 0 auto 0; top: 100%; display: none; }
  .site-header { position: relative; }
  .nav.open { display: block; z-index: 10; }
  .nav ul {
    flex-direction: column; gap: 0;
    background: #fff; padding: .5rem var(--gap);
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 8px 12px rgba(0,0,0,.15);
  }
  .nav a { padding: .8rem 0 .8rem 1.2rem; }
}

/* ---------- Banner ---------- */
.banner { margin: 0; }
.banner img {
  width: 100%;
  aspect-ratio: 799 / 205;
  object-fit: cover;
  object-position: 40% 50%;
}
@media (max-width: 520px) {
  .banner img { aspect-ratio: 16 / 9; }
}

/* ---------- Inhalt ---------- */
.content {
  display: grid;
  grid-template-columns: minmax(150px, 215px) 1fr;
  gap: var(--gap);
  padding-block: 1.75rem 2.5rem;
  align-items: start;
}

@media (max-width: 700px) {
  .content { grid-template-columns: 1fr; }
}

/* Flyer-Teaser */
.flyer { display: block; position: relative; text-decoration: none; max-width: 215px; }
.flyer img { width: 187px; max-width: 100%; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); transition: transform .2s; }
.flyer:hover img { transform: rotate(-1.5deg) scale(1.02); }
.flyer-text {
  margin-top: .5rem;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--flyer-note);
}
.flyer-text::before { content: "➜ "; color: var(--orange-text); }
@media (max-width: 700px) {
  .flyer { display: flex; align-items: center; gap: 1rem; max-width: none; }
  .flyer img { width: 84px; flex: none; }
  .flyer-text { margin: 0; font-size: .9rem; }
}

h1 {
  margin: 0 0 1.25rem;
  color: var(--orange-text);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.35;
  text-wrap: balance;
}

.text { max-width: 62ch; }
.text p { margin: 0 0 1.1em; }
.text h2 { margin: 1.6em 0 .3em; font-size: 1rem; color: var(--ink); }
.text h2 + p { margin-top: 0; }

.main-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 1000px) {
  .main-grid { grid-template-columns: 1fr; }
}

/* Orange Kästchen */
.kaestchen {
  width: 153px; height: 153px;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: var(--orange) url("img/kaestchen.png") center / cover no-repeat;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  font-size: .9rem;
  line-height: 1.35;
}
@media (max-width: 1000px) {
  .kaestchen { width: 100%; height: auto; padding: 1.25rem; font-size: 1rem; }
}

.address { font-style: normal; margin-bottom: 1.1em; }
.map {
  width: 100%; max-width: 560px;
  aspect-ratio: 384 / 270;
  border: 0;
  background: #e4e4e4;
}

.press-entry { margin: 0; }

/* ---------- Fuß ---------- */
.site-footer {
  height: 34px;
  background: var(--orange);
  border-radius: 0 0 0 0;
}

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

/* Karte: Zwei-Klick-Lösung */
.map-consent {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: .9rem; padding: 1.25rem; font-size: .9rem; line-height: 1.5;
}
.map-consent p { margin: 0; }
.map-consent button {
  background: var(--orange); color: #fff; border: 0; border-radius: 6px;
  padding: .6rem 1.2rem; font: inherit; font-weight: bold; cursor: pointer;
}
.map-consent button:hover { background: var(--orange-text); }

/* Button */
.btn {
  display: inline-block;
  background: var(--orange); color: #fff; text-decoration: none;
  font-weight: bold; padding: .7rem 1.4rem; border-radius: 6px;
}
.btn:hover, .btn:focus-visible { background: var(--orange-text); color: #fff; }
