*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --green: #186c33;
  --darkgreen: #0e431f;
  --gold: #f8a800;

  --color-text: #6d6a6a;
  --color-heading: var(--green);

  --font-heading: "Belleza", sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --font-size-body: 1.125rem;
  --font-size-h1: 2rem;
  --font-size-h2: 1.5rem;

  --mail-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'><path d='M120-160v-640h720v640H120Zm360-280L200-640v400h560v-400L480-440Zm0-80 280-200H200l280 200Z'/></svg>");
  --ext-link: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'><path d='m216-160-56-56 464-464H360v-80h400v400h-80v-264L216-160Z'/></svg>");
}
body {
  background:
    linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0) 25%,
      rgba(255, 255, 255, 0.2) 25%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0) 75%,
      rgba(255, 255, 255, 0.2) 75%
    ),
    linear-gradient(
      45deg,
      rgba(0, 0, 0, 0) 25%,
      rgba(255, 255, 255, 0.2) 25%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0) 75%,
      rgba(255, 255, 255, 0.2) 75%
    ),
    rgba(24, 108, 51, 0.21);

  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.5;
  color: var(--color-text);
}
#uid1 .top {
  background-image: url("../Images/bandhomebreit.jpg");
  /* background-position: center top; */
  background-position: center center;
  background-size: cover;
  min-height: 220px;
  grid-column: 1 / -1;
  margin: 1em 0 0;
}
h1,
h2,
h3 {
  font-weight: 700;
}
h1,
h2 {
  font-family: var(--font-heading);
  color: var(--green);
  line-height: 1.3;
  letter-spacing: 0.05em;
  /* margin-bottom: 0.5rem; */
  margin: 0;
}
header {
  margin: 0;
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-body);
  line-height: 1.6;
  margin: 0.5em 0 0 0;
}
li {
  line-height: 1.6;
}
p + p {
  margin-top: 1.5em;
}
ul {
  padding-left: 1.5rem;
  margin: 0;
}
a {
  color: var(--green);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.cta:hover,
.cta:focus-visible {
  background: var(--darkgreen);
}
a:hover {
  text-decoration: none;
}
/* ################# Frames #################### */

.frame {
  padding: 1.1em;
  background: white;
  outline-offset: -10px;
  outline: 1px dotted var(--green);
}
.frame-type-header {
  outline: none;
  /* Permalink - use to edit and share this gradient: colorzilla.com/gradient-editor/#ffffff+40,ffffff+75&1+39,0+76 */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 39%,
    rgba(255, 255, 255, 0.97) 40%,
    rgba(255, 255, 255, 0.03) 75%,
    rgba(255, 255, 255, 0) 76%
  );
}
.frame-ganzebreite {
  outline: none;
}
/* ################# Frames end #################### */

img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ################# Jahreszahlen #################### */
.frame-type-menu_subpages > header {
  font-size: 0.4em;
}
.frame-type-menu_subpages > ul li {
  display: inline-flex;
  margin-left: 10px;
}
.frame-type-menu_subpages > ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}
/* ################# Jahreszahlen end #################### */
/* ################# Formular #################### */
.form-group,
.form-control {
  /* font-size: 1.1em; */
  width: 100%;
}
.form-control {
  font-size: 1.2em;
  padding: 0.2em;
}

.form-label {
  width: 100%;
  /* font-size: 1em; */
}
.form-group {
  padding-bottom: 1em;
}
.btn {
  background-color: var(--green);
  padding: 0.3em;
  border-radius: 6em;
  color: white;
  font-size: 1.1em;
}
/* ################# Formular end #################### */
@media screen and (min-width: 35.5em) {
  main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
  }
  .frame-ganzebreite,
  .frame-type-header {
    grid-column: 1 / -1;
    margin-top: 1em;
  }

  .form-group {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding-bottom: 5px;
  }
  .frame-zweispalten {
    grid-column: span 2;
  }
}
@media screen and (min-width: 70.5em) {
  body {
    max-width: 80em;
    margin: 0 auto;
  }
  #uid1 .top {
    /* min-height: 320px; */
    min-height: 380px;
  }
  main {
    /* display: grid; */
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* neues 2606 */
.cta {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border-radius: 15px;
  padding: 0.5rem 1rem;
}

.cta:hover {
  background: var(--darkgreen);
}

.ce-gallery {
  margin-top: 0.5em;
}
/* ################# Bildergallerie layout-1 #################### */
.layout-1 .ce-gallery,
.layout-1 .ce-row {
  display: flex;
  flex-wrap: wrap;
}
.layout-1 .ce-gallery[data-ce-columns="2"] img {
  width: 160px;
  height: 100px;
}
.layout-1 .ce-gallery[data-ce-columns="2"] img {
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}
.layout-1 .ce-gallery[data-ce-columns="4"] img:first-of-type {
  height: auto;
  flex-grow: 2;
}
.layout-1 .ce-gallery[data-ce-columns="3"] img {
  width: 100px;
  height: 80px;
  justify-content: center;
}
.layout-1 .ce-gallery[data-ce-columns="5"] img {
  width: 70px;
  height: auto;
}
.layout-1 .ce-gallery[data-ce-columns="8"] img {
  width: 70px;
  height: auto;
}
.layout-1 .ce-gallery figure {
  margin: 2px;
}
.layout-1 .ce-column {
  display: flex;
}
.layout-1
  .ce-gallery[data-ce-columns="2"]
  .ce-row:first-child
  .ce-column:first-child
  figure
  img {
  width: 325px;
  flex-wrap: nowrap;
}
.layout-1 .ce-gallery .ce-row {
  display: contents;
}
.layout-1 .ce-inner {
  display: flex;
  flex-wrap: wrap;
}
/* ################# Bildergallerie layout-1 end #################### */

footer {
  margin-top: 1em;
}
footer .frame {
  padding: 0.5em 1.1em;
}

p:has(> time) {
  margin: 0.3em 0;
}
/* ################# Icons #################### */
a[href^="mailto:"]::after,
a[data-mailto-token]::after,
a[href^="http"]:not([href*="caledonianpipers.ch"])::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.15em;
  vertical-align: -0.2em;
  background-color: currentColor;
}
a[href^="mailto:"]::after,
a[data-mailto-token]::after {
  -webkit-mask: var(--mail-icon) no-repeat center / contain;
  mask: var(--mail-icon) no-repeat center / contain;
}
a[href^="http"]:not([href*="caledonianpipers.ch"])::after {
  -webkit-mask: var(--ext-link) no-repeat center / contain;
  mask: var(--ext-link) no-repeat center / contain;
}
figure a[href^="http"]:not([href*="caledonianpipers.ch"])::after {
  content: none;
}
