/* global */
:root {
  --color-active: #58ffab;
  --serif: 'Late Serif', serif;
  --sans: 'Early Sans', sans-serif;
  --padding: 3rem;
  }
  
* {
	margin: 0px;
	padding: 0px;
	border: none;
  outline: none;
  box-sizing: border-box;
	}

html {
	height: 100%;
	width: 100%;
  font-size: 16px;
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
	}

body {
  font-family: var(--sans);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
	}
	
section.content {
  flex: 1;
  }

section.content.subpage {
  padding-top: 4.5rem;
  }
  
section.inner {
  padding-left: var(--padding);
  padding-right: var(--padding);
  padding-bottom: var(--padding);
  max-width: 50rem;
  margin: 0 auto;
  }

ul {
  list-style: none;
  }

p a,
p a:active,
p a:visited,
p a:hover{
  text-decoration: underline;
	}

a,
a:active,
a:visited,
a:hover	{
	outline: 0px;
	color: inherit;
	text-decoration: none;
	}

img {
	outline: 0;
	border: 0;
	margin: 0;
	padding: 0;
	}
	
.zero {
  font-size: 0 !important;
  line-height: 0 !important;
  }
  
/* Typografie */
h1, h2 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1;
  letter-spacing: -0.015em;
  }
  
h2 {
  font-size: 3rem;
  }
 
h4 {
  font-size: inherit;
  font-weight: bold;
  }

.inner h1 {
  font-size: 3rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  }
  
.inner h2 {
  font-size: 2rem;
  margin-bottom: .6rem;
  margin-top: 2rem;
  font-weight: bold;
  }

.inner .perex p, .post p:first-of-type {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.2;
  }
  
.inner .perex {
  margin-bottom: 4rem;
  }
  
.inner p, .text.team p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  }
  
.inner ul li, .text.team ul li {
  font-size: 1.1rem;
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  }
  
.inner ul li::before, .text.team ul li::before {
  content: '→';
  position: absolute;
  color: var(--color-accent);
  left: 0;
  top: 0;
  }
  
/* Between section margins */
.inner + .team {
  padding-top: 0;
  }
  
.team + .offices {
  margin-top: 3rem;
  }
  
.hero + .inner {
  padding-top: 3rem;}
  
/* Buttons */
button.big, button.small {
  font-family: var(--sans);
  border-radius: 3rem;
  cursor: pointer;
  transition: all .3s ease;
  }
  
button.big {
  padding: 1rem 2rem;
  }

button.small {
  padding: .4rem 1.2rem;
  }
  
button.big:hover {
  transform: scale(1.05);
  border-radius: .6rem;
  }
  
button.small:hover {
  transform: scale(1.05);
  border-radius: .3rem;
  }

button.primary {
  background-color: var(--color-accent);
  font-size: 1.5rem;
  color: #fff;
  }
  
button.primary:hover {
  background-color: var(--color-accent-hover);
  }
  
button.secondary {
  background-color: transparent;
  border: 1px solid var(--color-text);
  font-size: 1rem;
  color: var(--color-text);
  }

button.secondary:hover {
  background-color: var(--color-text);
  color: #fff;
  }
  
/* Header */
.header-logo {
  position: fixed;
  top: 1.2rem;
  left: var(--padding);
  width: 8rem;
  opacity: 0;
  transform: translateY(3rem);
  visibility: hidden;
  z-index: 2000;
  transition: opacity 0.2s ease, transform 0.6s ease, visibility 0s linear 0.3s;
}

.breadcrumb {
  position: fixed;
  top: 1rem;
  left: 50%;
  color: var(--color-accent);
  transform: translateX(-50%);
  z-index: 2000;
  font-weight: normal;
  padding: .6rem 1rem;
  background-color: #fff;
  border-radius: 3rem;
  }

.breadcrumb svg {
  display: inline-block;
  width: 1rem;
  fill: none;
  stroke-width: 1.3rem;
  stroke: var(--color-accent);
  transform: translateY(.2rem);
  }
 
.breadcrumb .spacearound {
 letter-spacing: .2em;
 }
  

.header-logo.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.header-logo svg {
  width: 100%;
  height: auto;
  fill: var(--color-text);
  }

