/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.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: #444;
  font-family: Helvetica;
  font-size: 1em;
  line-height: 1.4;
  background-color:var(--bgcolor);

  scroll-behavior: smooth;
  min-width: 320px;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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: 0em 0px -1.7em 0px;
}

/*
 * 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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

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

  @font-face {
    font-family: Din;
    font-weight: 600;
    src: url(../fonts/DINRoundWeb-Medium.eot);
    src: url(../fonts/DINRoundWeb-Medium.eot), url(../fonts/DINRoundWeb-Medium.woff) format("woff"), url(../fonts/DINRoundComp-Medium.ttf) format("truetype")
  }
  
  /*
  @font-face {
    font-family: Din;
    font-weight: 400;
    src: url(../fonts/DINRoundWeb.eot);
    src: url(../fonts/DINRoundWeb.eot), url(../fonts/DINRoundWeb.woff) format("woff"), url(../fonts/DINRoundComp.ttf) format("truetype")
  }
*/

  @font-face {
    font-family: theosregular;
    src: url(../fonts/webfontkit-theos/theos1-webfont.woff2) format('woff2'),
        url(../fonts/webfontkit-theos/theos1-webfont.woff) format('woff');
    font-weight: normal;
    font-style: normal;
  }


/*verhindert das horizontale scrollen, um die nav ul im mobile modus nicht zu sehen
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
*/

:root {
  --gold: rgb(255, 174, 0);
  --link: rgb(0, 170, 170);
  --bgcolor: #f3f3f3;
  --lightcolor: rgb(170, 170, 170);
  --black: rgb(34, 34, 34);
  --colhead: white;

  --fontpaar: Din;
  /*--fontpaar: theosregular;*/
  --fonth1: Din;
  --fonta: Din;
  --fontb: Helvetica
  /*--fonth1: "Noto Serif Display", serif;
  --fonta: Arial, Helvetica, sans-serif;*/
}

body {
  font-family: var(--fonth1);
  display: flex;  
  flex-flow: row wrap;
  font-weight: bold;
  text-align: center;
  max-width: 100%;
  padding: 0rem;
}

body > * {
  flex: 1 100%;
}

footer > * {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;

}

footer ul {
  display: static;
  list-style: none;
  padding: 0px;
}

footer li {
  margin-left: 0.5em;
  margin-right: 0.5em;
}

main {
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px 0 10px;
}

header {
  height: 50vh;
  min-height: 350px;
}

a {
  font-family: var(--fonta);
  font-weight: lighter;
}

.a_bold {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

main > * h1 {
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: fit-content;
  background-color: var(--bgcolor);
  padding: 0px 10px 0px 10px;
}

/*
  INTRO
*/
  .Intro {
    position: relative;
  }

  .Intro #Header {
    width: 100%;
    height: 50vh;
    min-height: 350px;
    object-fit: cover;
    /*filter: saturate(25%) blur(0px);*/
    transform: scale(1.00);
    -webkit-filter: sepia(50%);
    filter: sepia(50%);
  }

  .Intro > div {
    position: absolute;
    top: 10vh;
    height: 20vh;
    left:0;
    right:0;
    margin-left:auto;
    margin-right:auto;
  }

  .Intro #wir_heiraten {
    position: absolute;
    top: 0.5em;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    color: white;
  }

  .Intro #datum {
    position: absolute;
    top: 6.5em;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    color: var(--colhead);
  }

  .Intro #J_Titel {
    font-family: var(--fontpaar);
    font-size: 5em;
    position: absolute;
    top: 0.6em;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    color: var(--colhead);
  }

  .Intro #scroll {
    position: absolute;
    max-height: 40px;
    bottom: 4vh;
    left:0;
    right:0;
    margin-left:auto;
    margin-right:auto;
    object-fit:cover;
    color: white;
  }

