/*
 * CSS for griebe-immobilien.de
 *
 * Copyright (c) 2025 Holger Listle for Griebe Immobilien
 */

@font-face { font-family: 'Roboto-Condensed-Light';
			 src: url('fonts/Roboto-Condensed-Light.woff2') format('woff2');
}

:root {
  /* root colors */
  --color-background-general: #ffffff;	/* RAL9010 - reinweiß		*/
  --color-background-contrast: #d7d7d7;	/* RAL7035 - lichtgrau		*/
  --color-text-standard: #474a51;		/* RAL7024 - graphitgrau	*/
  --color-logo: #c6262e;				/* Tanjas Logorot   		*/
  
  /* derived colors */
  --color-button-active-bg: #d7d7d7;
  --color-button-active-fg: #ffffff;
  
  --standard-font: Roboto-Condensed-Light;
  --content-max-width: 1280px;
  --mobile-max-width: 800px;
}

*,
*:after,
*:before {
  box-sizing: inherit;
}

* {
  font-family: var(--standard-font), sans-serif;
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: .01em;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
  color: var(--color-text-standard);
  line-height: 1.6;
  min-height: 100%;
}

p, ol, td {
  padding: 0 10px 0 10px;
}

a {
	text-decoration: none;
	color: var(--color-logo);
}

p.copyright {
	font-size:1.4rem;
	text-align: center;
}

ol {
	margin-left: 25px;
	margin-right: 25px;
}

b {
	font-weight: 800;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -.1rem;
  margin-bottom: 2.0rem;
  margin-top: 1.0rem;
  padding: 0 10px 0 10px;
}

h1 {
  font-size: 4.0rem;
  line-height: 1.2;
}

h2 {
  font-size: 3.2rem;
  line-height: 1.25;
  border-bottom: 3px solid #a00;
}

h3 {
  font-size: 2.4rem;
  line-height: 1.3;
}

h4 {
  font-size: 2.2rem;
  letter-spacing: -.08rem;
  line-height: 1.35;
}

h5 {
  font-size: 1.8rem;
  letter-spacing: -.05rem;
  line-height: 1.5;
}

h6 {
  font-size: 1.6rem;
  letter-spacing: 0;
  line-height: 1.4;
}

h1 {
  margin-top: 1.0rem;
}


.button,
button,
input[type='button'],
input[type='reset'],
input[type='submit'] {
  background-color: var(--color-logo);
  border: 0.1rem solid var(--color-button-active-fg);
  border-radius: .4rem;
  color: var(--color-button-active-fg);
  cursor: pointer;
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  height: 3.8rem;
  letter-spacing: .1rem;
  line-height: 3.8rem;
  padding: 0 3.0rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.button:focus, .button:hover,
button:focus,
button:hover,
input[type='button']:focus,
input[type='button']:hover,
input[type='reset']:focus,
input[type='reset']:hover,
input[type='submit']:focus,
input[type='submit']:hover {
  border-color: var(--color-logo);
  outline: 0;
}

.button[disabled],
button[disabled],
input[type='button'][disabled],
input[type='reset'][disabled],
input[type='submit'][disabled] {
  cursor: default;
  opacity: .5;
}

input[type='color'],
input[type='date'],
input[type='datetime'],
input[type='datetime-local'],
input[type='email'],
input[type='month'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='text'],
input[type='url'],
input[type='week'],
input:not([type]),
textarea,
select {
  -webkit-appearance: none;
  background-color: transparent;
  border: 0.1rem solid var(--color-background-contrast);
  border-radius: .4rem;
  box-shadow: none;
  box-sizing: inherit;
  height: 3.8rem;
  padding: .6rem 1.0rem .7rem;
  width: 100%;
}

input[type='color']:focus,
input[type='date']:focus,
input[type='datetime']:focus,
input[type='datetime-local']:focus,
input[type='email']:focus,
input[type='month']:focus,
input[type='number']:focus,
input[type='password']:focus,
input[type='search']:focus,
input[type='tel']:focus,
input[type='text']:focus,
input[type='url']:focus,
input[type='week']:focus,
input:not([type]):focus,
textarea:focus,
select:focus {
  border-color: var(--color-logo);
  outline: 0;
}

select {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%23d1d1d1" d="M0,0l6,8l6-8"/></svg>') center right no-repeat;
  padding-right: 3.0rem;
}

select:focus {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%239b4dca" d="M0,0l6,8l6-8"/></svg>');
}

select[multiple] {
  background: none;
  height: auto;
}

textarea {
  min-height: 6.5rem;
}

label,
legend {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

fieldset {
  border-width: 0;
  padding: 0;
}

input[type='checkbox'],
input[type='radio'] {
  display: inline;
}

.label-inline {
  display: inline-block;
  font-weight: normal;
  margin-left: .5rem;
}

p.buttonbox {
	text-align: center;
	bottom: 0px;
}

.top-nav {
  position: fixed;
  display: flex;
  flex-direction: row;
  width:100%;
  max-width: var(--content-max-width);
  align-items: center;
  justify-content: space-between;
  background-color: rgb(16,16,16,0.6);
  color: #FFF;
  height: 70px;
  top: 20px;
  left: 50%;
  transform: translate(-50%, 0);
  padding: 1em;
  border: 1px solid #111;
  border-radius: 10px;
  z-index:10;
}

.top-nav-logo {
	top:15px;
	width: 300px;
}

.top-nav-logo img {
	width: 100%;
}
.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
  font-size: 1.6em;
}

.menu > li a {
  color:#fff;
  letter-spacing: .06em;
  text-decoration:none;
}

.menu > li a:hover {
  font-weight: 700;
  letter-spacing: .03em;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}


.content_body {
	position:relative;
	width: 100%;
	max-width: 1280px;
	left: 50%;
	top: 0px;
	transform: translate(-50%, 0);
}

row {
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100%;
}

row.footer {
	color: #fff;
	background-color: rgb(16,16,16,0.6);
}

row.footer:first-of-type {
	margin-top: 30px;
}

row column {
  display: block;
  flex: 1 1 auto;
  margin-left: 0;
  margin-top:15px;
  max-width: 100%;
  width: 100%;
}

.column-25 {
  flex: 0 0 25%;
  max-width: 25%;
}

.column-33, .column.column-34 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}


