/* T&R Immobilien – statische Neuauflage im Look des alten Templates, Akzentfarbe Hellblau aus dem Logo */
:root {
  --accent: #1896d4;        /* Hellblau aus dem Logo */
  --accent-dark: #0f6a99;   /* dunkler, für Text/Links (besser lesbar) */
  --accent-light: #eaf5fb;
  --text: #333;
  --muted: #777;
  --line: #dbe6ec;
  --bg: #f4f4f4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.65 "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Kontaktleiste oben */
.topbar { background: #2b2b2b; color: #ccc; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }

/* Kopf mit Logo und Menü */
header.site { background: #fff; border-bottom: 4px solid var(--accent); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.logo img { display: block; width: 142px; height: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
nav a {
  display: block; padding: 10px 14px; text-decoration: none; color: #444;
  text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: .03em;
}
nav a:hover, nav a.active { background: var(--accent); color: #fff; }
.menu-toggle { display: none; }

/* Bildergalerie (wie das alte Slideshow-Modul) */
.slider { background: #fff; }
.slides { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 1597 / 599; overflow: hidden; }
.slides a { position: absolute; inset: 0; opacity: 0; animation: fade 20s infinite; }
.slides a:nth-child(2) { animation-delay: 5s; }
.slides a:nth-child(3) { animation-delay: 10s; }
.slides a:nth-child(4) { animation-delay: 15s; }
.slides img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes fade { 0% {opacity:0} 4% {opacity:1} 25% {opacity:1} 29% {opacity:0} 100% {opacity:0} }
.thumbs { display: flex; justify-content: center; gap: 6px; padding: 8px 16px; background: #1a1a1a; }
.thumbs a { width: 70px; height: 46px; overflow: hidden; border: 2px solid transparent; }
.thumbs a:hover { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Inhalt */
main { background: #fff; margin: 24px auto; padding: 28px 32px 36px; max-width: 1100px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
h1, h2, h3 { color: var(--accent-dark); line-height: 1.3; font-weight: 600; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 21px; margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
h3 { font-size: 17px; margin: 22px 0 6px; }
.subtitle { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
blockquote { margin: 18px 0; padding: 10px 18px; border-left: 4px solid var(--accent); background: var(--accent-light); font-style: italic; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 9px 18px; text-decoration: none; border-radius: 3px; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 10px; }
.team figure { margin: 0; }
.team img { width: 100%; max-width: 260px; display: block; margin-bottom: 10px; border: 1px solid var(--line); }

/* Fuss */
footer.site { background: #2b2b2b; color: #bbb; font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
footer.site a { color: #ddd; }

@media (max-width: 760px) {
  header.site .wrap { flex-direction: column; align-items: flex-start; }
  nav ul { flex-direction: column; width: 100%; }
  nav a { border-top: 1px solid #eee; }
  main { margin: 0; padding: 20px 16px 28px; box-shadow: none; }
  .thumbs { display: none; }
}