.menubutton {
  position: fixed;
  top: var(--padding);
  right: var(--padding);
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  z-index: 2002;
  transition: top 0.6s ease;
  }
 
.menubutton.show {
  top: 1rem;
  transition-delay: 0s;
  }

.menubutton::before,
.menubutton::after,
.menubutton span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transition: .7s ease;
  }

.menubutton::before {
  top: 0.25rem;
  }
.menubutton span {
  top: 50%;
  transform: translateY(-50%);
  }
.menubutton::after {
  bottom: 0.25rem;
  }

#menu-toggle:checked + .menubutton::before {
  transform: translateY(0.8rem) rotate(45deg);
  }
#menu-toggle:checked + .menubutton span {
  opacity: 0;
  }
#menu-toggle:checked + .menubutton::after {
  transform: translateY(-0.8rem) rotate(-45deg);
  }

.menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 30rem;
  height: 100vh;
  background: white;
  padding: var(--padding);
  transform: translateX(100%);
  transition: transform .6s ease;
  z-index: 2001;
  overflow-y: auto;
  }

#menu-toggle:checked ~ .menu {
  transform: translateX(0);
  }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
  }

#menu-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
  }

.overlay {
  cursor: pointer;
  }

#menu-toggle:checked ~ .menu {
  overscroll-behavior: contain;
  }

body:has(#menu-toggle:checked) {
  overflow: hidden;
  }

/* menu typo */
.menu {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--color-text);
  }
  
.menu h4 {
  margin-bottom: 0.6rem;
  }

.menu ul {
  margin: 0 0 2rem 0;
  }

.menu li {
  margin: .6rem 0;
  }

.menu a {
  transition: all .3s ease;
  }

.menu a:hover {
  border-bottom: 0.125rem solid var(--color-accent);
  }

.menu li.indent {
  margin-top: 2rem;
  }

/* Homepage */
.notice {
  background-color: var(--color-accent);
  color: #fff;
  font-size: 1.2rem;
  padding: 3rem var(--padding);
  }

.notice p {
  width: 100%;
  margin: 0 auto;
  max-width: 50rem;
  text-align: center;
  }
  
.hero {
  display: flex;
  max-height: 60rem;
  }
  
.hero .heroimage {
  background-color: var(--color-bg1);
  width: 50%;
  height: auto;
  max-height: 100vh;
  max-height: min(100vh, 50vw);
  font-size: 0;
  overflow: hidden;
  position: relative;
  }

.hero .heroimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  transform: scale(1);
  }

.hero .heroimage img.illustration {
  object-position: bottom right;
  }
  
body.hero-top .hero .heroimage img {
  transform: scale(1.05);
  }

.hero .text {
  display: flex;
  flex-direction: column;
  padding: 2rem var(--padding) var(--padding);
  position: relative;
  min-height: 100%;
  }

.hero .text.home p {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
  max-width: 18em;
  margin-bottom: 2rem;
  }

.hero .text .cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  }
  
.hero .text button {
  margin-left: -.2rem;
  }
  
.hero .logo {
  margin-bottom: 5rem;
  width: 13rem;
  display: block;
  }
  
.hero .logo svg {
   fill: var(--color-text);
 }
  
.cta li {
  display: inline-block;
  color: var(--color-accent);
  font-size: 1.6rem;
  }

.cta svg {
  fill: var(--color-accent);
  width: 4rem;
  height: 4rem;
  }
 
.cta li a {
  margin-right: 1rem;
  }
  
.cta .phonenumber {
  display: flex;
  gap: 1rem;
  align-items: center;
  }

/* Offices */
.offices {
  background-color: var(--color-bg2);
  text-align: center;
  padding: 3rem 2rem 5rem;
  }
  
.offices ul {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  }
  
.offices ul li {
  display: inline-block;
  padding: 1.2rem 3.5rem;
  background-color: #fff;
  font-size: 1.8rem;
  border-radius: 6rem;
  transition: all .3s ease;
  }
  
.offices ul li:hover {
  transform: scale(1.1);
  border-radius: 1rem;
  }
  
.offices ul li .operating {
  display: inline-block;
  transform: translateY(0.45em);
  height: 1rem;
  width: 1rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background-color: var(--color-active);
  }

.homecare p {
  font-size: 1.1rem;
  }
 
/* About */
.about {
  text-align: center;
  padding: 3rem 2rem 5rem;
  }
  
