/* COLOR VARIABLES */

:root {
  --color-black: black;
  --color-white: white;
  --color-red: #ff0000;


  --primary-bg-color: transparent;

  --primary-text-color: var(--color-white);
  --primary-text-shadow-color: var(--color-black);

  --primary-link-text-color: var(--color-white);
  --primary-link-text-shadow-color: var(--color-red);
  --primary-link-hover-color: var(--color-red);


  --accent-bg-color: var(--color-red);

  --accent-text-color: var(--color-white);

  --accent-link-text-color: var(--color-white);
  --accent-link-hover-shadow-color: var(--color-white);
}


/* RESET */

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

address {
  font-style: normal;
}



/* GRID */

.content-grid{
  --padding-inline: 1.5rem;
  --content-max-width: 1600px;
  row-gap: 4rem;

  display: grid;
  grid-template-columns: [full-width-start] minmax(var(--padding-inline), 1fr) [content-start] min(100% - (var(--padding-inline) * 2), var(--content-max-width)) [content-end] minmax(var(--padding-inline), 1fr) [full-width-end];
}

.content-grid > :not(.full-width), .full-width > :not(.full-width){
  grid-column: content;
}

.content-grid > .full-width {
  grid-column: full-width;

  display: grid;
  grid-template-columns: inherit;
}



/* GLOBAL STYLES */

a {
  text-decoration: none;
  color: var(--primary-link-text-color);
  transition: all 200ms ease;
  text-shadow:
    0px 0px 8px var(--primary-link-text-shadow-color),
    0px 0px 2px var(--primary-link-text-shadow-color),
    0px 0px 12px var(--primary-link-text-shadow-color);
}

body {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: var(--primary-text-color);
  text-shadow:
    0px 0px 8px var(--primary-text-shadow-color),
    0px 0px 2px var(--primary-text-shadow-color),
    0px 0px 12px var(--primary-text-shadow-color);
}

.accent {
  background-color: var(--accent-bg-color);
  color: var(--accent-text-color);
  text-shadow: none;
}

.accent a {
  color: var(--accent-link-text-color);
}

.bold {
  font-weight: 600;
}

.bg-image {
  background-image: url("img/BG_scribble_black.svg");
  background-position: center center;
  background-repeat: repeat-y;
  background-size: cover;
}



/* HEADER */

header {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-bottom: 1px solid var(--primary-text-color);
  padding-bottom: .5rem;
  margin-bottom: 8rem;
}

.header-adress h1 {
  font-size: 1.5rem;
  font-weight: normal;
}

.header-menu {
  display: flex;
  align-items: flex-end;
  column-gap: 2rem;
  flex-wrap: wrap;
}



/* ABOUT REX */

.rex {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 3rem 0 3rem 0;
  gap: 2rem;
}

.rex img {
  width: 100%;
}

.rex-text {
  align-self: center;
  flex-direction: column;
  display: flex;
  gap: 1rem;
}

.rex h2 {
  font-size: 3rem;
  font-weight: normal;
  text-align: center;
}

.rex p {
  text-align: center;
}

.rex a {
  color: var(--accent-text-color);
}

.about-rex {
  padding: 4rem 0 8rem 0;
  font-size: 1.5rem;
  line-height: 1.4em;

    -webkit-hyphens: auto;
    -webkit-hyphenate-limit-before: 3;
    -webkit-hyphenate-limit-after: 3;
    -webkit-hyphenate-limit-chars: 6 3 3;
    -webkit-hyphenate-limit-lines: 2;
    -webkit-hyphenate-limit-last: always;   
    -webkit-hyphenate-limit-zone: 8%;

    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    hyphenate-limit-lines: 2;
    hyphenate-limit-last: always;   
    hyphenate-limit-zone: 8%;
}



/* MIETER*INNEN */

.members{
  display: grid;
  grid-template-columns: 0.2fr 3fr 1fr 1fr 1fr;
  font-size: 1.5rem;
  row-gap: 2.5rem;
  padding: 2.5rem 0 2.5rem 0;
}

.members-headline {
  text-decoration: underline;
}

.mail-link, .web-link, .insta-link {
  justify-self: end;
}



/* CONTACT */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-details {
  align-self: center;
}

.map-rex {
  aspect-ratio: 1.5 / 1;
  filter: grayscale(100%);
}

address {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}



/* FOOTER */

footer {
  display: grid;
  margin-top: 8rem;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--primary-text-color);
  padding: .5rem 0 2rem 0;
}

footer a {
  justify-self: end;
}



/* INTERACTIONS */

a:hover {
  color: var(--primary-link-hover-color);
}
.accent a:hover {
  color: var(--accent-link-text-color);
  text-shadow:
    0px 0px 8px var(--accent-link-hover-shadow-color),
    0px 0px 2px var(--accent-link-hover-shadow-color),
    0px 0px 12px var(--accent-link-hover-shadow-color);
}



/* RESPONSIVE */

@media only screen and (max-width: 770px) {
  .bg-image {
    background-image: url("img/BG_scribble_black_mobile.svg");
  }
  header {
    flex-direction: column;
    gap: 1.5rem;
  }
  .header-adress h1 {
    font-size: 1.25rem;
    font-weight: 600;
  }
  .header-menu {
    justify-content: space-between;
  }
  .rex {
    grid-template-columns: 1fr;
  }
  .rex img {
    width: 80%;
    justify-self: center;
  }
  .rex h2 {
    font-size: 1.5rem;
  }
  .about-rex {
    font-size: 1.25rem;
  }
  .members{
    grid-template-columns: 0.25fr 2fr 1fr 1fr 1fr;
    font-size: .75rem;
  }
  .contact {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 400px) {
  .header-adress h1 {
    font-size: 1rem;
  }
  .header-adress p, .header-menu a {
    font-size: .8125rem;
  }
  .rex h2 {
    font-size: 1.125rem;
  }
  .members, .about-rex, .contact-details, footer {
    font-size: .625rem;
  }
}
