/* Lis-Marie Gubenschek — site styles, mobile first. Sizes measured from the old Elementor site. */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto-400-a0bec563.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/roboto-400-italic-1f918fe9.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/roboto-500-88d702fd.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/roboto-600-e2ceaade.woff2) format("woff2"); }
/* Licorice (OFL, Google Fonts, latin subset): script line of the logo and the hero. */
@font-face { font-family: "Licorice"; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/licorice-400-67ec526e.woff2) format("woff2"); }
/* Jost (OFL) at 330 matches the name in the old logo PNG (stem width measured). */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 330; font-display: block; src: url(fonts/jost-330-d3fc5b41.woff2) format("woff2"); }

:root {
  --accent: #919c7f;
  --accent-dark: #676f5a;
  --soft: #f9f9f9;
  --text: #7a7a7a;
  --heading: #404040;
  --secondary: #54595f;
  --body: #4a4a4a;
  --hero-shade: 85, 91, 74;
  --width: 1120px;
  --gutter: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 400 14px/1.8 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: #333; text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 14px; background: #fff; color: var(--heading); }
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */


.bar { position: sticky; top: 0; z-index: 50; background: #fff; }
.bar-inner {
  position: relative;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 20px 20px 5px 30px;
  min-height: 81px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.bar-brand { display: flex; color: #000; }
.bar-brand .logo { --logo-w: 201px; }

/* Text logo; sizes and gap calibrated against the old PNG, --logo-w is the name's width. */
.logo { display: inline-flex; flex-direction: column; align-items: center; font-size: calc(var(--logo-w) / 14.05); line-height: 1; }
.logo-name { font-family: "Jost", sans-serif; font-weight: 330; letter-spacing: .028em; margin-right: -.028em; text-transform: uppercase; white-space: nowrap; }
.logo-tag { margin-top: .192em; font-family: "Licorice", cursive; font-size: 1.496em; -webkit-text-stroke: .016em currentColor; white-space: nowrap; }
.nav-toggle {
  display: none;
  width: 33px;
  height: 33px;
  margin-top: 7px;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, .05);
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--accent);
  transition: transform .2s;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-open .nav-toggle-icon { background: transparent; }
.nav-open .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 10px 20px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}
.site-nav a[aria-current="page"], .site-nav a:hover { background: var(--accent); color: #fff; }

.js .nav-toggle { display: block; }
/* The list slides down from behind the bar; the nav clips it at the bar's edge. */
.js .site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  max-height: calc(100vh - 81px);
  visibility: hidden;
  transition: visibility 0s .3s;
}
.js .site-nav ul {
  background: #fff;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.js .nav-open .site-nav { overflow-y: auto; visibility: visible; transition: none; }
.js .nav-open .site-nav ul { transform: none; }

/* Phones, subpages: fine accent line under the bar, as thin as the footer divider. */
@media (max-width: 767px) {
  body:not(.page-home) .bar { border-bottom: 1px solid var(--accent); }
  .js body:not(.page-home) .site-nav { top: calc(100% + 1px); }
  /* Title visibly centred: 45px from line to cap top and from baseline to content. */
  body:not(.page-home) .content { padding-top: 40px; }
  body:not(.page-home) .content > h1 { margin-bottom: 40px; }
  /* Text ink starts 7px below its line box (6px for an h2), a photo at its edge. */
  body:not(.page-home) .content > h1:has(+ .prose) { margin-bottom: 33px; }
  body:not(.page-home) .content > h1:has(+ .prose > h2:first-child) { margin-bottom: 34px; }
}

/* ---------- Hero (start page) ---------- */

/* Phones: the square crop of old (with the brown reeds), text below on a warm fade. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgb(var(--hero-shade));
}
.hero--plain { padding-top: 60px; }
.hero-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; }
.hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: -150px auto 0;
  padding: 118px var(--gutter) 36px;
  background: linear-gradient(to bottom, rgba(var(--hero-shade), 0), rgba(var(--hero-shade), .55) 80px, rgb(var(--hero-shade)) 150px);
  color: #fff;
}
.hero--plain .hero-text { margin-top: 0; padding-top: 0; }
.hero-title { margin: 0; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .3); }
.hero-claim { display: block; font-size: 30px; line-height: 1.15; text-wrap: balance; }
.hero-offer { display: block; margin-top: 19px; font-family: "Licorice", cursive; font-size: 32px; font-weight: 400; line-height: 1.15; -webkit-text-stroke: .5px #fff; }

/* ---------- Content ---------- */

.content {
  display: flow-root;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 60px calc(var(--gutter) - 1px) 100px var(--gutter);
}
h1, h2, h3 { color: var(--heading); font-weight: 600; }
h1 { font-size: 20px; line-height: 1.2; margin: 0 0 20px; }
.greeting { font-size: 20px; line-height: 1.2; text-align: center; margin: 0 0 50px; }

.prose { font-size: 16px; line-height: 1.8; color: var(--text); text-align: justify; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 14px; text-align: left; }
.prose h3 { font-size: 16px; line-height: 1.8; margin: 24px 0 10px; color: var(--secondary); text-align: left; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 20px; text-align: left; }
.prose a { color: #333; text-decoration: underline; text-decoration-color: var(--accent); }
.prose strong { color: var(--secondary); }
.prose + .prose, .quote + .prose { margin-top: 40px; }

.photo { margin: 0; }
.photo img { border-radius: 5px; width: 100%; }
.photo figcaption { font-size: 14px; margin-top: 8px; }

.media-row { display: flex; flex-direction: column; gap: 20px; }
.media-row--photo-before .photo { order: -1; }
.media-row + * { margin-top: 40px; }

.quote {
  margin: 40px 0 0;
  padding: 30px;
  background: var(--soft);
  border-radius: 15px;
  text-align: center;
}
.media-text .quote { margin-bottom: 0; }
.quote p { margin: 0; color: var(--text); font-style: italic; font-size: 16px; line-height: 1.8; }
.quote p::before { content: "„"; }
.quote p::after { content: "“"; }
.quote footer { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--secondary); text-align: right; }

.columns { display: grid; gap: 20px; }
.columns .prose { text-align: left; }
.columns + .quote, .columns + * { margin-top: 100px; }

.contact-lines { margin: 20px 0 30px; text-align: left; }
.contact-lines p { margin: 0 0 20px; }
.contact-address { font-size: 16px; line-height: 1.6; color: var(--text); text-align: center; margin: 0 0 30px; }
.contact-address a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.contact-address a:hover { color: var(--accent-dark); }

.map { margin: 0; }
.map img { width: 100%; border-radius: 5px; }
.map figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.map small { font-size: 13px; color: var(--text); }
.map small a { text-decoration: underline; }

.button {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}
.button:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Footer ---------- */

.site-footer { background: var(--accent); color: #fff; text-align: center; font-size: 15px; line-height: 1.6; }
.site-footer a, .site-footer a:hover { color: #fff; }
.footer-main { max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding: 60px var(--gutter) 56px; }
.footer-brand { display: inline-block; margin-bottom: 28px; }
.footer-brand .logo { --logo-w: min(84vw, 330px); }
.footer-contact p { margin: 0 0 14px; }
.footer-contact p:last-child { margin-bottom: 0; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Phones stack both halves; a fine line separates them like the vertical one on desktop. */
.footer-more { margin-top: 36px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .5); }
.footer-claim { margin: 0 0 28px; font-family: "Licorice", cursive; font-size: 40px; line-height: 1.05; -webkit-text-stroke: .5px #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav ul + ul { margin-top: 18px; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.footer-nav a:hover, .footer-nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Tablet and up ---------- */

@media (min-width: 768px) {

  .bar { box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
  .bar-inner { align-items: center; padding: 10px var(--gutter); min-height: 0; }
  .bar-brand { flex-shrink: 0; }
  .bar-brand .logo { --logo-w: 252px; }
  .js .nav-toggle { display: none; }
  /* The logo on the left replaces the "Home" entry. */
  .site-nav .nav-home { display: none; }
  .js .site-nav, .site-nav {
    display: block;
    position: static;
    padding: 0;
    overflow: visible;
    max-height: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .js .site-nav ul { transform: none; transition: none; }
  /* Links fill the bar height, so the active underline sits on its bottom edge. */
  .site-nav { align-self: stretch; }
  .site-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; height: 100%; }
  .site-nav li { display: flex; }
  .site-nav a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
  }
  .site-nav a[aria-current="page"], .site-nav a:hover { background: none; color: var(--accent); }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -10px;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity .2s;
  }
  .site-nav a[aria-current="page"]::after, .site-nav a:hover::after { opacity: 1; }

  .hero { flex-direction: row; align-items: flex-end; height: calc(100vh - 70px); min-height: 480px; }
  .hero--plain { height: auto; min-height: 0; }
  /* Pins the person at 62% of the width, so she moves left on narrower screens. */
  .hero-photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 62% 30%; }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(var(--hero-shade), 0) 45%, rgba(var(--hero-shade), .3) 63%, rgba(var(--hero-shade), .66) 82%, rgba(var(--hero-shade), .8) 100%);
  }
  .hero-text { margin-top: 0; padding: 0 var(--gutter) 115px; background: none; }
  .hero-claim { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.1; }
  .hero-offer { margin-top: 26px; font-size: clamp(36px, 3.2vw, 46px); }

  .content { padding: 80px var(--gutter) 60px; }
  .page-home .content { padding-top: 150px; padding-bottom: 90px; }
  h1 { font-size: 28px; line-height: 1; margin-bottom: 30px; }
  .greeting { font-size: 28px; line-height: 1; margin-bottom: 90px; }

  .media-row { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 20px; align-items: start; }
  .media-row .photo { order: 2; }
  .media-row + * { margin-top: 75px; }
  .page-home .media-text { padding-top: 60px; }

  .quote p { font-size: 19px; }
  .quote footer { font-size: 13px; }

  .columns { grid-template-columns: 1fr 1fr; }
  /* Side by side, the gap between text blocks would push the right column down. */
  .columns > .prose + .prose { margin-top: 0; }
  .columns + .quote, .columns + * { margin-top: 80px; }

  .footer-nav { display: flex; justify-content: center; gap: 56px; text-align: left; }
  .footer-nav ul + ul { margin-top: 0; }
}

/* Wide screens: contact left, claim and links right, a fine line between. */
@media (min-width: 1200px) {
  .footer-main { display: flex; justify-content: center; padding: 64px var(--gutter); }
  .footer-contact { flex: none; padding-right: 64px; }
  .footer-brand .logo { --logo-w: 300px; }
  .footer-more { display: flex; align-items: center; gap: 48px; margin: 0; padding: 0 0 0 64px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .5); }
  .footer-nav { gap: 48px; }
  .footer-claim { margin: 0; font-size: 44px; white-space: nowrap; }
  .footer-nav a { white-space: nowrap; }
}

/* The large logo needs tighter links until 1100px to stay on one row. */
@media (min-width: 1024px) and (max-width: 1099px) {
  .site-nav a { padding: 13px 14px; }
  .site-nav a::after { left: 14px; right: 14px; }
}

/* Tablets: smaller logo and links keep logo and menu on one row. */
@media (min-width: 768px) and (max-width: 1023px) {
  .bar-brand { margin-right: 12px; }
  .bar-brand .logo { --logo-w: clamp(128px, calc(100vw - 625px), 252px); }
  .site-nav a { padding: 13px 8px; font-size: 13px; }
  .site-nav a::after { left: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