.about p {
  max-width: 60rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 auto 2rem;
  }

/* Team */
section.team {
  padding: 3rem var(--padding) 1rem;
  text-align: center;
  }

section.team h2 {
  margin-bottom: 2rem;
  }
  
section.team ul {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  }

section.team ul li {
  width: 20rem;
  }
  
section.team ul.smaller li {
  width: 15rem;
  }

section.team p {
  max-width: 15rem;
  margin: 0 auto;
  }
  
.profilepic {
  position: relative;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2rem;
  transition: transform .6s ease;
  background-color: var(--color-bg1);
  }

section.team ul.smaller li .profilepic {
  width: 13rem;
  height: 13rem;
  }
  
.profilepic:hover {
  transform: scale(1.05);
  }
  
.profilepic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  }
  
.profilepic img.altimg {
  opacity: 0;
  transition: opacity .6s ease;
  }
 
.profilepic img.altimg:hover {
  opacity: 1;
  }
  
.profilepic img.altimg {
  position: absolute;
  top: 0;
  left: 0;
  }

/* News */
.news-section {
  padding: 1rem 2rem 5rem;
  text-align: center;
  }

.news-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  }

.inner .news-container {
  flex-direction: column;
  }
.news {
  display: block;
  text-align: left;
  background-color: var(--color-bg2);
  border-radius: 1rem;
  padding: 2rem 2rem 2.5rem;
  transition: all .3s ease;
  }

.news-container .news  {
  width: 24rem;
  }

.inner .news-container .news  {
  width: 100%;
  }
  
.news:hover {
  transform: scale(1.02);
  border-radius: .3rem;
  }
  
.news.noscale:hover {
  transform: scale(1);
  border-radius: 1rem;
  }
  
.news .news-date {
  color: var(--color-accent);
  font-size: .9rem;
  }

.news h3 {
  margin-bottom: 1rem;
  }

.news p {
  margin-bottom: .6rem;
  }
  
.postdetails {
  margin-bottom: 4rem;
  }
  
.postdetails::before {
  content: '•';
  margin-right: .6rem;
  color: var(--color-accent);
  }
  
h1 + .postdetails {
  margin-top: -1rem;
  }

.pagination {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-top: 2rem;
  }

.post figure {
  margin: 2rem 0;
  font-size: 0;
  line-height: 0;
  }

.post figure + figure {
  margin-top: -1rem;
  }

.post figure img {
  width: 100%;
  }


/* Office */
.subpage .hero {
  background-color: var(--color-bg2);
  }
 
.hero .text h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  }
  
.hero .text h4 {
  font-size: 1.3rem;
/*  letter-spacing: 0.02em; */
  margin-top: 1.7rem;
  margin-bottom: .3rem;
  /* text-transform: uppercase; */
  }
  
.opening-hours ul {
  margin-bottom: .6rem;
  }
 
.opening-hours ul li.days {
  font-weight: bold;
  }
  
.hero .text .cta {
  padding-top: 5rem;
  }
 
.address-map {
  display: flex;
  gap: 2rem;
  }
  
  
/* Gallery */

.gallery {
  padding: 0 var(--padding) var(--padding);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .6rem;
  max-width: 60rem;
  margin: 0 auto;
  }

.gallery-item {
  all: unset;
  display: block;
  cursor: pointer;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: all .3s ease;
  }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
  }

