/**
 * Theme Name:     Wachsflecken
 * Author:         Wachsflecken
 * Template:       twentytwentyfive
 * Text Domain:	   wachsflecken
 * Description:    Wachsflecken Theme based on Wordpress theme Twenty Twenty-Five
 */

/* CSS Variables */

.copyright-small {
    font-size: 0.8em;
    color: #666;
    display: block;
    text-align: center;
}

.copyright-small a {
    font-size: inherit;
    color: inherit;
    text-decoration: none;
}


/* Link-Text Block */
/* Grundlegende Stile für den Block */
.custom-link-block {
  display: inline-block;
  width: 100%; /* 2 Blöcke nebeneinander mit Abstand */
  margin: 10px;
  position: relative;
  height: 1;
  padding-bottom: 100%; /* Stellt sicher, dass der Block immer quadratisch bleibt */
}

/* Container für das Bild und den Button */
.link-block-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.link-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt den Block aus */
  border-radius: 20px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Dunkler Overlay-Effekt */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.overlaycolor {
  background: white;
}

.overlay h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.6); padding: 10px 20px; border-radius: 8px; 
}

.overlay a.button {
  background-color: rgb(50,50,50,0.8);
  color: #fff;
  padding: 10px 20px;
  border: 1px solid white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.overlay a.button:hover {
  color: rgb(40,40,40);
  background-color: rgb(255,255,255); /* Hover-Effekt */
}

.link-block-image:hover .overlay {
  opacity: 1.0; /* Overlay erscheint beim Hover */
}

/* Responsiv: Blöcke nebeneinander */
@media (max-width: 1024px) {
  .custom-link-block {
    width: calc(50% - 20px); /* 2 Blöcke nebeneinander */
    padding-bottom: 50%; /* Erhalte das Quadrat bei 2 Blöcken nebeneinander */
  }
}

@media (max-width: 767px) {
  .custom-link-block {
    width: 100%; /* 1 Block pro Zeile auf kleinen Bildschirmen */
    padding-bottom: 100%; /* Erhalte das Quadrat auf kleinen Bildschirmen */
  }
}

/* Kontaktformular CSS */

/* Contact Form 7 - Modernes Design */

.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Label Styling */
.wpcf7-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* Input & Textarea Grundstil */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #f9f9f9;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Focus State */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Textarea spezifisch */
.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Paragraph Spacing */
.wpcf7-form p {
    margin-bottom: 24px;
}

.wpcf7-form p:last-of-type {
    margin-bottom: 0;
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

.wpcf7-form input[type="submit"]:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Checkbox Styling */
.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
}

.wpcf7-form .wpcf7-list-item-label {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Error Messages */
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #dc3545;
    font-weight: 500;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Response Output */
.wpcf7-response-output {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpcf7-validation-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Quiz/Captcha Field */
.wpcf7-quiz-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* Honeypot verstecken */
#div.contactname-wrap {
    display: none !important;
    visibility: hidden !important;
}

/* Spinner */
.wpcf7-spinner {
    margin-left: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 24px;
    }
}
