/* studiowan.de — colors and fonts taken from the Squarespace theme */
:root {
  --beige: #e7d9cb;      /* "light" sections */
  --beige-2: #f3ece4;    /* "bright" sections */
  --white: #fff;
  --ink: #111;
  --muted: #4d463f;
  --line: rgba(0, 0, 0, .14);
  --olive: #3a4435;
  --radius: 999px;
  --wrap: 1180px;
  --head: 'Marcellus', Georgia, serif;
  --body: 'PT Serif', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .5em; }
.hp { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 99; }
.skip:focus { left: 1em; }

/* buttons */
.btn {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 400 1rem/1 var(--body); padding: 1.05em 2.2em; border-radius: var(--radius); transition: opacity .2s;
}
.btn:hover, .btn:focus-visible { opacity: .82; }
.btn-row { margin-top: 1.4em; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line);
}
.logo img { width: 64px; height: 64px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a { text-decoration: none; font-size: 1rem; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { border-bottom-color: currentColor; }
.lang-switch { text-decoration: none; font-size: .95rem; white-space: nowrap; }
.btn-nav { padding: .9em 1.6em; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* sections */
.sec { padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2.4rem); }
.theme-light { background: var(--beige); }
.theme-bright { background: var(--beige-2); }
.theme-white { background: var(--white); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.media-left .media { order: 0; }
.split.media-right .media { order: 2; }
.media img { width: 100%; object-fit: cover; max-height: 640px; }
.media.flyer img { max-height: none; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.text .inline-img { width: 180px; margin: 1.5rem 0 0; }
.form-split { align-items: start; }

.img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.img-grid figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.img-grid img { width: 100%; height: 100%; object-fit: cover; }

/* service cards */
.page-title { margin-bottom: 1.4em; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.card { text-decoration: none; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 1rem; transition: opacity .2s; }
.card:hover img { opacity: .9; }
.card h2 { font-size: 1.5rem; margin: 0 0 .2em; }
.price { font-size: 1.05rem; margin: 0 0 1em; }

/* product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.gallery { display: grid; gap: 1rem; }
.gallery.g2, .gallery.g3 { grid-template-columns: 1fr 1fr; }
.gallery.g3 figure:first-child { grid-column: 1 / -1; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.crumb { font-size: .95rem; }
.includes li::marker { content: '✓  '; }
.details > p:first-child, .details > ul + p { font-family: var(--head); font-size: 1.35rem; margin-top: 1.2em; }

/* updates */
.news { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; background: var(--white); padding: 1.5rem; margin: 2rem 0; }

/* forms */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.contact-form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.contact-form legend { font-size: .95rem; margin-bottom: .4rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .95rem; }
.contact-form label.full { grid-column: 1 / -1; }
.req { color: var(--muted); font-size: .85em; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit; font-size: 1rem; width: 100%; padding: .8em .9em; border: 1px solid rgba(0, 0, 0, .35);
  background: rgba(255, 255, 255, .75); border-radius: 0; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.contact-form .btn { justify-self: start; grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); margin: 0; }

/* legal */
.legal p, .legal li { font-size: 1rem; }
.note { background: var(--beige); padding: 1em 1.2em; }

/* footer */
.site-footer { background: var(--beige); padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.4rem) 1.5rem; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; font-size: 1rem; }
.foot-brand img { width: 110px; height: 110px; object-fit: contain; margin-bottom: 1rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.copy { text-align: center; font-size: .85rem; color: var(--muted); margin: 3rem 0 0; }

/* tablet & phone */
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 81px 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 2rem 1.5rem; gap: 1.5rem; transform: translateX(100%); transition: transform .25s; overflow-y: auto;
  }
  .site-nav.open { transform: none; }
  .site-nav ul { flex-direction: column; gap: 1.1rem; }
  .site-nav ul a { font-family: var(--head); font-size: 1.6rem; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 820px) {
  body { font-size: 17px; }
  .split, .product { grid-template-columns: 1fr; }
  .split .media { order: 0 !important; }
  .img-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .news { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .contact-form, .contact-form fieldset { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
