:root {
  --primary: #932d22;
  --primary-overlay: rgba(147, 45, 34, 0.8);
  --text: #777;
  --heading: #555;
  --muted: #999;
  --border: #eee;
  --white: #fff;
  --max: 1080px;
  --header-h: 100px;
  --header-h-stuck: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Lato, Helvetica, Arial, sans-serif;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6em;
}

h1 { font-size: 2em; }
h2 { font-size: 1.7em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.15em; }
h6 { font-size: 0.85em; font-weight: 400; color: var(--muted); letter-spacing: 0.02em; }

p { margin: 0 0 1.15em; }

ul {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}

li { margin-bottom: 0.35em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 15px;
}

/* ----- Top bar ----- */
.top-bar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 32px;
}

.top-bar nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-bar nav a {
  color: #fff;
  text-decoration: none;
}

.top-bar nav a:hover,
.top-bar nav a.is-active {
  text-decoration: underline;
}

.top-bar-mail {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.top-bar-mail:hover {
  text-decoration: none;
  opacity: 0.85;
}

.top-bar-mail svg {
  display: block;
  width: 15px;
  height: 15px;
}

/* ----- Header ----- */
.site-header {
  background: #fff;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: height 0.2s ease;
}

.site-header.is-stuck {
  height: var(--header-h-stuck);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-home .site-header {
  position: relative;
}

.page-home .site-header.is-stuck {
  height: var(--header-h);
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

.logo {
  flex: 0 0 240px;
  max-width: 240px;
}

.logo img {
  display: block;
  max-height: 70px;
  width: auto;
  max-width: 240px;
  transition: max-height 0.2s ease;
}

.site-header.is-stuck .logo img {
  max-height: 60px;
}

.page-home .site-header.is-stuck .logo img {
  max-height: 70px;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 18px;
}

.main-nav a {
  font-family: Lato, Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-size: 80%;
  font-weight: 700;
  color: #333;
  padding: 10px 0;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--primary);
}

.menu-toggle svg {
  display: block;
  width: 26px;
  height: 26px;
}

/* ----- Hero / banners ----- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero--home {
  height: 600px;
}

.hero--page {
  height: 300px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
}

.hero-inner--home {
  position: absolute;
  inset: 0;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero-inner--page {
  justify-content: center;
  align-items: center;
}

.hero-box {
  background: var(--primary-overlay);
  color: #fff;
  text-align: center;
  padding: 15px;
}

.hero--home .hero-box {
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: 25%;
  min-width: 0;
  max-width: none;
  padding: 15px;
}

.hero--page .hero-box {
  padding: 25px;
  min-width: 220px;
}

.hero-box h1,
.hero-box h3,
.hero-box h4 {
  color: #fff;
  margin: 0;
}

.hero-box h3 {
  font-size: 2em;
  line-height: 1;
  letter-spacing: 0;
  margin: 15px 0;
}

.hero--home .hero-box h3 {
  font-size: 2em;
  margin: 15px 0;
}

.hero-box h4 {
  color: #bababa;
  font-weight: 400;
  font-size: 1.5em;
  line-height: 30px;
  margin: 10px 0 0;
  max-width: none;
}

.hero-box h1 {
  font-size: 1.8em;
}

/* ----- Content ----- */
.page-content {
  padding: 40px 0 60px;
}

.page-content.home-empty {
  padding: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}

.grid-2--equal {
  grid-template-columns: 1fr 1fr;
}

.vita-photo {
  max-width: 340px;
  width: 100%;
}

.section-title {
  font-family: Lato, Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-size: 1.15em;
  margin: 0 auto 30px;
  border-bottom: 3px solid #f1f1f1;
}

.section-title span {
  display: inline-block;
  padding-bottom: 15px;
  border-bottom: 3px solid #ddd;
  margin-bottom: -3px;
}

/* ----- Tabs ----- */
.tabs {
  margin: 30px 0;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 2px solid var(--border);
}

.tabs-nav button {
  appearance: none;
  background: none;
  border: 0;
  border-top: 4px solid transparent;
  color: var(--muted);
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 90%;
  margin-right: 25px;
  padding: 10px 0;
  cursor: pointer;
}

.tabs-nav button:hover {
  color: #555;
  border-color: #777;
}

.tabs-nav button.is-active {
  color: var(--primary);
  border-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

/* ----- Gallery ----- */
.gallery {
  position: relative;
}

.gallery-stage {
  position: relative;
  background: #111;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
}

.gallery-caption {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 8px 0 0;
  color: var(--heading);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.gallery-nav:hover {
  background: #fff;
}

.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.gallery-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #ccc;
  padding: 0;
  cursor: pointer;
}

.gallery-dots button.is-active {
  background: var(--primary);
}

/* ----- Contact ----- */
.map-wrap {
  position: relative;
  height: 250px;
  margin-bottom: 40px;
  background: #dce3e8;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card {
  position: absolute;
  right: max(15px, calc((100% - var(--max)) / 2 + 15px));
  bottom: 20px;
  background: #fff;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  max-width: 260px;
}

.contact-block {
  text-align: center;
  padding: 10px 0 30px;
}

.contact-block h2 {
  margin-bottom: 0.4em;
}

#mylinks {
  list-style: disc;
}

#mylinks li {
  padding-bottom: 10px;
}

.refs-list {
  list-style: disc;
}

.refs-list h4 {
  margin: 0;
  font-weight: 700;
}

.legal h3 {
  margin-top: 1.4em;
}

.impressum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.tx-div {
  display: block;
  height: 3px;
  width: 30px;
  background: #000;
  opacity: 0.1;
  margin: 12px 0 16px;
}

/* ----- Footer ----- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 0 36px;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  gap: 12px 16px;
}

.footer-nav a {
  color: #555;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a.is-active {
  color: var(--primary);
}

/* ----- Back to top ----- */
.top-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 90;
}

.top-link.is-visible {
  display: flex;
}

.top-link:hover {
  text-decoration: none;
  filter: brightness(1.1);
}

/* ----- Mobile menu ----- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-panel {
  width: min(320px, 86vw);
  height: 100%;
  background: #fff;
  padding: 24px 20px;
  overflow: auto;
}

.mobile-nav-close {
  display: block;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--primary);
  margin: 0 0 12px auto;
}

.mobile-nav-close svg {
  display: block;
  width: 26px;
  height: 26px;
}

.mobile-nav ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #333;
  font-family: Lato, Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 90%;
  text-decoration: none;
}

.mobile-nav a.is-active {
  color: var(--primary);
}

.mobile-nav .sub {
  font-weight: 400;
  text-transform: none;
  font-family: "Open Sans", sans-serif;
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .logo { flex: 0 0 auto; max-width: 180px; }
  .hero--home { height: 420px; }
  .hero--home .hero-box { width: 38%; right: 5%; bottom: 8%; }
  .hero-box h4 { max-width: none; }
  .grid-2,
  .grid-2--equal,
  .impressum-grid {
    grid-template-columns: 1fr;
  }
  .map-card {
    position: static;
    max-width: none;
    margin-top: -1px;
  }
  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero--home { height: 340px; }
  .hero--page { height: 180px; }
  .hero--home .hero-box h3 { font-size: 1.7em; }
  .hero-box h4 { font-size: 1.1em; }
  .tabs-nav button { margin-right: 12px; font-size: 80%; }
}
