/**
 * Theme Name: Custom Starter Template
 * Description: Custom Child Theme für die Genomics Core Facility, basierend auf Blocksy.
 * Author: Kilian Audoire
 * Template: blocksy
 * Text Domain: custom-starter-template
 */


 /* ===== EIGENE STYLE-ANPASSUNGEN ===== */


/* ===== CONTACT FORM 7 ===== */

/* Grundlayout */
.wpcf7-form {
font-family: inherit;
color: #002f52;
border-radius: 0;
max-width: 600px;
margin: 0 auto;
border: none;
}

/* Labels */
.wpcf7-form label {
font-weight: normal !important;
font-size: 16px !important;
font-weight: bold !important;
color: #05375E;
display: block;
margin-bottom: 0.5rem;
}

/* Pflichtfeld-Stern */
span.required {
color: #a30000;
margin-left: 0.2rem;
}

/* Inputs, Textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
width: 100%;
padding: 0.75rem 1rem;
border-radius: 5px;
font-family: inherit;
font-weight: normal;
background-color: white;
color: #05375E;
resize: vertical;
transition: all 0.2s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
outline: none;
box-shadow: 0 0 0 1px #05375E;
background-color: white;
border-color: #05375E;
}

/* Checkbox */
.wpcf7-form-control.wpcf7-acceptance {
display: inline-flex;
align-items: center;
gap: 8px;
}

.wpcf7-form-control.wpcf7-acceptance input[type="checkbox"] {
width: 20px;
height: 20px;
vertical-align: middle;
margin-bottom: 1px;
}

/* Datenschutztext neben Checkbox */
.wpcf7-form .wpcf7-acceptance label {
font-size: 16px !important;
}

/* Senden Button */
.wpcf7 input[type="submit"] {
width: 100%;
line-height: 40px;
background: linear-gradient(135deg, #003C6C 0%, #225F78 100%);
border-radius: 5px;
color: white;
font-size: 20px;
font-family: inherit;
cursor: pointer;
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease-in-out;
transform: translateY(0);
}

.wpcf7 input[type="submit"]:hover {
background: linear-gradient(135deg, #003C6C 0%, #225F78 100%);
color: white;
transform: translateY(-4px);
}

.wpcf7 input[type="submit"]:active {
transform: translateY(0);
}

/* Fehlermeldungen unterhalb der Felder */
.wpcf7-not-valid-tip {
font-style: normal !important;
color: #a30000;
font-size: 16px !important;
margin-top: 0.25rem;
}

/* Meldungen unterhalb des Formulars */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output {
font-style: normal !important;
font-size: 15px;
text-align: center;
border: none !important;
border-left: 10px solid #9b9a9a !important;
background: linear-gradient(135deg, #003C6C 0%, #225F78 100%);
border-radius: 3px;
padding: 15px;
margin-left: 0px;
color: #ffffff;
width: 100%;
opacity: 0;
animation: fadeIn 0.8s ease-in-out forwards;
}

/* Keyframes für Fade-In der Meldung unter dem Formular */
@keyframes fadeIn {
to {
  opacity: 1;
}
}

/* ERFOLGSMELDUNG AN STELLE DES FORMULARS */
.wpcf7-form.sent > :not(.wpcf7-response-output) {
animation: fadeOutSmooth 0.4s ease-in-out forwards;
}

/* Erfolgsmeldung einblenden bei Erfolg */
.wpcf7-form.sent .wpcf7-response-output.wpcf7-mail-sent-ok {
animation: fadeInSmooth 0.5s ease-in-out forwards;
}

/* Fade Out Animation */
@keyframes fadeOutSmooth {
0% {
  opacity: 1;
}
100% {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  visibility: hidden;
  overflow: hidden;
}
}

/* Fade In Animation */
@keyframes fadeInSmooth {
from {
  opacity: 0;
}
to {
  opacity: 1;
}
}


/* Captcha Abstand zwischen Text und Eingabefeld */
.wpcf7-captchac {
margin-bottom: 12px; /* oder z. B. 16px, je nach Wunsch */
background-color: #F0F0F1;
}


/* ===== PRESSIDIUM COOKIE CONSENT ===== */

/* Überschrift zentrieren */
#c-ttl {
text-align: center;
margin-bottom: 0.5em;
font-size: 25px !important;
}


/* ===== MITARBEITER INFOBOX ===== */

/* Zoom-Effekt */
/* Bild-Container: Zuschneiden auf festen Rahmen */
.infobox .wp-block-image {
overflow: hidden;
}

/* Zoom-Effekt beim Hover auf die Box */
.infobox:hover .wp-block-image img {
transform: scale(1.08);
}

/* Sanfte Animation */
.infobox .wp-block-image img {
transition: transform 0.3s ease;
}