/*
Theme Name: YADA Home
Theme URI: https://yadahome.ch
Description: Eigenes Theme fuer YADA Home, basiert auf Twenty Twenty-Five. Farben, Schriften und Abstaende gemaess Brand Guideline.
Author: YADA Home
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.7
Text Domain: yada
*/

/* ---------- Typografie: Semi Condensed wie in der CI ---------- */
body { font-stretch: 87.5%; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .yada-serif { font-stretch: 87.5%; }

/* ---------- Logo (Wortmarke als Text, bis SVG vorliegt) ---------- */
.yada-logo { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; text-decoration: none; color: inherit; }
.yada-logo__word { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-weight: 500; font-stretch: 87.5%; font-size: 2.6rem; letter-spacing: -0.02em; line-height: .8; }
.yada-logo__home { font-family: var(--wp--preset--font-family--sans); font-weight: 300; font-size: .72rem; letter-spacing: .08em; margin-top: .15rem; }
.yada-logo--large .yada-logo__word { font-size: clamp(4rem, 12vw, 8rem); }
.yada-logo--large .yada-logo__home { font-size: clamp(1rem, 2.4vw, 1.6rem); }

/* ---------- Header ---------- */
.yada-header { position: relative; z-index: 10; }
.yada-header .wp-block-navigation { font-size: var(--wp--preset--font-size--small); letter-spacing: .06em; text-transform: uppercase; }
.yada-header .wp-block-navigation a { text-decoration: none; }
.yada-header .wp-block-navigation a:hover { color: var(--wp--preset--color--berry); }

/* ---------- Kleine Ueberzeile ---------- */
.yada-eyebrow { font-size: var(--wp--preset--font-size--small); letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }

/* ---------- Karten / Bilder ---------- */
.yada-card .wp-block-image img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 2px; transition: transform .8s ease; }
.yada-card .wp-block-image { overflow: hidden; }
.yada-card:hover .wp-block-image img { transform: scale(1.03); }
.yada-card a { text-decoration: none; }
.yada-pill img { border-radius: 999px 999px 0 0; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.yada-material img { aspect-ratio: 3/4; object-fit: cover; width: 100%; border-radius: 999px; }

/* ---------- Werte-Liste ---------- */
.yada-values h3 { margin-bottom: .25rem; }
.yada-values p { margin-top: 0; }

/* ---------- Links im Fliesstext ---------- */
.entry-content a, .wp-block-post-content a:not(.wp-block-button__link) { text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ---------- Buttons: Pill-Form wie Farbbalken der CI ---------- */
.wp-block-button__link { transition: background-color .3s ease, color .3s ease; }
.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--wine); color: var(--wp--preset--color--cream); }

@media (max-width: 781px) {
  .yada-logo__word { font-size: 2.1rem; }
}

/* ---------- Seitenrand fuer vollbreite Bereiche ---------- */
.yada-header,
.wp-block-cover.alignfull {
  padding-left: var(--wp--style--root--padding-left, 2rem) !important;
  padding-right: var(--wp--style--root--padding-right, 2rem) !important;
}

/* ---------- Vollbreite Sektionen ohne Luecke aneinander ---------- */
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  /* Material-Pillen auch mobil nebeneinander */
  .wp-block-columns:has(> .wp-block-column > .yada-material) { flex-wrap: nowrap !important; gap: 1rem; }
  .wp-block-columns:has(> .wp-block-column > .yada-material) > .wp-block-column { flex-basis: 0 !important; flex-grow: 1; }
  .wp-block-buttons.is-content-justification-right { justify-content: flex-start; }
}

/* ---------- Mehr Luft vor Zwischentiteln auf Inhaltsseiten ---------- */
.wp-block-post-content > h2 { margin-top: var(--wp--preset--spacing--60); }
.wp-block-post-content > h3 { margin-top: var(--wp--preset--spacing--50); }
.wp-block-post-content > .wp-block-image { margin-block: var(--wp--preset--spacing--50); }

/* ---------- Kontaktformular ---------- */
.yada-form { display: grid; gap: 2rem; }
.yada-form .yk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.yk-field { display: block; }
.yk-label { display: block; font-size: var(--wp--preset--font-size--small); letter-spacing: .14em; text-transform: uppercase; font-weight: 400; margin-bottom: .35rem; }
.yada-form input[type=text], .yada-form input[type=email], .yada-form select, .yada-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-stretch: 87.5%; color: var(--wp--preset--color--wine);
  background: transparent; border: 0; border-bottom: 1px solid rgba(89, 22, 23, .35); border-radius: 0;
  padding: .55rem 0; transition: border-color .25s ease, box-shadow .25s ease;
}
.yada-form textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.yada-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23591617' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right .2rem center;
}
.yada-form input:focus, .yada-form select:focus, .yada-form textarea:focus {
  outline: none; border-bottom-color: var(--wp--preset--color--berry); box-shadow: 0 1px 0 var(--wp--preset--color--berry);
}
.yada-form [aria-invalid=true] { border-bottom-color: var(--wp--preset--color--berry); }
.yk-error { display: block; color: var(--wp--preset--color--berry); font-size: var(--wp--preset--font-size--small); margin-top: .4rem; }
.yk-privacy { font-size: var(--wp--preset--font-size--small); margin: 0; opacity: .85; }
.yada-form button { cursor: pointer; }
.yk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.yk-notice { padding: 1.25rem 1.5rem; margin-bottom: 2rem; border-radius: 2px; }
.yk-notice p { margin: 0; }
.yk-notice--ok { background: var(--wp--preset--color--cream); padding: 2.5rem; }
.yk-notice__title { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-stretch: 87.5%; font-size: var(--wp--preset--font-size--large); margin-bottom: .5rem !important; }
.yk-notice--error { border-left: 2px solid var(--wp--preset--color--berry); background: rgba(192, 76, 97, .07); }
@media (max-width: 781px) { .yada-form .yk-row { grid-template-columns: 1fr; } }
