/* Oliver Strijbis – statisches Stylesheet
   Werte übernommen aus dem bisherigen Elementor-Layout.
   Breakpoints: Tablet <= 1024px, Mobile <= 767px */

@font-face {
  font-family: "Pier Sans";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/PierSans-Light.woff2") format("woff2"),
       url("../fonts/PierSans-Light.woff") format("woff");
}

@font-face {
  font-family: "Pier Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/PierSans-Bold.woff2") format("woff2"),
       url("../fonts/PierSans-Bold.woff") format("woff");
}

:root {
  --color-text: #000;
  --color-bg: #fff;
  --color-accent: #3d60ff;
  --font: "Pier Sans", sans-serif;
  --container: 1400px;
  --text-size: 20px;
  --line: 2px solid var(--color-text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--text-size);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1;
}

p {
  margin: 0 0 20px;
}

a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10;
  padding: 10px 20px;
  background: var(--color-bg);
  border: var(--line);
}

.skip-link:focus {
  top: 20px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

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

.site-header {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.site-header .container {
  position: relative;
  display: flex;
}

.brand {
  width: 80%;
  padding: 10px;
  border-bottom: var(--line);
}

.brand h2,
.site-footer h2 {
  font-size: 42px;
}

.brand h2 {
  margin-bottom: 20px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 20%;
  border-bottom: var(--line);
}

.lang-switch {
  font-size: 23px;
  line-height: 1.2;
}

.lang-switch a:hover,
.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--color-accent);
}

/* Vertikales Menü links (Desktop/Tablet) */

.main-nav {
  position: absolute;
  top: 200px;
  left: 0;
  padding-right: 40px;
}

.main-nav ul,
.mobile-nav ul {
  padding: 0;
  list-style: none;
  border-top: var(--line);
}

.main-nav li,
.mobile-nav li {
  padding: 3px 30px 4px 0;
  border-bottom: var(--line);
}

.main-nav li:not(:last-child) {
  margin-bottom: 1px;
}

.main-nav a,
.mobile-nav a {
  display: block;
  padding: 5px 10px;
  font-weight: 300;
  white-space: nowrap;
}

.main-nav .nav-lang {
  display: none;
}

/* Burger-Menü (Mobile), ohne JavaScript via <details> */

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  display: flex;
  padding: 6px;
  margin-top: -15px;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary svg {
  width: 25px;
  height: 25px;
}

.mobile-nav .icon-close,
.mobile-nav[open] .icon-open {
  display: none;
}

.mobile-nav[open] .icon-close {
  display: block;
}

.mobile-nav ul {
  position: absolute;
  top: calc(100% - 2px);
  left: -20px;
  right: -20px;
  background: var(--color-bg);
}

.mobile-nav a {
  padding: 7px 30px;
}

/* ---------- Inhalt ---------- */

.page {
  display: flex;
  min-height: 100vh;
}

.page-aside {
  width: 25%;
}

/* Flex-Spalte wie in Elementor: Margins der Blöcke kollabieren nicht */
.page-content {
  display: flex;
  flex-direction: column;
  width: 75%;
  padding: 80px 40px 40px;
}

.page-content.spaced {
  gap: 15px;
}

.page-content h1 {
  padding-bottom: calc(2 * var(--text-size));
  font-size: 70px;
}

.page-content p a {
  text-decoration: underline;
}

.lead {
  font-size: 26px;
}

.service h3 {
  margin: 15px 0;
  font-size: 28px;
}

.service p:last-child {
  margin-bottom: 0;
}

.legal ul {
  padding-left: 40px;
}

.legal li + li {
  margin-top: 0.9em;
}

/* Startseite: Foto und Kontakt */

.contact {
  display: flex;
  margin-top: 2em;
}

.contact-photo {
  width: 50%;
}

.contact-photo img {
  width: 100%;
}

.contact-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 50%;
  padding: calc(1em + 10px) calc(2em + 10px) calc(1em + 10px) calc(1em + 10px);
}

.contact-text p {
  margin-bottom: 40px;
  font-size: 23px;
  line-height: 1.2;
}

.button {
  align-self: flex-start;
  padding: 15px 30px;
  border-radius: 7px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 23px;
  font-weight: 300;
  line-height: 1.2;
  text-decoration: underline;
  transition: background-color 0.3s;
}

.button:hover,
.button:focus {
  background: var(--color-text);
}

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

.site-footer {
  padding: 20px;
}

.site-footer .container {
  display: flex;
}

.footer-left {
  width: 80%;
  padding: 10px;
  border-top: var(--line);
}

.footer-left h2 {
  margin-bottom: 20px;
}

.footer-left p {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  width: 20%;
  padding-top: 20px;
  border-top: var(--line);
}

.social {
  display: flex;
  gap: 5px;
}

.social a {
  display: flex;
  padding: 5.6px;
  border-radius: 10%;
  background: var(--color-text);
  color: var(--color-bg);
  transition: opacity 0.3s;
}

.social a:hover {
  opacity: 0.9;
}

.social svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.footer-right .privacy {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.2;
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .container {
    --container: 1024px;
  }

  .brand h2,
  .site-footer h2 {
    font-size: 40px;
  }

  .lang-switch {
    font-size: 20px;
  }

  .main-nav {
    top: 140px;
  }

  .page-aside {
    width: 35%;
  }

  .page-content {
    width: 65%;
    padding: 1em;
  }

  .page-content h1 {
    font-size: 50px;
  }

  .contact {
    flex-wrap: wrap;
  }

  .contact-photo {
    width: 75%;
  }

  .contact-text {
    width: 100%;
    padding: calc(1em + 10px) 10px 10px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  :root {
    --text-size: 17px;
  }

  .container {
    --container: 767px;
  }

  .site-header {
    margin-bottom: -65px;
  }

  .brand {
    width: 70%;
  }

  .brand h2 {
    margin: -15px 0 5px;
    font-size: 28px;
    line-height: 1.4;
  }

  .header-right {
    width: 30%;
  }

  .lang-switch,
  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .page {
    display: block;
    padding-top: 50px;
  }

  .page-aside {
    display: none;
  }

  .page-content {
    width: 100%;
    padding: 20px;
  }

  .page-content h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  .page-content h1.tight {
    line-height: 1;
  }

  .lead {
    font-size: 17px;
  }

  .service h3 {
    font-size: 22px;
    line-height: 1.2;
  }

  .contact-photo {
    width: 100%;
  }

  .contact-text p,
  .button {
    font-size: 17px;
    line-height: 1.3;
  }

  .footer-left {
    width: 60%;
  }

  .site-footer h2 {
    font-size: 24px;
    line-height: 1.4;
  }

  .footer-left p,
  .footer-right .privacy {
    font-size: 16px;
    line-height: 1.3;
  }

  .footer-right {
    width: 40%;
  }
}
