/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/*
* My Fonts
*
*/
@font-face {
  font-family: 'Montserrat-ExtraBold';
  src: local('Montserrat'), local('Montserrat-ExtraBold');
  src: url(../fonts/Montserrat/Montserrat-ExtraBold.eot);
  src: url(../fonts/Montserrat/Montserrat-ExtraBold.eot#iefix) format('embedded-opentype'),
       url(../fonts/Montserrat/Montserrat-ExtraBold.woff) format('woff'),
       url(../fonts/Montserrat/Montserrat-ExtraBold.woff2) format('woff2'),
       url(../fonts/Montserrat/Montserrat-ExtraBold.ttf) format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto-Regular';
  src: local('Roboto'), local('Roboto-Regular');
  src: url(../fonts/Roboto/Roboto-Regular.eot);
  src: url(../fonts/Roboto/Roboto-Regular.eot#iefix) format('embedded-opentype'),
       url(../fonts/Roboto/Roboto-Regular.woff) format('woff'),
       url(../fonts/Roboto/Roboto-Regular.woff2) format('woff2'),
       url(../fonts/Roboto/Roboto-Regular.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
}

/*
* My variables
*
*/
:root {
  --category-image-width: 100%;
  --social-media-image-width: 50px;
  font-family: sans-serif;
}

/*
* body
*
*/

body {
  background-color: white;
}

/*
* Header and Hero Image with Main Headline and Subline
*
*/
header {
  margin-bottom: 75px;
}

#hero-image {
  width: 100%;
  height: auto;
}

#main-heading {
  position: absolute;
  top: 100px;
  left: 50px;
}

#main-heading h1 {
  font-family: "Montserrat-ExtraBold", sans-serif;
  font-weight: 800;
  font-size: 6vw;
  color: white;
}

#main-heading p {
  font-family: sans-serif;
  color: white;
  float: right;
  font-size: 3vw;
  padding: 0;
  margin: 0;
}

/*
* Styling of the four Tiles (Main Categories)
*
*/
main h2 {
  font-family: "Montserrat-ExtraBold", sans-serif;
  font-weight: 800;
  text-align: center;
}

#category-stage {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 40px;
  width: 80%;
  max-width: 850px;
  min-width: 300px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 25px;
  margin-bottom: 25px;
}

.category-container {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  width: var(--category-image-width);
  text-align: center;
  font-family: "Montserrat-ExtraBold", sans-serif;
  font-weight: 800;
  font-size: 250%;
}

.category-image {
  width: var(--category-image-width);
  height: auto;
}

.category-overlay {
  position: absolute;
  bottom: 0;
  color: white;
  width: 100%;
  height: 100%;
}

#planung {
  background: rgba(255, 102, 0, 0.5);
  transition: .5s ease;
}

.category-container:hover #planung {
  background: rgba(255, 102, 0, 0.0);
}

#technik {
  background: rgba(128, 0, 128, 0.5);
  transition: .5s ease;
}

.category-container:hover #technik {
  background: rgba(255, 102, 0, 0.0);
}

#tonstudio {
  background: rgba(0, 0, 255, 0.5);
  transition: .5s ease;
}

.category-container:hover #tonstudio {
  background: rgba(255, 102, 0, 0.0);
}

#dryhire {
  background: rgba(44, 160, 90, 0.5);
  transition: .5s ease;
}

.category-container:hover #dryhire {
  background: rgba(255, 102, 0, 0.0);
}

#top {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 300px;
  height: auto;
}


/*
*The Social Media Bar
*
*/
#social-media-stage {
  display: flex;
  justify-content: space-around;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
}

#social-media-stage > a > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  color: rgba(255, 255, 255, 0)
}

#social-media-stage > a {
  text-decoration: none;
}

#social-media-stage > a > div:hover {
  color: black;
}

#social-media-stage > a > div > img {
  width: var(--social-media-image-width);
  height: auto;
}

/*
*Profile Card
*
*/
.card {
  display: flex;
  max-width: 700px;
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid black;
  overflow: hidden;
}

.card img {
  width: 33%;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2)
}

/* Add some padding inside the card container */
.profile-container {
  padding: 2px 16px;

}

/*
*The Main Section
*
*/
main > p {
  text-align: center;
  font-size: 150%;
}

main article {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  font-family: 'Roboto-Regular', sans-serif;
  font-size: 150%;
  hyphens: auto;
}

main article h2 {
  font-size: 200%;
  margin-top: 100px;
  margin-bottom: 0;
  text-align: left;
}