/*
  MAIN
*/

  .boxi {
    padding-top: 120px;
    padding-bottom: 20px;
  }

  .boxi:last-child {
    padding-bottom: 110px;
  }

  /*Links*/
  a:link, a:visited {
    text-decoration: none;
  }

  .link {
    cursor: pointer;
    font-size: 18px;
    position: relative;
    white-space: nowrap;
    color: var(--link);
    margin-top: 15px;
    text-decoration: none;
    clip-path: inset(0px -2px 2px 0px);
  }

  .link::before,
  .link::after {
      position: absolute;
      width: 100%;
      height: 1px;
      background: currentColor;
      top: 100%;
      left: 0;
      pointer-events: none;
  }

  .link::before {
      content: '';
      /* show by default */
  }

  .link--iocaste {
      font-family: --fonth1;
      font-weight: 900;
      font-style: italic;
      overflow: clip support;
      padding: 7px 0;
  }

  .link__graphic {
      position: absolute;
      left: 0;
      pointer-events: none;
      fill: none;
      stroke: var(--link);
  }

  .link__graphic--slide {
      top: -3px;
      stroke-width: 2px;
      transition: transform 0.7s;
      transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
  }

  .link:hover .link__graphic--slide {
      transform: translate3d(-66.6%, 0, 0);
  }


  .Trenner {
    color: var(--lightcolor);
    font-family: var(--fonth1);
  }

  .Speisekarte > h3 {
    margin-bottom: 4px;
  }


/*
  CARD
*/
  .card-box {
    display: flex;
    gap: 20px 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }



  .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px 25px;
  }

  .card__img {
    width: 14rem;
    max-height: 30rem;
    object-fit: cover;
    border-radius: 0.4rem;
    overflow: hidden;
    box-shadow: 0 5rem 8rem rgba(0, 0, 0, 0.1);
    transition: 0.2s;
    flex-shrink: 4;
  }

  .card__img:hover {
    transform: translateY(-0.5%);
    box-shadow: 0 4rem 8rem rgba(0, 0, 0, 0.2);
  }

  .card__text {
  }


/*
  FOOTER
*/

  footer {
    padding: 30px 0px 30px 0px;
    background-color: var(--bgcolor);
  }

  footer > div {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px 10px 0px 10px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .zitat {
    font-style: italic;
    font-family: serif;
  }

  .autor {
    font-family: var(--fonth1);
    font-style: italic;
  }

/*
  Passwort PHP
*/

.phppw {
  position: absolute;
  top: 30vh;
  left: 0;
  right: 0;
  margin: auto;
  background-color: white;
  border-radius: 10px;
  min-height: auto;
  padding: 20 20 20 20;
  max-width: fit-content
}




/* =================================================================
   Media Query Stuff 
   ================================================================= */
/*
@media all and (min-width: 40rem) and (max-width: 48rem) {
  aside { flex: 1 0 100%; }

  /*Multi aufgeteilt*//*
  .Multiteaser {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .Multi1 {
    flex: 1 1 45%;
    max-width: 48.5%;
  }
  .Multi2 {
    flex: 1 1 45%;
    max-width: 48.5%;
  }
  body { padding: 2rem; }
}
*/

@media all and (max-width: 375px)  {
  .Intro #Paarname {
    font-size: 4.2em;
  }
  .Intro #datum {
    top: 5.2em;
  }
}

/*Multi aufgeteilt
@media all and (min-width: 56rem) {
  
  main .Multiteaser {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  main .Multi1 {
    flex: 1 1 45%;
    max-width: 48.5%;
  }
  main .Multi2 {
    flex: 1 1 45%;
    max-width: 48.5%;
  }
}
*/



@media (hover: none) and (pointer: coarse) {
  .link { text-decoration: underline !important; }
  .link > svg { display: none; }
  .link--iocaste { overflow: clip !important; }
  
}

/*links in safari ändern*/
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) { 

  .link { text-decoration: underline !important; }
  .link > svg { display: none; }
  .link--iocaste { overflow: clip !important; }

}

@media not all and (min-resolution:.001dpcm) { 

  .link { text-decoration: underline !important; }
  .link > svg { display: none; }
  .link--iocaste { overflow: clip !important; }

}

/*
.phppw { transform: scale(3); }


<!-- mouse, touch pad -->
@media (hover: hover) and (pointer: fine) {

}
*/






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

/*
 * Hide visually and from screen readers
 */

.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
*/

.sr-only {
  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 .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.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
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. 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: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.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: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    -webkit-box-shadow: none !important;
    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;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