column img:first-of-type {
  width:100%;
  border-radius:10px;
}

column.testimonial {
  background-color: #fafafa;
  margin: 10px;
  border: 1px solid #aaa;
  border-radius: 10px;
  width: auto;
}

column.testimonial p:first-of-type {
	font-style: italic;
}

column.testimonial p:first-of-type::before {
	font-weight: 700;
	color: #a00;
	content: '» ';
}

column.testimonial p:first-of-type::after {
	font-weight: 700;
	color: #a00;
	content: ' «';
}

column.testimonial p:nth-of-type(2) {
	text-align: right;
}

table {
  border-spacing: 0;
  display: block;
  overflow-x: auto;
  text-align: left;
  padding-left: 10px;
  width: 100%;
}

td,
th {
  padding: 0.5rem;
}

td:first-child,
th:first-child {
  padding-left: 0;
}

td:last-child,
th:last-child {
  padding-right: 0;
}

dt {
	margin-top: 10px;
	margin-bottom: 10px;
	cursor:pointer;
}

dt.closed::before {
	content: '⇲  ';
	font-size: 1.3em;
	font-weight: 700;
}

dt.open::before {
	content: '⇱  ';
	font-size: 1.3em;
	font-weight: 700;
}

dd {
	display: none;
}

@media (min-width: 800px) {
  row {
    flex-direction: row;
    margin-left: -1.0rem;
    width: calc(100% + 2.0rem);
  }
  row column {
    margin-bottom: inherit;
    padding: 0 1.0rem;
  }
  table {
    display: table;
    overflow-x: initial;
  }
}

.slider {
    overflow: hidden;
}        

.slider_container {
    width: 303%;
    position: relative;    
    animation: 20s slideranimation infinite;
}

.slider_container:hover {
	animation-play-state: paused;
}

@keyframes slideranimation {
    0% {
        left: 0;
    }

    30% {
        left: 0;
    }

    33% {
        left: -101%;
    }

    63% {
        left: -101%;
    }

    66% {
        left: -202%;
    }

    96% {
        left: -202%;
    }

    100% {
        left: 0%;
    }
}        

.slider_container slide_box {
    position: relative;
    float: left;
}

.slider_container slide_box img {
    width: 100vw;
    height: auto;
    object-fit: cover;
}

.slider_container slide_box:nth-child(1) img,
.slider_container slide_box:nth-child(3) img {
    object-position: center;       
}        

.slider_container slide_box:nth-child(2) {
    object-position: center;       
}        

slide_banner {
    position: absolute;
    bottom: 100px;
    left: 50%;
	transform: translate(-50%, 0);
    background-color: hsla(0, 100%, 100%, 0.8);
    padding: .2em 1em;
    border: 1px solid #111;
    border-radius: 10px;    

}    

slide_banner a {
	text-decoration: none;
}

slide_banner h4 {
	font-size: 1.8em;
	font-weight:600;
    color: #333;
}

slide_banner p {
	font-size: 1.5em;
	font-weight:300;
    color: #222;
}

.banner_head {
    width: 100%;
    position: relative;    
}

.banner_head img {
    width: 100vw;
    height: auto;
    object-fit: cover;
}

.banner_head h1 {
}

.slim_header {
	display: none;
	font-size: 1.5rem;
	text-align: center;
}

.wide_header {
	display: block;
	color: #707070;
}

.contact_icon {
	position:fixed;
	width:80px;
	height:80px;
	right:20px;
	bottom:20px;
	opacity:0.6;
}

.contact_icon img {
	width:100%;
	border: 0;
}

.footer a {
	text-decoration: none;
	color: #eee;
}

html:not([data-scroll='0']) {
	.top-nav {
		border: 0px;
		border-radius: 0px;
		top: 0px;
		margin: 0px;
		transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
	}
}

.desktop_only {
	display: block;
}

.mobile_only {
	display: none;
}

img.portrait {
	text-align: left;
	width: 25% !important;
	margin: 0px 10px 10px 0px !important;
}

@media (max-width: 800px) {
	.desktop_only {
		display: none;
	}

	.mobile_only {
		display: block;
	}

	.content_body {
		padding: 0px 10px 0px 10px;
	}

  .top-nav {
	  border: 0px;
	  border-radius: 0px;
	  top: 0px;
	  margin: 0px;
  }
  
  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 70px;
    margin-top: 0px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 4em;
    padding-top: 0.8em;
    padding-bottom: 0.8em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    width: 100%;
    color: white;
    background-color: #222;
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }
  .slider_container {
	  top: 70px;
  }
  slide_banner h4 {
	font-size: 1.3em;
  }
  slide_banner p {
	display: none;
  }


  .wide_header {
	display:none;
  }

  .slim_header {
	display: block;
  }
  
  column img:first-of-type {
    border-radius: 0;
  }
  
  h1 {
	  text-align: center;
  }
  img.portrait {
	width: 100% !important;
	margin: 0px !important;
  }

}