.gallery-item:hover img {
  transform: scale(1.05);
  }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  background: color-mix(in srgb, var(--color-text) 20%, rgba(0,0,0,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  opacity: 1;
  transition: opacity .3s ease;
}

.lightbox-content img.is-fading {
  opacity: 0;
}

.lightbox-content figcaption {
  margin-top: 1rem;
  color: #fff;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0.125rem;
  background: #fff;
  transform-origin: center;
}

.lightbox-close::before {
  transform: translateY(-50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translateY(-50%) rotate(-45deg);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.lightbox-arrow::before,
.lightbox-arrow::after {
  content: "";
  position: absolute;
  width: 1.2rem;
  height: 0.125rem;
  background: #fff;
}

.lightbox-arrow.left {
  left: 2rem;
}

.lightbox-arrow.left::before,
.lightbox-arrow.left::after {
  left: 0.4rem;
  transform-origin: left center;
}

.lightbox-arrow.left::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.lightbox-arrow.left::after {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.lightbox-arrow.right {
  right: 2rem;
}

.lightbox-arrow.right::before,
.lightbox-arrow.right::after {
  right: 0.4rem;
  transform-origin: right center;
}

.lightbox-arrow.right::before {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.lightbox-arrow.right::after {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.lightbox-arrow[disabled] {
  opacity: .25;
  pointer-events: none;
}
 
/* Team */
.text.team h1 {
  margin-bottom: 2rem;
  }
  
/* Footer */
footer {
  color: #fff;
  font-size: .9rem;
  background-color: var(--color-text);
  }

footer .logo {
  max-width: 120rem;
  margin: 0 auto;
  padding: var(--padding) var(--padding) 1rem;
  }
  
footer .logo svg {
  fill: #fff;
  width: 8rem;
  }

.footer-container {
  display: flex;
  max-width: 120rem;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 4rem var(--padding) var(--padding);
  margin: 0 auto;
  }

footer .left ul, footer h4 {
  margin-bottom: .6rem;
  }
  
footer li.indent {
  margin-top: .6rem;
  }
  
 /* Responsivity */
 
 @media screen and (max-width: 1400px) {
  :root { --padding: 2rem; }
	html { font-size: 14px;	}
	.menu { max-width: 20rem; }
	.hero .text { padding-top: 1.5rem; }
  .hero .text.home p { font-size: 1.7rem; }
  .cta li { font-size: 1.5rem; }
  .cta li a { margin-right: .6rem; }
  .cta svg { width: 3.5rem;height: 3.5rem; }
  button.primary { font-size: 1.5rem; }
  button.big { padding: .75rem 1.6rem }
  }
  
@media screen and (max-width: 1000px) {
  .header-logo { visibility: visible; transform: translateY(0); opacity: 1; top: 1.2rem; }
  .menubutton { top: 1.5rem; }
  .breadcrumb { display: none; }
  .hero { flex-direction: column; max-height: inherit; }
  .hero .heroimage { width: 100%; max-height: 40vh; height: 40vh; }
  .hero .heroimage img.illustration { object-position: initial; }
  .hero .logo { display: none; }
  .hero .text { width: 100%; max-width: 50rem; margin: 0 auto; padding-top: 3rem; }
  .hero .text.home .cta { justify-content: center; }
  .hero .text.home p { max-width: 50rem; margin: 0 auto; text-align: center; }
  .hero .text .cta { padding-top: 2rem; flex-wrap: wrap; }
  section.offices ul { flex-wrap: wrap; gap: 1rem 1rem; }
  section.team ul, section.team ul.smaller { flex-direction: column; gap: 1.5rem; align-items: center; }
  section.team ul li, section.team ul.smaller li { width: clamp( 20rem, 80vw, 30rem); display: flex; gap: 2rem; align-items: center; }
  section.team p { margin: 0; }
  .profilepic, section.team  ul.smaller li .profilepic { width: 12rem; height: 12rem; margin: 0; }
  .profiletext { text-align: left; }
  .offices ul li  { font-size: 1.8rem; padding: 1rem 2.2rem; }
  .news-container { flex-direction: column; }
  .news-section .news-container { max-width: 40rem; margin: 0 auto 2rem;}
  .news-container .news { width: 100%; }
  .footer-container { flex-wrap: wrap; }
  
  }
  
@media screen and (max-width: 550px) {
  .menu { padding-top: 3rem; }
  h2 { font-size: 2.5rem; }
  .hero .text { padding-top: var(--padding); }
  .hero .text.home p { font-size: 1.4rem; }
  .hero .text .cta, .cta .phonenumber { gap: .6rem; }
  .cta li { font-size: 1.2rem; }
  .cta li a { margin-right: .6rem; }
  .cta svg { width: 3rem; height: 3rem; }
  button.primary { font-size: 1.2rem; }
  button.big { padding: .75rem 1.2rem }
  .footer-container { flex-direction: column; padding-right: var(--padding); }
  .about p { font-size: 1.3rem; }
  section.offices ul { flex-direction: column; }
  section.team ul { gap: 1rem;}
  .profilepic { width: 7rem; height: 7rem; flex-shrink: 0;}
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  }