/*
Theme Name: Andreas Kapeller Block Theme
Theme URI: https://andreaskapeller.at
Author: Andreas Kapeller
Author URI: https://andreaskapeller.at
Description: Eigenes schlankes WordPress Block Theme fuer Andreas Kapeller - Impulsgeber, Trainer und Wegbereiter.
Version: 1.0.6
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: andreas-kapeller
*/

/* =========================================================
   Andreas Kapeller Block Theme
   Root Design
   ========================================================= */

:root {
    --ak-navy: #061b36;
    --ak-blue: #00578b;
    --ak-light-blue: #169cd3;
    --ak-gold: #b99a64;
    --ak-gold-soft: rgba(185, 154, 100, 0.28);
    --ak-white: #ffffff;
    --ak-offwhite: #f7f7f4;
    --ak-text: #0b1f38;
    --ak-muted: #657386;
    --ak-line: rgba(6, 27, 54, 0.14);
    --ak-shadow-soft: 0 22px 70px rgba(6, 27, 54, 0.10);
    --ak-shadow-circle: 0 16px 48px rgba(6, 27, 54, 0.08);
}

/* =========================================================
   Reset / Base
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ak-text);
    background: var(--ak-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

* {
    box-sizing: border-box;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--ak-light-blue);
    outline-offset: 4px;
    border-radius: 6px;
}

.wp-site-blocks {
    min-height: 100vh;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   Header
   ========================================================= */

.ak-header {
    position: relative;
    z-index: 50;
    height: 88px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(6, 27, 54, 0.06);
}

.ak-header-inner {
    width: min(1480px, calc(100vw - 72px));
    height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.ak-brand {
    display: flex;
    align-items: center;
    gap: 34px;
    color: var(--ak-navy);
    text-decoration: none;
    min-width: 420px;
}

.ak-logo {
    width: 50px;
    height: 30px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ak-logo::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -4px;
    bottom: -4px;
    width: 1px;
    background: rgba(6, 27, 54, 0.18);
}

.ak-logo img {
    display: block;
    width: 50px;
    height: 30px;
    object-fit: contain;
}

.ak-brand-name {
    font-size: 1rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}

.ak-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(6, 27, 54, 0.14);
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    color: var(--ak-navy);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ak-menu-toggle-lines {
    display: block;
    width: 22px;
    height: 16px;
    position: relative;
}

.ak-menu-toggle-lines::before,
.ak-menu-toggle-lines::after,
.ak-menu-toggle-lines span {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--ak-navy);
    transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.ak-menu-toggle-lines::before {
    top: 0;
}

.ak-menu-toggle-lines span {
    top: 7px;
}

.ak-menu-toggle-lines::after {
    top: 14px;
}

.ak-menu-toggle[aria-expanded="true"] .ak-menu-toggle-lines::before {
    top: 7px;
    transform: rotate(45deg);
}

.ak-menu-toggle[aria-expanded="true"] .ak-menu-toggle-lines span {
    opacity: 0;
}

.ak-menu-toggle[aria-expanded="true"] .ak-menu-toggle-lines::after {
    top: 7px;
    transform: rotate(-45deg);
}

.ak-main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(24px, 3.2vw, 58px);
    font-size: 1rem;
    color: var(--ak-navy);
}

.ak-main-nav a {
    text-decoration: none;
    position: relative;
    padding: 32px 0 28px;
    font-weight: 500;
}

.ak-main-nav a:hover,
.ak-main-nav a[aria-current="page"] {
    color: var(--ak-navy);
}

.ak-main-nav a[aria-current="page"]::after,
.ak-main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 2px;
    background: var(--ak-navy);
}

/* =========================================================
   Frontpage Hero
   ========================================================= */

.ak-frontpage {
    overflow: hidden;
    background: var(--ak-white);
}

.ak-hero {
    position: relative;
    min-height: calc(100vh - 88px);
    max-height: 860px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 30%, rgba(255,255,255,0.55) 54%, rgba(255,255,255,0.02) 100%),
        #eef2f4;
}

.ak-hero-photo {
    position: absolute;
    inset: 0 0 0 auto;
    width: 69vw;
    min-width: 820px;
    background-image: url("assets/img/hero-andreas.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.ak-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.58) 18%, rgba(255,255,255,0.00) 46%),
        linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.00) 62%, rgba(255,255,255,0.30) 100%);
}

.ak-hero-inner {
    position: relative;
    z-index: 5;
    width: min(1480px, calc(100vw - 72px));
    margin: 0 auto;
    min-height: calc(100vh - 88px);
    max-height: 860px;
    display: flex;
    align-items: center;
}

.ak-hero-content {
    width: min(560px, 46vw);
    padding-bottom: clamp(110px, 14vh, 170px);
}

.ak-kicker {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 24px;
    color: var(--ak-blue);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.52em;
    text-transform: uppercase;
}

.ak-kicker::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--ak-gold);
}

.ak-hero-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(5rem, 8.4vw, 9.3rem);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.065em;
    color: var(--ak-navy);
}

