/*
Theme Name:     Karosserie-Hackauf Child-Theme
Theme URI:      https://www.7einhalb.de
Description:    Generatepress child theme.
Author:         7einhalb - Maik Bernstein
Author URI:     https://www.7einhalb.de
Template:       generatepress
Version:        0.1.0
*/


/* ### eigene Klassen */

/* Z-Index -1 */
.layer-back {
    z-index: -1;
}

/* Hide Content */
.hideme {
    display: none !important;
}
@media screen and (max-width: 768px) {
    .mobile-hideme {
        display: none !important;
    }
}
@media screen and (min-width: 769px) {
    .desktop-hideme {
        display: none !important;
    }
}

/* Sticky Element */
.stickme {
    position: sticky;
    position: -webkit-sticky;
    top: 5%;
}

/* No Margin */
.nomargin {
    margin: 0;
}

/* No Pointer-Event */
.nopointer {
	pointer-events: none;
}



/* # Seite Home */
/* Video & Overlay-Cutout Desktop */
.background-video-100 {
    position: absolute;
    opacity: 1;
}
.background-video-50 {
    position: absolute;
    opacity: 0.5;
}
.background-video-25 {
    position: absolute;
    opacity: 0.25;
}
video[poster] {
    object-fit: cover;
    width: 100%;
    height: 100%;
}


/* ## Contact Form 7 */
/* Contact Form 7 - Inline-Row */
.inline-row label {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Contact Form 7 - Allgemeines */
.wpcf7 .wpcf7-list-item {
    margin-left: 0;
}
.wpcf7 p label {
  font-size: 0.9em;
}

.wpcf7 .input-row label, .label {
    padding: 5px 10px 0 10px;
    display: block;
    margin: 0;
    min-width: 130px;
}

.wpcf7 input[type="email"],
.wpcf7 input[type="number"],
.wpcf7 input[type="password"],
.wpcf7 input[type="search"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="text"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    border: unset;
    background: transparent;
    border: 1px solid var(--base);
	border-radius: 10px;
	color: #fff;
	margin-top: 5px;
}

/* Contact Form 7 - Textarea */
.wpcf7 .is-textarea p {
    align-items: flex-start;
    /* border: 1px solid #d2b17f; */
    display: flex;
    flex-direction: column;
    width: 100%;
}
.wpcf7-textarea {
  height: 100px;
}

/* Contact Form 7 - Abstand Radio/Checkbox */
.wpcf7-form .wpcf7-list-item:first-of-type {
    margin-left: 0;
}
.wpcf7-form .wpcf7-form-control.wpcf7-radio {
    display: flex;
	gap: 1em;
}

/* CF7 - Fehlermeldungen */
.wpcf7 form .wpcf7-response-output {
  margin: 0 0.5em 0;
}


/* Contact Form 7 - Button */
input[type="submit"].kh-button--primary.button-slide {
  position: relative;
  overflow: hidden;          /* versteckt Überstand des Overlays */
  align-items: center;
  color: var(--base);
  column-gap: 0.5em;
  display: inline-flex;
  font-size: 0.9em;
  font-weight: 500;
  justify-content: center;
  line-height: 1.1;
  text-decoration: none;
  border: 2px solid var(--base);
  border-radius: 9999px;
  padding: 16px 22px;
  background: transparent;
}
input[type="submit"].kh-button--primary.button-slide:is(:hover,:focus) {
    color: var(--accent);
    transition: all 0.4s ease 0s;
    text-decoration: none;
}
/* CF7 - Button Overlay */
input.button-slide[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;              /* volle Höhe, volle Breite */
  left: -20%;            /* etwas nach links raus, damit Skew Platz hat */
  width: 0;              /* Start: nichts zu sehen */
  background: #fff;
  transform: skewX(-30deg);
  transition: width 0.3s ease;
  z-index: -1;           /* hinter dem Text, aber noch im Button */
}
input.button-slide:hover::before,
input.button-slide:focus::before {
  width: 140% !important;           /* füllt komplett, mit gerader Kante */
}




/* Contact Form 7 -Spinner Korrektur (wg. zentrierten Button) */
/*.wpcf7-spinner {
	display: block;
	margin: 0 auto;
}*/

/* Contact Form 7 - Column Grid */
.dwp-form {
    width: 100%;
    margin: 0 auto;
}
.dwp-form-row {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.dwp-form-row .wpcf7-form-control,
.wpcf7-form label {
    width: 100%;
}
.dwp-form-column {
    flex: 1;
    padding: 0.5rem 0;
    width: 100%;
}
.dwp-form-column:first-of-type {
    padding-left: 0;
}
.dwp-form-column:last-of-type {
    padding-right: 0;
}
 
/* CF7 Grid - Desktop Ansicht */
@media only screen and ( min-width: 48em ) { 
    .dwp-form-row {
        flex-direction: row;
    }
    .dwp-form-column {
        padding: 0.5rem 1rem;
    }
}