main article p img {
  float: left;
  height: 250px;
  width: auto;
}

.left-image {
  margin-right: 16px;
  margin-bottom: 12px;
}

.right-image {
  float: right;
  margin-left: 16px;
  margin-bottom: 12px;
}

/* button to show or hide the full text of one article */
.article-buttons {
  font-family: 'Roboto-Regular', sans-serif;
  font-size: 75%;
  padding: 8px 6px;
  background-color: rgba(0, 0, 0, 0);
  border: 2px solid black;
  border-radius: 0px;
  margin: 12px 0;
}

.article-buttons:hover {
  background-color: rgba(153, 153, 153, 0.5);
}

/* Div parent element of every article button - so we can position the buttons correctly*/
div:has(.article-buttons) {
  display: flex;
  justify-content: flex-end;
}

/* navigational bar underneath every article*/
.article-nav {
  display: flex;
  justify-content: flex-end;
  column-gap: 12px;
  height: 50px;
  border-top: 1px solid black;
  padding: 8px 0;
}

.article-nav img {
  height: 50px;
  width: auto;
}

.article-nav > a:hover {
  background-color: rgba(153, 153, 153, 0.5);
  border-radius: 8px;
}

/*
*The Contact Form
*
*/
div#contact-form {
  border: 1px solid gray;
  border-radius: 10px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  padding: 25px;
}

div#contact-form h2 {
  text-align: center;
}

div#contact-form div {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

/*Verstecktes Feld, welches ungewollte Post aussortieren soll*/
.user-nickname {
  position: absolute;
  left: -500px;
}

div#contact-form button {
  font-size: 120%;
  padding: 10px 0;
}

div#contact-form input {
  height: 28px;
  font-size: 120%;
}

div#contact-form label {
  padding-bottom: 5px;
  font-size: 120%;
}

div#contact-form textarea {
  font-size: 150%;
}

/*
*Legal Texts
*
*/
div#legal-text {
  width: 700px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid black;
  border-radius: 20px;
  padding: 25px;
}

/*Linking back to the Homepage*/
a.backtrack {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
  text-align: center;
  width: 175px;
  margin-top: 50px;
  color: rgb(0, 136, 170);
  border: none;
  border-radius: 5px;
  padding: 5px;
}

a.backtrack:hover {
  background-color: rgb(170, 255, 238);
}

/*
*The Footer
*
*/
footer {
  display: flex;
  justify-content: space-between;
  background: black;
  margin-top: 50px;
  min-height: 100px;
  color: rgb(153, 153, 153);
  padding: 25px;
}

/*space the links on the left side of the footer evenly*/
footer > div:first-child {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
}

/*Align the paragraph in the footer with the anchor elements on the left side*/
footer  p {
  padding: 0;
  margin: 0;
}

footer a {
  color:rgb(153, 153, 153);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/*
* Cookie-Banner
*
*/
div#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background-color: rgb(255, 230, 128);
}

div#cookie-banner > button {
  height: 36px;
  width: 125px;
}

/*
* Responsive Behavior
*
*/
@media screen and (max-width: 699px) {

  #category-stage {
    width: 100%;
    gap: 0;
    margin: 0;
  }

  #category-image {
    width: 100%;
  }

  .category-container {
    margin-top: -120px;
  }

  #first-category-container {
    margin-top: 20px;
  }

  a:has(div#tonstudio) {
    order: 10;
  }

  #social-media-stage {
    width: 90%;
  }

  main article p img {
    height: 140px;
    width: auto;
  }

  div#legal-text {
    width: 80%;
  }

  main article {
    font-size: 120%;
  }

  div#cookie-banner {
    font-size: 80%;
  }
}

@media screen and (min-width: 700px) and (max-width: 839px) {
  :root {
    --category-image-width: 300px;
    --social-media-image-width: 75px;
  }

  #category-stage {
    gap: 0;
    width: 90%;
  }

  #social-media-stage {
    width: 80%;
  }

  div#legal-text {
    width: 80%;
  }
}

@media screen and (min-width: 840px) {
  :root {
    --category-image-width: 300px;
    --social-media-image-width: 75px;
  }
}

@media screen and (min-width: 1400px) {
  :root {
    --category-image-width: 400px;
    --social-media-image-width: 75px;
  }
}

@media screen and (min-width: 1900px) {
  :root {
    --category-image-width: 490px;
    --social-media-image-width: 75px;
  }

  #category-stage {
    max-width: 1600px;
  }
}


