/*
Theme Name: kulturnacht-burgdorf.ch
Theme URI: 
Author: Armin Oppliger
Author URI: https://arminoppliger.ch/
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kulturnacht-burgdorf-ch
Tags: 
*/

@import url('responsive.css');

/* Global */
:focus,
button:focus,
a:focus {
    outline: none;
}

a {
    text-decoration: none;
    border-bottom: 1px dotted #000;
    transition: border-color 0.3s ease;
}
a:hover {
    border-bottom: 1px dotted transparent;
    color:#DC3232;
}

.dotted-link a {
    border-bottom: 1px dotted #000;
    transition: border-color 0.3s ease;
}
.dotted-link a:hover {
    border-bottom: 1px dotted transparent;
}

.fancybox-caption {
    display: none;
}

/* Header */
header .custom-logo-link {
    border: none;
}
header .custom-logo-link img {
    background: #fff;
    border-radius: 5px;
    padding: 10px;
}

nav li a {
    border-bottom: 1px dotted transparent;
}
nav li a:hover,
li.current-menu-item a {
    border-bottom: 1px dotted #000;
}

.pdf-icon a {
    border-bottom:none;
}

/* Footer */
footer a {
    border-bottom: 1px dotted transparent;
}
footer a:hover {
    border-bottom: 1px dotted #000;
    color: #000;
}

.armin-oppliger a img {
    transition: filter 0.3s ease;
}
.armin-oppliger a:hover img {
    filter: invert(48%) sepia(59%) saturate(682%) hue-rotate(330deg) brightness(107%) contrast(98%);
    text-decoration: none;
}
.armin-oppliger a,
.armin-oppliger a:hover {
    border:none;
}

/* Event List */
.event-location,
.event-categories {
    margin: 0 0 10px;
}
.event-location span,
.event-categories span,
.event-kulinarisches-value {
    background: #d6ddf9;
    border-radius: 5px;
    padding: 3px 10px;
    transition: border-color 0.3s ease;
}

.event-kulinarisches {
    display: flex;
    gap: 20px;
}
span.event-kulinarisches-value {
    padding-top: 6px;
    padding-bottom: 6px;
}

.event-categories span.event-category-name {
    padding-left: 0;
    padding-right: 0;
}

.veranstaltungen-post:hover .event-location span,
.veranstaltungen-post:hover .event-categories span,
.veranstaltungen-post:hover .event-kulinarisches-value {
    background: #fff;
}

.veranstaltungen-kategorie p {
    background: #d6ddf9;
    border-radius: 5px;
    padding: 3px 10px;
}

#kulinarisches-filter-container .kulinarisches-ohne-verpflegung .kulinarisches-name::before,
#kulinarisches-filter-container .kulinarisches-trinken-bar .kulinarisches-name::before,
#kulinarisches-filter-container .kulinarisches-trinken-bar-kulinarisches .kulinarisches-name::before {
    content:'';
    display: inline-block;
    width: 25px;
    height: 25px;
    margin: 0 5px -6px 5px;
}
#kulinarisches-filter-container .kulinarisches-ohne-verpflegung .kulinarisches-name::before{
    background: url('images/circle-icon.svg') no-repeat center center;
    background-size: 100% 100%;
}
#kulinarisches-filter-container .kulinarisches-trinken-bar .kulinarisches-name::before {
    background: url('images/square-icon.svg') no-repeat center center;
    background-size: 100% 100%;
}
#kulinarisches-filter-container .kulinarisches-trinken-bar-kulinarisches .kulinarisches-name::before {
    background: url('images/hexagon-icon.svg') no-repeat center center;
    background-size: 100% 100%;
}

.veranstaltungen-post-inner .event-kulinarisches .kulinarisches-ohne-verpflegung,
.veranstaltungen-post-inner .event-kulinarisches .kulinarisches-trinken-bar,
.veranstaltungen-post-inner .event-kulinarisches .kulinarisches-trinken-bar-kulinarisches {
    /* font-size: 0; */
}
.veranstaltungen-post-inner .event-kulinarisches .kulinarisches-ohne-verpflegung::before,
.veranstaltungen-post-inner .event-kulinarisches .kulinarisches-trinken-bar::before,
.veranstaltungen-post-inner .event-kulinarisches .kulinarisches-trinken-bar-kulinarisches::before {
    content:'';
    display: inline-block;
    width: 25px;
    height: 25px;
    margin: 0 5px -6px 0;
}
.veranstaltungen-post-inner .event-kulinarisches .kulinarisches-ohne-verpflegung::before {
    background: url('images/circle-icon.svg') no-repeat center center;
    background-size: 100% 100%;    
}
.veranstaltungen-post-inner .event-kulinarisches .kulinarisches-trinken-bar::before {
    background: url('images/square-icon.svg') no-repeat center center;
    background-size: 100% 100%;
}
.veranstaltungen-post-inner .event-kulinarisches .kulinarisches-trinken-bar-kulinarisches::before {
    background: url('images/hexagon-icon.svg') no-repeat center center;
    background-size: 100% 100%;
}

/* Single Veranstaltungen  */
.wp-block-post-navigation-link a {
    border-bottom: 1px dotted #000;
    transition: border-color 0.3s ease;
}
.wp-block-post-navigation-link a:hover {
    border-bottom: 1px dotted transparent;
}