.ak-hero-title span {
    display: block;
}

.ak-role {
    margin: 28px 0 0;
    color: var(--ak-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.22rem, 1.7vw, 1.7rem);
    line-height: 1.25;
}

.ak-gold-line {
    display: block;
    width: 58px;
    height: 1px;
    margin: 28px 0 22px;
    background: var(--ak-gold);
}

.ak-hero-text {
    margin: 0;
    max-width: 520px;
    color: #22344b;
    font-size: clamp(1rem, 1.1vw, 1.14rem);
    line-height: 1.75;
    letter-spacing: 0.02em;
}

.ak-hero-wave {
    position: absolute;
    left: -6vw;
    right: -6vw;
    bottom: -162px;
    height: 310px;
    background: rgba(255,255,255,0.98);
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
    z-index: 6;
    box-shadow: 0 -22px 64px rgba(6, 27, 54, 0.04);
}

.ak-hero-arc-line {
    position: absolute;
    left: -10vw;
    right: -10vw;
    bottom: -84px;
    height: 250px;
    border-top: 1px solid rgba(6, 27, 54, 0.24);
    border-radius: 50% 50% 0 0 / 78% 78% 0 0;
    z-index: 7;
    pointer-events: none;
}

/* =========================================================
   Circle Navigation
   ========================================================= */

.ak-circle-section {
    position: relative;
    z-index: 12;
    margin-top: -185px;
    padding: 0 24px 72px;
}

