/* Nachbau des bisherigen Avada-Designs von master.de; Werte aus dem Live-Theme übernommen. */
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(/fonts/open-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/open-sans-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-weight: 400; font-display: swap; src: url(/fonts/pt-sans-latin-400-normal.woff2) format("woff2"); }

:root {
  --red: #fe0006;
  --ink: #1c252c;
  --grey: #8a9094;
  --muted: #8c8989;
  --row: 1215px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--grey) #f3f3f3; }
/* Fallback für Browser ohne die standardisierten Scrollbar-Eigenschaften. */
@supports not (scrollbar-width: thin) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: #f3f3f3; }
  ::-webkit-scrollbar-thumb { background: var(--grey); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/24px "Open Sans", Arial, Helvetica, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--ink); }
p { margin: 0 0 20px; }
h1, h2, h3 { font-family: "Open Sans Condensed", Arial, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--ink); margin: 0 0 20px; }
.row { max-width: var(--row); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--ink); }
.site-header .logo { display: block; width: 320px; margin: 0 auto; padding: 17px 0; }
.site-header .logo img { width: 320px; height: 120px; }
.main-nav { border-top: 1px solid rgba(229, 229, 229, .5); }
.main-nav > ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 38px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; line-height: 43px; font: 16px/43px Montserrat, Arial, sans-serif; color: var(--grey); border-top: 3px solid transparent; margin-top: -1px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li:focus-within > a, .main-nav a[aria-current] { color: #fff; border-top-color: #fff; }

/* Fixe Kontakt-Buttons rechts */
.side-contact { position: fixed; right: 0; top: 254px; z-index: 30; display: flex; flex-direction: column; }
.side-contact a { width: 46px; height: 54px; display: grid; place-items: center; background: var(--ink); }
.side-contact a:first-child { background: var(--red); }
.side-contact svg { width: 16px; height: 16px; fill: #fff; }

/* Buttons */
.btn { display: inline-block; font: 14px/17px "PT Sans", Arial, sans-serif; padding: 13px 29px; border: 1px solid var(--red); color: var(--red); background: #fff; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--red); color: #fff; }
.btn-light { border-color: var(--ink); color: var(--ink); background: #fff; font-weight: 700; font-size: 16px; }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-red { border-color: #fff; color: #fff; background: var(--red); font-weight: 700; font-size: 16px; }
.btn-red:hover { border-color: var(--red); color: var(--red); background: #fff; }

/* Startseite: Hero */
.hero { position: relative; height: max(450px, calc(100vh - 199px)); background: url(/img/slider-start.jpg) center / cover; display: flex; align-items: center; padding: 0 10px; }
.hero .caption { width: 100%; padding: 25px 20px 30px; background: rgba(255, 255, 255, .5); text-align: center; }
.hero h1 { font-size: 60px; line-height: 80px; margin: 0; }
.hero .sub { font-family: "Open Sans Condensed", Arial, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 24px; margin: 0 0 20px; }
.hero .buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 20px; }
.hero .buttons .btn { min-width: 250px; padding: 17px 25px; }

/* Abschnitte */
.section { padding: 55px 0 45px; text-align: center; }
.section .text { max-width: 680px; margin: 0 auto; }
.section h2 { font-size: 30px; line-height: 39px; }
.sep { width: 300px; max-width: 80%; height: 0; border-top: 3px solid var(--ink); margin: 10px auto 30px; }
.band { position: relative; min-height: 320px; background: url(/img/master-knigge-home.jpg) center top / cover; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .6); }
.band > * { position: relative; }
@media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
  .band { background-attachment: fixed; }
}

/* Referenz-Logos: Laufband */
.logo-strip { overflow: hidden; margin: 0 auto 30px; max-width: 900px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-strip ul { display: flex; gap: 20px; width: max-content; list-style: none; margin: 0; padding: 0; animation: strip 60s linear infinite; }
.logo-strip:hover ul { animation-play-state: paused; }
.logo-strip img { width: 160px; height: auto; }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-strip ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* Unterseiten */
.page-banner { height: clamp(220px, 34vw, 430px); background: center / cover no-repeat; }
.page { padding: 20px 0 45px; }
.page h1, .page h2 { font-size: 40px; line-height: 52px; margin: 0 0 15px; }
.page h2 { margin-top: 10px; }
.section h3.lead { font-size: 20px; line-height: 28px; }
[id] { scroll-margin-top: 20px; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding-top: 43px; }
.site-footer .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.site-footer .standort { height: 380px; background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)), url(/img/master-standort-v2.jpg) center / cover; display: grid; place-items: center; text-align: center; color: var(--ink); }
.site-footer .standort p { margin: 0; }
.site-footer .standort a { color: var(--ink); }
.site-footer .karte { display: block; height: 380px; position: relative; }
.site-footer .karte img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.site-footer .karte span { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--ink); font-size: 13px; padding: 4px 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.site-footer .bottom { text-align: center; padding: 25px 0 30px; font-size: 12px; line-height: 18px; color: var(--muted); }
.site-footer .social { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.site-footer .social img { width: 18px; height: 18px; }
.site-footer .links a { color: #bfbfbf; }
.site-footer .links a:hover { color: #fff; }
.site-footer .legal { max-width: 800px; margin: 15px auto 0; }

@media (max-width: 800px) {
  h1, h2, h3 { line-height: 1.3; }
  main { overflow-wrap: anywhere; hyphens: auto; }
  h1, h2 { overflow-wrap: normal; hyphens: manual; }
  .site-header .logo, .site-header .logo img { width: 200px; height: auto; }
  .main-nav > ul { gap: 0 18px; }
  .main-nav > ul > li > a { font-size: 14px; }
  .side-contact { top: auto; bottom: 20px; }
  .hero { height: auto; min-height: max(450px, calc(100svh - 199px)); }
  .hero .caption { min-width: 0; }
  .hero h1 { font-size: clamp(28px, 7vw, 36px); line-height: 1.25; letter-spacing: 2px; }
  .hero .buttons .btn { min-width: 0; width: 100%; }
  .band { background-position: 72% top; }
  .page h1, .page h2 { font-size: 30px; line-height: 39px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .site-footer .standort, .site-footer .karte { height: 280px; }
}

/* Über uns: Master Knigge */
#master-knigge .knigge-banner{margin:30px 0}
#master-knigge .knigge-banner img{display:block;width:100%;height:430px;object-fit:cover}
#master-knigge h3{font:700 20px/1.3 "Open Sans Condensed",sans-serif;text-transform:uppercase;letter-spacing:3px;color:var(--ink);margin:0 0 20px}
#master-knigge .knigge-intro{max-width:1000px;margin:0 auto 40px}
#master-knigge .knigge-acc{max-width:1000px;margin:0 auto;text-align:left;border:1px solid #e7e6e6}
#master-knigge details+details{border-top:1px solid #e7e6e6}
#master-knigge summary{display:flex;align-items:center;gap:14px;padding:16px 20px;cursor:pointer;list-style:none;font:700 13px/1.4 "Open Sans Condensed",sans-serif;text-transform:uppercase;letter-spacing:1px;color:var(--ink)}
#master-knigge summary::-webkit-details-marker{display:none}
#master-knigge summary::before{content:"+";flex:none;width:14px;height:14px;line-height:14px;text-align:center;background:var(--ink);color:#fff;font:700 12px/14px "Open Sans",sans-serif;letter-spacing:0}
#master-knigge details[open]>summary{color:var(--red)}
#master-knigge details[open]>summary::before{content:"\2212"}
#master-knigge summary:focus-visible{outline:2px solid var(--red);outline-offset:-2px}
#master-knigge .knigge-body{padding:0 20px 20px 48px;font:400 15px/1.6 "Open Sans",sans-serif}
#master-knigge .knigge-body p{margin:0 0 12px}
@media(max-width:600px){#master-knigge .knigge-banner img{height:220px}#master-knigge .knigge-body{padding-left:20px}}

/* Über uns: Team */
#team .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px; text-align: left; }
#team .team-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 35% center; margin-bottom: 12px; }
#team .team-card h3 { font-size: 20px; line-height: 26px; margin: 0; }
#team .team-role { color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 2px 0 8px; }
#team .team-card p { font-size: 14px; line-height: 22px; margin: 0; }
#team .team-card a { color: var(--ink); }
#team .team-card a:hover { color: var(--red); }
.section h1.title { font-size: 30px; line-height: 39px; }

/* Kontakt */
.contact-hero { padding: 50px 0 30px; text-align: center; }
.contact-hero .sub { font-family: "Open Sans Condensed", Arial, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h2 { color: #fff; margin-bottom: 30px; }
.section.dark .logo-strip { margin-bottom: 0; }
.contact-references .row { max-width: none; padding: 0; }
.contact-references .logo-strip { max-width: none; }
.contact-references .logo-strip ul { animation-duration: 120s; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 30px; font-size: 14px; line-height: 21px; }
.steps img { margin: 0 auto 10px; }
.steps h3 { font: 700 14px/21px "Open Sans", Arial, sans-serif; text-transform: none; letter-spacing: 0; margin: 0; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; font-size: 14px; line-height: 21px; }
.quotes blockquote { margin: 0; }
.quotes footer { font-style: italic; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; text-align: left; }
.contact-grid h2 { font-size: 20px; line-height: 28px; margin-bottom: 10px; }
.contact-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 30% center; }
form.contact { display: grid; gap: 12px; margin-top: 10px; }
form.contact label { display: grid; gap: 4px; font-size: 14px; }
form.contact input, form.contact textarea { font: inherit; padding: 8px 10px; border: 1px solid #d2d2d2; border-radius: 0; width: 100%; }
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--red); outline-offset: 0; }
form.contact .consent { display: flex; gap: 8px; align-items: flex-start; }
form.contact .consent input { width: auto; margin-top: 5px; }
form.contact .hp { position: absolute; left: -9999px; }
form.contact button { justify-self: start; cursor: pointer; }
.notice { padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.notice.ok { background: #e6f4ea; color: #1e5631; }
.notice.err { background: #fdecec; color: #8a1010; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .quotes, .contact-grid { grid-template-columns: 1fr; }
}
.page-banner.menu-banner { background-image: url(/img/slider-service.jpg); background-position: center 60%; }