.veranstaltungen-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.veranstaltungen-gallery a {
    border: none;
}
.veranstaltungen-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}

.veranstaltungen-time-place {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.veranstaltungen-time-place .time-place-row {
    display: grid;
    padding: 20px;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    background: #f9f9f9;
    border-radius: 5px;
}
.veranstaltungen-time-place .time-place-left .icon-block { margin-bottom: 10px; }
.veranstaltungen-time-place .time-place-right .location-map-image {
    display: block;
    float: right;
    height: 200px;
  }
.veranstaltungen-time-place .time-place-right .location-map-image img {
    width: auto;
    height: 100%;
    display: block;
    object-fit: cover;
}

.veranstaltungen-time-place .event-kulinarisches {
    margin: 0 0 15px;
}
.veranstaltungen-time-place .event-kulinarisches .event-kulinarisches-value {
    padding:0;
    background: none;
}

.time-place-row .icon-block:last-child {
    margin-top:10px;
}
.time-place-row .icon-block img {
    margin: 0 5px -2px 5px;
}
.icon-block img {
    width: 15px;
    margin:0 10px 0 0;
}

.veranstaltungen-time-ort {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.veranstaltungen-time-ort .time-ort-row {
    background: #d6ddf9;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 0;    
}

.single-veranstaltungen .veranstaltungen-kategorie .event-category {
    padding-top: 5px;
    padding-bottom: 5px;
}
.single-veranstaltungen .veranstaltungen-kategorie .event-categories {
    margin: 0;
    gap: 20px;
}
.single-veranstaltungen .veranstaltungen-kategorie .event-categories .event-category-name {
    padding-top: 0;
    padding-bottom: 0;
}

.single-veranstaltungen .kulinarisches-trinken-bar::before,
.single-veranstaltungen .kulinarisches-trinken-bar-kulinarisches::before,
.single-veranstaltungen .kulinarisches-ohne-verpflegung::before {
    content:'';
    display: inline-block;
    width: 25px;
    height: 25px;
    margin: 0 5px -6px 0;
}
.single-veranstaltungen .kulinarisches-trinken-bar::before {
    background: url('images/square-icon.svg') no-repeat center center;
    background-size: 100% 100%;
}
.single-veranstaltungen .kulinarisches-trinken-bar-kulinarisches::before {
    background: url('images/hexagon-icon.svg') no-repeat center center;
    background-size: 100% 100%;
}
.single-veranstaltungen .kulinarisches-ohne-verpflegung::before {
    background: url('images/circle-icon.svg') no-repeat center center;
    background-size: 100% 100%;
}
.single-veranstaltungen .event-kulinarisches .kulinarisches-ohne-verpflegung,
.single-veranstaltungen .event-kulinarisches .kulinarisches-trinken-bar,
.single-veranstaltungen .event-kulinarisches .kulinarisches-trinken-bar-kulinarisches {
    /* font-size: 0; */
}

/* Contact Form (CF7) */
.wpcf7 {
    margin-top: 20px;
}
.wpcf7 form {
    display: grid;
    gap: 16px;
}
.wpcf7 p {
    margin: 0;
}
.wpcf7 .red {
    color: #DC3232;
    font-weight: 600;
    margin-right: 4px;
}
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin-top: 6px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
    width: 90%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font: inherit;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: #b5c3ff;
    box-shadow: 0 0 0 3px rgba(214, 221, 249, 0.6);
}
.wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox/Radio as chips (works best with use_label_element) */
.wpcf7 .wpcf7-checkbox .wpcf7-list-item,
.wpcf7 .wpcf7-radio .wpcf7-list-item {
    display: inline-block;
    margin: 4px 6px 4px 0;
}
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label,
.wpcf7 .wpcf7-radio .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #d6ddf9;
    background: #f9fbff;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label:hover,
.wpcf7 .wpcf7-radio .wpcf7-list-item label:hover {
    background: #fff;
}
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"],
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type="radio"] {
    margin: 0;
}
/* Highlight selected chip (requires :has support; degrades gracefully) */
.wpcf7 .wpcf7-list-item label:has(input:checked) {
    background: #d6ddf9;
    border-color: #b5c3ff;
}

/* Drag & Drop Multiple File Upload for CF7 */
.wpcf7 .dnd-upload-wrapper {
    background: #f9f9f9;
    border: 2px dashed #d6ddf9;
    border-radius: 5px;
    padding: 16px;
    text-align: center;
}
.wpcf7 .dnd-upload-text {
    color: #666;
}
.wpcf7 .dnd-upload-status {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.wpcf7 .dnd-upload-image {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}
.wpcf7 .dnd-upload-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

/* Validation & messages */
.wpcf7 .wpcf7-not-valid {
    border-color: #DC3232;
}
.wpcf7 .wpcf7-not-valid-tip {
    color: #DC3232;
    font-size: 12px;
    margin-top: 6px;
}
.wpcf7 .wpcf7-response-output {
    border-radius: 5px;
    padding: 10px 12px;
    margin: 0;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    background: #e9f6ec;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #DC3232;
    background: #fdeaea;
}

/* Submit button */
.wpcf7 input[type="submit"] {
    display: inline-block;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.wpcf7 input[type="submit"]:hover {
    background: #fff;
    color: #000;
}