/* ==========================================================================
   Grösshof – public site styles
   Colours and fonts are collected here so they are easy to adjust.
   ========================================================================== */
:root {
  --accent: #9f0021;          /* dark red used in the old content */
  --accent-dark: #7a0019;
  --text: #3d3d3d;
  --text-light: #777777;
  --heading: #333333;
  --nav: #555555;
  --bg: #ffffff;
  --bg-soft: #f5f2ec;         /* warm light background */
  --bg-shaded: #eeeeee;       /* shaded content rows (old rgb(238,238,238)) */
  --line: #e2ddd4;
  --footer-bg: #ffffff;
  --footer-text: #555555;
  --footer-head: #333333;
  --radius: 4px;
  --container: 1200px;
  /* Lato as on the old site, served from /fonts on this server (no Google connection) */
  --font-body: "Lato", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Lato", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
strong, b { font-weight: 700; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent-dark); text-decoration: underline; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1, .h1 { font-size: 2.9rem; }
h2, .h2 { font-size: 2.5rem; }
h3, .h3 { font-size: 2.6rem; }
h4, .h4 { font-size: 1.45rem; font-weight: 400; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5em 1em; z-index: 100; }
.skip-link:focus { left: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

.button, button.button {
  display: inline-block;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .65em 1.6em;
  cursor: pointer;
}
.button:hover, .button:focus-visible { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 2px 10px rgba(0, 0, 0, .04);
}
.header-inner { display: flex; align-items: stretch; justify-content: space-between; min-height: 90px; gap: 24px; max-width: 1230px; }
.logo { display: flex; align-items: center; padding: 8px 0; }
.logo img { display: block; height: 66px; width: auto; }
.logo-text { font: 2rem var(--font-head); color: var(--heading); }

.main-nav { display: flex; align-items: stretch; gap: 6px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; align-items: stretch; }
.main-nav .menu > li { position: relative; display: flex; align-items: center; }
.main-nav .menu > li > a {
  display: flex; align-items: center; height: 100%;
  padding: 0 14px;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  color: var(--nav);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.main-nav .menu > li:hover > a, .main-nav .menu > li > a:focus-visible {
  color: var(--heading); border-top-color: var(--accent); text-decoration: none;
}
.main-nav .menu > li.active > a { color: var(--heading); }
/* double chevron behind menu items with a sub-menu */
.main-nav .menu > li.has-children > a::after {
  content: ""; display: inline-block; width: 9px; height: 10px; margin-left: 6px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1l4 3.5L9 1M1 5.5L5 9l4-3.5' fill='none' stroke='%23555' stroke-width='1.6'/%3E%3C/svg%3E");
}
.main-nav .sub-menu {
  position: absolute; left: 0; top: calc(100% - 12px);
  min-width: 200px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .14);
  padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 6px 20px; color: var(--nav); font-size: 14px; font-weight: 400; letter-spacing: .02em; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu .active > a { color: var(--accent); text-decoration: none; }
.submenu-toggle { display: none; }
.lang-switch { display: flex; align-items: center; padding-left: 10px !important; }
.lang-switch a { display: flex; align-items: center; gap: 6px; padding: 6px 4px; color: var(--nav); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.lang-switch a.has-flag .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lang-switch .flag { display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.lang-switch a:hover .flag { box-shadow: 0 0 0 2px var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 26px; height: 2px; background: var(--heading); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--bg-soft); margin-bottom: 45px; border-bottom: 5px solid var(--accent); }
.hero .slide img { display: block; width: 100%; height: clamp(200px, 40vh, 440px); object-fit: cover; }
.hero-large .slide img { height: clamp(300px, 62vw, 640px); max-height: calc(100vh - 90px); }
/* per-page options from the CMS (Einstellungen & Kopfbilder) */
.hero.hero-h-small .slide img { height: clamp(140px, 24vh, 260px); }
.hero.hero-h-large .slide img { height: clamp(300px, 62vh, 640px); }
.hero.hero-h-full { background: #fff; }
.hero.hero-h-full .slide img { height: auto; max-height: calc(100vh - 95px); object-fit: contain; }
.hero.hero-pos-top .slide img { object-position: center 20%; }
.hero.hero-pos-bottom .slide img { object-position: center 80%; }

/* ---------------------------------------------------------------- sliders (hero + in content) */
.slider { display: grid; position: relative; overflow: hidden; }
.slider > .slide { grid-area: 1 / 1; transition: opacity .9s ease; }
.slider > .slide img { display: block; width: 100%; }
.slider.is-ready > .slide { opacity: 0; pointer-events: none; }
.slider.is-ready > .slide.is-active { opacity: 1; pointer-events: auto; }
.slider:not(.is-ready) > .slide:not(:first-child) { display: none; }
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 40px; cursor: pointer;
}
.slider-nav:hover { background: var(--accent); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.slider-dots button.is-active { background: #fff; }
.page-content .slider .slider-dots { display: none; }
.page-content .slider .slider-nav {
  top: 14px; transform: none; width: 30px; height: 30px; border-radius: 3px;
  background: var(--accent); font-size: 22px; line-height: 27px; opacity: .9;
}
.page-content .slider .slider-nav:hover { opacity: 1; background: var(--accent-dark); }
.page-content .slider .slider-prev { left: 14px; }
.page-content .slider .slider-next { left: 50px; right: auto; }

/* ---------------------------------------------------------------- content layout (converted Cornerstone blocks) */
.page-content { padding-bottom: 20px; }
.block { margin-bottom: 45px; }
.row { display: flex; flex-wrap: wrap; }
.row.contained { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.row-shaded { background: var(--bg-shaded); padding: 0 !important; }
.row-shaded .col:last-child { align-self: flex-start; padding: 55px 30px 30px !important; }
.row-shaded h4 { font-size: 2rem; font-weight: 300; letter-spacing: -0.02em; margin-bottom: .6em; }
.col { min-width: 0; }
.col-1-1 { width: 100%; }
.col-1-2 { width: 50%; }
.col-1-3 { width: 33.333%; }
.col-2-3 { width: 66.666%; }
.col-1-4 { width: 25%; }
.col-3-4 { width: 75%; }
.row:not(.row-shaded) > .col + .col { padding-left: 30px; }
.row > .col-1-4 { padding: 0 15px !important; }
.text > :last-child { margin-bottom: 0; }
.columnize { column-count: 2; column-gap: 40px; }
.columnize p { break-inside: avoid; }
.image img, img.rounded { display: block; }
img.rounded { border-radius: 6px; }
.image a img { transition: opacity .2s; }
.image a:hover img { opacity: .85; }
.page-content h4 + p, .page-content h3 + p { margin-top: 0; }
.page-content table, .table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.page-content td, .page-content th { border: 1px solid var(--line); padding: 10px 12px; vertical-align: middle; text-align: center; }
.page-content tr:first-child td { background: var(--bg-soft); }
.page-content td p { margin: 0; }

/* home */
.is-home .hero { margin-bottom: 0; }
.is-home .page-content > .block:first-child { margin-bottom: 0; }
.is-home .page-content > .block:first-child .col:first-child {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 55px 50px 50px !important;
  text-align: left; font-size: 18px; line-height: 1.8;
}
.is-home .page-content > .block:first-child .col:first-child h3 { font-size: 2.75rem; line-height: 1.25; margin-bottom: .35em; }
.is-home .page-content > .block:first-child .col + .col { padding-left: 0; }

/* tiles (old "Essential Grid" on the start page) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #111; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, opacity .3s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); opacity: .55; }
.tile-caption { position: absolute; left: 0; right: 0; top: 31%; color: #fff; text-align: center; }
.tile-caption strong {
  display: block; padding: 4px 12px;
  background: rgba(40, 40, 40, .6);
  font: 300 1.3rem/1.5 var(--font-head); letter-spacing: 0;
}
.tile-caption em {
  display: block; margin-top: 14px; font-style: normal; font-size: .95rem; font-weight: 300;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.tile-caption::after {
  content: ""; display: block; width: 46px; height: 46px; margin: 18px auto 0; border-radius: 50%;
  background: var(--accent) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1l4 4-4 4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s;
}
.tile:hover .tile-caption em, .tile:focus-visible .tile-caption em { opacity: 1; transform: none; }
.tile:hover .tile-caption::after, .tile:focus-visible .tile-caption::after { opacity: 1; transform: none; }
.tile:hover { text-decoration: none; }

/* gallery (old "Envira") */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }

/* map */
.map { height: 440px; border-radius: var(--radius); background: var(--bg-soft); z-index: 0; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .9);
  display: flex; align-items: center; justify-content: center;
}
.lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 10px 18px; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); font-size: 16px; margin-top: 30px; border-top: 1px solid #e3e3e3; }
.site-footer a { color: var(--accent); }
.site-footer h3 { color: var(--footer-head); font-size: 1.75rem; font-weight: 300; letter-spacing: -0.02em; margin-bottom: .45em; }
.footer-widgets { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
.footer-contact { line-height: 1.7; color: #444; }
.footer-contact p { margin: 0; }
.footer-contact a[href^="tel:"] { color: inherit; }
.footer-partners { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 50px; }
.footer-partners img { display: block; height: 88px; width: auto; }
.footer-weather iframe { max-width: 100%; border: 0; }
/* the weather widget needs about 410px for its three days in one row; site.js scales it down on narrower screens */
.footer-widgets > * { min-width: 0; }
.footer-weather { overflow: hidden; }
.footer-weather weather-app-st { display: block; width: 410px; transform-origin: top left; }
.footer-bottom { background: #eeeeee; border-top: 1px solid #e3e3e3; }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 52px; padding-bottom: 52px; text-align: center; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.footer-menu a { color: var(--accent); font-size: 11.5px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; }
.footer-menu a:hover { color: var(--accent-dark); text-decoration: none; }
.copyright { margin: 0; color: #777; font-size: 11.5px; font-weight: 400; letter-spacing: .2em; }

/* inquiry form */
.inquiry-form label { display: block; margin-bottom: 14px; font-size: 16px; color: #444; }
.inquiry-form input, .inquiry-form textarea {
  display: block; width: 100%; margin-top: 3px;
  border: 1px solid #d6d6d6; border-radius: 3px;
  background: #fff; color: var(--text);
  font: inherit; font-weight: 400; padding: 8px 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05);
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(159, 0, 33, .15); }
.form-row-2 { display: block; }
.inquiry-form .button { text-transform: none; letter-spacing: 0; border-radius: 0; padding: 8px 17px; font-size: 15px; font-weight: 400; }
.form-message { padding: 10px 14px; border-radius: var(--radius); }
.form-success { background: #2e6b3a; color: #fff; }
.form-error { background: var(--accent); color: #fff; }
.form-privacy { margin-top: 8px; opacity: .75; }

/* back to top */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid #666; background: rgba(255, 255, 255, .85);
  cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  background-repeat: no-repeat; background-position: center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 7l4-4 4 4' fill='none' stroke='%23555' stroke-width='1.6'/%3E%3C/svg%3E");
}
.to-top.is-visible { opacity: .8; visibility: visible; }
.to-top:hover { opacity: 1; border-color: var(--accent); }

/* cookie notice */
.cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 14px 20px; background: rgba(30, 27, 24, .96); color: #fff; font-size: .9rem;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; max-width: 760px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .footer-form { grid-column: 1 / -1; order: 3; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .row > .col-1-4 { width: 50%; margin-bottom: 30px; }
}

@media (max-width: 860px) {
  .header-inner { min-height: 72px; }
  .logo img { height: 56px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
    max-height: calc(100vh - 72px); overflow-y: auto;
    display: none;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav .menu { flex-direction: column; }
  .main-nav .menu > li { display: block; border-top: 1px solid var(--line); }
  .main-nav .menu > li > a { display: block; height: auto; padding: 14px 20px; border: 0; border-left: 4px solid transparent; }
  .main-nav .menu > li:hover > a, .main-nav .menu > li.active > a { border-left-color: var(--accent); }
  .main-nav .menu > li.has-children > a::after { display: none; }
  .main-nav .sub-menu a { padding: 9px 20px; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-radius: 0; padding: 0 0 8px 16px; display: none; min-width: 0;
  }
  .main-nav li.is-open > .sub-menu { display: block; }
  .main-nav li:hover > .sub-menu { opacity: 1; }
  .submenu-toggle {
    display: block; position: absolute; right: 8px; top: 6px;
    width: 38px; height: 38px; border: 0; background: none; cursor: pointer;
  }
  .submenu-toggle::before { content: "+"; font-size: 22px; color: var(--text-light); }
  .is-open > .submenu-toggle::before { content: "–"; }
  .lang-switch { border-top: 1px solid var(--line); padding: 8px 16px !important; }
  .lang-switch a.has-flag .lang-name { position: static; width: auto; height: auto; clip: auto; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1, .h1, h2, .h2, h3, .h3 { font-size: 1.9rem; }
  .is-home .page-content > .block:first-child .col:first-child h3 { font-size: 2rem; }
  .is-home .page-content > .block:first-child .col:first-child { font-size: 16px; }
  .col-1-2, .col-1-3, .col-2-3, .col-3-4 { width: 100%; }
  .row:not(.row-shaded) > .col + .col { padding-left: 0; margin-top: 25px; }
  .row .col[style] { padding: 0 !important; }
  .row-shaded .col:last-child { padding: 25px 20px !important; }
  .is-home .page-content > .block:first-child .col:first-child { padding: 35px 20px !important; }
  .columnize { column-count: 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: 1fr; gap: 30px; }
  .page-content table { display: block; overflow-x: auto; }
  .map { height: 320px; }
}

@media (max-width: 480px) {
  .row > .col-1-4 { width: 100%; }
  .tiles { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
