/*
Theme Name: Allgemeinmedizin am Hafen
Version: 1.0
Author: Ewald Natter
Author URI: http://www.freelenz.at
Description: WordPress Theme für die Praxisgemeinschaft Allgemeinmedizin am Hafen.
*/

::selection {
  background: var(--blue);
  color: #fff;
  }
  
::-moz-selection {
  background: var(--blue);
  color: #fff;
  }  

* {
	border: none;
	margin: 0;
	padding: 0;
	outline: none;
	box-sizing: border-box;
	-webkit-appearance: none;
   
  --footer-height: calc(145vw / 1920 * 100);
  --wp--style--unstable-gallery-gap: calc(32vw / 1920 * 100) !important;
  }
  
HTML {
  height: 100%;
  }  
  
UL, LI {
  list-style-type: none;
  }  
  
A {
  transition: color 0.2s;
  color: var(--dark);
  text-decoration: none;
  }  
  
P {
  margin-bottom: 1.5em;
  }
  
MAIN {
  min-height: calc(100vh - var(--footer-height));
  }  
  
MAIN P:last-child {
  margin-bottom: 0em;
  }      
  
IMG {
  vertical-align: baseline;
  }  
  
.wp-block-post-content {
  padding-top: 0;
  }  
  
.wp-block-post-content P A:has(strong):hover:before {  
  transform: translateX(10px);
  }  
  
/* MENU
------------------------------------------------------------------------- */    

#menu {
  position: fixed;
  z-index: 10;
  left: calc(500vw / 1920 * -100);
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(500vw / 1920 * 100);
  background: rgba(125,161,169,0.9);
  padding-left: var(--padding-side);
  padding-top: calc(315vh / 1117 * 100);
  box-shadow: 0px 2px 6px 2px #00000026;
  box-shadow: 0px 1px 2px 0px #0000004D;
  transition: 0.2s;
  visibility: hidden;
  opacity: 0;
  }
  
BODY.menu #menu {
  visibility: visible;
  opacity: 1;
  }  
  
#menu UL LI A {
  display: block;
  font-size: calc(40vw / 1920 * 100);
  padding: calc(10vw / 1920 * 100) 0;
  color: #fff;
  }
  
#menu UL LI.current-menu-item A, 
#menu UL LI A:hover {  
  color: var(--dark);
  }
  
#menu .bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  padding-left: calc(33vw / 1920 * 100);
  padding-bottom: calc(21vw / 1920 * 100);
  }
  
#menu #symbols {
  display: block;
  padding: calc(50vw / 1920 * 100) 0;
  color: #fff;
  cursor: pointer;
  }
  
#menu #symbols:hover {    
  color: var(--dark);
  }
  
#menu #symbols I {
  font-size: calc(20vw / 1920 * 100);
  }
  
#menu NAV.secondary UL LI A {
  font-size: calc(16vw / 1920 * 100);
  padding: calc(3vw / 1920 * 100) 0;
  }
  
/* STICKY HEADER
------------------------------------------------------------------------- */    

HEADER {
  position: fixed;
  z-index: 20;
  width: 100%;
  background: rgba(255,255,255,0.97);
  transition: 0.2s;
  }
  
BODY.scrolled HEADER.wp-block-group {
  padding-top: calc(35vw / 1920 * 100);
  padding-bottom: calc(35vw / 1920 * 100);
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
  }
    
.wp-block-post-content {
  padding-top: calc(300vw / 1920 * 100);
  }  
  
/* HOME / STARTSEITE
----------------------------------------------------------------------- */  
  
.page-id-2 .wp-block-post-content {   
  padding-top: calc(260vw / 1920 * 100);
  }  
  
/* LAYOUT
------------------------------------------------------------------------- */  
  
#page {
  height: auto !important;
  margin-bottom: calc(var(--footer-height)*(-1));
  min-height: 100%;   
  }  

/* POPUP
------------------------------------------------------------------------- */  

.popup {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: calc(1000vw / 1920 * -100);
  margin-left: calc(487vw / 1920 * -100);
  background: var(--blue);
  color: #fff;
  width: calc(975vw / 1920 * 100);
  min-height: calc(400vw / 1920 * 100);
  padding: calc(60vw / 1920 * 100) calc(50vw / 1920 * 100);
  padding-bottom: calc(70vw / 1920 * 100);
  font-size: calc(22vw / 1920 * 100);
  transition: 0.5s;
  }

.popup.active {  
  top: calc(375vw / 1920 * 100);  
  }
  
.popup .close {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: calc(90vw / 1920 * 100);
  height: calc(90vw / 1920 * 100);
  background: url('assets/img/close.svg') no-repeat center center;
  background-size: calc(25vw / 1920 * 100) auto;
  cursor: pointer;
  transition: 0.2s;
  opacity: 0.8;
  }
  
.popup .close:hover {    
  opacity: 1;
  }
  
.popup .title {
  font-size: calc(26vw / 1920 * 100);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 2em;
  }
  
.popup .content A {
  font-weight: 500;
  } 
  
.popup .content A:hover {
  color: #1d1d1d;
  }   
  
.popup .content P:last-child {
  margin-bottom: 0;
  }
  
/* BLOCK BUTTON
----------------------------------------------------------------------------- */    
  
.wp-block-button .wp-block-button__link:hover:before {
  transform: translateX(10px);
  }  

/* 404
----------------------------------------------------------------------------- */  

.error404 MAIN {
  padding-top: calc(200vw / 1920 * 100);
  }
 

















































  
