/*
Theme Name: Altissimo
Theme URI: https://altissimo-kragendesign.de
Author: Altissimo Kragendesign
Description: Theme für Altissimo Kragendesign. Passt zum Altissimo Konfigurator: Playfair Display und Jost, Beige und Taupe, ruhige Flächen.
Version: 1.5.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: altissimo
*/

/* Feinheiten, die theme.json nicht abdeckt */
.wp-site-blocks { overflow-x: clip; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.alt-eyebrow { font-size: .78rem !important; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.alt-wordmark a, .alt-wordmark { letter-spacing: .32em; text-decoration: none; }
.alt-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.alt-header .wp-block-navigation a { text-decoration: none; }
.alt-header .wp-block-navigation a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--taupe); }
.alt-stage { background: radial-gradient(ellipse 75% 85% at 50% 30%, #fbfaf8 0%, #f3f1ed 62%, #e9e6e0 100%); border-radius: 24px; }
.alt-model img { border-radius: 16px; transition: transform .25s ease; background: #f3f1ed; aspect-ratio: 1; object-fit: cover; width: 100%; }
.alt-model a { text-decoration: none; color: inherit; }
.alt-model figure { margin-bottom: .6rem !important; }
.alt-step-n { font-family: var(--wp--preset--font-family--display); font-size: 2.6rem; line-height: 1; color: var(--wp--preset--color--taupe); }
.alt-rule { border: 0; border-top: 1px solid var(--wp--preset--color--taupe) !important; width: 120px; margin-left: 0 !important; opacity: 1; }
.alt-dark { color: #efebe3; }
.alt-dark a { color: #efebe3; }
.alt-footer a { text-decoration: none; }
.alt-footer a:hover { text-decoration: underline; }
.alt-list { list-style: none; padding-left: 0 !important; }
.alt-list li { padding: .45rem 0; border-top: 1px solid var(--wp--preset--color--line); }
.alt-list li:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
@media (max-width: 781px) {
  .alt-models { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .alt-hero-text { padding-top: 0 !important; }
  .alt-hide-mobile { display: none !important; }
}

/* Design 1.1: weiß, rund, ruhig */
.alt-header { position: sticky; top: 0; z-index: 30; background: #fff !important; }
.admin-bar .alt-header { top: 32px; }
.wp-block-image img, .wp-block-cover { border-radius: 20px; }
.wp-block-button__link { transition: background .15s, transform .15s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.alt-model a:hover img { transform: scale(1.02); }
.alt-page-compact { font-size: clamp(1.6rem, 3vw, 2.1rem) !important; margin-bottom: 1rem !important; }
@media (max-width: 782px) { .admin-bar .alt-header { top: 46px; } }

/* Logo und Fotos */
.alt-logo { display: block; line-height: 0; }
.alt-logo img { width: 320px; max-width: 100%; height: auto; display: block; }
.alt-logo-footer { width: 300px; max-width: 100%; height: auto; display: block; background: #fff; border-radius: 12px; padding: 6px; }
.alt-stage { overflow: hidden; }
.alt-stage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.alt-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 1.5rem; max-width: 860px; margin-inline: auto; }
.alt-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; display: block; }
@media (max-width: 781px) {
  .alt-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .alt-logo img { width: 190px; }
}

/* Design 1.4: Abschnitte, runde Produktfotos, kleinere Bilder */
html body .ak { --ak-w: min(1240px, calc(100vw - 2 * max(16px, 4vw))); }
html body .alt-section { width: 100vw; max-width: 100vw !important; margin: 0 calc(50% - 50vw) !important; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.alt-tint { background: #f4f3f1; }
.alt-inner { max-width: 1040px; margin: 0 auto; padding: 0 max(16px, 4vw); }
.alt-narrow { max-width: 720px; }
.alt-center { text-align: center; }
.alt-section h2 { margin: 0 0 1rem; }
.alt-lead { max-width: 720px; margin: 0 auto 1rem; font-size: 1.05rem; }
.alt-price { font-weight: 500; margin: 0 0 1.5rem; }
.alt-rounds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; max-width: 820px; margin: 2rem auto 0; }
.alt-round { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.alt-round img { width: min(150px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 0 0 1px var(--wp--preset--color--line), 0 8px 20px -12px rgba(26, 25, 23, .5); transition: transform .2s ease; }
.alt-round:hover img { transform: scale(1.04); }
.alt-round strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.3rem; margin-top: .6rem; }
.alt-round span { color: var(--wp--preset--color--muted); font-size: .95rem; }
.alt-photos { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin: 0; }
.alt-photos figure { margin: 0; width: min(260px, 100%); }
.alt-photos img { display: block; width: 100%; height: 300px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; border: 1px solid var(--wp--preset--color--line); }
.alt-photos figcaption { margin-top: .5rem; color: var(--wp--preset--color--muted); font-size: .95rem; }
.alt-steps { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 28px 18px; padding: 22px 0 0; margin: 1.5rem 0 1.5rem; }
.alt-steps li { position: relative; width: min(220px, 100%); }
.alt-steps img { display: block; width: 100%; height: auto; border-radius: 14px; border: 6px solid #fff; box-shadow: 0 8px 20px -14px rgba(26, 25, 23, .6); }
.alt-step-badge { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-weight: 500; font-size: 1.2rem; box-shadow: 0 2px 8px rgba(26, 25, 23, .18); }

/* Kleinere Bilder auf Start- und Textseiten */
.alt-model img { display: block; width: min(150px, 100%); margin: 0 auto; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 0 0 1px var(--wp--preset--color--line), 0 8px 20px -12px rgba(26, 25, 23, .5); }
.alt-model { text-align: center; }
.alt-stage { max-width: 400px; margin-inline: auto; }
.wp-block-post-content .wp-block-column > .wp-block-image { max-width: 320px; }

/* Menü: Kopfzeile bleibt einzeilig, Handy-Menü gut lesbar */
.alt-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem max(16px, 4vw); background: #fff; }
.alt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
.alt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 1.1rem; font-size: 1.4rem; }
@media (min-width: 782px) and (max-width: 1180px) {
  .alt-logo img { width: 230px; }
  .alt-header .wp-block-navigation__container { gap: 1rem !important; }
}
@media (max-width: 781px) {
  .alt-rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alt-photos figure { width: calc(50% - 12px); }
  .alt-photos img { height: 220px; }
  .alt-steps li { width: calc(50% - 9px); }
  .alt-gallery { max-width: none; }
}

/* Handy: Logo und Menü in einer Zeile */
@media (max-width: 781px) {
  .alt-header > .wp-block-group { flex-wrap: nowrap !important; gap: 8px; }
  .alt-header > .wp-block-group > .wp-block-group { flex-shrink: 0; gap: 10px !important; }
  .alt-logo { min-width: 0; flex: 0 1 auto; }
  .alt-logo img { width: min(190px, 48vw); }
}

/* Design 1.5: mehr Luft, klare Abschnitte */
html body .alt-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.alt-section h2 { margin: 0 0 1.5rem; }
.alt-section .alt-eyebrow { margin: 0 0 .9rem; }
.alt-lead { margin-bottom: 1.5rem; line-height: 1.7; }
.alt-price { margin-bottom: 2.25rem; }
.alt-rounds { gap: 44px 20px; margin-top: 3rem; }
.alt-photos { gap: 32px; margin-top: 2.5rem; }
.alt-gallery { margin-top: 2.5rem; }
.alt-steps { margin: 2.5rem 0 2.5rem; }
.alt-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 3.25rem 0 0; }
.alt-section a.wp-block-button__link { display: inline-block; text-decoration: none; }
.alt-btn-outline { display: inline-block; padding: .85rem 1.6rem; border: 1px solid var(--wp--preset--color--ink); border-radius: 999px; text-decoration: none; color: var(--wp--preset--color--ink); transition: background .15s, color .15s; }
.alt-btn-outline:hover { background: var(--wp--preset--color--ink); color: #fff; }

.alt-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.alt-hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.08; margin: 0 0 1.5rem; }
.alt-hero-lead { font-size: 1.2rem; line-height: 1.65; color: var(--wp--preset--color--muted); margin: 0; }
.alt-hero .alt-btns { justify-content: flex-start; margin-top: 2.25rem; }
.alt-hero-img { width: 100%; max-width: 420px; justify-self: center; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 24px; display: block; }

.alt-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 820px; margin: 3rem auto 0; padding: 0; }
.alt-facts li { background: #fff; border-radius: 18px; padding: 1.75rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.alt-facts strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 2.2rem; line-height: 1.1; }
.alt-facts span { color: var(--wp--preset--color--muted); font-size: .98rem; }
.alt-sub { font-size: 1.5rem; margin: 4rem 0 0; }
.alt-steps-text { align-items: flex-start; gap: 36px 24px; margin-top: 2.75rem; margin-bottom: 0; }
.alt-steps-text li { display: flex; flex-direction: column; align-items: center; width: min(260px, 100%); }
.alt-steps-text strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.25rem; margin-top: 1rem; }
.alt-step-text { color: var(--wp--preset--color--muted); font-size: .95rem; margin-top: .35rem; line-height: 1.55; }

.alt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 3rem; text-align: left; }
.alt-cards > div { background: #fff; border-radius: 18px; padding: 2rem 1.75rem; }
.alt-cards h3 { margin: .9rem 0 .6rem; }
.alt-cards p { margin: 0; color: var(--wp--preset--color--muted); }
.alt-step-n { color: var(--wp--preset--color--ink); }

@media (max-width: 781px) {
  .alt-hero { grid-template-columns: minmax(0, 1fr); }
  .alt-facts, .alt-cards { grid-template-columns: minmax(0, 1fr); }
  .alt-steps-text li { width: 100%; max-width: 300px; }
  .alt-btns a { text-align: center; }
}

/* Design 1.5.1: Abstände nachjustiert, Kragen exakt rund */
html body .alt-section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
html body.home .alt-section { padding: clamp(3rem, 6vw, 5rem) 0; }
html body.page-slug-kollektion .alt-section { padding: clamp(2rem, 3.5vw, 2.75rem) 0; }
main:has(.alt-section) { padding-bottom: 0 !important; }
main:has(.alt-section) .wp-block-post-title { margin-bottom: 0; }
main:has(.alt-section) { padding-top: var(--wp--preset--spacing--40) !important; }
main:has(.alt-section) > .wp-block-post-content { margin-top: 0; }
.alt-btns { margin-top: 2.5rem; }
.alt-rounds { gap: 30px 16px; margin-top: 2rem; }
.alt-round img { width: 150px; height: 150px; max-width: none; flex: 0 0 150px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; }
.page-slug-kollektion .alt-section h2 { margin-bottom: .75rem; }
.page-slug-kollektion .alt-lead { margin-bottom: .75rem; }
.page-slug-kollektion .alt-price { margin-bottom: 1.25rem; }
.page-slug-kollektion .alt-rounds { margin-top: 1.5rem; gap: 22px 14px; }
.page-slug-kollektion .alt-photos { margin-top: 1.25rem; gap: 20px; }
.page-slug-kollektion .alt-photos img { height: 250px; }
.page-slug-kollektion .alt-btns { margin-top: 1.5rem; }
@media (max-width: 781px) {
  .alt-round img { width: 130px; height: 130px; flex-basis: 130px; }
  .page-slug-kollektion .alt-photos img { height: 190px; }
}

/* Startseite: Überschrift in zwei Zeilen */
.alt-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.alt-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
@media (max-width: 781px) {
  .alt-hero { grid-template-columns: minmax(0, 1fr); }
  .alt-hero h1 { font-size: min(9.2vw, 3.4rem); }
}