.ak-circle-wrap {
    width: min(920px, calc(100vw - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    align-items: center;
    justify-items: center;
    gap: clamp(16px, 2vw, 36px);
}

.ak-circle {
    width: clamp(220px, 17vw, 286px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(6, 27, 54, 0.08);
    box-shadow: var(--ak-shadow-circle);
    text-decoration: none;
    color: var(--ak-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 34px;
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ak-circle::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 1px solid rgba(6, 27, 54, 0.045);
}

.ak-circle::after {
    content: "";
    position: absolute;
    top: 90px;
    left: 50%;
    width: 42px;
    height: 1px;
    transform: translateX(-50%);
    background: var(--ak-gold);
}

.ak-circle:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(6, 27, 54, 0.13);
    border-color: rgba(0, 87, 139, 0.24);
}

.ak-circle-main {
    width: clamp(260px, 20vw, 340px);
    background: var(--ak-navy);
    color: var(--ak-white);
    transform: translateY(-34px);
    border: 7px solid rgba(255,255,255,0.92);
    box-shadow: 0 28px 80px rgba(6, 27, 54, 0.22);
}

.ak-circle-main::before {
    border-color: rgba(255,255,255,0.22);
}

.ak-circle-main::after {
    background: rgba(255,255,255,0.38);
}

.ak-circle-main:hover {
    transform: translateY(-42px);
}

.ak-circle-content {
    position: relative;
    z-index: 3;
    display: block;
}

.ak-circle-icon {
    display: flex;
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    border: 1px solid rgba(6, 27, 54, 0.22);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--ak-navy);
}

.ak-circle-icon svg {
    display: block;
    width: 27px;
    height: 27px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ak-circle-main .ak-circle-icon {
    border-color: rgba(255,255,255,0.55);
    color: var(--ak-white);
}

.ak-circle-title {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 2.5vw, 3.2rem);
    line-height: 1;
    margin-bottom: 12px;
}

.ak-circle-subtitle {
    display: block;
    color: var(--ak-muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

.ak-circle-main .ak-circle-subtitle {
    color: rgba(255,255,255,0.82);
}

.ak-circle-arrow {
    display: block;
    margin-top: 18px;
    font-size: 1.28rem;
    line-height: 1;
}

/* =========================================================
   Quote Area
   ========================================================= */

.ak-quote-section {
    position: relative;
    z-index: 10;
    padding: 8px 24px 76px;
    background: var(--ak-white);
}

.ak-quote {
    width: min(680px, calc(100vw - 48px));
    margin: 0 auto;
    text-align: center;
    color: var(--ak-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 1.55vw, 1.55rem);
    line-height: 1.45;
    font-style: italic;
    letter-spacing: 0.04em;
    position: relative;
}

.ak-quote::before,
.ak-quote::after {
    position: absolute;
    color: var(--ak-gold);
    font-size: 4rem;
    line-height: 1;
    font-style: normal;
}

.ak-quote::before {
    content: "\201C";
    left: -56px;
    top: -16px;
}

.ak-quote::after {
    content: "\201D";
    right: -56px;
    bottom: -48px;
}

/* =========================================================
   Lower Content
   ========================================================= */

.ak-intro {
    padding: 90px 24px 100px;
    background: #fbfbfa;
    border-top: 1px solid rgba(6, 27, 54, 0.08);
}

.ak-intro-inner {
    width: min(980px, calc(100vw - 48px));
    margin: 0 auto;
    text-align: center;
}

.ak-intro h1,
.ak-intro h2 {
    margin: 0;
    font-size: clamp(2.4rem, 4.2vw, 4.6rem);
    line-height: 1.02;
    color: var(--ak-navy);
    letter-spacing: -0.055em;
}

.ak-intro p {
    width: min(760px, 100%);
    margin: 26px auto 0;
    color: #2d4058;
    font-size: clamp(1.04rem, 1.2vw, 1.18rem);
    line-height: 1.8;
}

/* =========================================================
   Footer
   ========================================================= */

.ak-footer {
    background: #fbfbfa;
    padding: 0 24px 44px;
    color: var(--ak-muted);
}

.ak-footer-inner {
    width: min(1180px, calc(100vw - 48px));
    margin: 0 auto;
    border-top: 1px solid rgba(6, 27, 54, 0.14);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.ak-footer a {
    color: var(--ak-muted);
    text-decoration: none;
}

.ak-footer a:hover {
    color: var(--ak-blue);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
    .ak-header-inner,
    .ak-hero-inner {
        width: min(100%, calc(100vw - 48px));
    }

    .ak-main-nav {
        gap: 24px;
    }

    .ak-brand {
        min-width: auto;
    }

    .ak-brand-name {
        letter-spacing: 0.24em;
    }

    .ak-hero-photo {
        width: 72vw;
        min-width: 680px;
    }

    .ak-hero-content {
        width: min(520px, 48vw);
    }
}

@media (max-width: 960px) {
    .ak-header {
        height: auto;
    }

    .ak-header-inner {
        width: min(100%, calc(100vw - 48px));
        height: auto;
        min-height: 78px;
        padding: 14px 0;
        align-items: center;
        flex-direction: row;
        gap: 18px;
        flex-wrap: wrap;
    }

    .ak-brand {
        gap: 34px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .ak-logo {
        width: 50px;
        height: 30px;
        flex-basis: 50px;
    }

    .ak-logo img {
        width: 50px;
        height: 30px;
    }

    .ak-logo::after {
        right: -20px;
        top: -4px;
        bottom: -4px;
    }

    .ak-brand-name {
        letter-spacing: 0.2em;
    }

    .ak-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .ak-main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 16px 0 10px;
        border-top: 1px solid rgba(6, 27, 54, 0.10);
    }

    .ak-main-nav.is-open {
        display: flex;
    }

    .ak-main-nav a {
        display: block;
        width: 100%;
        padding: 13px 0;
        font-size: 1.04rem;
    }

    .ak-main-nav a[aria-current="page"]::after,
    .ak-main-nav a:hover::after {
        left: 0;
        right: auto;
        bottom: 8px;
        width: 34px;
    }

    .ak-hero {
        min-height: auto;
        max-height: none;
        padding-bottom: 0;
    }

    .ak-hero-photo {
        position: relative;
        width: 100%;
        min-width: 0;
        height: 520px;
        display: block;
        inset: auto;
        background-position: center top;
    }

    .ak-hero-photo::after {
        background:
            linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.00) 55%, rgba(255,255,255,0.76) 100%);
    }

    .ak-hero-inner {
        min-height: auto;
        display: block;
        padding: 70px 0 80px;
    }

    .ak-hero-content {
        width: min(620px, 100%);
        padding-bottom: 0;
    }

    .ak-hero-wave,
    .ak-hero-arc-line {
        display: none;
    }

    .ak-circle-section {
        margin-top: 0;
        padding-top: 54px;
    }

    .ak-circle-wrap {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .ak-circle,
    .ak-circle-main {
        width: min(320px, 86vw);
        transform: none;
    }

    .ak-circle-main:hover,
    .ak-circle:hover {
        transform: translateY(-6px);
    }

    .ak-quote::before,
    .ak-quote::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .ak-header-inner,
    .ak-hero-inner,
    .ak-footer-inner,
    .ak-intro-inner {
        width: min(100%, calc(100vw - 32px));
    }

    .ak-brand {
        gap: 30px;
    }

    .ak-logo {
        width: 50px;
        height: 30px;
        flex-basis: 50px;
    }

    .ak-logo img {
        width: 50px;
        height: 30px;
    }

    .ak-logo::after {
        right: -17px;
        top: -3px;
        bottom: -3px;
    }

    .ak-brand-name {
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        white-space: normal;
        line-height: 1.35;
    }

    .ak-menu-toggle {
        width: 44px;
        height: 44px;
    }

    .ak-main-nav {
        font-size: 0.96rem;
    }

    .ak-hero-inner {
        padding-top: 56px;
    }

    .ak-kicker {
        font-size: 0.74rem;
        letter-spacing: 0.28em;
        gap: 12px;
    }

    .ak-kicker::before {
        width: 28px;
    }

    .ak-hero-title {
        font-size: clamp(4rem, 18vw, 5.6rem);
    }

    .ak-role {
        font-size: 1.12rem;
    }

    .ak-hero-photo {
        height: 430px;
    }

    .ak-circle-section {
        padding-inline: 16px;
    }

    .ak-quote-section {
        padding-bottom: 56px;
    }

    .ak-intro {
        padding-top: 68px;
        padding-bottom: 78px;
    }

    .ak-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}