/* Micro-animaties en afwerking (12 nov). Alles rustig en kort; zonder beweging als de bezoeker dat zo heeft ingesteld. */
:root { --zacht: cubic-bezier(.22, .61, .36, 1); }
a, button, select, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--groen); outline-offset: 3px; border-radius: 4px; }

@keyframes fb-op { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fb-zoom { from { transform: scale(1.07); } to { transform: none; } }
@keyframes fb-weg { from { background-position: 0 0; } to { background-position: 28px 0; } }
@keyframes fb-stip { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fb-lijn { from { transform: scaleX(0); } to { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* binnenkomst van een pagina */
  main > :first-child { animation: fb-in .5s var(--zacht) both; }
  .h-foto { animation: fb-zoom 1.8s var(--zacht) both; }
  .h-tekst > *, .d-open > *, .p-intro > *, .o-open > *, .c-open > * { animation: fb-op .75s var(--zacht) both; }
  .h-tekst > :nth-child(2), .d-open > :nth-child(2), .p-intro > :nth-child(2), .o-open > :nth-child(2), .c-open > :nth-child(2) { animation-delay: .08s; }
  .h-tekst > :nth-child(3), .d-open > :nth-child(3), .p-intro > :nth-child(3), .o-open > :nth-child(3), .c-open > :nth-child(3) { animation-delay: .16s; }
  .h-tekst > :nth-child(n+4), .p-intro > :nth-child(n+4), .c-open > :nth-child(n+4) { animation-delay: .24s; }
  .h-balk { animation: fb-op .8s .32s var(--zacht) both; }
  .s-tab { animation: fb-op .7s var(--zacht) both; }
  .s-tab:nth-child(2) { animation-delay: .05s; } .s-tab:nth-child(3) { animation-delay: .1s; } .s-tab:nth-child(4) { animation-delay: .15s; } .s-tab:nth-child(5) { animation-delay: .2s; }
  .s-inhoud > *, .d-dienst > * { animation: fb-op .6s var(--zacht) both; }
  .s-inhoud > :nth-child(2), .d-dienst > :nth-child(2) { animation-delay: .1s; }

  /* bij scrollen: secties komen rustig in beeld (Chrome, Edge; elders staat alles gewoon stil) */
  @supports (animation-timeline: view()) {
    main > :not(:first-child):not(.s-inhoud):not(.d-dienst) { animation: fb-op linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    .waarom li, .s-zonelijn li, .vink li, .woordmuur li { animation: fb-op linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
    .s-zonelijn li { position: relative; }
    .sweg-stip { animation: fb-stip linear both; animation-timeline: view(); animation-range: entry 20% entry 70%; }
  }

  /* de weg uit het logo rijdt */
  .sweg::after { animation: fb-weg 1.6s linear infinite; }

  /* knoppen */
  .knop { transition: background .2s; }
  .knop::after { transition: transform .3s var(--zacht); }
  .knop:hover::after { transform: translateX(6px); }
  .knop-lijn { border-bottom: 0; padding-bottom: 9px; background: linear-gradient(var(--groen), var(--groen)) left bottom / 100% 3px no-repeat; transition: color .2s, background-size .3s var(--zacht); }
  .knop-lijn:hover { background-size: 100% 6px; }
  .knop-tekst { transition: color .2s, text-underline-offset .25s var(--zacht); }
  .knop-tekst:hover { text-underline-offset: 8px; }

  /* navigatie */
  .kop-nav a { transition: opacity .2s; }
  .kop-nav:hover a:not(:hover):not([aria-current]) { opacity: .7; }
  .voet-nav a { transition: color .2s, transform .25s var(--zacht); }
  .voet-nav a:hover { transform: translateX(5px); }

  /* home */
  .h-balk-dienst b { display: inline-block; transition: color .2s, transform .3s var(--zacht); }
  .h-balk-dienst:hover b { transform: translateX(5px); }
  .h-balk-dienst .nr::after { transition: width .35s var(--zacht); }
  .h-balk-dienst:hover .nr::after { width: 100%; }
  .manieren-keus button { transition: background-color .25s, color .25s; }
  .manieren-keus .naam { transition: transform .3s var(--zacht); }
  .manieren-keus button:hover .naam { transform: translateX(4px); }
  .manieren-paneel > * { animation: fb-op .5s var(--zacht) both; }
  .manieren-paneel > :nth-child(2) { animation-delay: .06s; } .manieren-paneel > :nth-child(n+3) { animation-delay: .12s; }
  .woordmuur li { transition: color .2s; }
  .woordmuur li:hover { color: var(--groen-d); }
  .waarom li::before, .vink li::before { transition: transform .3s var(--zacht); }
  .waarom li:hover::before, .vink li:hover::before { transform: scale(1.6); }
  .portret { transition: outline-offset .35s var(--zacht), transform .35s var(--zacht); }
  .h-oscar:hover .portret, .o-open:hover .portret { outline-offset: 8px; }

  /* diensten */
  .d-keus a { transition: background .25s, color .25s; }
  .d-keus .naam { transition: color .2s; }
  .d-keus a:not([aria-current]):hover .naam { color: var(--groen); }

  /* specialisaties: de strook */
  .s-tab { transition: flex .7s var(--zacht), transform .3s var(--zacht); }
  .s-strook:hover .s-tab:not(.nu):hover { flex: 1.35; }
  .s-tab img { transition: filter .5s, transform 1.1s var(--zacht); }
  .s-tab:hover img { transform: scale(1.06); }
  .s-tab::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgb(21 28 25 / .55)); opacity: 0; transition: opacity .45s; pointer-events: none; }
  .s-tab:hover::after, .s-tab.nu::after { opacity: 1; }
  .s-tab span { z-index: 2; }
  .s-zonelijn li { transition: border-color .3s; }
  .s-zonelijn li:hover { border-top-color: var(--groen); }

  /* planner */
  .pb-baan > span { transition: left .45s var(--zacht), width .45s var(--zacht); }
  .pb-rij { transition: background .2s; }
  .pb-rij:hover { background: var(--licht-2); }
  .p-stand-zin b { display: inline-block; animation: fb-op .4s var(--zacht) both; }
  .pb-aantal button, .pb-weg { transition: background .15s, transform .15s; }
  .pb-aantal button:active, .pb-weg:active { transform: scale(.9); }

  /* contact */
  .c-nummer { transition: color .25s; }
  .c-mail { transition: border-color .25s, color .25s; }
  .c-mail:hover { color: var(--groen-d); }
  .c-wijze button { transition: background .2s, color .2s, box-shadow .25s; }
  .c-form input, .c-form textarea { transition: border-color .2s, background .2s, box-shadow .25s; }
  .c-form input:focus, .c-form textarea:focus { outline: none; border-bottom-color: var(--groen); background: var(--wit); box-shadow: 0 0 0 2px var(--licht-2); }
  .contactregels a, .voet-zin a { transition: color .2s, border-color .2s; }
  .contactregels a:hover, .voet-zin a:hover { color: var(--groen); }
}

/* geen accentrandjes (Mees, 12 nov) en een logische hover op het actieve tabblad */
.s-tab.nu span, .s-tab:hover span { box-shadow: none; }
.c-wijze [aria-checked='true'] { box-shadow: none; }
.d-keus a[aria-current], .d-keus a[aria-current]:hover { background: var(--wit); color: var(--inkt); cursor: default; }
.d-keus a[aria-current]:hover .naam { color: var(--inkt); }

/* hovers zonder schaduw of optillen, en altijd leesbaar (Mees, 12 nov) */
.knop, .knop:hover, .knop:active { box-shadow: none; transform: none; }
.manieren-keus [aria-selected='true'], .manieren-keus [aria-selected='true']:hover { background: var(--antraciet); color: var(--wit); }
.manieren-keus button:not([aria-selected='true']):hover { background: var(--licht); color: var(--inkt); }
:is(.manieren-paneel, .h-oscar, .d-open, .o-open, .p-intro, .p-stand, .c-mee, .voet, .h-open) :is(.knop-lijn, .knop-tekst):hover { color: var(--wit); }
